>From 1e50279efa1a6160af351b7cc235bc01ed9731f3 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Thu, 24 Mar 2011 19:10:35 -0700 Subject: [PATCH 02/10] Adjust outer borders of preferences dialog. The preferences dialog had an improper border in that it caused the window resize grips to collide with the close button. While not one to cite the Gnome HIG often, I think the typical 12 pixel border looks rather good here. Signed-off-by: Christian Hergert --- libanjuta/anjuta-preferences-dialog.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/libanjuta/anjuta-preferences-dialog.c b/libanjuta/anjuta-preferences-dialog.c index 846dbe7..d17f902 100644 --- a/libanjuta/anjuta-preferences-dialog.c +++ b/libanjuta/anjuta-preferences-dialog.c @@ -159,7 +159,13 @@ anjuta_preferences_dialog_init (AnjutaPreferencesDialog *dlg) dlg->priv = g_new0 (AnjutaPreferencesDialogPrivate, 1); - hbox = gtk_hbox_new (FALSE, 0); + gtk_container_set_border_width (GTK_CONTAINER(dlg), 6); + + hbox = g_object_new(GTK_TYPE_HBOX, + "border-width", 6, + "spacing", 6, + "visible", TRUE, + NULL); dlg->priv->treeview = gtk_tree_view_new (); gtk_widget_show (dlg->priv->treeview); @@ -200,8 +206,6 @@ anjuta_preferences_dialog_init (AnjutaPreferencesDialog *dlg) gtk_notebook_set_show_tabs (GTK_NOTEBOOK (dlg->priv->notebook), FALSE); gtk_notebook_set_show_border (GTK_NOTEBOOK (dlg->priv->notebook), FALSE); - gtk_container_set_border_width (GTK_CONTAINER (dlg->priv->notebook), - 8); gtk_box_pack_start (GTK_BOX (hbox), dlg->priv->notebook, TRUE, TRUE, 0); -- 1.7.4.1