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
This commit is contained in:
Chris Toshok
2002-10-04 21:00:27 +00:00
committed by Chris Toshok
parent e23ff89a60
commit b48e07f7ca
2 changed files with 20 additions and 0 deletions

View File

@ -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.

View File

@ -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,