[gtk+] checkbutton: always use interior focus



commit 21e32f198953421429c3543af67baf6c57ecd05a
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu May 1 19:34:48 2014 +0200

    checkbutton: always use interior focus

 gtk/gtkcheckbutton.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c
index 0467c0e..5521d1d 100644
--- a/gtk/gtkcheckbutton.c
+++ b/gtk/gtkcheckbutton.c
@@ -210,14 +210,12 @@ gtk_check_button_paint (GtkWidget    *widget,
       GtkStyleContext *context;
       GtkAllocation allocation;
       gint border_width;
-      gint interior_focus;
       gint focus_width;
       gint focus_pad;
 
       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);
@@ -225,7 +223,7 @@ gtk_check_button_paint (GtkWidget    *widget,
       gtk_widget_get_allocation (widget, &allocation);
       context = gtk_widget_get_style_context (widget);
 
-      if (interior_focus && child && gtk_widget_get_visible (child))
+      if (child && gtk_widget_get_visible (child))
         {
           GtkAllocation child_allocation;
 
@@ -529,7 +527,6 @@ gtk_real_check_button_draw_indicator (GtkCheckButton *check_button,
   gint focus_pad;
   gint baseline;
   guint border_width;
-  gboolean interior_focus;
   GtkAllocation allocation;
   GtkStyleContext *context;
 
@@ -543,7 +540,6 @@ gtk_real_check_button_draw_indicator (GtkCheckButton *check_button,
   state = gtk_widget_get_state_flags (widget);
 
   gtk_widget_style_get (widget, 
-                        "interior-focus", &interior_focus,
                         "focus-line-width", &focus_width, 
                         "focus-padding", &focus_pad, 
                         NULL);
@@ -560,7 +556,7 @@ gtk_real_check_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]