[gnome-control-center] wacom: Set several notebooks' show-border property to FALSE
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] wacom: Set several notebooks' show-border property to FALSE
- Date: Mon, 2 Dec 2013 11:28:54 +0000 (UTC)
commit fdef36294aa4b7e5d1d2b520de15138d29fed860
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Nov 29 13:17:18 2013 +0100
wacom: Set several notebooks' show-border property to FALSE
Since GTK+ commit 05b1ea84b, this hint is used in GtkNotebook to add
a GTK_STYLE_CLASS_FRAME when rendering the notebook frame, so the theme
renders those frame-alike. As it's not what we want for the wacom panel,
set show-border to FALSE on all GtkNotebooks.
https://bugzilla.gnome.org/show_bug.cgi?id=710709
panels/wacom/cc-wacom-panel.c | 1 +
panels/wacom/gnome-wacom-properties.ui | 2 ++
panels/wacom/test-wacom.c | 1 +
3 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/panels/wacom/cc-wacom-panel.c b/panels/wacom/cc-wacom-panel.c
index a17aa64..ed0e74b 100644
--- a/panels/wacom/cc-wacom-panel.c
+++ b/panels/wacom/cc-wacom-panel.c
@@ -502,6 +502,7 @@ cc_wacom_panel_init (CcWacomPanel *self)
priv->notebook = GTK_WIDGET (notebook);
gtk_notebook_set_show_tabs (notebook, FALSE);
+ gtk_notebook_set_show_border (notebook, FALSE);
gtk_widget_set_vexpand (GTK_WIDGET (notebook), TRUE);
gtk_container_set_border_width (GTK_CONTAINER (notebook), 0);
g_object_set (G_OBJECT (notebook),
diff --git a/panels/wacom/gnome-wacom-properties.ui b/panels/wacom/gnome-wacom-properties.ui
index 4785c38..8ecb9d0 100644
--- a/panels/wacom/gnome-wacom-properties.ui
+++ b/panels/wacom/gnome-wacom-properties.ui
@@ -84,6 +84,7 @@
<property name="can_focus">True</property>
<property name="vexpand">True</property>
<property name="show_tabs">False</property>
+ <property name="show_border">False</property>
<child>
<object class="GtkBox" id="main-box">
<property name="visible">True</property>
@@ -385,6 +386,7 @@
<property name="can_focus">True</property>
<property name="vexpand">True</property>
<property name="show_tabs">False</property>
+ <property name="show_border">False</property>
</object>
<packing>
<property name="left_attach">0</property>
diff --git a/panels/wacom/test-wacom.c b/panels/wacom/test-wacom.c
index e9c31bc..e5a6b25 100644
--- a/panels/wacom/test-wacom.c
+++ b/panels/wacom/test-wacom.c
@@ -91,6 +91,7 @@ int main (int argc, char **argv)
G_CALLBACK (delete_event_cb), NULL);
notebook = gtk_notebook_new ();
gtk_notebook_set_show_tabs (GTK_NOTEBOOK (notebook), FALSE);
+ gtk_notebook_set_show_border (GTK_NOTEBOOK (notebook), FALSE);
gtk_widget_set_vexpand (notebook, TRUE);
gtk_container_set_border_width (GTK_CONTAINER (notebook), 24);
gtk_container_add (GTK_CONTAINER (window), notebook);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]