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:
Michael Natterer
2005-11-29 23:02:20 +00:00
committed by Michael Natterer
parent bd45bbfab2
commit 534fd971c4
2 changed files with 13 additions and 2 deletions

View File

@ -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>
* app/tools/gimprectangletool.c: don't crash when

View File

@ -505,7 +505,9 @@ gimp_editor_add_button (GimpEditor *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_widget_show (button);
@ -650,7 +652,9 @@ gimp_editor_add_action_button (GimpEditor *editor,
}
else
{
button = gimp_button_new ();
button = g_object_new (GIMP_TYPE_BUTTON,
"use-stock", TRUE,
NULL);
}
gtk_action_connect_proxy (action, button);