Add the actual GtkApplicationWindow to the GtkApplication.
This commit is contained in:
parent
fd16797421
commit
553fd8f7b1
|
@ -3,7 +3,7 @@
|
||||||
<interface>
|
<interface>
|
||||||
<requires lib="gtk+" version="3.12"/>
|
<requires lib="gtk+" version="3.12"/>
|
||||||
<object class="GtkAccelGroup" id="accelgroup1"/>
|
<object class="GtkAccelGroup" id="accelgroup1"/>
|
||||||
<object class="GtkWindow" id="roster_window">
|
<object class="GtkApplicationWindow" id="roster_window">
|
||||||
<property name="width_request">85</property>
|
<property name="width_request">85</property>
|
||||||
<property name="height_request">200</property>
|
<property name="height_request">200</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
|
|
|
@ -94,7 +94,7 @@ empty_pixbuf = GdkPixbuf.Pixbuf.new(GdkPixbuf.Colorspace.RGB, True, 8, 1, 1)
|
||||||
empty_pixbuf.fill(0xffffff00)
|
empty_pixbuf.fill(0xffffff00)
|
||||||
|
|
||||||
|
|
||||||
class RosterWindow(Gtk.ApplicationWindow):
|
class RosterWindow:
|
||||||
"""
|
"""
|
||||||
Class for main window of the GTK+ interface
|
Class for main window of the GTK+ interface
|
||||||
"""
|
"""
|
||||||
|
@ -6178,7 +6178,7 @@ class RosterWindow(Gtk.ApplicationWindow):
|
||||||
###
|
###
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
def __init__(self, app):
|
def __init__(self, app: Gtk.Application):
|
||||||
self.application = app
|
self.application = app
|
||||||
self.filtering = False
|
self.filtering = False
|
||||||
self.starting = False
|
self.starting = False
|
||||||
|
@ -6195,8 +6195,8 @@ class RosterWindow(Gtk.ApplicationWindow):
|
||||||
GdkPixbuf.Pixbuf, GdkPixbuf.Pixbuf]
|
GdkPixbuf.Pixbuf, GdkPixbuf.Pixbuf]
|
||||||
self.xml = gtkgui_helpers.get_gtk_builder('roster_window.ui')
|
self.xml = gtkgui_helpers.get_gtk_builder('roster_window.ui')
|
||||||
self.window = self.xml.get_object('roster_window')
|
self.window = self.xml.get_object('roster_window')
|
||||||
|
app.add_window(self.window)
|
||||||
self.hpaned = self.xml.get_object('roster_hpaned')
|
self.hpaned = self.xml.get_object('roster_hpaned')
|
||||||
self.window.set_application(app)
|
|
||||||
gajim.interface.msg_win_mgr = MessageWindowMgr(self.window, self.hpaned)
|
gajim.interface.msg_win_mgr = MessageWindowMgr(self.window, self.hpaned)
|
||||||
gajim.interface.msg_win_mgr.connect('window-delete',
|
gajim.interface.msg_win_mgr.connect('window-delete',
|
||||||
self.on_message_window_delete)
|
self.on_message_window_delete)
|
||||||
|
|
Loading…
Reference in New Issue