aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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),