[gtk+/gtk-3-6] GtkActionHelper: Fix a copy-paste error



commit ed7d5cdba3c54fb89b1bdae07ec9c2a9ef378567
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Nov 29 22:12:58 2012 -0500

    GtkActionHelper: Fix a copy-paste error
    
    The code clearly meant to reset action->active here.
    
    This was found by Coverity.

 gtk/gtkactionhelper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkactionhelper.c b/gtk/gtkactionhelper.c
index a3a0c46..0445a5e 100644
--- a/gtk/gtkactionhelper.c
+++ b/gtk/gtkactionhelper.c
@@ -189,7 +189,7 @@ gtk_action_helper_action_removed (GtkActionHelper *helper)
 
   if (helper->active)
     {
-      helper->enabled = FALSE;
+      helper->active = FALSE;
       gtk_action_helper_report_change (helper, PROP_ACTIVE);
     }
 



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