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

This commit is contained in:
Michael Natterer 2012-06-12 22:51:32 +02:00
parent 2f8d45611c
commit 4fbf01baef
1 changed files with 1 additions and 2 deletions

View File

@ -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);