[anjuta/gnome-3-0] Adjust outer borders of preferences dialog.
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/gnome-3-0] Adjust outer borders of preferences dialog.
- Date: Wed, 6 Apr 2011 21:21:36 +0000 (UTC)
commit 1e6c9721d0cbd84a8e36dc80339fa78a17f4933a
Author: Christian Hergert <chris dronelabs com>
Date: Thu Mar 24 19:10:35 2011 -0700
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 <chris dronelabs com>
https://bugzilla.gnome.org/show_bug.cgi?id=645659
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]