aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2003-04-05 04:45:27 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2003-04-05 04:45:27 +0800
commitaf4b3a1ee957a61f72546ade18b2b3717915ad34 (patch)
tree6e4a76f23046bc296c7cf81245e42044a9d7c5b9
parentd369f4d903fcb03591dd68a644a0f707139c26c4 (diff)
downloadgsoc2013-evolution-af4b3a1ee957a61f72546ade18b2b3717915ad34.tar
gsoc2013-evolution-af4b3a1ee957a61f72546ade18b2b3717915ad34.tar.gz
gsoc2013-evolution-af4b3a1ee957a61f72546ade18b2b3717915ad34.tar.bz2
gsoc2013-evolution-af4b3a1ee957a61f72546ade18b2b3717915ad34.tar.lz
gsoc2013-evolution-af4b3a1ee957a61f72546ade18b2b3717915ad34.tar.xz
gsoc2013-evolution-af4b3a1ee957a61f72546ade18b2b3717915ad34.tar.zst
gsoc2013-evolution-af4b3a1ee957a61f72546ade18b2b3717915ad34.zip
Define RESPONSE_NEW for the
"New" button in the dialog. (impl_response): Handle RESPONSE_NEW. (e_shell_folder_selection_dialog_construct): Add the "new" button with RESPONSE_NEW response_id. svn path=/trunk/; revision=20675
-rw-r--r--shell/ChangeLog10
-rw-r--r--shell/e-shell-folder-selection-dialog.c13
2 files changed, 21 insertions, 2 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 8d81314bc0..20bb8e03c6 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,5 +1,15 @@
2003-04-04 Ettore Perazzoli <ettore@ximian.com>
+ [#40413]
+
+ * e-shell-folder-selection-dialog.c: Define RESPONSE_NEW for the
+ "New" button in the dialog.
+ (impl_response): Handle RESPONSE_NEW.
+ (e_shell_folder_selection_dialog_construct): Add the "new" button
+ with RESPONSE_NEW response_id.
+
+2003-04-04 Ettore Perazzoli <ettore@ximian.com>
+
[#40748]
* apps_evolution_shell.schemas: Remove the icon_modes schema.
diff --git a/shell/e-shell-folder-selection-dialog.c b/shell/e-shell-folder-selection-dialog.c
index 56b993ccf1..69b3f5cb0d 100644
--- a/shell/e-shell-folder-selection-dialog.c
+++ b/shell/e-shell-folder-selection-dialog.c
@@ -66,6 +66,10 @@ enum {
static guint signals[LAST_SIGNAL] = { 0 };
+enum {
+ RESPONSE_NEW
+};
+
/* Utility functions. */
@@ -234,11 +238,13 @@ impl_response (GtkDialog *dialog,
gtk_widget_destroy (GTK_WIDGET (dialog));
}
break;
+
case GTK_RESPONSE_CANCEL:
g_signal_emit (folder_selection_dialog, signals[CANCELLED], 0);
gtk_widget_destroy (GTK_WIDGET (dialog));
break;
- default: /* New... */
+
+ case RESPONSE_NEW:
storage_set_view = E_STORAGE_SET_VIEW (priv->storage_set_view);
default_parent_folder = e_storage_set_view_get_current_folder (storage_set_view);
@@ -261,6 +267,9 @@ impl_response (GtkDialog *dialog,
g_free (default_type);
break;
+
+ default: /* WM close button */
+ gtk_widget_destroy (GTK_WIDGET (dialog));
}
}
@@ -407,7 +416,7 @@ e_shell_folder_selection_dialog_construct (EShellFolderSelectionDialog *folder_s
if (allow_creation)
gtk_dialog_add_buttons (GTK_DIALOG (folder_selection_dialog),
- GTK_STOCK_NEW, 1,
+ GTK_STOCK_NEW, RESPONSE_NEW,
NULL);
gtk_dialog_add_buttons (GTK_DIALOG (folder_selection_dialog),