systray show prefs menuitem now works again

This commit is contained in:
Nikos Kouremenos 2006-03-05 16:07:27 +00:00
parent 6ae027fe20
commit 35e7328e19
1 changed files with 4 additions and 3 deletions

View File

@ -27,9 +27,10 @@
import gtk import gtk
import gtk.glade import gtk.glade
import gobject import gobject
import dialogs
import os import os
import dialogs
import config
import tooltips import tooltips
import gtkgui_helpers import gtkgui_helpers
@ -223,10 +224,10 @@ class Systray:
win.present() win.present()
def on_preferences_menuitem_activate(self, widget): def on_preferences_menuitem_activate(self, widget):
if gajim.interface.instances['preferences'].window.get_property('visible'): if gajim.interface.instances.has_key('preferences'):
gajim.interface.instances['preferences'].window.present() gajim.interface.instances['preferences'].window.present()
else: else:
gajim.interface.instances['preferences'].window.show_all() gajim.interface.instances['preferences'] = config.PreferencesWindow()
def on_quit_menuitem_activate(self, widget): def on_quit_menuitem_activate(self, widget):
gajim.interface.roster.on_quit_menuitem_activate(widget) gajim.interface.roster.on_quit_menuitem_activate(widget)