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
This commit is contained in:
parent
b289fab6c8
commit
fdef36294a
3 changed files with 4 additions and 0 deletions
|
@ -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),
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue