set the "use-stock" property on the created buttons so changes of the
2005-11-30 Michael Natterer <mitch@gimp.org> * app/widgets/gimpeditor.c (gimp_editor_add_button) (gimp_editor_add_action_button): set the "use-stock" property on the created buttons so changes of the underlying action's name don't affect change the button's icon to a string.
This commit is contained in:

committed by
Michael Natterer

parent
bd45bbfab2
commit
534fd971c4
@ -1,3 +1,10 @@
|
|||||||
|
2005-11-30 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
|
* app/widgets/gimpeditor.c (gimp_editor_add_button)
|
||||||
|
(gimp_editor_add_action_button): set the "use-stock" property on
|
||||||
|
the created buttons so changes of the underlying action's name
|
||||||
|
don't affect change the button's icon to a string.
|
||||||
|
|
||||||
2005-11-28 Bill Skaggs <weskaggs@primate.ucdavis.edu>
|
2005-11-28 Bill Skaggs <weskaggs@primate.ucdavis.edu>
|
||||||
|
|
||||||
* app/tools/gimprectangletool.c: don't crash when
|
* app/tools/gimprectangletool.c: don't crash when
|
||||||
|
@ -505,7 +505,9 @@ gimp_editor_add_button (GimpEditor *editor,
|
|||||||
|
|
||||||
button_icon_size = gimp_editor_ensure_button_box (editor);
|
button_icon_size = gimp_editor_ensure_button_box (editor);
|
||||||
|
|
||||||
button = gimp_button_new ();
|
button = g_object_new (GIMP_TYPE_BUTTON,
|
||||||
|
"use-stock", TRUE,
|
||||||
|
NULL);
|
||||||
gtk_box_pack_start (GTK_BOX (editor->button_box), button, TRUE, TRUE, 0);
|
gtk_box_pack_start (GTK_BOX (editor->button_box), button, TRUE, TRUE, 0);
|
||||||
gtk_widget_show (button);
|
gtk_widget_show (button);
|
||||||
|
|
||||||
@ -650,7 +652,9 @@ gimp_editor_add_action_button (GimpEditor *editor,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
button = gimp_button_new ();
|
button = g_object_new (GIMP_TYPE_BUTTON,
|
||||||
|
"use-stock", TRUE,
|
||||||
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_action_connect_proxy (action, button);
|
gtk_action_connect_proxy (action, button);
|
||||||
|
Reference in New Issue
Block a user