From 72fcfcb323fffcd41bbf4bacb89ee53a7eb224c8 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Thu, 21 Apr 2005 21:30:56 +0000 Subject: [PATCH] fix now it is popups_notification_height --- src/dialogs.py | 12 ++++++------ src/roster_window.py | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/dialogs.py b/src/dialogs.py index ff1f64105..37a80b581 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -652,9 +652,9 @@ class Popup_notification_window: # position the window to bottom-right of screen window_width, self.window_height = self.window.get_size() - self.plugin.roster.popups_height += self.window_height + self.plugin.roster.popups_notification_height += self.window_height self.window.move(gtk.gdk.screen_width() - window_width, \ - gtk.gdk.screen_height() - self.plugin.roster.popups_height) + gtk.gdk.screen_height() - self.plugin.roster.popups_notification_height) xml.signal_autoconnect(self) self.window.show_all() @@ -668,7 +668,7 @@ class Popup_notification_window: def adjust_height_and_move_popup_notification_windows(self): #remove - self.plugin.roster.popups_height -= self.window_height + self.plugin.roster.popups_notification_height -= self.window_height self.window.destroy() if len(self.plugin.roster.popup_notification_windows) > 0: @@ -676,12 +676,12 @@ class Popup_notification_window: self.plugin.roster.popup_notification_windows.pop(0) # remove 1st item # move the rest of popup windows - self.plugin.roster.popups_height = 0 + self.plugin.roster.popups_notification_height = 0 for window_instance in self.plugin.roster.popup_notification_windows: window_width, window_height = window_instance.window.get_size() - self.plugin.roster.popups_height += window_height + self.plugin.roster.popups_notification_height += window_height window_instance.window.move(gtk.gdk.screen_width() - window_width, \ - gtk.gdk.screen_height() - self.plugin.roster.popups_height) + gtk.gdk.screen_height() - self.plugin.roster.popups_notification_height) def on_popup_notification_window_button_press_event(self, widget, event): # use User class, new_chat expects it that way diff --git a/src/roster_window.py b/src/roster_window.py index ce1628a06..30b819fd2 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1387,8 +1387,8 @@ class Roster_window: self.contacts = {} self.newly_added = {} self.to_be_removed = {} - self.popups_height = 0 - self.popup_windows = [] + self.popups_notification_height = 0 + self.popup_notification_windows = [] for a in gajim.connections: self.contacts[a] = {} self.groups[a] = {}