use gajim_window instead of Gajim_window
This commit is contained in:
parent
d6b3739f96
commit
68f2a49fe0
2 changed files with 6 additions and 7 deletions
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<glade-interface>
|
<glade-interface>
|
||||||
|
|
||||||
<widget class="GtkWindow" id="Gajim_window">
|
<widget class="GtkWindow" id="gajim_window">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="title" translatable="yes">Gajim</property>
|
<property name="title" translatable="yes">Gajim</property>
|
||||||
<property name="type">GTK_WINDOW_TOPLEVEL</property>
|
<property name="type">GTK_WINDOW_TOPLEVEL</property>
|
||||||
|
|
|
@ -1769,7 +1769,7 @@ class roster_Window:
|
||||||
self.add_user_to_roster(jid, account)
|
self.add_user_to_roster(jid, account)
|
||||||
|
|
||||||
def on_roster_treeview_key_release_event(self, widget, event):
|
def on_roster_treeview_key_release_event(self, widget, event):
|
||||||
"""when a key is pressed in the treevies"""
|
"""when a key is pressed in the treeviews"""
|
||||||
if event.keyval == gtk.keysyms.Escape:
|
if event.keyval == gtk.keysyms.Escape:
|
||||||
self.tree.get_selection().unselect_all()
|
self.tree.get_selection().unselect_all()
|
||||||
return gtk.FALSE
|
return gtk.FALSE
|
||||||
|
@ -2041,7 +2041,7 @@ class roster_Window:
|
||||||
else:
|
else:
|
||||||
w.window.destroy()
|
w.window.destroy()
|
||||||
|
|
||||||
def on_Gajim_delete_event(self, widget, event):
|
def on_gajim_delete_event(self, widget, event):
|
||||||
"""When we want to close the window"""
|
"""When we want to close the window"""
|
||||||
if self.plugin.systray_visible:
|
if self.plugin.systray_visible:
|
||||||
self.window.iconify()
|
self.window.iconify()
|
||||||
|
@ -2353,8 +2353,8 @@ class roster_Window:
|
||||||
|
|
||||||
def __init__(self, plugin):
|
def __init__(self, plugin):
|
||||||
# FIXME : handle no file ...
|
# FIXME : handle no file ...
|
||||||
self.xml = gtk.glade.XML(GTKGUI_GLADE, 'Gajim_window', APP)
|
self.xml = gtk.glade.XML(GTKGUI_GLADE, 'gajim_window', APP)
|
||||||
self.window = self.xml.get_widget('Gajim_window')
|
self.window = self.xml.get_widget('gajim_window')
|
||||||
self.tree = self.xml.get_widget('roster_treeview')
|
self.tree = self.xml.get_widget('roster_treeview')
|
||||||
self.plugin = plugin
|
self.plugin = plugin
|
||||||
self.nb_unread = 0
|
self.nb_unread = 0
|
||||||
|
@ -2572,7 +2572,7 @@ class systray:
|
||||||
def on_clicked(self, widget, event):
|
def on_clicked(self, widget, event):
|
||||||
if event.type == gtk.gdk.BUTTON_PRESS and event.button == 1:
|
if event.type == gtk.gdk.BUTTON_PRESS and event.button == 1:
|
||||||
if len(self.jids) == 0:
|
if len(self.jids) == 0:
|
||||||
win = self.plugin.roster.xml.get_widget('Gajim')
|
win = self.plugin.roster.window
|
||||||
if win.iconify_initially:
|
if win.iconify_initially:
|
||||||
win.deiconify()
|
win.deiconify()
|
||||||
else:
|
else:
|
||||||
|
@ -2614,7 +2614,6 @@ class systray:
|
||||||
def __init__(self, plugin):
|
def __init__(self, plugin):
|
||||||
self.plugin = plugin
|
self.plugin = plugin
|
||||||
self.jids = []
|
self.jids = []
|
||||||
win = self.plugin.roster.xml.get_widget('Gajim')
|
|
||||||
self.t = None
|
self.t = None
|
||||||
self.img_tray = gtk.Image()
|
self.img_tray = gtk.Image()
|
||||||
self.status = 'offline'
|
self.status = 'offline'
|
||||||
|
|
Loading…
Add table
Reference in a new issue