[gtk+/wip/focusprops: 6/48] radiobutton: always use interior focus



commit 18ed8b04e7e5864db00eae23a961a0f8247bb7a4
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu May 1 19:35:30 2014 +0200

    radiobutton: always use interior focus

 gtk/gtkradiobutton.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c
index 1e88ac3..af4e983 100644
--- a/gtk/gtkradiobutton.c
+++ b/gtk/gtkradiobutton.c
@@ -878,7 +878,6 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button,
   gint focus_pad;
   gint baseline;
   guint border_width;
-  gboolean interior_focus;
 
   widget = GTK_WIDGET (check_button);
   button = GTK_BUTTON (check_button);
@@ -889,7 +888,6 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button,
   border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
 
   gtk_widget_style_get (widget,
-                        "interior-focus", &interior_focus,
                         "focus-line-width", &focus_width,
                         "focus-padding", &focus_pad,
                         NULL);
@@ -907,7 +905,7 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button,
               0, allocation.height - indicator_size);
 
   child = gtk_bin_get_child (GTK_BIN (check_button));
-  if (!interior_focus || !(child && gtk_widget_get_visible (child)))
+  if (!(child && gtk_widget_get_visible (child)))
     x += focus_width + focus_pad;
 
   state &= ~(GTK_STATE_FLAG_INCONSISTENT |


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