From b48e07f7ca31c590538ac2a17a630c64e8b0fd82 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Fri, 4 Oct 2002 21:00:27 +0000 Subject: new function, emit cancelled so the folder selector button will sensitize 2002-10-04 Chris Toshok * e-shell-folder-selection-dialog.c (delete_event_cb): new function, emit cancelled so the folder selector button will sensitize the parent window again. (e_shell_folder_selection_dialog_construct): connect the delete_event signal. svn path=/trunk/; revision=18327 --- shell/ChangeLog | 8 ++++++++ shell/e-shell-folder-selection-dialog.c | 12 ++++++++++++ 2 files changed, 20 insertions(+) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index f17b18602e..70909f09ff 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,11 @@ +2002-10-04 Chris Toshok + + * e-shell-folder-selection-dialog.c (delete_event_cb): new + function, emit cancelled so the folder selector button will + sensitize the parent window again. + (e_shell_folder_selection_dialog_construct): connect the + delete_event signal. + 2002-09-30 Aaron Weber * importer/import.glade: Import Assistant vs. Importer assistant. diff --git a/shell/e-shell-folder-selection-dialog.c b/shell/e-shell-folder-selection-dialog.c index 62a9b2bb08..64884c4445 100644 --- a/shell/e-shell-folder-selection-dialog.c +++ b/shell/e-shell-folder-selection-dialog.c @@ -317,6 +317,16 @@ folder_selected_cb (EStorageSetView *storage_set_view, gnome_dialog_set_sensitive (GNOME_DIALOG (dialog), 0, FALSE); } +static gint +delete_event_cb (GtkWidget *w, GdkEvent *event, gpointer data) +{ + EShellFolderSelectionDialog *dialog = data; + + gtk_signal_emit (GTK_OBJECT (dialog), signals[CANCELLED]); + + return TRUE; +} + static void double_click_cb (EStorageSetView *essv, int row, @@ -374,6 +384,8 @@ e_shell_folder_selection_dialog_construct (EShellFolderSelectionDialog *folder_s gtk_window_set_default_size (GTK_WINDOW (folder_selection_dialog), 350, 300); gtk_window_set_modal (GTK_WINDOW (folder_selection_dialog), TRUE); gtk_window_set_title (GTK_WINDOW (folder_selection_dialog), title); + gtk_signal_connect (GTK_OBJECT (folder_selection_dialog), "delete_event", + GTK_SIGNAL_FUNC (delete_event_cb), folder_selection_dialog); gnome_dialog_append_buttons (GNOME_DIALOG (folder_selection_dialog), GNOME_STOCK_BUTTON_OK, -- cgit v1.2.3