fixed a lot of the destroy handlers and delete_event handlers, still

not everything perfect, though.
-timj
This commit is contained in:
Tim Janik 1998-03-12 22:01:43 +00:00
parent 1fe238af74
commit 2b52f8a864
90 changed files with 183 additions and 170 deletions

View File

@ -122,8 +122,6 @@ about_dialog_create (int timeout)
gtk_window_position (GTK_WINDOW (about_dialog), GTK_WIN_POS_CENTER); gtk_window_position (GTK_WINDOW (about_dialog), GTK_WIN_POS_CENTER);
gtk_signal_connect (GTK_OBJECT (about_dialog), "destroy", gtk_signal_connect (GTK_OBJECT (about_dialog), "destroy",
(GtkSignalFunc) about_dialog_destroy, NULL); (GtkSignalFunc) about_dialog_destroy, NULL);
gtk_signal_connect (GTK_OBJECT (about_dialog), "delete_event",
(GtkSignalFunc) about_dialog_destroy, NULL);
gtk_signal_connect (GTK_OBJECT (about_dialog), "unmap_event", gtk_signal_connect (GTK_OBJECT (about_dialog), "unmap_event",
(GtkSignalFunc) about_dialog_unmap, NULL); (GtkSignalFunc) about_dialog_unmap, NULL);
gtk_signal_connect (GTK_OBJECT (about_dialog), "button_press_event", gtk_signal_connect (GTK_OBJECT (about_dialog), "button_press_event",

View File

@ -232,7 +232,7 @@ file_new_delete_callback (GtkWidget *widget,
{ {
file_new_cancel_callback (widget, data); file_new_cancel_callback (widget, data);
return FALSE; return TRUE;
} }
@ -751,7 +751,7 @@ file_prefs_delete_callback (GtkWidget *widget,
file_prefs_cancel_callback (widget, dlg); file_prefs_cancel_callback (widget, dlg);
/* the widget is already destroyed here no need to try again */ /* the widget is already destroyed here no need to try again */
return FALSE; return TRUE;
} }
static void static void
@ -2457,7 +2457,7 @@ image_delete_callback (GtkWidget *w,
{ {
image_cancel_callback (w, client_data); image_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }

View File

@ -318,6 +318,9 @@ make_initialization_status_window(void)
GtkWidget *vbox; GtkWidget *vbox;
win_initstatus = gtk_window_new(GTK_WINDOW_DIALOG); win_initstatus = gtk_window_new(GTK_WINDOW_DIALOG);
gtk_signal_connect (GTK_OBJECT (win_initstatus), "delete_event",
GTK_SIGNAL_FUNC (gtk_true),
NULL);
gtk_window_set_wmclass (GTK_WINDOW(win_initstatus), "gimp_startup", "Gimp"); gtk_window_set_wmclass (GTK_WINDOW(win_initstatus), "gimp_startup", "Gimp");
gtk_window_set_title(GTK_WINDOW(win_initstatus), gtk_window_set_title(GTK_WINDOW(win_initstatus),
"GIMP Startup"); "GIMP Startup");
@ -584,7 +587,7 @@ really_quit_delete_callback (GtkWidget *widget,
{ {
really_quit_cancel_callback (GTK_BUTTON(widget), (GtkWidget *) client_data); really_quit_cancel_callback (GTK_BUTTON(widget), (GtkWidget *) client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -643,7 +643,7 @@ color_balance_delete_callback (GtkWidget *w,
{ {
color_balance_cancel_callback (w, client_data); color_balance_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -1001,7 +1001,7 @@ curves_delete_callback (GtkWidget *w,
{ {
curves_cancel_callback (w, data); curves_cancel_callback (w, data);
return FALSE; return TRUE;
} }
static void static void
curves_preview_update (GtkWidget *w, curves_preview_update (GtkWidget *w,

View File

@ -754,7 +754,7 @@ hue_saturation_delete_callback (GtkWidget *w,
{ {
hue_saturation_cancel_callback (w, client_data); hue_saturation_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -512,7 +512,7 @@ threshold_delete_callback (GtkWidget *w,
{ {
threshold_cancel_callback (w, client_data); threshold_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -505,7 +505,7 @@ brightness_contrast_delete_callback (GtkWidget *w,
{ {
brightness_contrast_cancel_callback (w, d); brightness_contrast_cancel_callback (w, d);
return FALSE; return TRUE;
} }
static void static void

View File

@ -734,7 +734,7 @@ brush_select_delete_callback (GtkWidget *w, GdkEvent *e, gpointer data)
{ {
brush_select_close_callback (w, data); brush_select_close_callback (w, data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -852,7 +852,7 @@ by_color_select_delete_callback (GtkWidget *w,
{ {
by_color_select_close_callback (w, client_data); by_color_select_close_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -485,7 +485,7 @@ offset_delete_callback (GtkWidget *widget,
{ {
offset_cancel_callback (widget, data); offset_cancel_callback (widget, data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -1689,7 +1689,7 @@ new_channel_query_delete_callback (GtkWidget *w,
{ {
new_channel_query_cancel_callback (w, client_data); new_channel_query_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void
@ -1868,7 +1868,7 @@ edit_channel_query_delete_callback (GtkWidget *w,
{ {
edit_channel_query_cancel_callback (w, client_data); edit_channel_query_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -643,7 +643,7 @@ color_balance_delete_callback (GtkWidget *w,
{ {
color_balance_cancel_callback (w, client_data); color_balance_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -788,7 +788,7 @@ color_select_delete_callback (GtkWidget *w,
{ {
color_select_cancel_callback (w, client_data); color_select_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }

View File

@ -232,7 +232,7 @@ file_new_delete_callback (GtkWidget *widget,
{ {
file_new_cancel_callback (widget, data); file_new_cancel_callback (widget, data);
return FALSE; return TRUE;
} }
@ -751,7 +751,7 @@ file_prefs_delete_callback (GtkWidget *widget,
file_prefs_cancel_callback (widget, dlg); file_prefs_cancel_callback (widget, dlg);
/* the widget is already destroyed here no need to try again */ /* the widget is already destroyed here no need to try again */
return FALSE; return TRUE;
} }
static void static void
@ -2457,7 +2457,7 @@ image_delete_callback (GtkWidget *w,
{ {
image_cancel_callback (w, client_data); image_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }

View File

@ -529,6 +529,7 @@ indexed_ok_callback (GtkWidget *widget,
gtk_widget_destroy (dialog->shell); gtk_widget_destroy (dialog->shell);
g_free (dialog); g_free (dialog);
dialog = NULL;
} }
static gint static gint
@ -538,7 +539,7 @@ indexed_delete_callback (GtkWidget *w,
{ {
indexed_cancel_callback (w, client_data); indexed_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void
@ -550,6 +551,7 @@ indexed_cancel_callback (GtkWidget *widget,
dialog = (IndexedDialog *) client_data; dialog = (IndexedDialog *) client_data;
gtk_widget_destroy (dialog->shell); gtk_widget_destroy (dialog->shell);
g_free (dialog); g_free (dialog);
dialog = NULL;
} }
static void static void

View File

@ -552,7 +552,7 @@ named_buffer_dialog_delete_callback (GtkWidget *w,
{ {
named_buffer_cancel_callback (w, client_data); named_buffer_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -485,7 +485,7 @@ offset_delete_callback (GtkWidget *widget,
{ {
offset_cancel_callback (widget, data); offset_cancel_callback (widget, data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -552,7 +552,7 @@ named_buffer_dialog_delete_callback (GtkWidget *w,
{ {
named_buffer_cancel_callback (w, client_data); named_buffer_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -529,6 +529,7 @@ indexed_ok_callback (GtkWidget *widget,
gtk_widget_destroy (dialog->shell); gtk_widget_destroy (dialog->shell);
g_free (dialog); g_free (dialog);
dialog = NULL;
} }
static gint static gint
@ -538,7 +539,7 @@ indexed_delete_callback (GtkWidget *w,
{ {
indexed_cancel_callback (w, client_data); indexed_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void
@ -550,6 +551,7 @@ indexed_cancel_callback (GtkWidget *widget,
dialog = (IndexedDialog *) client_data; dialog = (IndexedDialog *) client_data;
gtk_widget_destroy (dialog->shell); gtk_widget_destroy (dialog->shell);
g_free (dialog); g_free (dialog);
dialog = NULL;
} }
static void static void

View File

@ -485,7 +485,7 @@ offset_delete_callback (GtkWidget *widget,
{ {
offset_cancel_callback (widget, data); offset_cancel_callback (widget, data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -1001,7 +1001,7 @@ curves_delete_callback (GtkWidget *w,
{ {
curves_cancel_callback (w, data); curves_cancel_callback (w, data);
return FALSE; return TRUE;
} }
static void static void
curves_preview_update (GtkWidget *w, curves_preview_update (GtkWidget *w,

View File

@ -122,8 +122,6 @@ about_dialog_create (int timeout)
gtk_window_position (GTK_WINDOW (about_dialog), GTK_WIN_POS_CENTER); gtk_window_position (GTK_WINDOW (about_dialog), GTK_WIN_POS_CENTER);
gtk_signal_connect (GTK_OBJECT (about_dialog), "destroy", gtk_signal_connect (GTK_OBJECT (about_dialog), "destroy",
(GtkSignalFunc) about_dialog_destroy, NULL); (GtkSignalFunc) about_dialog_destroy, NULL);
gtk_signal_connect (GTK_OBJECT (about_dialog), "delete_event",
(GtkSignalFunc) about_dialog_destroy, NULL);
gtk_signal_connect (GTK_OBJECT (about_dialog), "unmap_event", gtk_signal_connect (GTK_OBJECT (about_dialog), "unmap_event",
(GtkSignalFunc) about_dialog_unmap, NULL); (GtkSignalFunc) about_dialog_unmap, NULL);
gtk_signal_connect (GTK_OBJECT (about_dialog), "button_press_event", gtk_signal_connect (GTK_OBJECT (about_dialog), "button_press_event",

View File

@ -200,11 +200,11 @@ info_dialog_update (InfoDialog *idialog)
static gint static gint
info_dialog_delete_callback (GtkWidget *w, info_dialog_delete_callback (GtkWidget *w,
GdkEvent *e, GdkEvent *e,
gpointer client_data) { gpointer client_data)
{
info_dialog_popdown ((InfoDialog *) client_data); info_dialog_popdown ((InfoDialog *) client_data);
return FALSE;
return TRUE;
} }

View File

@ -57,6 +57,8 @@ tips_dialog_create ()
gtk_window_position (GTK_WINDOW (tips_dialog), GTK_WIN_POS_CENTER); gtk_window_position (GTK_WINDOW (tips_dialog), GTK_WIN_POS_CENTER);
gtk_signal_connect (GTK_OBJECT (tips_dialog), "delete_event", gtk_signal_connect (GTK_OBJECT (tips_dialog), "delete_event",
GTK_SIGNAL_FUNC (tips_dialog_hide), NULL); GTK_SIGNAL_FUNC (tips_dialog_hide), NULL);
/* destroy the tips window if the mainlevel gtk_main() function is left */
gtk_quit_add (1, (GtkFunction) gtk_widget_destroy, tips_dialog);
vbox = gtk_vbox_new (FALSE, 0); vbox = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (tips_dialog), vbox); gtk_container_add (GTK_CONTAINER (tips_dialog), vbox);
@ -160,7 +162,7 @@ tips_dialog_hide (GtkWidget *widget,
g_list_free (update); g_list_free (update);
g_list_free (remove); g_list_free (remove);
return FALSE; return TRUE;
} }
static int static int

View File

@ -97,6 +97,9 @@ install_help (InstallCallback callback)
GdkFont *font; GdkFont *font;
help_widget = gtk_dialog_new (); help_widget = gtk_dialog_new ();
gtk_signal_connect (GTK_OBJECT (help_widget), "delete_event",
GTK_SIGNAL_FUNC (gtk_true),
NULL);
gtk_window_set_wmclass (GTK_WINDOW (help_widget), "gimp_installation", "Gimp"); gtk_window_set_wmclass (GTK_WINDOW (help_widget), "gimp_installation", "Gimp");
gtk_window_set_title (GTK_WINDOW (help_widget), "GIMP Installation"); gtk_window_set_title (GTK_WINDOW (help_widget), "GIMP Installation");
gtk_window_position (GTK_WINDOW (help_widget), GTK_WIN_POS_CENTER); gtk_window_position (GTK_WINDOW (help_widget), GTK_WIN_POS_CENTER);
@ -340,6 +343,9 @@ install_run (InstallCallback callback)
int executable = TRUE; int executable = TRUE;
install_widget = gtk_dialog_new (); install_widget = gtk_dialog_new ();
gtk_signal_connect (GTK_OBJECT (install_widget), "delete_event",
GTK_SIGNAL_FUNC (gtk_true),
NULL);
gtk_window_set_wmclass (GTK_WINDOW (install_widget), "installation_log", "Gimp"); gtk_window_set_wmclass (GTK_WINDOW (install_widget), "installation_log", "Gimp");
gtk_window_set_title (GTK_WINDOW (install_widget), "Installation Log"); gtk_window_set_title (GTK_WINDOW (install_widget), "Installation Log");
gtk_window_position (GTK_WINDOW (install_widget), GTK_WIN_POS_CENTER); gtk_window_position (GTK_WINDOW (install_widget), GTK_WIN_POS_CENTER);

View File

@ -289,7 +289,7 @@ gdisplay_delete_warning_callback (GtkWidget *widget,
{ {
gdisplay_cancel_warning_callback (widget, client_data); gdisplay_cancel_warning_callback (widget, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -820,7 +820,7 @@ query_box_delete_callback (GtkWidget *w,
{ {
query_box_cancel_callback (w, client_data); query_box_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void
@ -957,7 +957,7 @@ message_box_delete_callback (GtkWidget *w, GdkEvent *e, gpointer client_data)
{ {
message_box_close_callback (w, client_data); message_box_close_callback (w, client_data);
return FALSE; return TRUE;
} }

View File

@ -820,7 +820,7 @@ query_box_delete_callback (GtkWidget *w,
{ {
query_box_cancel_callback (w, client_data); query_box_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void
@ -957,7 +957,7 @@ message_box_delete_callback (GtkWidget *w, GdkEvent *e, gpointer client_data)
{ {
message_box_close_callback (w, client_data); message_box_close_callback (w, client_data);
return FALSE; return TRUE;
} }

View File

@ -68,12 +68,6 @@ static void file_open_ok_callback (GtkWidget *w,
gpointer client_data); gpointer client_data);
static void file_save_ok_callback (GtkWidget *w, static void file_save_ok_callback (GtkWidget *w,
gpointer client_data); gpointer client_data);
static void file_cancel_callback (GtkWidget *w,
gpointer client_data);
static gint file_delete_callback (GtkWidget *w,
GdkEvent *e,
gpointer client_data);
static void file_dialog_show (GtkWidget *filesel); static void file_dialog_show (GtkWidget *filesel);
static void file_dialog_hide (GtkWidget *filesel); static void file_dialog_hide (GtkWidget *filesel);
@ -478,10 +472,14 @@ file_open_callback (GtkWidget *w,
fileload = gtk_file_selection_new ("Load Image"); fileload = gtk_file_selection_new ("Load Image");
gtk_window_position (GTK_WINDOW (fileload), GTK_WIN_POS_MOUSE); gtk_window_position (GTK_WINDOW (fileload), GTK_WIN_POS_MOUSE);
gtk_window_set_wmclass (GTK_WINDOW (fileload), "load_image", "Gimp"); gtk_window_set_wmclass (GTK_WINDOW (fileload), "load_image", "Gimp");
gtk_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION (fileload)->cancel_button), "clicked", gtk_signal_connect_object (GTK_OBJECT (GTK_FILE_SELECTION (fileload)->cancel_button),
(GtkSignalFunc) file_cancel_callback, fileload); "clicked",
gtk_signal_connect (GTK_OBJECT (fileload), "delete_event", GTK_SIGNAL_FUNC (gtk_widget_hide),
(GtkSignalFunc) file_delete_callback, fileload); GTK_OBJECT (fileload));
gtk_signal_connect (GTK_OBJECT (fileload),
"delete_event",
GTK_SIGNAL_FUNC (gtk_widget_delete_hides),
NULL);
gtk_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION (fileload)->ok_button), "clicked", (GtkSignalFunc) file_open_ok_callback, fileload); gtk_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION (fileload)->ok_button), "clicked", (GtkSignalFunc) file_open_ok_callback, fileload);
} }
else else
@ -563,10 +561,14 @@ file_save_as_callback (GtkWidget *w,
filesave = gtk_file_selection_new ("Save Image"); filesave = gtk_file_selection_new ("Save Image");
gtk_window_set_wmclass (GTK_WINDOW (filesave), "save_image", "Gimp"); gtk_window_set_wmclass (GTK_WINDOW (filesave), "save_image", "Gimp");
gtk_window_position (GTK_WINDOW (filesave), GTK_WIN_POS_MOUSE); gtk_window_position (GTK_WINDOW (filesave), GTK_WIN_POS_MOUSE);
gtk_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION (filesave)->cancel_button), "clicked", gtk_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION (filesave)->cancel_button),
(GtkSignalFunc) file_cancel_callback, filesave); "clicked",
gtk_signal_connect (GTK_OBJECT (filesave), "delete_event", GTK_SIGNAL_FUNC (gtk_widget_hide),
(GtkSignalFunc) file_delete_callback, filesave); GTK_OBJECT (filesave));
gtk_signal_connect (GTK_OBJECT (filesave),
"delete_event",
GTK_SIGNAL_FUNC (gtk_widget_delete_hides),
NULL);
gtk_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION (filesave)->ok_button), "clicked", (GtkSignalFunc) file_save_ok_callback, filesave); gtk_signal_connect (GTK_OBJECT (GTK_FILE_SELECTION (filesave)->ok_button), "clicked", (GtkSignalFunc) file_save_ok_callback, filesave);
} }
else else
@ -882,7 +884,7 @@ file_save_ok_callback (GtkWidget *w,
else else
{ {
s = g_string_new (NULL); s = g_string_new (NULL);
g_string_sprintf (s, "%s is an irregular file", raw_filename, g_strerror(errno)); g_string_sprintf (s, "%s is an irregular file (%s)", raw_filename, g_strerror(errno));
} }
} }
else if (file_save (image_ID, filename, raw_filename)) else if (file_save (image_ID, filename, raw_filename))
@ -901,23 +903,6 @@ file_save_ok_callback (GtkWidget *w,
g_string_free (s, TRUE); g_string_free (s, TRUE);
} }
static gint
file_delete_callback (GtkWidget *w,
GdkEvent *e,
gpointer client_data)
{
file_cancel_callback (w, client_data);
return FALSE;
}
static void
file_cancel_callback (GtkWidget *w,
gpointer client_data)
{
file_dialog_hide (client_data);
}
static void static void
file_dialog_show (GtkWidget *filesel) file_dialog_show (GtkWidget *filesel)
{ {
@ -965,7 +950,8 @@ file_overwrite (char *filename, char* raw_filename)
gtk_window_set_title (GTK_WINDOW (overwrite_box->obox), "File Exists!"); gtk_window_set_title (GTK_WINDOW (overwrite_box->obox), "File Exists!");
gtk_window_position (GTK_WINDOW (overwrite_box->obox), GTK_WIN_POS_MOUSE); gtk_window_position (GTK_WINDOW (overwrite_box->obox), GTK_WIN_POS_MOUSE);
gtk_signal_connect (GTK_OBJECT (overwrite_box->obox), "delete_event", gtk_signal_connect (GTK_OBJECT (overwrite_box->obox),
"delete_event",
(GtkSignalFunc) file_overwrite_delete_callback, (GtkSignalFunc) file_overwrite_delete_callback,
overwrite_box); overwrite_box);
@ -1028,7 +1014,7 @@ file_overwrite_delete_callback (GtkWidget *w,
{ {
file_overwrite_no_callback (w, client_data); file_overwrite_no_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -289,7 +289,7 @@ gdisplay_delete_warning_callback (GtkWidget *widget,
{ {
gdisplay_cancel_warning_callback (widget, client_data); gdisplay_cancel_warning_callback (widget, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -485,7 +485,7 @@ offset_delete_callback (GtkWidget *widget,
{ {
offset_cancel_callback (widget, data); offset_cancel_callback (widget, data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -529,6 +529,7 @@ indexed_ok_callback (GtkWidget *widget,
gtk_widget_destroy (dialog->shell); gtk_widget_destroy (dialog->shell);
g_free (dialog); g_free (dialog);
dialog = NULL;
} }
static gint static gint
@ -538,7 +539,7 @@ indexed_delete_callback (GtkWidget *w,
{ {
indexed_cancel_callback (w, client_data); indexed_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void
@ -550,6 +551,7 @@ indexed_cancel_callback (GtkWidget *widget,
dialog = (IndexedDialog *) client_data; dialog = (IndexedDialog *) client_data;
gtk_widget_destroy (dialog->shell); gtk_widget_destroy (dialog->shell);
g_free (dialog); g_free (dialog);
dialog = NULL;
} }
static void static void

View File

@ -485,7 +485,7 @@ offset_delete_callback (GtkWidget *widget,
{ {
offset_cancel_callback (widget, data); offset_cancel_callback (widget, data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -552,7 +552,7 @@ named_buffer_dialog_delete_callback (GtkWidget *w,
{ {
named_buffer_cancel_callback (w, client_data); named_buffer_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -1255,7 +1255,7 @@ ed_close_callback(GtkWidget *widget, gpointer client_data)
if (GTK_WIDGET_VISIBLE(g_editor->shell)) if (GTK_WIDGET_VISIBLE(g_editor->shell))
gtk_widget_hide(g_editor->shell); gtk_widget_hide(g_editor->shell);
return FALSE; return TRUE;
} /* ed_close_callback */ } /* ed_close_callback */

View File

@ -1255,7 +1255,7 @@ ed_close_callback(GtkWidget *widget, gpointer client_data)
if (GTK_WIDGET_VISIBLE(g_editor->shell)) if (GTK_WIDGET_VISIBLE(g_editor->shell))
gtk_widget_hide(g_editor->shell); gtk_widget_hide(g_editor->shell);
return FALSE; return TRUE;
} /* ed_close_callback */ } /* ed_close_callback */

View File

@ -122,8 +122,6 @@ about_dialog_create (int timeout)
gtk_window_position (GTK_WINDOW (about_dialog), GTK_WIN_POS_CENTER); gtk_window_position (GTK_WINDOW (about_dialog), GTK_WIN_POS_CENTER);
gtk_signal_connect (GTK_OBJECT (about_dialog), "destroy", gtk_signal_connect (GTK_OBJECT (about_dialog), "destroy",
(GtkSignalFunc) about_dialog_destroy, NULL); (GtkSignalFunc) about_dialog_destroy, NULL);
gtk_signal_connect (GTK_OBJECT (about_dialog), "delete_event",
(GtkSignalFunc) about_dialog_destroy, NULL);
gtk_signal_connect (GTK_OBJECT (about_dialog), "unmap_event", gtk_signal_connect (GTK_OBJECT (about_dialog), "unmap_event",
(GtkSignalFunc) about_dialog_unmap, NULL); (GtkSignalFunc) about_dialog_unmap, NULL);
gtk_signal_connect (GTK_OBJECT (about_dialog), "button_press_event", gtk_signal_connect (GTK_OBJECT (about_dialog), "button_press_event",

View File

@ -734,7 +734,7 @@ brush_select_delete_callback (GtkWidget *w, GdkEvent *e, gpointer data)
{ {
brush_select_close_callback (w, data); brush_select_close_callback (w, data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -1689,7 +1689,7 @@ new_channel_query_delete_callback (GtkWidget *w,
{ {
new_channel_query_cancel_callback (w, client_data); new_channel_query_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void
@ -1868,7 +1868,7 @@ edit_channel_query_delete_callback (GtkWidget *w,
{ {
edit_channel_query_cancel_callback (w, client_data); edit_channel_query_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -788,7 +788,7 @@ color_select_delete_callback (GtkWidget *w,
{ {
color_select_cancel_callback (w, client_data); color_select_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }

View File

@ -232,7 +232,7 @@ file_new_delete_callback (GtkWidget *widget,
{ {
file_new_cancel_callback (widget, data); file_new_cancel_callback (widget, data);
return FALSE; return TRUE;
} }
@ -751,7 +751,7 @@ file_prefs_delete_callback (GtkWidget *widget,
file_prefs_cancel_callback (widget, dlg); file_prefs_cancel_callback (widget, dlg);
/* the widget is already destroyed here no need to try again */ /* the widget is already destroyed here no need to try again */
return FALSE; return TRUE;
} }
static void static void
@ -2457,7 +2457,7 @@ image_delete_callback (GtkWidget *w,
{ {
image_cancel_callback (w, client_data); image_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }

View File

@ -1255,7 +1255,7 @@ ed_close_callback(GtkWidget *widget, gpointer client_data)
if (GTK_WIDGET_VISIBLE(g_editor->shell)) if (GTK_WIDGET_VISIBLE(g_editor->shell))
gtk_widget_hide(g_editor->shell); gtk_widget_hide(g_editor->shell);
return FALSE; return TRUE;
} /* ed_close_callback */ } /* ed_close_callback */

View File

@ -232,7 +232,7 @@ file_new_delete_callback (GtkWidget *widget,
{ {
file_new_cancel_callback (widget, data); file_new_cancel_callback (widget, data);
return FALSE; return TRUE;
} }
@ -751,7 +751,7 @@ file_prefs_delete_callback (GtkWidget *widget,
file_prefs_cancel_callback (widget, dlg); file_prefs_cancel_callback (widget, dlg);
/* the widget is already destroyed here no need to try again */ /* the widget is already destroyed here no need to try again */
return FALSE; return TRUE;
} }
static void static void
@ -2457,7 +2457,7 @@ image_delete_callback (GtkWidget *w,
{ {
image_cancel_callback (w, client_data); image_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }

View File

@ -200,11 +200,11 @@ info_dialog_update (InfoDialog *idialog)
static gint static gint
info_dialog_delete_callback (GtkWidget *w, info_dialog_delete_callback (GtkWidget *w,
GdkEvent *e, GdkEvent *e,
gpointer client_data) { gpointer client_data)
{
info_dialog_popdown ((InfoDialog *) client_data); info_dialog_popdown ((InfoDialog *) client_data);
return FALSE;
return TRUE;
} }

View File

@ -1809,7 +1809,7 @@ lc_dialog_close_callback (GtkWidget *w,
gpointer client_data) gpointer client_data)
{ {
if (!lc_shell) if (!lc_shell)
return TRUE; return FALSE;
if (GTK_WIDGET_VISIBLE (lc_shell)) if (GTK_WIDGET_VISIBLE (lc_shell))
gtk_widget_hide (lc_shell); gtk_widget_hide (lc_shell);
@ -1817,7 +1817,7 @@ lc_dialog_close_callback (GtkWidget *w,
if (layersD) if (layersD)
layersD->gimage_id = -1; layersD->gimage_id = -1;
return FALSE; return TRUE;
} }
@ -2910,7 +2910,7 @@ new_layer_query_delete_callback (GtkWidget *w,
{ {
new_layer_query_cancel_callback (w, client_data); new_layer_query_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
@ -3142,7 +3142,7 @@ edit_layer_query_delete_callback (GtkWidget *w,
{ {
edit_layer_query_cancel_callback (w, client_data); edit_layer_query_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void
@ -3253,7 +3253,7 @@ add_mask_query_delete_callback (GtkWidget *w,
{ {
add_mask_query_cancel_callback (w, client_data); add_mask_query_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void
@ -3428,7 +3428,7 @@ apply_mask_query_delete_callback (GtkWidget *w,
{ {
apply_mask_query_cancel_callback (w, client_data); apply_mask_query_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void
@ -3551,7 +3551,7 @@ scale_layer_query_delete_callback (GtkWidget *w,
{ {
scale_layer_query_cancel_callback (w, client_data); scale_layer_query_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void
@ -3672,7 +3672,7 @@ resize_layer_query_delete_callback (GtkWidget *w,
{ {
resize_layer_query_cancel_callback (w, client_data); resize_layer_query_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void
@ -3772,7 +3772,7 @@ layer_merge_query_delete_callback (GtkWidget *w,
{ {
layer_merge_query_cancel_callback (w, client_data); layer_merge_query_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -883,7 +883,7 @@ palette_dialog_delete_callback (GtkWidget *w,
{ {
palette_close_callback (w, client_data); palette_close_callback (w, client_data);
return FALSE; return TRUE;
} }

View File

@ -653,7 +653,7 @@ pattern_select_delete_callback (GtkWidget *w,
{ {
pattern_select_close_callback (w, client_data); pattern_select_close_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -57,6 +57,8 @@ tips_dialog_create ()
gtk_window_position (GTK_WINDOW (tips_dialog), GTK_WIN_POS_CENTER); gtk_window_position (GTK_WINDOW (tips_dialog), GTK_WIN_POS_CENTER);
gtk_signal_connect (GTK_OBJECT (tips_dialog), "delete_event", gtk_signal_connect (GTK_OBJECT (tips_dialog), "delete_event",
GTK_SIGNAL_FUNC (tips_dialog_hide), NULL); GTK_SIGNAL_FUNC (tips_dialog_hide), NULL);
/* destroy the tips window if the mainlevel gtk_main() function is left */
gtk_quit_add (1, (GtkFunction) gtk_widget_destroy, tips_dialog);
vbox = gtk_vbox_new (FALSE, 0); vbox = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (tips_dialog), vbox); gtk_container_add (GTK_CONTAINER (tips_dialog), vbox);
@ -160,7 +162,7 @@ tips_dialog_hide (GtkWidget *widget,
g_list_free (update); g_list_free (update);
g_list_free (remove); g_list_free (remove);
return FALSE; return TRUE;
} }
static int static int

View File

@ -97,6 +97,9 @@ install_help (InstallCallback callback)
GdkFont *font; GdkFont *font;
help_widget = gtk_dialog_new (); help_widget = gtk_dialog_new ();
gtk_signal_connect (GTK_OBJECT (help_widget), "delete_event",
GTK_SIGNAL_FUNC (gtk_true),
NULL);
gtk_window_set_wmclass (GTK_WINDOW (help_widget), "gimp_installation", "Gimp"); gtk_window_set_wmclass (GTK_WINDOW (help_widget), "gimp_installation", "Gimp");
gtk_window_set_title (GTK_WINDOW (help_widget), "GIMP Installation"); gtk_window_set_title (GTK_WINDOW (help_widget), "GIMP Installation");
gtk_window_position (GTK_WINDOW (help_widget), GTK_WIN_POS_CENTER); gtk_window_position (GTK_WINDOW (help_widget), GTK_WIN_POS_CENTER);
@ -340,6 +343,9 @@ install_run (InstallCallback callback)
int executable = TRUE; int executable = TRUE;
install_widget = gtk_dialog_new (); install_widget = gtk_dialog_new ();
gtk_signal_connect (GTK_OBJECT (install_widget), "delete_event",
GTK_SIGNAL_FUNC (gtk_true),
NULL);
gtk_window_set_wmclass (GTK_WINDOW (install_widget), "installation_log", "Gimp"); gtk_window_set_wmclass (GTK_WINDOW (install_widget), "installation_log", "Gimp");
gtk_window_set_title (GTK_WINDOW (install_widget), "Installation Log"); gtk_window_set_title (GTK_WINDOW (install_widget), "Installation Log");
gtk_window_position (GTK_WINDOW (install_widget), GTK_WIN_POS_CENTER); gtk_window_position (GTK_WINDOW (install_widget), GTK_WIN_POS_CENTER);

View File

@ -550,7 +550,7 @@ histogram_tool_delete_callback (GtkWidget *widget,
{ {
histogram_tool_cancel_callback (widget, client_data); histogram_tool_cancel_callback (widget, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -754,7 +754,7 @@ hue_saturation_delete_callback (GtkWidget *w,
{ {
hue_saturation_cancel_callback (w, client_data); hue_saturation_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -73,7 +73,6 @@ static void indexed_palette_update (int);
/* indexed palette menu callbacks */ /* indexed palette menu callbacks */
static void indexed_palette_close_callback (GtkWidget *, gpointer); static void indexed_palette_close_callback (GtkWidget *, gpointer);
static void indexed_palette_select_callback (int, int, int, ColorSelectState, void *); static void indexed_palette_select_callback (int, int, int, ColorSelectState, void *);
static gint indexed_palette_delete_callback (GtkWidget *, GdkEvent *, gpointer);
/* event callback */ /* event callback */
static gint indexed_palette_area_events (GtkWidget *, GdkEvent *); static gint indexed_palette_area_events (GtkWidget *, GdkEvent *);
@ -137,8 +136,8 @@ indexed_palette_create (int gimage_id)
gtk_window_add_accelerator_table (GTK_WINDOW (indexedP->shell), table); gtk_window_add_accelerator_table (GTK_WINDOW (indexedP->shell), table);
gtk_signal_connect (GTK_OBJECT (indexedP->shell), "delete_event", gtk_signal_connect (GTK_OBJECT (indexedP->shell), "delete_event",
GTK_SIGNAL_FUNC (indexed_palette_delete_callback), GTK_SIGNAL_FUNC (gtk_widget_delete_hides),
indexedP); NULL);
indexedP->vbox = vbox = gtk_vbox_new (FALSE, 1); indexedP->vbox = vbox = gtk_vbox_new (FALSE, 1);
gtk_container_border_width (GTK_CONTAINER (vbox), 1); gtk_container_border_width (GTK_CONTAINER (vbox), 1);
@ -153,6 +152,10 @@ indexed_palette_create (int gimage_id)
gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2); gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2);
indexedP->image_option_menu = gtk_option_menu_new (); indexedP->image_option_menu = gtk_option_menu_new ();
indexedP->image_menu = create_image_menu (&gimage_id, &default_index, image_menu_callback); indexedP->image_menu = create_image_menu (&gimage_id, &default_index, image_menu_callback);
gtk_signal_connect (GTK_OBJECT (indexedP->image_menu),
"destroy",
GTK_SIGNAL_FUNC (gtk_widget_destroyed),
&indexedP->image_menu);
gtk_box_pack_start (GTK_BOX (util_box), indexedP->image_option_menu, TRUE, TRUE, 2); gtk_box_pack_start (GTK_BOX (util_box), indexedP->image_option_menu, TRUE, TRUE, 2);
gtk_widget_show (indexedP->image_option_menu); gtk_widget_show (indexedP->image_option_menu);
@ -237,7 +240,8 @@ indexed_palette_update_image_list ()
return; return;
gtk_option_menu_remove_menu (GTK_OPTION_MENU (indexedP->image_option_menu)); gtk_option_menu_remove_menu (GTK_OPTION_MENU (indexedP->image_option_menu));
gtk_widget_destroy (indexedP->image_menu); if (indexedP->image_menu)
g_warning ("indexedP->image_menu still exists?");
default_id = indexedP->gimage_id; default_id = indexedP->gimage_id;
indexedP->image_menu = create_image_menu (&default_id, &default_index, image_menu_callback); indexedP->image_menu = create_image_menu (&default_id, &default_index, image_menu_callback);
@ -343,16 +347,6 @@ indexed_palette_update (int gimage_id)
} }
} }
static gint
indexed_palette_delete_callback (GtkWidget *w,
GdkEvent *e,
gpointer client_data)
{
indexed_palette_close_callback (w, client_data);
return FALSE;
}
static void static void
indexed_palette_close_callback (GtkWidget *w, indexed_palette_close_callback (GtkWidget *w,
gpointer client_data) gpointer client_data)

View File

@ -200,11 +200,11 @@ info_dialog_update (InfoDialog *idialog)
static gint static gint
info_dialog_delete_callback (GtkWidget *w, info_dialog_delete_callback (GtkWidget *w,
GdkEvent *e, GdkEvent *e,
gpointer client_data) { gpointer client_data)
{
info_dialog_popdown ((InfoDialog *) client_data); info_dialog_popdown ((InfoDialog *) client_data);
return FALSE;
return TRUE;
} }

View File

@ -97,6 +97,9 @@ install_help (InstallCallback callback)
GdkFont *font; GdkFont *font;
help_widget = gtk_dialog_new (); help_widget = gtk_dialog_new ();
gtk_signal_connect (GTK_OBJECT (help_widget), "delete_event",
GTK_SIGNAL_FUNC (gtk_true),
NULL);
gtk_window_set_wmclass (GTK_WINDOW (help_widget), "gimp_installation", "Gimp"); gtk_window_set_wmclass (GTK_WINDOW (help_widget), "gimp_installation", "Gimp");
gtk_window_set_title (GTK_WINDOW (help_widget), "GIMP Installation"); gtk_window_set_title (GTK_WINDOW (help_widget), "GIMP Installation");
gtk_window_position (GTK_WINDOW (help_widget), GTK_WIN_POS_CENTER); gtk_window_position (GTK_WINDOW (help_widget), GTK_WIN_POS_CENTER);
@ -340,6 +343,9 @@ install_run (InstallCallback callback)
int executable = TRUE; int executable = TRUE;
install_widget = gtk_dialog_new (); install_widget = gtk_dialog_new ();
gtk_signal_connect (GTK_OBJECT (install_widget), "delete_event",
GTK_SIGNAL_FUNC (gtk_true),
NULL);
gtk_window_set_wmclass (GTK_WINDOW (install_widget), "installation_log", "Gimp"); gtk_window_set_wmclass (GTK_WINDOW (install_widget), "installation_log", "Gimp");
gtk_window_set_title (GTK_WINDOW (install_widget), "Installation Log"); gtk_window_set_title (GTK_WINDOW (install_widget), "Installation Log");
gtk_window_position (GTK_WINDOW (install_widget), GTK_WIN_POS_CENTER); gtk_window_position (GTK_WINDOW (install_widget), GTK_WIN_POS_CENTER);

View File

@ -820,7 +820,7 @@ query_box_delete_callback (GtkWidget *w,
{ {
query_box_cancel_callback (w, client_data); query_box_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void
@ -957,7 +957,7 @@ message_box_delete_callback (GtkWidget *w, GdkEvent *e, gpointer client_data)
{ {
message_box_close_callback (w, client_data); message_box_close_callback (w, client_data);
return FALSE; return TRUE;
} }

View File

@ -1809,7 +1809,7 @@ lc_dialog_close_callback (GtkWidget *w,
gpointer client_data) gpointer client_data)
{ {
if (!lc_shell) if (!lc_shell)
return TRUE; return FALSE;
if (GTK_WIDGET_VISIBLE (lc_shell)) if (GTK_WIDGET_VISIBLE (lc_shell))
gtk_widget_hide (lc_shell); gtk_widget_hide (lc_shell);
@ -1817,7 +1817,7 @@ lc_dialog_close_callback (GtkWidget *w,
if (layersD) if (layersD)
layersD->gimage_id = -1; layersD->gimage_id = -1;
return FALSE; return TRUE;
} }
@ -2910,7 +2910,7 @@ new_layer_query_delete_callback (GtkWidget *w,
{ {
new_layer_query_cancel_callback (w, client_data); new_layer_query_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
@ -3142,7 +3142,7 @@ edit_layer_query_delete_callback (GtkWidget *w,
{ {
edit_layer_query_cancel_callback (w, client_data); edit_layer_query_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void
@ -3253,7 +3253,7 @@ add_mask_query_delete_callback (GtkWidget *w,
{ {
add_mask_query_cancel_callback (w, client_data); add_mask_query_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void
@ -3428,7 +3428,7 @@ apply_mask_query_delete_callback (GtkWidget *w,
{ {
apply_mask_query_cancel_callback (w, client_data); apply_mask_query_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void
@ -3551,7 +3551,7 @@ scale_layer_query_delete_callback (GtkWidget *w,
{ {
scale_layer_query_cancel_callback (w, client_data); scale_layer_query_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void
@ -3672,7 +3672,7 @@ resize_layer_query_delete_callback (GtkWidget *w,
{ {
resize_layer_query_cancel_callback (w, client_data); resize_layer_query_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void
@ -3772,7 +3772,7 @@ layer_merge_query_delete_callback (GtkWidget *w,
{ {
layer_merge_query_cancel_callback (w, client_data); layer_merge_query_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -1090,7 +1090,7 @@ levels_delete_callback (GtkWidget *w,
{ {
levels_cancel_callback (w, client_data); levels_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -883,7 +883,7 @@ palette_dialog_delete_callback (GtkWidget *w,
{ {
palette_close_callback (w, client_data); palette_close_callback (w, client_data);
return FALSE; return TRUE;
} }

View File

@ -653,7 +653,7 @@ pattern_select_delete_callback (GtkWidget *w,
{ {
pattern_select_close_callback (w, client_data); pattern_select_close_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -376,7 +376,7 @@ posterize_delete_callback (GtkWidget *w, GdkEvent *e, gpointer data)
{ {
posterize_cancel_callback (w, data); posterize_cancel_callback (w, data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -615,7 +615,7 @@ text_delete_callback (GtkWidget *w,
{ {
text_cancel_callback (w, client_data); text_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -512,7 +512,7 @@ threshold_delete_callback (GtkWidget *w,
{ {
threshold_cancel_callback (w, client_data); threshold_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -57,6 +57,8 @@ tips_dialog_create ()
gtk_window_position (GTK_WINDOW (tips_dialog), GTK_WIN_POS_CENTER); gtk_window_position (GTK_WINDOW (tips_dialog), GTK_WIN_POS_CENTER);
gtk_signal_connect (GTK_OBJECT (tips_dialog), "delete_event", gtk_signal_connect (GTK_OBJECT (tips_dialog), "delete_event",
GTK_SIGNAL_FUNC (tips_dialog_hide), NULL); GTK_SIGNAL_FUNC (tips_dialog_hide), NULL);
/* destroy the tips window if the mainlevel gtk_main() function is left */
gtk_quit_add (1, (GtkFunction) gtk_widget_destroy, tips_dialog);
vbox = gtk_vbox_new (FALSE, 0); vbox = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (tips_dialog), vbox); gtk_container_add (GTK_CONTAINER (tips_dialog), vbox);
@ -160,7 +162,7 @@ tips_dialog_hide (GtkWidget *widget,
g_list_free (update); g_list_free (update);
g_list_free (remove); g_list_free (remove);
return FALSE; return TRUE;
} }
static int static int

View File

@ -533,7 +533,7 @@ tools_options_delete_callback (GtkWidget *w,
{ {
tools_options_dialog_callback (w, client_data); tools_options_dialog_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -505,7 +505,7 @@ brightness_contrast_delete_callback (GtkWidget *w,
{ {
brightness_contrast_cancel_callback (w, d); brightness_contrast_cancel_callback (w, d);
return FALSE; return TRUE;
} }
static void static void

View File

@ -852,7 +852,7 @@ by_color_select_delete_callback (GtkWidget *w,
{ {
by_color_select_close_callback (w, client_data); by_color_select_close_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -643,7 +643,7 @@ color_balance_delete_callback (GtkWidget *w,
{ {
color_balance_cancel_callback (w, client_data); color_balance_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -1001,7 +1001,7 @@ curves_delete_callback (GtkWidget *w,
{ {
curves_cancel_callback (w, data); curves_cancel_callback (w, data);
return FALSE; return TRUE;
} }
static void static void
curves_preview_update (GtkWidget *w, curves_preview_update (GtkWidget *w,

View File

@ -505,7 +505,7 @@ brightness_contrast_delete_callback (GtkWidget *w,
{ {
brightness_contrast_cancel_callback (w, d); brightness_contrast_cancel_callback (w, d);
return FALSE; return TRUE;
} }
static void static void

View File

@ -852,7 +852,7 @@ by_color_select_delete_callback (GtkWidget *w,
{ {
by_color_select_close_callback (w, client_data); by_color_select_close_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -643,7 +643,7 @@ color_balance_delete_callback (GtkWidget *w,
{ {
color_balance_cancel_callback (w, client_data); color_balance_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -1001,7 +1001,7 @@ curves_delete_callback (GtkWidget *w,
{ {
curves_cancel_callback (w, data); curves_cancel_callback (w, data);
return FALSE; return TRUE;
} }
static void static void
curves_preview_update (GtkWidget *w, curves_preview_update (GtkWidget *w,

View File

@ -550,7 +550,7 @@ histogram_tool_delete_callback (GtkWidget *widget,
{ {
histogram_tool_cancel_callback (widget, client_data); histogram_tool_cancel_callback (widget, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -754,7 +754,7 @@ hue_saturation_delete_callback (GtkWidget *w,
{ {
hue_saturation_cancel_callback (w, client_data); hue_saturation_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -1090,7 +1090,7 @@ levels_delete_callback (GtkWidget *w,
{ {
levels_cancel_callback (w, client_data); levels_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -376,7 +376,7 @@ posterize_delete_callback (GtkWidget *w, GdkEvent *e, gpointer data)
{ {
posterize_cancel_callback (w, data); posterize_cancel_callback (w, data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -615,7 +615,7 @@ text_delete_callback (GtkWidget *w,
{ {
text_cancel_callback (w, client_data); text_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -512,7 +512,7 @@ threshold_delete_callback (GtkWidget *w,
{ {
threshold_cancel_callback (w, client_data); threshold_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -550,7 +550,7 @@ histogram_tool_delete_callback (GtkWidget *widget,
{ {
histogram_tool_cancel_callback (widget, client_data); histogram_tool_cancel_callback (widget, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -754,7 +754,7 @@ hue_saturation_delete_callback (GtkWidget *w,
{ {
hue_saturation_cancel_callback (w, client_data); hue_saturation_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -1090,7 +1090,7 @@ levels_delete_callback (GtkWidget *w,
{ {
levels_cancel_callback (w, client_data); levels_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -376,7 +376,7 @@ posterize_delete_callback (GtkWidget *w, GdkEvent *e, gpointer data)
{ {
posterize_cancel_callback (w, data); posterize_cancel_callback (w, data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -615,7 +615,7 @@ text_delete_callback (GtkWidget *w,
{ {
text_cancel_callback (w, client_data); text_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -512,7 +512,7 @@ threshold_delete_callback (GtkWidget *w,
{ {
threshold_cancel_callback (w, client_data); threshold_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -533,7 +533,7 @@ tools_options_delete_callback (GtkWidget *w,
{ {
tools_options_dialog_callback (w, client_data); tools_options_dialog_callback (w, client_data);
return FALSE; return TRUE;
} }
static void static void

View File

@ -97,6 +97,9 @@ install_help (InstallCallback callback)
GdkFont *font; GdkFont *font;
help_widget = gtk_dialog_new (); help_widget = gtk_dialog_new ();
gtk_signal_connect (GTK_OBJECT (help_widget), "delete_event",
GTK_SIGNAL_FUNC (gtk_true),
NULL);
gtk_window_set_wmclass (GTK_WINDOW (help_widget), "gimp_installation", "Gimp"); gtk_window_set_wmclass (GTK_WINDOW (help_widget), "gimp_installation", "Gimp");
gtk_window_set_title (GTK_WINDOW (help_widget), "GIMP Installation"); gtk_window_set_title (GTK_WINDOW (help_widget), "GIMP Installation");
gtk_window_position (GTK_WINDOW (help_widget), GTK_WIN_POS_CENTER); gtk_window_position (GTK_WINDOW (help_widget), GTK_WIN_POS_CENTER);
@ -340,6 +343,9 @@ install_run (InstallCallback callback)
int executable = TRUE; int executable = TRUE;
install_widget = gtk_dialog_new (); install_widget = gtk_dialog_new ();
gtk_signal_connect (GTK_OBJECT (install_widget), "delete_event",
GTK_SIGNAL_FUNC (gtk_true),
NULL);
gtk_window_set_wmclass (GTK_WINDOW (install_widget), "installation_log", "Gimp"); gtk_window_set_wmclass (GTK_WINDOW (install_widget), "installation_log", "Gimp");
gtk_window_set_title (GTK_WINDOW (install_widget), "Installation Log"); gtk_window_set_title (GTK_WINDOW (install_widget), "Installation Log");
gtk_window_position (GTK_WINDOW (install_widget), GTK_WIN_POS_CENTER); gtk_window_position (GTK_WINDOW (install_widget), GTK_WIN_POS_CENTER);

View File

@ -1255,7 +1255,7 @@ ed_close_callback(GtkWidget *widget, gpointer client_data)
if (GTK_WIDGET_VISIBLE(g_editor->shell)) if (GTK_WIDGET_VISIBLE(g_editor->shell))
gtk_widget_hide(g_editor->shell); gtk_widget_hide(g_editor->shell);
return FALSE; return TRUE;
} /* ed_close_callback */ } /* ed_close_callback */

View File

@ -883,7 +883,7 @@ palette_dialog_delete_callback (GtkWidget *w,
{ {
palette_close_callback (w, client_data); palette_close_callback (w, client_data);
return FALSE; return TRUE;
} }

View File

@ -788,7 +788,7 @@ color_select_delete_callback (GtkWidget *w,
{ {
color_select_cancel_callback (w, client_data); color_select_cancel_callback (w, client_data);
return FALSE; return TRUE;
} }