[gtk+] button: don't use focus-line-width



commit 694b209094c8bff90eca7beae911982af822224e
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun May 4 18:51:53 2014 +0200

    button: don't use focus-line-width

 gtk/gtkbutton.c |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index 52673d4..75001c5 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -1694,18 +1694,14 @@ gtk_button_get_full_border (GtkButton *button,
                             GtkBorder *full_border)
 {
   GtkBorder default_border, padding, border;
-  int focus_width;
 
   gtk_button_get_props (button, &default_border, NULL,
                         &padding, &border);
-  gtk_style_context_get_style (context,
-                               "focus-line-width", &focus_width,
-                               NULL);
 
-  full_border->left = padding.left + border.left + focus_width;
-  full_border->right = padding.right + border.right + focus_width; 
-  full_border->top = padding.top + border.top + focus_width; 
-  full_border->bottom = padding.bottom + border.bottom + focus_width; 
+  full_border->left = padding.left + border.left;
+  full_border->right = padding.right + border.right;
+  full_border->top = padding.top + border.top;
+  full_border->bottom = padding.bottom + border.bottom;
 
   if (gtk_widget_get_can_default (GTK_WIDGET (button)))
     {


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