mirror of https://github.com/GNOME/gimp.git
app: get the help_id from the right action in gimp_editor_add_action_button()
This commit is contained in:
parent
2f8d45611c
commit
4fbf01baef
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue