From 3db4808088c1d8be0152f8773ea40b3a2e60726d Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Fri, 8 Apr 2005 01:20:43 +0000 Subject: [PATCH] bugfix in subscription request window, also use self.window than widget.get_toplevel() to be faster and cleaner. Pref window catches Escape --- plugins/gtkgui/config.py | 24 +- plugins/gtkgui/dialogs.py | 28 +- plugins/gtkgui/gtkgui.glade | 602 ++++++++++++++++++++++++++++++++++++ plugins/gtkgui/gtkgui.py | 9 +- 4 files changed, 640 insertions(+), 23 deletions(-) diff --git a/plugins/gtkgui/config.py b/plugins/gtkgui/config.py index 6c7ff6dab..12ee43749 100644 --- a/plugins/gtkgui/config.py +++ b/plugins/gtkgui/config.py @@ -42,11 +42,15 @@ class Preferences_window: return True # do NOT destroy the window def on_close_button_clicked(self, widget): - self.window.hide() + self.window.hide() def on_preferences_window_show(self, widget): self.notebook.set_current_page(0) - + + def on_preferences_window_key_press_event(self, widget, event): + if event.keyval == gtk.keysyms.Escape: # ESCAPE + self.window.hide() + def on_checkbutton_toggled(self, widget, config_name, \ change_sensitivity_widgets = None): if widget.get_active(): @@ -857,7 +861,7 @@ class Account_modification_window: def on_close_button_clicked(self, widget): """When Close button is clicked""" - widget.get_toplevel().destroy() + self.window.destroy() def on_checkbutton_toggled(self, widget, widgets): """set or unset sensitivity of widgets when widget is toggled""" @@ -1045,7 +1049,7 @@ class Account_modification_window: self.plugin.windows['accounts'].init_accounts() #refresh roster self.plugin.roster.draw_roster() - widget.get_toplevel().destroy() + self.window.destroy() return #if it's a new account if name in self.plugin.accounts.keys(): @@ -1082,7 +1086,7 @@ class Account_modification_window: self.plugin.windows['accounts'].init_accounts() #refresh roster self.plugin.roster.draw_roster() - widget.get_toplevel().destroy() + self.window.destroy() def on_change_password_button_clicked(self, widget): dialog = Change_password_dialog(self.plugin, self.account) @@ -1230,7 +1234,7 @@ class Accounts_window: del self.plugin.windows['accounts'] def on_close_button_clicked(self, widget): - widget.get_toplevel().destroy() + self.window.destroy() def init_accounts(self): """initialize listStore with existing accounts""" @@ -1325,7 +1329,7 @@ class Service_registration_window: Window that appears when we want to subscribe to a service""" def on_cancel_button_clicked(self, widget): """When Cancel button is clicked""" - widget.get_toplevel().destroy() + self.window.destroy() def draw_table(self): """Draw the table in the window""" @@ -1355,7 +1359,7 @@ class Service_registration_window: self.plugin.roster.contacts[self.account][self.service] = [user1] self.plugin.roster.add_user_to_roster(self.service, self.account) self.plugin.send('REG_AGENT', self.account, self.service) - widget.get_toplevel().destroy() + self.window.destroy() def __init__(self, service, infos, plugin, account): self.xml = gtk.glade.XML(GTKGUI_GLADE, 'service_registration_window', APP) @@ -1563,7 +1567,7 @@ class Service_discovery_window: def on_close_button_clicked(self, widget): """When Close button is clicked""" - widget.get_toplevel().destroy() + self.window.destroy() def browse(self, jid): """Send a request to the core to know the available services""" @@ -1733,7 +1737,7 @@ class Service_discovery_window: return service = model.get_value(iter, 1) self.plugin.send('REG_AGENT_INFO', self.account, service) - widget.get_toplevel().destroy() + self.window.destroy() def on_services_treeview_cursor_changed(self, widget): """When we select a row : diff --git a/plugins/gtkgui/dialogs.py b/plugins/gtkgui/dialogs.py index 6d89c35b1..4639c9c78 100644 --- a/plugins/gtkgui/dialogs.py +++ b/plugins/gtkgui/dialogs.py @@ -39,12 +39,12 @@ class vcard_information_window: def on_vcard_information_window_key_press_event(self, widget, event): if event.keyval == gtk.keysyms.Escape: # ESCAPE - widget.destroy() + self.window.destroy() def on_close_button_clicked(self, widget): """Save user's informations and update the roster on the Jabber server""" if self.vcard: - widget.get_toplevel().destroy() + self.window.destroy() return #update user.name if it's not "" name_entry = self.xml.get_widget('nickname_entry') @@ -73,7 +73,7 @@ class vcard_information_window: self.plugin.accounts[self.account] = account_info self.plugin.send('CONFIG', None, ('accounts', self.plugin.accounts, \ 'Gtkgui')) - widget.get_toplevel().destroy() + self.window.destroy() def set_value(self, entry_name, value): try: @@ -490,7 +490,7 @@ class Add_new_contact_window: def on_cancel_button_clicked(self, widget): """When Cancel button is clicked""" - widget.get_toplevel().destroy() + self.window.destroy() def on_subscribe_button_clicked(self, widget): """When Subscribe button is clicked""" @@ -510,7 +510,7 @@ class Add_new_contact_window: nickname) if self.xml.get_widget('auto_authorize_checkbutton').get_active(): self.plugin.send('AUTH', self.account, jid) - widget.get_toplevel().destroy() + self.window.destroy() def fill_jid(self): protocol_combobox = self.xml.get_widget('protocol_combobox') @@ -633,6 +633,7 @@ class Error_dialog: class subscription_request_window: def __init__(self, plugin, jid, text, account): xml = gtk.glade.XML(GTKGUI_GLADE, 'subscription_request_window', APP) + self.window = xml.get_widget('subscription_request_window') self.plugin = plugin self.jid = jid self.account = account @@ -646,19 +647,19 @@ class subscription_request_window: window that appears when a user wants to add us to his/her roster""" def on_close_button_clicked(self, widget): """When Close button is clicked""" - widget.get_toplevel().destroy() + self.window.destroy() def on_authorize_button_clicked(self, widget): """Accept the request""" self.plugin.send('AUTH', self.account, self.jid) - widget.get_toplevel().destroy() + self.window.destroy() if not self.plugin.roster.contacts[self.account].has_key(self.jid): Add_new_contact_window(self.plugin, self.account, self.jid) def on_deny_button_clicked(self, widget): """refuse the request""" self.plugin.send('DENY', self.account, self.jid) - widget.get_toplevel().destroy() + self.window.destroy() class Join_groupchat_window: def __init__(self, plugin, account, server='', room = ''): @@ -705,7 +706,7 @@ class Join_groupchat_window: def on_cancel_button_clicked(self, widget): """When Cancel button is clicked""" - widget.get_toplevel().destroy() + self.window.destroy() def on_join_button_clicked(self, widget): """When Join button is clicked""" @@ -725,7 +726,7 @@ class Join_groupchat_window: self.plugin.send('GC_JOIN', self.account, (nickname, room, server, \ password)) - widget.get_toplevel().destroy() + self.window.destroy() class New_message_dialog: def __init__(self, plugin, account): @@ -755,7 +756,7 @@ class New_message_dialog: def on_cancel_button_clicked(self, widget): """When Cancel button is clicked""" - widget.get_toplevel().destroy() + self.window.destroy() def on_chat_button_clicked(self, widget): """When Chat button is clicked""" @@ -779,7 +780,7 @@ class New_message_dialog: self.plugin.windows[self.account]['chats'][jid].window.present() #FIXME: PROBLEM WITH FOCUS - widget.get_toplevel().destroy() + self.window.destroy() class Change_password_dialog: def __init__(self, plugin, account): @@ -850,6 +851,9 @@ class Popup_window: xml.signal_autoconnect(self) close_button.connect('clicked', self.on_close_button_clicked, window_height) + + #FIXME: don't steal focus. not sure how to do ti + # set_focus_on_map(False) [pygtk26 only doesn't solve it!] self.window.show_all() gobject.timeout_add(5000, self.on_timeout, window_height) diff --git a/plugins/gtkgui/gtkgui.glade b/plugins/gtkgui/gtkgui.glade index 9dcb7bf78..aed5c7017 100644 --- a/plugins/gtkgui/gtkgui.glade +++ b/plugins/gtkgui/gtkgui.glade @@ -19,6 +19,7 @@ False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST + True @@ -284,6 +285,9 @@ False True True + False + False + False @@ -321,6 +325,7 @@ False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST + True @@ -347,6 +352,9 @@ False False True + False + False + False @@ -443,6 +451,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -510,6 +522,7 @@ False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST + True @@ -537,6 +550,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -604,6 +621,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -628,6 +649,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -652,6 +677,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -676,6 +705,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -834,6 +867,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 2 @@ -885,6 +922,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 tab @@ -987,6 +1028,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 tab @@ -1043,6 +1088,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -1064,6 +1113,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -1165,6 +1218,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 label_item @@ -1216,6 +1273,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 label_item @@ -1248,6 +1309,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 tab @@ -1323,6 +1388,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -1368,6 +1437,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -1418,6 +1491,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 label_item @@ -1450,6 +1527,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 tab @@ -1475,6 +1556,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -1519,6 +1604,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 tab @@ -1591,6 +1680,7 @@ False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST + True @@ -1620,6 +1710,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -1644,6 +1738,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -1668,6 +1766,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -1692,6 +1794,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -1729,6 +1835,8 @@ True + False + True @@ -1817,6 +1925,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -1832,6 +1944,9 @@ True + False + True + True 1 @@ -1964,6 +2079,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -2003,6 +2122,7 @@ False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST + True @@ -2023,6 +2143,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 10 @@ -2145,6 +2269,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -2217,6 +2345,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -2256,6 +2388,7 @@ False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST + True @@ -2285,6 +2418,10 @@ 0 0 address_comboboxentry + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -2296,6 +2433,9 @@ True + False + True + True @@ -2350,6 +2490,9 @@ False False True + False + False + False @@ -2427,6 +2570,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -2504,6 +2651,7 @@ False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST + True @@ -2524,6 +2672,10 @@ 0.5 0 4 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 4 @@ -2613,6 +2765,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -2685,6 +2841,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -2724,8 +2884,10 @@ False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST + True + @@ -2884,6 +3046,10 @@ 0 0 iconset_combobox + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -2896,6 +3062,8 @@ True + False + True @@ -2945,6 +3113,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -2969,6 +3141,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -2993,6 +3169,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -3080,6 +3260,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 1 @@ -3104,6 +3288,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 2 @@ -3128,6 +3316,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 3 @@ -3152,6 +3344,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -3326,6 +3522,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -3397,6 +3597,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -3481,6 +3685,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -3580,6 +3788,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 2 @@ -3604,6 +3816,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 2 @@ -3628,6 +3844,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -3652,6 +3872,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -3788,6 +4012,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -3812,6 +4040,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -3836,6 +4068,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -3960,6 +4196,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -4006,6 +4246,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 label_item @@ -4061,6 +4305,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -4164,6 +4412,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 label_item @@ -4268,6 +4520,10 @@ 0 0 soundplayer_entry + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -4327,6 +4583,9 @@ False False True + False + False + False @@ -4405,6 +4664,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 label_item @@ -4460,6 +4723,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -4548,6 +4815,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 2 @@ -4572,6 +4843,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 2 @@ -4685,6 +4960,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -4802,6 +5081,9 @@ False False True + False + False + False @@ -4916,6 +5198,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 label_item @@ -4971,6 +5257,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -5035,6 +5325,10 @@ 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -5049,6 +5343,8 @@ GNOME default applications KDE default applications Custom + False + True @@ -5108,6 +5404,10 @@ Custom 0 0 custom_browser_entry + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -5133,6 +5433,10 @@ Custom 0 0 custom_mail_client_entry + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -5205,6 +5509,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 label_item @@ -5235,6 +5543,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 label_item @@ -5330,6 +5642,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 label_item @@ -5413,6 +5729,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 label_item @@ -5468,6 +5788,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -5531,6 +5855,7 @@ Custom False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST + True @@ -5553,6 +5878,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 5 @@ -5594,6 +5923,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -5619,6 +5952,10 @@ Custom 0.5 5 5 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 1 @@ -5644,6 +5981,10 @@ Custom 0.5 5 5 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 1 @@ -5668,6 +6009,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -5692,6 +6037,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -5737,6 +6086,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -5761,6 +6114,10 @@ Custom 0.5 5 5 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 1 @@ -5785,6 +6142,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -5816,6 +6177,10 @@ Custom 0.5 5 5 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -5837,6 +6202,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -5858,6 +6227,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -5889,6 +6262,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -5936,6 +6313,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -5961,6 +6342,10 @@ Custom 0.5 5 5 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 1 @@ -5985,6 +6370,10 @@ Custom 0.5 5 5 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 1 @@ -6014,6 +6403,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 tab @@ -6043,6 +6436,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -6067,6 +6464,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -6091,6 +6492,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -6115,6 +6520,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -6139,6 +6548,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -6163,6 +6576,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -6319,6 +6736,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 tab @@ -6348,6 +6769,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -6372,6 +6797,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -6396,6 +6825,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -6420,6 +6853,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -6444,6 +6881,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -6468,6 +6909,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -6624,6 +7069,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 tab @@ -6653,6 +7102,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -6677,6 +7130,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -6701,6 +7158,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -6725,6 +7186,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -6839,6 +7304,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 tab @@ -6894,6 +7363,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 tab @@ -6953,6 +7426,7 @@ Custom False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST + True @@ -7026,6 +7500,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -7097,6 +7575,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -7181,6 +7663,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -7268,6 +7754,7 @@ Custom False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST + True @@ -7298,6 +7785,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -7394,6 +7885,9 @@ Custom False True False + False + False + False @@ -7513,6 +8007,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 tab @@ -7542,6 +8040,7 @@ Custom False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST + True @@ -7659,6 +8158,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -7683,6 +8186,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -7707,6 +8214,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -7731,6 +8242,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -7755,6 +8270,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -7769,6 +8288,8 @@ Custom True + False + True @@ -7866,6 +8387,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -7903,6 +8428,7 @@ Custom False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST + True False @@ -7970,6 +8496,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 5 @@ -8042,6 +8572,7 @@ Custom False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST + True False @@ -8110,6 +8641,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 5 @@ -8135,6 +8670,9 @@ Custom False False True + False + False + False @@ -8170,6 +8708,7 @@ Custom False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST + True False @@ -8226,6 +8765,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -8283,6 +8826,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -8294,6 +8841,9 @@ Custom True + False + True + True @@ -8328,6 +8878,7 @@ Custom False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST + True @@ -8413,6 +8964,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -8640,6 +9195,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -8699,6 +9258,7 @@ Custom False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST + True False @@ -8746,6 +9306,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -8767,6 +9331,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -8841,6 +9409,9 @@ Custom False False True + False + False + False @@ -8869,6 +9440,7 @@ Custom False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST + True False @@ -8959,6 +9531,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -8999,6 +9575,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -9058,6 +9638,7 @@ Custom False GDK_WINDOW_TYPE_HINT_DIALOG GDK_GRAVITY_NORTH_WEST + True False @@ -9145,6 +9726,10 @@ Custom 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -9211,6 +9796,10 @@ send a chat message to 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 5 @@ -9388,6 +9977,7 @@ send a chat message to True GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_SOUTH_EAST + True @@ -9422,6 +10012,10 @@ send a chat message to 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -9476,6 +10070,10 @@ send a chat message to 0.5 0 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 0 @@ -9504,6 +10102,7 @@ send a chat message to False GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST + True @@ -9530,6 +10129,9 @@ send a chat message to False False True + False + False + False diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py index 673d7553b..0a185a147 100644 --- a/plugins/gtkgui/gtkgui.py +++ b/plugins/gtkgui/gtkgui.py @@ -401,6 +401,13 @@ class plugin: if not self.windows[account]['chats'].has_key(jid) and \ not self.queues[account].has_key(jid) and \ not self.config['autopopup']: + #DOES NOT ALWAYS WORK WHY? + #I control nkour@lagaule in jabber + # have nkour@lagaul in nkour@jabber.org + #go online from psi in lagaule + #gajim doesn't give a shit + # WHY? same with offline + # new message works instance = Popup_window(self, 'Contact Online', jid ) self.roster.popup_windows.append(instance) elif old_show > 1 and statuss.index(user1.show) < 2 and \ @@ -927,7 +934,7 @@ class plugin: #2:autoaway and use sleeper #3:autoxa and use sleeper self.send('ASK_ROSTER', a, self.queueIN) - #in pygtk2.4 FIXME: (nk) WHAT DO YOU MEAN? + iconset = self.config['iconset'] if not iconset: iconset = 'sun'