wacom: Fix excessive top padding

https://bugzilla.gnome.org/show_bug.cgi?id=668881
This commit is contained in:
Bastien Nocera 2012-01-30 15:23:28 +00:00
parent 2c57a2896c
commit 87005e3f75
2 changed files with 7 additions and 6 deletions

View file

@ -218,11 +218,6 @@ cc_wacom_nav_button_init (CcWacomNavButton *self)
/* Label */
priv->label = gtk_label_new (NULL);
gtk_style_context_add_class (gtk_widget_get_style_context (priv->label), "dim-label");
g_object_set (priv->label,
"margin-top", 16,
"margin-bottom", 16,
NULL);
gtk_box_pack_start (GTK_BOX (self), priv->label,
FALSE, FALSE, 8);

View file

@ -344,7 +344,13 @@ cc_wacom_panel_init (CcWacomPanel *self)
gtk_notebook_set_show_tabs (notebook, FALSE);
gtk_widget_set_vexpand (GTK_WIDGET (notebook), TRUE);
gtk_container_set_border_width (GTK_CONTAINER (notebook), 24);
gtk_container_set_border_width (GTK_CONTAINER (notebook), 0);
g_object_set (G_OBJECT (notebook),
"margin-top", 0,
"margin-right", 24,
"margin-left", 24,
"margin-bottom", 24,
NULL);
gtk_container_add (GTK_CONTAINER (self), GTK_WIDGET (notebook));
gtk_widget_show (priv->notebook);