aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/ChangeLog6
-rw-r--r--shell/e-shell-folder-selection-dialog.c19
2 files changed, 23 insertions, 2 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 1b12ea9c00..cd5e256e8a 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,5 +1,11 @@
2001-07-25 Jason Leach <jleach@ximian.com>
+ * e-shell-folder-selection-dialog.c (folder_selected_cb): New
+ function. When a folder is selected set the OK button to be
+ sensitive (but before that have it desensitized). Bug #5483.
+
+2001-07-25 Jason Leach <jleach@ximian.com>
+
* e-shortcuts-view.c (icon_callback): A warning fix from Jacob.
Bug #5057.
diff --git a/shell/e-shell-folder-selection-dialog.c b/shell/e-shell-folder-selection-dialog.c
index 8ef598c50b..a07fac65e7 100644
--- a/shell/e-shell-folder-selection-dialog.c
+++ b/shell/e-shell-folder-selection-dialog.c
@@ -286,6 +286,17 @@ set_default_folder (EShellFolderSelectionDialog *shell_folder_selection_dialog,
g_free (default_path);
}
+static void
+folder_selected_cb (EStorageSetView *storage_set_view,
+ const char *path,
+ void *data)
+{
+ GnomeDialog *dialog;
+
+ dialog = GNOME_DIALOG (data);
+
+ gnome_dialog_set_sensitive (dialog, 0, TRUE);
+}
/**
* e_shell_folder_selection_dialog_construct:
@@ -332,6 +343,7 @@ e_shell_folder_selection_dialog_construct (EShellFolderSelectionDialog *folder_s
_("New..."),
NULL);
gnome_dialog_set_default (GNOME_DIALOG (folder_selection_dialog), 0);
+ gnome_dialog_set_sensitive (GNOME_DIALOG (folder_selection_dialog), 0, FALSE);
/* Make sure we get destroyed if the shell gets destroyed. */
@@ -367,8 +379,11 @@ e_shell_folder_selection_dialog_construct (EShellFolderSelectionDialog *folder_s
g_free (filename);
GTK_WIDGET_SET_FLAGS (priv->storage_set_view, GTK_CAN_FOCUS);
- gtk_signal_connect (GTK_OBJECT (priv->storage_set_view),
- "double_click", GTK_SIGNAL_FUNC (dbl_click_cb),
+ gtk_signal_connect (GTK_OBJECT (priv->storage_set_view), "double_click",
+ GTK_SIGNAL_FUNC (dbl_click_cb),
+ folder_selection_dialog);
+ gtk_signal_connect (GTK_OBJECT (priv->storage_set_view), "folder_selected",
+ GTK_SIGNAL_FUNC (folder_selected_cb),
folder_selection_dialog);
g_assert (priv->allowed_types == NULL);