diff options
author | Rodney Dawes <dobey@novell.com> | 2005-01-07 10:32:09 +0800 |
---|---|---|
committer | Rodney Dawes <dobey@src.gnome.org> | 2005-01-07 10:32:09 +0800 |
commit | 650e78d22d6696d96068994543a3209ea9ba39b5 (patch) | |
tree | bacb6f7a96284e8c28c9f1ebb43d340a0e719c7d | |
parent | c9636652e201aa694821122ec898e4ffa93b1f6b (diff) | |
download | gsoc2013-evolution-650e78d22d6696d96068994543a3209ea9ba39b5.tar.gz gsoc2013-evolution-650e78d22d6696d96068994543a3209ea9ba39b5.tar.zst gsoc2013-evolution-650e78d22d6696d96068994543a3209ea9ba39b5.zip |
Add the GTK_DIALOG_NOSEPARATOR flag, and set appropriate border widths
2005-01-06 Rodney Dawes <dobey@novell.com>
* e-config.c (e_config_create_window): Add the GTK_DIALOG_NOSEPARATOR
flag, and set appropriate border widths around the main dialog vbox,
and action area, to be more HIG compliant
svn path=/trunk/; revision=28262
-rw-r--r-- | e-util/ChangeLog | 6 | ||||
-rw-r--r-- | e-util/e-config.c | 9 |
2 files changed, 14 insertions, 1 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog index e5e3340e14..dd71c5e11c 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,9 @@ +2005-01-06 Rodney Dawes <dobey@novell.com> + + * e-config.c (e_config_create_window): Add the GTK_DIALOG_NOSEPARATOR + flag, and set appropriate border widths around the main dialog vbox, + and action area, to be more HIG compliant + 2005-01-06 JP Rosevear <jpr@novell.com> * e-error-tool.c (main): use the base name only, so if a full path diff --git a/e-util/e-config.c b/e-util/e-config.c index 16c5219b42..4f78218503 100644 --- a/e-util/e-config.c +++ b/e-util/e-config.c @@ -882,11 +882,18 @@ e_config_create_window(EConfig *emp, struct _GtkWindow *parent, const char *titl e_config_create_widget(emp); if (emp->type == E_CONFIG_BOOK) { - w = gtk_dialog_new_with_buttons(title, parent, GTK_DIALOG_DESTROY_WITH_PARENT, + w = gtk_dialog_new_with_buttons(title, parent, + GTK_DIALOG_DESTROY_WITH_PARENT | + GTK_DIALOG_NO_SEPARATOR, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OK, GTK_RESPONSE_OK, NULL); g_signal_connect(w, "response", G_CALLBACK(ec_dialog_response), emp); + + gtk_widget_ensure_style (w); + gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (w)->vbox), 0); + gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (w)->action_area), 12); + gtk_box_pack_start((GtkBox *)((GtkDialog *)w)->vbox, emp->widget, TRUE, TRUE, 0); } else { /* response is handled directly by the druid stuff */ |