diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-03-04 16:45:57 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-03-04 16:45:57 +0100 |
commit | 3cc51784bd8c9fb10d8286de9b079aa9576fcf66 (patch) | |
tree | f77af157570bf6e20de21b4713f8f4fefd17f15b /src/Gui | |
parent | afb30fe1502e9c45b722da3b5c09e292d589aa7f (diff) | |
download | abrt-3cc51784bd8c9fb10d8286de9b079aa9576fcf66.tar.gz abrt-3cc51784bd8c9fb10d8286de9b079aa9576fcf66.tar.xz abrt-3cc51784bd8c9fb10d8286de9b079aa9576fcf66.zip |
GUI: center all dialogs on parent
Diffstat (limited to 'src/Gui')
-rw-r--r-- | src/Gui/CCReporterDialog.py | 2 | ||||
-rw-r--r-- | src/Gui/PluginsSettingsDialog.py | 8 | ||||
-rw-r--r-- | src/Gui/report.glade | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/src/Gui/CCReporterDialog.py b/src/Gui/CCReporterDialog.py index 94b9495c..123fa2d8 100644 --- a/src/Gui/CCReporterDialog.py +++ b/src/Gui/CCReporterDialog.py @@ -39,6 +39,7 @@ class ReporterDialog(): self.window = self.builder.get_object("reporter_dialog") self.window.connect("response", self.on_response, daemon) if parent: + self.window.set_position(gtk.WIN_POS_CENTER_ON_PARENT) self.window.set_transient_for(parent) self.window.set_modal(True) @@ -349,6 +350,7 @@ class ReporterSelector(): self.builder.add_from_file(builderfile) self.window = self.builder.get_object("w_reporters") if parent: + self.window.set_position(gtk.WIN_POS_CENTER_ON_PARENT) self.window.set_transient_for(parent) self.window.set_modal(True) self.connect_signal(self.window, "delete-event", self.on_window_delete) diff --git a/src/Gui/PluginsSettingsDialog.py b/src/Gui/PluginsSettingsDialog.py index 787faee6..c2801cc1 100644 --- a/src/Gui/PluginsSettingsDialog.py +++ b/src/Gui/PluginsSettingsDialog.py @@ -22,7 +22,11 @@ class PluginsSettingsDialog: self.window = self.builder.get_object("wPluginsSettings") if not self.window: raise Exception(_("Can't load gui description for SettingsDialog!")) - #self.window.set_parent(parent) + + if parent: + self.window.set_position(gtk.WIN_POS_CENTER_ON_PARENT) + self.window.set_transient_for(parent) + self.window.set_modal(True) self.pluginlist = self.builder.get_object("tvSettings") # a TreeView # cell_text, toggle_active, toggle_visible, group_name_visible, color, plugin @@ -124,7 +128,7 @@ class PluginsSettingsDialog: # don't show any empty groups for it in group_empty.values(): self.pluginsListStore.remove(it) - + self.pluginlist.expand_all() def dehydrate(self): diff --git a/src/Gui/report.glade b/src/Gui/report.glade index 0213026b..f234952c 100644 --- a/src/Gui/report.glade +++ b/src/Gui/report.glade @@ -653,6 +653,8 @@ </object> <object class="GtkWindow" id="w_reporters"> <property name="title" translatable="yes">Reporter Selector</property> + <property name="modal">True</property> + <property name="window_position">center-on-parent</property> <property name="icon_name">abrt</property> <child> <object class="GtkVBox" id="vb_main"> |