Commit 8b74f33c authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

plug-ins/common/CEL.c plug-ins/common/CML_explorer.c

2004-11-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/CEL.c
	* plug-ins/common/CML_explorer.c
	* plug-ins/common/channel_mixer.c
	* plug-ins/common/gqbist.c
	* plug-ins/common/spheredesigner.c
	* plug-ins/flame/flame.c
	* plug-ins/ifscompose/ifscompose.c: don't set help-ids on plug-in
	file chooser dialogs. Set the default response for file dialogs.
parent 2c1fc599
2004-11-08 Sven Neumann <sven@gimp.org>
* plug-ins/common/CEL.c
* plug-ins/common/CML_explorer.c
* plug-ins/common/channel_mixer.c
* plug-ins/common/gqbist.c
* plug-ins/common/spheredesigner.c
* plug-ins/flame/flame.c
* plug-ins/ifscompose/ifscompose.c: don't set help-ids on plug-in
file chooser dialogs. Set the default response for file dialogs.
2004-11-08 Michael Natterer <mitch@gimp.org> 2004-11-08 Michael Natterer <mitch@gimp.org>
   
* app/dialogs/resize-dialog.c (resize_dialog_response) * app/dialogs/resize-dialog.c (resize_dialog_response)
......
...@@ -696,7 +696,6 @@ palette_dialog (const gchar *title) ...@@ -696,7 +696,6 @@ palette_dialog (const gchar *title)
gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (dialog), palette_file); gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (dialog), palette_file);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
gimp_help_connect (dialog, gimp_standard_help_func, "file-cel-load", NULL);
gtk_widget_show (dialog); gtk_widget_show (dialog);
......
...@@ -1952,7 +1952,7 @@ CML_save_to_file_callback (GtkWidget *widget, ...@@ -1952,7 +1952,7 @@ CML_save_to_file_callback (GtkWidget *widget,
NULL); NULL);
gimp_help_connect (dialog, gimp_standard_help_func, HELP_ID, NULL); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
g_signal_connect (dialog, "response", g_signal_connect (dialog, "response",
G_CALLBACK (CML_save_to_file_response), G_CALLBACK (CML_save_to_file_response),
...@@ -2124,7 +2124,7 @@ CML_load_from_file_callback (GtkWidget *widget, ...@@ -2124,7 +2124,7 @@ CML_load_from_file_callback (GtkWidget *widget,
NULL); NULL);
gimp_help_connect (dialog, gimp_standard_help_func, HELP_ID, NULL); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
g_signal_connect (dialog, "response", g_signal_connect (dialog, "response",
G_CALLBACK (CML_load_from_file_response), G_CALLBACK (CML_load_from_file_response),
......
...@@ -863,7 +863,7 @@ cm_load_file_callback (GtkWidget *widget, ...@@ -863,7 +863,7 @@ cm_load_file_callback (GtkWidget *widget,
NULL); NULL);
gimp_help_connect (dialog, gimp_standard_help_func, HELP_ID, NULL); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
g_signal_connect (dialog, "response", g_signal_connect (dialog, "response",
G_CALLBACK (cm_load_file_response_callback), G_CALLBACK (cm_load_file_response_callback),
...@@ -995,7 +995,7 @@ cm_save_file_callback (GtkWidget *widget, ...@@ -995,7 +995,7 @@ cm_save_file_callback (GtkWidget *widget,
NULL); NULL);
gimp_help_connect (dialog, gimp_standard_help_func, HELP_ID, NULL); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
g_signal_connect (dialog, "response", g_signal_connect (dialog, "response",
G_CALLBACK (cm_save_file_response_callback), G_CALLBACK (cm_save_file_response_callback),
......
...@@ -701,10 +701,9 @@ dialog_load (GtkWidget *widget, ...@@ -701,10 +701,9 @@ dialog_load (GtkWidget *widget,
NULL); NULL);
gimp_help_connect (dialog, gimp_standard_help_func, HELP_ID, NULL); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (dialog), gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (dialog), qbist_info.path);
qbist_info.path);
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK) if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK)
{ {
...@@ -740,10 +739,9 @@ dialog_save (GtkWidget *widget, ...@@ -740,10 +739,9 @@ dialog_save (GtkWidget *widget,
NULL); NULL);
gimp_help_connect (dialog, gimp_standard_help_func, HELP_ID, NULL); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (dialog), gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (dialog), qbist_info.path);
qbist_info.path);
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK) if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK)
{ {
......
...@@ -2166,7 +2166,7 @@ fileselect (GtkFileChooserAction action, ...@@ -2166,7 +2166,7 @@ fileselect (GtkFileChooserAction action,
if (!windows[action]) if (!windows[action])
{ {
windows[action] = GtkWidget *dialog = windows[action] =
gtk_file_chooser_dialog_new (gettext (titles[action]), gtk_file_chooser_dialog_new (gettext (titles[action]),
GTK_WINDOW (parent), GTK_WINDOW (parent),
action, action,
...@@ -2179,16 +2179,12 @@ fileselect (GtkFileChooserAction action, ...@@ -2179,16 +2179,12 @@ fileselect (GtkFileChooserAction action,
NULL); NULL);
gimp_help_connect (windows[action], gimp_standard_help_func, gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
"plug-in-spheredesigner", NULL);
g_signal_connect (windows[action], "destroy", g_signal_connect (dialog, "destroy",
G_CALLBACK (gtk_widget_destroyed), G_CALLBACK (gtk_widget_destroyed),
&windows[action]); &windows[action]);
g_signal_connect (windows[action], "delete_event", g_signal_connect (dialog, "response",
G_CALLBACK (gtk_true),
NULL);
g_signal_connect (windows[action], "response",
G_CALLBACK (handlers[action]), G_CALLBACK (handlers[action]),
NULL); NULL);
} }
......
...@@ -489,8 +489,6 @@ make_file_dlg (const gchar *title, ...@@ -489,8 +489,6 @@ make_file_dlg (const gchar *title,
g_signal_connect (file_dlg, "response", g_signal_connect (file_dlg, "response",
G_CALLBACK (file_response_callback), G_CALLBACK (file_response_callback),
NULL); NULL);
gimp_help_connect (file_dlg, gimp_standard_help_func, HELP_ID, NULL);
} }
static void static void
......
...@@ -2639,7 +2639,7 @@ ifs_compose_save (GtkWidget *parent) ...@@ -2639,7 +2639,7 @@ ifs_compose_save (GtkWidget *parent)
NULL); NULL);
gimp_help_connect (dialog, gimp_standard_help_func, HELP_ID, NULL); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
g_signal_connect (dialog, "destroy", g_signal_connect (dialog, "destroy",
G_CALLBACK (gtk_widget_destroyed), G_CALLBACK (gtk_widget_destroyed),
...@@ -2669,7 +2669,7 @@ ifs_compose_load (GtkWidget *parent) ...@@ -2669,7 +2669,7 @@ ifs_compose_load (GtkWidget *parent)
NULL); NULL);
gimp_help_connect (dialog, gimp_standard_help_func, HELP_ID, NULL); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
g_signal_connect (dialog, "destroy", g_signal_connect (dialog, "destroy",
G_CALLBACK (gtk_widget_destroyed), G_CALLBACK (gtk_widget_destroyed),
......
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