contectmenu now works on banner

This commit is contained in:
Yann Leboulanger 2005-08-08 10:52:27 +00:00
parent 026c8f0bc0
commit d17c42cbcb
2 changed files with 2 additions and 3 deletions

View File

@ -269,9 +269,8 @@ class Chat:
return menu
def on_banner_button_press_event(self, widget, event):
def on_banner_eventbox_button_press_event(self, widget, event):
'''If right-clicked, show popup'''
print 'banner button press' #NEVER GETS CALLED!
if event.button == 3: # right click
self.popup_is_shown = True
menu = self.prepare_context_menu()

View File

@ -10074,13 +10074,13 @@ topic</property>
<property name="visible">True</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
<signal name="button_press_event" handler="on_banner_eventbox_button_press_event" last_modification_time="Mon, 08 Aug 2005 10:39:20 GMT"/>
<child>
<widget class="GtkHBox" id="banner_hbox">
<property name="visible">True</property>
<property name="homogeneous">False</property>
<property name="spacing">0</property>
<signal name="button_press_event" handler="on_banner_button_press_event" last_modification_time="Sun, 07 Aug 2005 15:06:55 GMT"/>
<child>
<widget class="GtkImage" id="banner_status_image">