[gimp/metadata-browser] app: get the help_id from the right action in gimp_editor_add_action_button()



commit 928097a35f3c01d8a0cdf8e6f705e77a1a7304c3
Author: Michael Natterer <mitch gimp org>
Date:   Tue Jun 12 22:51:32 2012 +0200

    app: get the help_id from the right action in gimp_editor_add_action_button()

 app/widgets/gimpeditor.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpeditor.c b/app/widgets/gimpeditor.c
index 2ba0fa3..bb97b9f 100644
--- a/app/widgets/gimpeditor.c
+++ b/app/widgets/gimpeditor.c
@@ -652,6 +652,7 @@ gimp_editor_add_action_button (GimpEditor  *editor,
 
   stock_id = gtk_action_get_stock_id (action);
   tooltip  = g_strdup (gtk_action_get_tooltip (action));
+  help_id  = g_object_get_qdata (G_OBJECT (action), GIMP_HELP_ID);
 
   old_child = gtk_bin_get_child (GTK_BIN (button));
 
@@ -719,8 +720,6 @@ gimp_editor_add_action_button (GimpEditor  *editor,
                         NULL);
     }
 
-  help_id = g_object_get_qdata (G_OBJECT (action), GIMP_HELP_ID);
-
   if (tooltip || help_id)
     gimp_help_set_help_data_with_markup (button, tooltip, help_id);
 



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