[gtk+] GtkActionHelper: Fix a copy-paste error
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkActionHelper: Fix a copy-paste error
- Date: Fri, 30 Nov 2012 04:27:42 +0000 (UTC)
commit 3519226c5a226bfff7af390a1acad4b321591ad0
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]