sync from the given template to the dialog template, not the other way

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

	* app/gui/file-new-dialog.c (file_new_dialog_set): sync from the
	given template to the dialog template, not the other way around.

	* app/widgets/gimptemplateeditor.c (gimp_template_editor_constructor):
	shouldn't have to call the notify callback from here.
This commit is contained in:
Sven Neumann 2003-10-15 17:10:22 +00:00 committed by Sven Neumann
parent 3c14d9db81
commit bfc4ac1148
4 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,11 @@
2003-10-15 Sven Neumann <sven@gimp.org>
* app/gui/file-new-dialog.c (file_new_dialog_set): sync from the
given template to the dialog template, not the other way around.
* app/widgets/gimptemplateeditor.c (gimp_template_editor_constructor):
shouldn't have to call the notify callback from here.
2003-10-15 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpcolorframe.[ch] (gimp_color_frame_set_color):

View File

@ -188,8 +188,8 @@ file_new_dialog_set (GtkWidget *widget,
{
template = gimp_image_new_get_last_template (dialog->gimp, gimage);
gimp_config_sync (GIMP_CONFIG (dialog->template),
GIMP_CONFIG (template), 0);
gimp_config_sync (GIMP_CONFIG (template),
GIMP_CONFIG (dialog->template), 0);
g_object_unref (template);
}

View File

@ -188,8 +188,8 @@ file_new_dialog_set (GtkWidget *widget,
{
template = gimp_image_new_get_last_template (dialog->gimp, gimage);
gimp_config_sync (GIMP_CONFIG (dialog->template),
GIMP_CONFIG (template), 0);
gimp_config_sync (GIMP_CONFIG (template),
GIMP_CONFIG (dialog->template), 0);
g_object_unref (template);
}

View File

@ -498,7 +498,6 @@ gimp_template_editor_constructor (GType type,
g_signal_connect (editor->template, "notify",
G_CALLBACK (gimp_template_editor_template_notify),
editor);
gimp_template_editor_template_notify (editor->template, NULL, editor);
return object;
}