Changeset 9649
- Timestamp:
- 05/17/08 15:14:34 (3 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
data/glade/chat_control_popup_menu.glade (modified) (5 diffs)
-
src/chat_control.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/glade/chat_control_popup_menu.glade
r9603 r9649 21 21 <child> 22 22 <widget class="GtkImageMenuItem" id="send_file_menuitem"> 23 <property name=" visible">True</property>23 <property name="no_show_all">True</property> 24 24 <property name="label" translatable="yes">Send _File</property> 25 25 <property name="use_underline">True</property> … … 36 36 <child> 37 37 <widget class="GtkImageMenuItem" id="convert_to_groupchat"> 38 <property name="visible">True</property>39 38 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 39 <property name="no_show_all">True</property> 40 40 <property name="label" translatable="yes">Invite _Contacts</property> 41 41 <property name="use_underline">True</property> … … 51 51 <child> 52 52 <widget class="GtkSeparatorMenuItem" id="separatormenuitem2"> 53 <property name="visible">True</property>54 53 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 54 <property name="no_show_all">True</property> 55 55 </widget> 56 56 </child> … … 119 119 <child> 120 120 <widget class="GtkSeparatorMenuItem" id="separatormenuitem1"> 121 <property name="visible">True</property>122 121 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 122 <property name="no_show_all">True</property> 123 123 </widget> 124 124 </child> 125 125 <child> 126 126 <widget class="GtkImageMenuItem" id="information_menuitem"> 127 <property name=" visible">True</property>127 <property name="no_show_all">True</property> 128 128 <property name="label">gtk-info</property> 129 129 <property name="use_underline">True</property> … … 133 133 <child> 134 134 <widget class="GtkImageMenuItem" id="history_menuitem"> 135 <property name="visible">True</property> 136 <property name="tooltip" translatable="yes">Click to see past conversations with this contact</property> 135 <property name="no_show_all">True</property> 137 136 <property name="label" translatable="yes">_History</property> 138 137 <property name="use_underline">True</property> -
trunk/src/chat_control.py
r9635 r9649 756 756 def on_actions_button_clicked(self, widget): 757 757 '''popup action menu''' 758 menu = self.prepare_context_menu( )758 menu = self.prepare_context_menu(True) 759 759 menu.show_all() 760 760 gtkgui_helpers.popup_emoticons_under_button(menu, widget, … … 1736 1736 return tab_img 1737 1737 1738 def prepare_context_menu(self ):1738 def prepare_context_menu(self, hide_buttonbar_entries = False): 1739 1739 '''sets compact view menuitem active state 1740 1740 sets active and sensitivity state for toggle_gpg_menuitem … … 1758 1758 information_menuitem = xml.get_widget('information_menuitem') 1759 1759 convert_to_gc_menuitem = xml.get_widget('convert_to_groupchat') 1760 separatormenuitem1 = xml.get_widget('separatormenuitem1') 1761 separatormenuitem2 = xml.get_widget('separatormenuitem2') 1762 1760 1763 muc_icon = gtkgui_helpers.load_icon('muc_active') 1761 1764 if muc_icon: 1762 1765 convert_to_gc_menuitem.set_image(muc_icon) 1766 1767 if not hide_buttonbar_entries: 1768 history_menuitem.show() 1769 send_file_menuitem.show() 1770 information_menuitem.show() 1771 convert_to_gc_menuitem.show() 1772 separatormenuitem1.show() 1773 separatormenuitem2.show() 1763 1774 1764 1775 ag = gtk.accel_groups_from_object(self.parent_win.window)[0] … … 1795 1806 1796 1807 # add_to_roster_menuitem 1797 if _('Not in Roster') in contact.groups:1808 if not hide_buttonbar_entries and _('Not in Roster') in contact.groups: 1798 1809 add_to_roster_menuitem.show() 1799 1810
