[gtk+/wip/focusprops: 47/48] flowbox: don't use focus-line-width



commit bb9bb6de78e930eb0774639a5d753e9bc9ae87b3
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun May 4 20:42:13 2014 +0200

    flowbox: don't use focus-line-width

 gtk/gtkflowbox.c |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index 366b9ed..dc8090a 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -373,21 +373,17 @@ gtk_flow_box_child_get_full_border (GtkFlowBoxChild *child,
   GtkStyleContext *context;
   GtkStateFlags state;
   GtkBorder padding, border;
-  int focus_width;
 
   context = gtk_widget_get_style_context (widget);
   state = gtk_style_context_get_state (context);
 
   gtk_style_context_get_padding (context, state, &padding);
   gtk_style_context_get_border (context, state, &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;
 }
 
 static GtkSizeRequestMode


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