use get_window()

This commit is contained in:
Denis Fomin 2013-01-21 23:50:52 +04:00
parent a4f9d58be5
commit 0156f8ba4a
4 changed files with 5 additions and 5 deletions

View File

@ -2325,7 +2325,7 @@ class SubscriptionRequestWindow:
menu = self.prepare_popup_menu()
menu.show_all()
gtkgui_helpers.popup_emoticons_under_button(menu, widget,
self.window.window)
self.window.get_window())
class JoinGroupchatWindow:

View File

@ -869,7 +869,7 @@ class AgentBrowser:
"""
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': self.account})
self.window._set_window_banner_text(self._get_agent_address())

View File

@ -396,7 +396,7 @@ class MessageWindow(object):
# CTRL + PageUp | PageDown
# Create event and send it to notebook
event = Gdk.Event(Gdk.EventType.KEY_PRESS)
event.window = self.window.window
event.window = self.window.get_window()
event.time = int(time.time())
event.state = Gdk.ModifierType.CONTROL_MASK
event.keyval = int(keyval)

View File

@ -3420,7 +3420,7 @@ class RosterWindow:
if gc_control:
mw = gajim.interface.msg_win_mgr.get_window(jid, account)
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
ctrl = gajim.interface.minimized_controls[account][jid]
mw = gajim.interface.msg_win_mgr.get_window(jid, account)
@ -3430,7 +3430,7 @@ class RosterWindow:
ctrl.parent_win = mw
mw.new_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)
def on_edit_account(self, widget, account):