diff --git a/src/dialogs.py b/src/dialogs.py index 88a61f3250d23a70d31fb58735fdd59b3e9ffcfe..6efbd1f9454f4a4f318488283d8a7fb340225319 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -218,6 +218,7 @@ class PassphraseDialog: cancelbutton.connect('clicked', self.on_cancelbutton_clicked) self.xml.signal_autoconnect(self) + self.window.set_position(gtk.GTK_WIN_POS_CENTER_ON_PARENT) self.window.show_all() self.check = bool(checkbuttontext) @@ -283,6 +284,7 @@ class ChooseGPGKeyDialog: self.keys_treeview.set_search_column(1) self.fill_tree(secret_keys, selected) self.window.connect('response', self.on_dialog_response) + self.window.set_position(gtk.GTK_WIN_POS_CENTER_ON_PARENT) self.window.show_all() def sort_keys(self, model, iter1, iter2): @@ -418,6 +420,7 @@ class ChangeActivityDialog: self.entry.set_text(con.activity['text']) self.xml.signal_autoconnect(self) + self.window.set_position(gtk.GTK_WIN_POS_CENTER_ON_PARENT) self.window.show_all() def on_enable_checkbutton_toggled(self, widget): @@ -509,6 +512,7 @@ class ChangeMoodDialog: self.entry.set_text(con.mood['text']) self.xml.signal_autoconnect(self) + self.window.set_position(gtk.GTK_WIN_POS_CENTER_ON_PARENT) self.window.show_all() def on_mood_button_clicked(self, widget, data): @@ -584,6 +588,7 @@ class ChangeStatusMessageDialog: self.countdown() gobject.timeout_add(1000, self.countdown) self.window.connect('response', self.on_dialog_response) + self.window.set_position(gtk.GTK_WIN_POS_CENTER_ON_PARENT) self.window.show_all() def countdown(self): @@ -2998,6 +3003,7 @@ class ProgressDialog: self.progressbar = self.xml.get_widget('progressbar') self.dialog.set_title(title_text) self.dialog.set_default_size(450, 250) + self.window.set_position(gtk.GTK_WIN_POS_CENTER_ON_PARENT) self.dialog.show_all() self.xml.signal_autoconnect(self)