aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog7
-rw-r--r--shell/e-shell-folder-selection-dialog.c7
2 files changed, 12 insertions, 2 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index d0cc559e2f..408b6cfc87 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,5 +1,12 @@
2000-09-11 Ettore Perazzoli <ettore@helixcode.com>
+ * e-shell-folder-selection-dialog.c (set_default_folder): Work on
+ the assumption that @default_uri is not NULL.
+ (e_shell_folder_selection_dialog_construct): Only call if the
+ @default_uri is not NULL.
+
+2000-09-11 Ettore Perazzoli <ettore@helixcode.com>
+
* e-local-storage.c (new_folder): Removed debugging message.
2000-09-11 Ettore Perazzoli <ettore@helixcode.com>
diff --git a/shell/e-shell-folder-selection-dialog.c b/shell/e-shell-folder-selection-dialog.c
index 3bf60d28e4..76801def2b 100644
--- a/shell/e-shell-folder-selection-dialog.c
+++ b/shell/e-shell-folder-selection-dialog.c
@@ -217,9 +217,11 @@ set_default_folder (EShellFolderSelectionDialog *shell_folder_selection_dialog,
EShellFolderSelectionDialogPrivate *priv;
char *default_path;
+ g_assert (default_uri != NULL);
+
priv = shell_folder_selection_dialog->priv;
- if (default_uri && strncmp (default_uri, E_SHELL_URI_PREFIX, E_SHELL_URI_PREFIX_LEN) == 0) {
+ if (strncmp (default_uri, E_SHELL_URI_PREFIX, E_SHELL_URI_PREFIX_LEN) == 0) {
/* `evolution:' URI. */
default_path = g_strdup (default_uri + E_SHELL_URI_PREFIX_LEN);
} else {
@@ -294,7 +296,8 @@ e_shell_folder_selection_dialog_construct (EShellFolderSelectionDialog *folder_s
g_strdup (allowed_types[i]));
}
- set_default_folder (folder_selection_dialog, default_uri);
+ if (default_uri != NULL)
+ set_default_folder (folder_selection_dialog, default_uri);
scroll_frame = e_scroll_frame_new (NULL, NULL);
e_scroll_frame_set_policy (E_SCROLL_FRAME (scroll_frame),
class='deletions'>-0/+1 * - Make ports use the libc provided iconv implementation on 10-CURRENTmadpilot2013-09-051-1/+1 * Add an explicit dependency on pkgconfbapt2013-09-031-1/+1 * - Add gtk-query-immodules to _FORCE_POST_PATTERNS to run it post-deinstallantoine2013-06-182-3/+3 * - Convert USE_ICONV=yes to USES=iconvmva2013-04-271-1/+1 * - Convert USE_GETTEXT to USES (part 3)ak2013-04-251-1/+1 * Convert to new options framework left unconverted ports in c* categoriesbapt2013-03-221-18/+16 * - update png to 1.5.10dinoex2012-06-011-1/+1 * - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)amdmi32011-09-24