[gnome-bluetooth] Remove the border from the GtkNotebook
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] Remove the border from the GtkNotebook
- Date: Fri, 16 Oct 2009 14:46:06 +0000 (UTC)
commit a6a10ecc8c5b3e922f4c624a16c5ca7287f0d312
Author: Joshua Lock <josh linux intel com>
Date: Fri Oct 16 14:24:14 2009 +0100
Remove the border from the GtkNotebook
GtkNotebook has a border by default which looks really ugly when embedded
in the Moblin toolbar.
Also tweak the spacing on the top level container.
https://bugzilla.gnome.org/show_bug.cgi?id=598687
moblin/moblin-panel.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/moblin/moblin-panel.c b/moblin/moblin-panel.c
index 872027a..b9501ba 100644
--- a/moblin/moblin-panel.c
+++ b/moblin/moblin-panel.c
@@ -1483,10 +1483,11 @@ moblin_panel_init (MoblinPanel *self)
bluetooth_plugin_manager_init ();
gtk_box_set_homogeneous (GTK_BOX (self), FALSE);
- gtk_box_set_spacing (GTK_BOX (self), 4);
+ gtk_box_set_spacing (GTK_BOX (self), 0);
priv->notebook = gtk_notebook_new ();
gtk_notebook_set_show_tabs (GTK_NOTEBOOK (priv->notebook), FALSE);
+ gtk_notebook_set_show_border (GTK_NOTEBOOK (priv->notebook), FALSE);
devices_page = create_devices_page (self);
gtk_widget_show (devices_page);
@@ -1514,7 +1515,7 @@ moblin_panel_init (MoblinPanel *self)
set_current_page (self, PAGE_DEVICES);
gtk_widget_show (priv->notebook);
- gtk_container_add (GTK_CONTAINER (self), priv->notebook);
+ gtk_box_pack_start (GTK_BOX (self), priv->notebook, TRUE, TRUE, 0);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]