mirror of https://github.com/GNOME/gimp.git
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:
parent
487324b39a
commit
d9e5024a5c
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue