diff options
author | Chris Toshok <toshok@ximian.com> | 2002-10-05 05:00:27 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-10-05 05:00:27 +0800 |
commit | b48e07f7ca31c590538ac2a17a630c64e8b0fd82 (patch) | |
tree | 4fd9f750256c4cfb0b82f498a85d6d188cd3f603 | |
parent | e23ff89a6059d074b6dfadab39b223271c05db43 (diff) | |
download | gsoc2013-evolution-b48e07f7ca31c590538ac2a17a630c64e8b0fd82.tar gsoc2013-evolution-b48e07f7ca31c590538ac2a17a630c64e8b0fd82.tar.gz gsoc2013-evolution-b48e07f7ca31c590538ac2a17a630c64e8b0fd82.tar.bz2 gsoc2013-evolution-b48e07f7ca31c590538ac2a17a630c64e8b0fd82.tar.lz gsoc2013-evolution-b48e07f7ca31c590538ac2a17a630c64e8b0fd82.tar.xz gsoc2013-evolution-b48e07f7ca31c590538ac2a17a630c64e8b0fd82.tar.zst gsoc2013-evolution-b48e07f7ca31c590538ac2a17a630c64e8b0fd82.zip |
new function, emit cancelled so the folder selector button will sensitize
2002-10-04 Chris Toshok <toshok@ximian.com>
* 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
-rw-r--r-- | shell/ChangeLog | 8 | ||||
-rw-r--r-- | shell/e-shell-folder-selection-dialog.c | 12 |
2 files changed, 20 insertions, 0 deletions
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 <toshok@ximian.com> + + * 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 <aaron@ximian.com> * 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, |