aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2002-07-15 15:03:38 +0800
committerChris Toshok <toshok@src.gnome.org>2002-07-15 15:03:38 +0800
commit027f53a2c877f25696b740c303f748999ae033e2 (patch)
tree642ef92eb4e44a7bccc41eb2516297a2f29ea29a /shell/e-shell.c
parentf909a998949fd49da85a63df07431cb7684fba6d (diff)
downloadgsoc2013-evolution-027f53a2c877f25696b740c303f748999ae033e2.tar
gsoc2013-evolution-027f53a2c877f25696b740c303f748999ae033e2.tar.gz
gsoc2013-evolution-027f53a2c877f25696b740c303f748999ae033e2.tar.bz2
gsoc2013-evolution-027f53a2c877f25696b740c303f748999ae033e2.tar.lz
gsoc2013-evolution-027f53a2c877f25696b740c303f748999ae033e2.tar.xz
gsoc2013-evolution-027f53a2c877f25696b740c303f748999ae033e2.tar.zst
gsoc2013-evolution-027f53a2c877f25696b740c303f748999ae033e2.zip
set corba_folder.customIconName so we don't crash.
2002-07-14 Chris Toshok <toshok@ximian.com> * e-shell.c (folder_selection_dialog_folder_selected_cb): set corba_folder.customIconName so we don't crash. (impl_Shell_selectUserFolder): remove the default_type parameter to fix a compiler warning. svn path=/trunk/; revision=17451
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r--shell/e-shell.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index ebe6086a66..5e5ca4e008 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -268,6 +268,7 @@ folder_selection_dialog_folder_selected_cb (EShellFolderSelectionDialog *folder_
corba_folder.physicalUri = "";
corba_folder.evolutionUri = "";
corba_folder.unreadCount = -1;
+ corba_folder.customIconName = "";
} else {
corba_folder.type = (CORBA_char *)e_folder_get_type_string (folder);
corba_folder.description = (CORBA_char *)e_folder_get_description (folder);
@@ -279,6 +280,9 @@ folder_selection_dialog_folder_selected_cb (EShellFolderSelectionDialog *folder_
corba_folder.physicalUri = "";
corba_folder.evolutionUri = (CORBA_char *)g_strconcat (E_SHELL_URI_PREFIX, path, NULL);
corba_folder.unreadCount = e_folder_get_unread_count (folder);
+ corba_folder.customIconName = (CORBA_char *)e_folder_get_custom_icon_name (folder);
+ if (corba_folder.customIconName == NULL)
+ corba_folder.customIconName = "";
}
GNOME_Evolution_FolderSelectionListener_notifySelected (listener, &corba_folder, &ev);
@@ -543,7 +547,6 @@ impl_Shell_selectUserFolder (PortableServer_Servant servant,
const CORBA_char *title,
const CORBA_char *default_folder,
const GNOME_Evolution_Shell_FolderTypeNameList *corba_allowed_type_names,
- const CORBA_char *default_type,
CORBA_Environment *ev)
{
GtkWidget *folder_selection_dialog;