use get_window()
This commit is contained in:
parent
a4f9d58be5
commit
0156f8ba4a
4 changed files with 5 additions and 5 deletions
|
@ -2325,7 +2325,7 @@ class SubscriptionRequestWindow:
|
||||||
menu = self.prepare_popup_menu()
|
menu = self.prepare_popup_menu()
|
||||||
menu.show_all()
|
menu.show_all()
|
||||||
gtkgui_helpers.popup_emoticons_under_button(menu, widget,
|
gtkgui_helpers.popup_emoticons_under_button(menu, widget,
|
||||||
self.window.window)
|
self.window.get_window())
|
||||||
|
|
||||||
|
|
||||||
class JoinGroupchatWindow:
|
class JoinGroupchatWindow:
|
||||||
|
|
|
@ -869,7 +869,7 @@ class AgentBrowser:
|
||||||
"""
|
"""
|
||||||
Set the initial window title based on agent address
|
Set the initial window title based on agent address
|
||||||
"""
|
"""
|
||||||
self.window.window.set_title(_('Browsing %(address)s using account '
|
self.window.get_window().set_title(_('Browsing %(address)s using account '
|
||||||
'%(account)s') % {'address': self._get_agent_address(),
|
'%(account)s') % {'address': self._get_agent_address(),
|
||||||
'account': self.account})
|
'account': self.account})
|
||||||
self.window._set_window_banner_text(self._get_agent_address())
|
self.window._set_window_banner_text(self._get_agent_address())
|
||||||
|
|
|
@ -396,7 +396,7 @@ class MessageWindow(object):
|
||||||
# CTRL + PageUp | PageDown
|
# CTRL + PageUp | PageDown
|
||||||
# Create event and send it to notebook
|
# Create event and send it to notebook
|
||||||
event = Gdk.Event(Gdk.EventType.KEY_PRESS)
|
event = Gdk.Event(Gdk.EventType.KEY_PRESS)
|
||||||
event.window = self.window.window
|
event.window = self.window.get_window()
|
||||||
event.time = int(time.time())
|
event.time = int(time.time())
|
||||||
event.state = Gdk.ModifierType.CONTROL_MASK
|
event.state = Gdk.ModifierType.CONTROL_MASK
|
||||||
event.keyval = int(keyval)
|
event.keyval = int(keyval)
|
||||||
|
|
|
@ -3420,7 +3420,7 @@ class RosterWindow:
|
||||||
if gc_control:
|
if gc_control:
|
||||||
mw = gajim.interface.msg_win_mgr.get_window(jid, account)
|
mw = gajim.interface.msg_win_mgr.get_window(jid, account)
|
||||||
mw.set_active_tab(gc_control)
|
mw.set_active_tab(gc_control)
|
||||||
mw.window.window.focus(Gtk.get_current_event_time())
|
mw.window.get_window().focus(Gtk.get_current_event_time())
|
||||||
return
|
return
|
||||||
ctrl = gajim.interface.minimized_controls[account][jid]
|
ctrl = gajim.interface.minimized_controls[account][jid]
|
||||||
mw = gajim.interface.msg_win_mgr.get_window(jid, account)
|
mw = gajim.interface.msg_win_mgr.get_window(jid, account)
|
||||||
|
@ -3430,7 +3430,7 @@ class RosterWindow:
|
||||||
ctrl.parent_win = mw
|
ctrl.parent_win = mw
|
||||||
mw.new_tab(ctrl)
|
mw.new_tab(ctrl)
|
||||||
mw.set_active_tab(ctrl)
|
mw.set_active_tab(ctrl)
|
||||||
mw.window.window.focus(Gtk.get_current_event_time())
|
mw.window.get_window().focus(Gtk.get_current_event_time())
|
||||||
self.remove_groupchat(jid, account)
|
self.remove_groupchat(jid, account)
|
||||||
|
|
||||||
def on_edit_account(self, widget, account):
|
def on_edit_account(self, widget, account):
|
||||||
|
|
Loading…
Add table
Reference in a new issue