aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-config.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2004-06-11 23:51:44 +0800
committerRadek Doulik <rodo@src.gnome.org>2004-06-11 23:51:44 +0800
commit31e744476cde1ba7c0c40ded3afaacc4c0d941db (patch)
tree9c65549699b1edce43b2f3d89d4643422ab92fc2 /widgets/table/e-table-config.c
parent9c5abb70276da514cb6941348405de2fc1d3176b (diff)
downloadgsoc2013-evolution-31e744476cde1ba7c0c40ded3afaacc4c0d941db.tar.gz
gsoc2013-evolution-31e744476cde1ba7c0c40ded3afaacc4c0d941db.tar.zst
gsoc2013-evolution-31e744476cde1ba7c0c40ded3afaacc4c0d941db.zip
set dialog window position, glade doesn't do that for us anymore as the
2004-06-11 Radek Doulik <rodo@ximian.com> * e-table-config.c (e_table_config_construct): set dialog window position, glade doesn't do that for us anymore as the window is first hidden, extended and later shown * e-table-config-no-group.glade: as below * e-table-config.glade: set visibility to false, it will keep the dialog hidden until we call gtk_widget_show and thus no resizing is visible while we are extending the dialog content Fixes #57825 svn path=/trunk/; revision=26311
Diffstat (limited to 'widgets/table/e-table-config.c')
-rw-r--r--widgets/table/e-table-config.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/widgets/table/e-table-config.c b/widgets/table/e-table-config.c
index 0e08db571a..cc3af93cd9 100644
--- a/widgets/table/e-table-config.c
+++ b/widgets/table/e-table-config.c
@@ -1148,9 +1148,16 @@ e_table_config_construct (ETableConfig *config,
setup_gui (config);
- if (parent_window)
+ if (parent_window) {
gtk_window_set_transient_for (GTK_WINDOW (config->dialog_toplevel),
parent_window);
+ /*
+ center on parent doesn't seem to work for me, so let use GTK_WIN_POS_CENTER_ALWAYS - that is
+ what glade used before as well, so it's not worse then it was
+ gtk_window_set_position (GTK_WINDOW (config->dialog_toplevel), GTK_WIN_POS_CENTER_ON_PARENT);
+ */
+ gtk_window_set_position (GTK_WINDOW (config->dialog_toplevel), GTK_WIN_POS_CENTER_ALWAYS);
+ }
config_sort_info_update (config);
config_group_info_update (config);