hide the dialog on delete. (make_file_dlg): hide the dialog on delete.

Sun Mar 15 03:54:58 1998  Tim Janik  <timj@gimp.org>

        * plug-ins/flame/flame.c (edit_callback): hide the dialog on delete.
                (make_file_dlg): hide the dialog on delete.

                        * plug-ins/ifscompose/ifscompose.c (ifs_options_dialog): hide the dialog
                                on delete.

                                        * app/interface.c (toolbox_delete): handle WM delete of toolbox
                                                correctly.
                                                        (gdisplay_delete): don't close image window without confirmation.
This commit is contained in:
Tim Janik 1998-03-15 04:48:18 +00:00 committed by Tim Janik
parent 83d3ce6535
commit a92e96fe1a
3 changed files with 22 additions and 2 deletions

View File

@ -1,5 +1,11 @@
Sun Mar 15 03:54:58 1998 Tim Janik <timj@gimp.org>
* plug-ins/flame/flame.c (edit_callback): hide the dialog on delete.
(make_file_dlg): hide the dialog on delete.
* plug-ins/ifscompose/ifscompose.c (ifs_options_dialog): hide the dialog
on delete.
* app/interface.c (toolbox_delete): handle WM delete of toolbox
correctly.
(gdisplay_delete): don't close image window without confirmation.

View File

@ -386,9 +386,15 @@ static void file_cancel_callback(GtkWidget * widget, gpointer data) {
gtk_widget_hide (file_dlg);
}
static void make_file_dlg() {
static void
make_file_dlg() {
file_dlg = gtk_file_selection_new ("Load/Store Flame");
gtk_window_position (GTK_WINDOW (file_dlg), GTK_WIN_POS_MOUSE);
gtk_signal_connect(GTK_OBJECT (file_dlg),
"delete_event",
(GtkSignalFunc) gtk_widget_hide_on_delete,
NULL);
gtk_quit_add (1, gtk_widget_destroy, file_dlg);
gtk_signal_connect(GTK_OBJECT (GTK_FILE_SELECTION (file_dlg)->cancel_button),
"clicked", (GtkSignalFunc) file_cancel_callback, file_dlg);
gtk_signal_connect(GTK_OBJECT (GTK_FILE_SELECTION (file_dlg)->ok_button),
@ -504,7 +510,8 @@ static void preview_clicked(GtkWidget * widget, gpointer data) {
}
static void edit_callback(GtkWidget * widget, gpointer data) {
static void
edit_callback(GtkWidget * widget, gpointer data) {
edit_cp = config.cp;
if (0 == edit_dlg) {
GtkWidget *table;
@ -518,6 +525,9 @@ static void edit_callback(GtkWidget * widget, gpointer data) {
gtk_window_position(GTK_WINDOW(edit_dlg), GTK_WIN_POS_MOUSE);
gtk_signal_connect(GTK_OBJECT(edit_dlg), "destroy",
(GtkSignalFunc) edit_close_callback, NULL);
gtk_quit_add (1, gtk_widget_destroy, edit_dlg);
gtk_signal_connect(GTK_OBJECT(edit_dlg), "delete_event",
(GtkSignalFunc) gtk_widget_hide_on_delete, NULL);
button = gtk_button_new_with_label("Ok");
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);

View File

@ -1207,6 +1207,10 @@ ifs_options_dialog()
ifsOptD->dialog = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(ifsOptD->dialog),"IfsCompose Options");
gtk_window_position(GTK_WINDOW(ifsOptD->dialog), GTK_WIN_POS_MOUSE);
gtk_signal_connect (GTK_OBJECT(ifsOptD->dialog),
"delete_event",
GTK_SIGNAL_FUNC (gtk_widget_hide_on_delete),
&ifsOptD->dialog);
gtk_signal_connect(GTK_OBJECT(ifsOptD->dialog), "destroy",
(GtkSignalFunc) ifs_options_close_callback,
NULL);