[epiphany] Tweak style for close buttons in notebooks removing paddings and borders



commit 99193c87cd59cf1d913c7b9840148956d619c91c
Author: Mario Sanchez Prada <msanchez igalia com>
Date:   Mon Jun 6 13:39:25 2011 +0200

    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

 src/ephy-notebook.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 81dc7ca..597cd1c 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),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]