aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorJason Leach <jleach@ximian.com>2001-08-08 14:56:22 +0800
committerJacob Leach <jleach@src.gnome.org>2001-08-08 14:56:22 +0800
commit91fe573ce4a1b11b5fe9bbd366842ba7e7593bc8 (patch)
tree390f789e4e7225767f844a2fbe4cbf461e58ae02 /shell
parentda776b965267d643c375f6749623da71deda9668 (diff)
downloadgsoc2013-evolution-91fe573ce4a1b11b5fe9bbd366842ba7e7593bc8.tar
gsoc2013-evolution-91fe573ce4a1b11b5fe9bbd366842ba7e7593bc8.tar.gz
gsoc2013-evolution-91fe573ce4a1b11b5fe9bbd366842ba7e7593bc8.tar.bz2
gsoc2013-evolution-91fe573ce4a1b11b5fe9bbd366842ba7e7593bc8.tar.lz
gsoc2013-evolution-91fe573ce4a1b11b5fe9bbd366842ba7e7593bc8.tar.xz
gsoc2013-evolution-91fe573ce4a1b11b5fe9bbd366842ba7e7593bc8.tar.zst
gsoc2013-evolution-91fe573ce4a1b11b5fe9bbd366842ba7e7593bc8.zip
Set the sensitivity for the OK button when a storage is selected too. Bug
2001-08-08 Jason Leach <jleach@ximian.com> * e-shell-folder-creation-dialog.c (storage_set_view_storage_selected_cb): Set the sensitivity for the OK button when a storage is selected too. Bug #6473. svn path=/trunk/; revision=11765
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog6
-rw-r--r--shell/e-shell-folder-creation-dialog.c15
2 files changed, 21 insertions, 0 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index fb1be8c7ae..67f3dd9fc6 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,9 @@
+2001-08-08 Jason Leach <jleach@ximian.com>
+
+ * e-shell-folder-creation-dialog.c
+ (storage_set_view_storage_selected_cb): Set the sensitivity for
+ the OK button when a storage is selected too. Bug #6473.
+
2001-08-08 Ettore Perazzoli <ettore@ximian.com>
* evolution-activity-client.c (create_icon_from_pixbuf): Set the
diff --git a/shell/e-shell-folder-creation-dialog.c b/shell/e-shell-folder-creation-dialog.c
index 84f8fce403..6cc5138e8e 100644
--- a/shell/e-shell-folder-creation-dialog.c
+++ b/shell/e-shell-folder-creation-dialog.c
@@ -246,6 +246,19 @@ storage_set_view_folder_selected_cb (EStorageSetView *storage_set_view,
gnome_dialog_set_sensitive (GNOME_DIALOG (dialog_data->dialog), 0, TRUE);
}
+static void
+storage_set_view_storage_selected_cb (EStorageSetView *storage_set_view,
+ const char *name,
+ void *data)
+{
+ DialogData *dialog_data;
+
+ dialog_data = (DialogData *) data;
+
+ if (GTK_ENTRY (dialog_data->folder_name_entry)->text_length > 0)
+ gnome_dialog_set_sensitive (GNOME_DIALOG (dialog_data->dialog), 0, TRUE);
+}
+
/* Shell signal callbacks. */
@@ -451,6 +464,8 @@ e_shell_show_folder_creation_dialog (EShell *shell,
gtk_signal_connect (GTK_OBJECT (dialog_data->storage_set_view), "folder_selected",
storage_set_view_folder_selected_cb, dialog_data);
+ gtk_signal_connect (GTK_OBJECT (dialog_data->storage_set_view), "storage_selected",
+ storage_set_view_storage_selected_cb, dialog_data);
gtk_signal_connect_while_alive (GTK_OBJECT (shell), "destroy",
GTK_SIGNAL_FUNC (shell_destroy_cb), dialog_data,