aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Sanchez Prada <msanchez@igalia.com>2011-06-06 19:39:25 +0800
committerMario Sanchez Prada <msanchez@igalia.com>2011-06-06 19:44:07 +0800
commit99193c87cd59cf1d913c7b9840148956d619c91c (patch)
tree56848b60d7f5b20cc2f4421b1e14666a07397619
parent27f60858f567f2bee47ab0fac76ff39a33707c4d (diff)
downloadgsoc2013-epiphany-99193c87cd59cf1d913c7b9840148956d619c91c.tar
gsoc2013-epiphany-99193c87cd59cf1d913c7b9840148956d619c91c.tar.gz
gsoc2013-epiphany-99193c87cd59cf1d913c7b9840148956d619c91c.tar.bz2
gsoc2013-epiphany-99193c87cd59cf1d913c7b9840148956d619c91c.tar.lz
gsoc2013-epiphany-99193c87cd59cf1d913c7b9840148956d619c91c.tar.xz
gsoc2013-epiphany-99193c87cd59cf1d913c7b9840148956d619c91c.tar.zst
gsoc2013-epiphany-99193c87cd59cf1d913c7b9840148956d619c91c.zip
Tweak style for close buttons in notebooks removing paddings and borders
Set to zero 'default-border', 'default-outside-border', 'inner-border' and 'padding' for the GtkButton, following the lead of GEdit. Bug #648116
-rw-r--r--src/ephy-notebook.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 81dc7ca12..597cd1c3c 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -619,9 +619,13 @@ build_tab_label (EphyNotebook *nb, EphyEmbed *embed)
provider = gtk_css_provider_new ();
gtk_css_provider_load_from_data (provider,
"#ephy-tab-close-button {"
+ " -GtkButton-default-border: 0;"
+ " -GtkButton-default-outside-border: 0;"
+ " -GtkButton-inner-border: 0;"
" -GtkWidget-focus-padding: 0;"
" -GtkWidget-focus-line-width: 0;"
- " margin: 0; }",
+ " margin: 0;"
+ " padding: 0; }",
-1, NULL);
gtk_style_context_add_provider (gtk_widget_get_style_context (close_button),