]> Pileus Git - ~andy/gtk/commitdiff
Bug 572904 – GtkRadioAction broken in trunk
authorTristan Van Berkom <tvb@src.gnome.org>
Thu, 26 Feb 2009 02:33:42 +0000 (02:33 +0000)
committerTristan Van Berkom <tvb@src.gnome.org>
Thu, 26 Feb 2009 02:33:42 +0000 (02:33 +0000)
Bug 572904 – GtkRadioAction broken in trunk

* gtk/gtkradioaction.c: When setting non active state always
notify the action's active state (this prevents toggle type proxies
used with radio actions from deactivating when pressed a second time).

svn path=/trunk/; revision=22409

ChangeLog
gtk/gtkradioaction.c

index 70539ba3b9669b78b6aa6507a95374d210a41b3c..a5214087f0009fc40fb0a6d4f4dfa35ac0ce99a5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-02-25  Tristan Van Berkom <tvb@gnome.org>
+
+       Bug 572904 – GtkRadioAction broken in trunk
+
+       * gtk/gtkradioaction.c: When setting non active state always
+       notify the action's active state (this prevents toggle type proxies
+       used with radio actions from deactivating when pressed a second time).
+
 2009-02-25  Xan Lopez  <xan@gnome.org>
 
         Bug 495320 - GtkRange does not use gdk_event_request_motions
index 3480451f9b73c0d18c0d72f779f5e3c9e4639e8e..48784c40d83874907b3e3d67df29207c446de325 100644 (file)
@@ -327,10 +327,10 @@ gtk_radio_action_activate (GtkAction *action)
            {
              toggle_action->private_data->active = !toggle_action->private_data->active;
 
-             g_object_notify (G_OBJECT (action), "active");
              break;
            }
        }
+      g_object_notify (G_OBJECT (action), "active");
     }
   else
     {