Commit 534fd971 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

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.
parent bd45bbfa
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, ...@@ -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, ...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment