set the initial stock icon on the viewable-button.

2003-10-14  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimptemplateeditor.c (gimp_template_editor_new):
	set the initial stock icon on the viewable-button.
This commit is contained in:
Sven Neumann 2003-10-14 16:29:33 +00:00 committed by Sven Neumann
parent 487324b39a
commit d9e5024a5c
2 changed files with 16 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2003-10-14 Sven Neumann <sven@gimp.org>
* app/widgets/gimptemplateeditor.c (gimp_template_editor_new):
set the initial stock icon on the viewable-button.
2003-10-14 Helvetix Victorinox <helvetix@gimp.org>
* app/composite/gimp-composite-generic.c

View File

@ -513,11 +513,14 @@ gimp_template_editor_new (GimpTemplate *template,
if (edit_template)
{
GtkWidget *table;
GtkWidget *entry;
GtkWidget *button;
GSList *stock_list;
GSList *list;
GtkWidget *table;
GtkWidget *entry;
GtkWidget *button;
GSList *stock_list;
GSList *list;
const gchar *stock_id;
stock_id = gimp_viewable_get_stock_id (GIMP_VIEWABLE (editor->template));
editor->stock_id_container = gimp_list_new (GIMP_TYPE_TEMPLATE,
GIMP_CONTAINER_POLICY_STRONG);
@ -538,6 +541,9 @@ gimp_template_editor_new (GimpTemplate *template,
gimp_container_add (editor->stock_id_container, object);
g_object_unref (object);
if (strcmp (list->data, stock_id) == 0)
gimp_context_set_template (editor->stock_id_context, object);
}
g_slist_foreach (stock_list, (GFunc) g_free, NULL);