diff --git a/data/glade/chat_control_popup_menu.glade b/data/glade/chat_control_popup_menu.glade index cb4801076..36dd58801 100644 --- a/data/glade/chat_control_popup_menu.glade +++ b/data/glade/chat_control_popup_menu.glade @@ -4,28 +4,20 @@ - + True - Click to see past conversations with this contact - _History + _Add to Roster True + - + True - gtk-justify-fill + gtk-add 1 - - - True - gtk-info - True - True - - True @@ -35,12 +27,33 @@ True - gtk-file + gtk-save 1 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Invite _Contacts + True + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + gtk-missing-image + + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + True @@ -59,27 +72,33 @@ - + True - _Add to Roster + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + + + True + gtk-info + True + True + + + + + True + Click to see past conversations with this contact + _History True - - + True - gtk-add + gtk-justify-fill 1 - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - Invite _Friends - True - - diff --git a/src/chat_control.py b/src/chat_control.py index 44e9de1ca..bbfcfdeca 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1583,6 +1583,9 @@ class ChatControl(ChatControlBase): send_file_menuitem = xml.get_widget('send_file_menuitem') information_menuitem = xml.get_widget('information_menuitem') convert_to_gc_menuitem = xml.get_widget('convert_to_groupchat') + muc_icon = gajim.interface.roster.load_icon('muc_active') + if muc_icon: + convert_to_gc_menuitem.set_image(muc_icon) ag = gtk.accel_groups_from_object(self.parent_win.window)[0] history_menuitem.add_accelerator('activate', ag, gtk.keysyms.h, gtk.gdk.CONTROL_MASK, @@ -1618,7 +1621,8 @@ class ChatControl(ChatControlBase): send_file_menuitem.set_sensitive(False) # check if it's possible to convert to groupchat - if gajim.get_transport_name_from_jid(jid): + if gajim.get_transport_name_from_jid(jid) or gajim.connections[self.account].\ + is_zeroconf: convert_to_gc_menuitem.set_sensitive(False) # add_to_roster_menuitem