hide window when we press esc if we have systray
This commit is contained in:
parent
bc25dbef03
commit
e39f1a30e8
|
@ -22,6 +22,7 @@
|
||||||
<property name="focus_on_map">True</property>
|
<property name="focus_on_map">True</property>
|
||||||
<signal name="delete_event" handler="on_roster_window_delete_event" last_modification_time="Mon, 21 Mar 2005 12:34:59 GMT"/>
|
<signal name="delete_event" handler="on_roster_window_delete_event" last_modification_time="Mon, 21 Mar 2005 12:34:59 GMT"/>
|
||||||
<signal name="focus_in_event" handler="on_roster_window_focus_in_event" last_modification_time="Sun, 04 Sep 2005 16:33:35 GMT"/>
|
<signal name="focus_in_event" handler="on_roster_window_focus_in_event" last_modification_time="Sun, 04 Sep 2005 16:33:35 GMT"/>
|
||||||
|
<signal name="key_press_event" handler="on_roster_window_key_press_event" last_modification_time="Tue, 20 Sep 2005 19:26:27 GMT"/>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkVBox" id="roster_vbox">
|
<widget class="GtkVBox" id="roster_vbox">
|
||||||
|
|
|
@ -1632,6 +1632,12 @@ _('If "%s" accepts this request you will know his status.') %jid)
|
||||||
if widget.props.urgency_hint:
|
if widget.props.urgency_hint:
|
||||||
widget.props.urgency_hint = False
|
widget.props.urgency_hint = False
|
||||||
|
|
||||||
|
def on_roster_window_key_press_event(self, widget, event):
|
||||||
|
if event.keyval == gtk.keysyms.Escape:
|
||||||
|
if self.plugin.systray_enabled and not gajim.config.get('quit_on_roster_x_button'):
|
||||||
|
self.tooltip.hide_tooltip()
|
||||||
|
self.window.hide()
|
||||||
|
|
||||||
def quit_gtkgui_plugin(self):
|
def quit_gtkgui_plugin(self):
|
||||||
'''When we quit the gtk plugin :
|
'''When we quit the gtk plugin :
|
||||||
tell that to the core and exit gtk'''
|
tell that to the core and exit gtk'''
|
||||||
|
|
Loading…
Reference in New Issue