changeset 15ac0c4acea8 in /home/hg/repos/gajim details:http://hg.gajim.org/gajim?cmd=changeset;node=15ac0c4acea8 description: [Aleksey Rybalkin] improve popup notification behaviour
diffstat: src/dialogs.py | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diffs (29 lines): diff -r 9170d378fbd2 -r 15ac0c4acea8 src/dialogs.py --- a/src/dialogs.py Sun Apr 22 21:48:36 2012 +0400 +++ b/src/dialogs.py Mon Apr 23 23:22:12 2012 +0200 @@ -2748,6 +2748,7 @@ self.account = account self.jid = jid self.msg_type = msg_type + self.index = len(gajim.interface.roster.popup_notification_windows) xml = gtkgui_helpers.get_gtk_builder('popup_notification_window.ui') self.window = xml.get_object('popup_notification_window') @@ -2832,12 +2833,15 @@ self.window.destroy() if len(gajim.interface.roster.popup_notification_windows) > 0: - # we want to remove the first window added in the list - gajim.interface.roster.popup_notification_windows.pop(0) + # we want to remove the destroyed window from the list + gajim.interface.roster.popup_notification_windows.pop(self.index) # move the rest of popup windows gajim.interface.roster.popups_notification_height = 0 + current_index = 0 for window_instance in gajim.interface.roster.popup_notification_windows: + window_instance.index = current_index + current_index += 1 window_width, window_height = window_instance.window.get_size() gajim.interface.roster.popups_notification_height += window_height window_instance.window.move(gtk.gdk.screen_width() - window_width, _______________________________________________ Commits mailing list Commits@gajim.org http://lists.gajim.org/cgi-bin/listinfo/commits