[gtk+/gtk-3-0] radiobutton: build the new state flags from the previous flags on click



commit db4034ddd855166df269dd4f8b0ea6b7a1665d13
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Mar 18 15:00:11 2011 -0400

    radiobutton: build the new state flags from the previous flags on click
    
    This fixes e.g. sensitivity issues with GtkRadioButton on state update.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=645172

 gtk/gtkradiobutton.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c
index 3165196..590a085 100644
--- a/gtk/gtkradiobutton.c
+++ b/gtk/gtkradiobutton.c
@@ -800,6 +800,8 @@ gtk_radio_button_clicked (GtkButton *button)
 
   g_object_ref (GTK_WIDGET (button));
 
+  new_state = gtk_widget_get_state_flags (GTK_WIDGET (button));
+
   if (gtk_toggle_button_get_active (toggle_button))
     {
       tmp_button = NULL;



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