app: GimpEditor buttons will have the associated action name as identifier.
This commit is contained in:
parent
6df7efaa3d
commit
e9e2bb1b2e
1 changed files with 2 additions and 0 deletions
|
|
@ -25,6 +25,7 @@
|
||||||
|
|
||||||
#include "libgimpbase/gimpbase.h"
|
#include "libgimpbase/gimpbase.h"
|
||||||
#include "libgimpwidgets/gimpwidgets.h"
|
#include "libgimpwidgets/gimpwidgets.h"
|
||||||
|
#include "libgimpwidgets/gimpwidgets-private.h"
|
||||||
|
|
||||||
#include "widgets-types.h"
|
#include "widgets-types.h"
|
||||||
|
|
||||||
|
|
@ -734,6 +735,7 @@ gimp_editor_add_action_button (GimpEditor *editor,
|
||||||
else
|
else
|
||||||
button = gimp_button_new ();
|
button = gimp_button_new ();
|
||||||
|
|
||||||
|
gimp_widget_set_identifier (button, action_name);
|
||||||
gtk_button_set_relief (GTK_BUTTON (button), button_relief);
|
gtk_button_set_relief (GTK_BUTTON (button), button_relief);
|
||||||
|
|
||||||
icon_name = gimp_action_get_icon_name (action);
|
icon_name = gimp_action_get_icon_name (action);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue