Register a "working" folder type with the hourglass icon. (Would
* e-shell.c (e_shell_construct): Register a "working" folder type with the hourglass icon. (Would eventually like an animated gif, when ETable supports that.) * e-storage.c (e_storage_has_subfolders): Use "working" rather than "noselect" as the folder type. * e-shell-view.c (get_view_for_uri): Simplify a bit. svn path=/trunk/; revision=16244
This commit is contained in:
@ -1,3 +1,14 @@
|
||||
2002-03-25 Dan Winship <danw@ximian.com>
|
||||
|
||||
* e-shell.c (e_shell_construct): Register a "working" folder type
|
||||
with the hourglass icon. (Would eventually like an animated gif,
|
||||
when ETable supports that.)
|
||||
|
||||
* e-storage.c (e_storage_has_subfolders): Use "working" rather
|
||||
than "noselect" as the folder type.
|
||||
|
||||
* e-shell-view.c (get_view_for_uri): Simplify a bit.
|
||||
|
||||
2002-03-22 Ettore Perazzoli <ettore@ximian.com>
|
||||
|
||||
* e-shell-settings-dialog.c (get_language_list): Removed.
|
||||
|
@ -2069,7 +2069,7 @@ get_view_for_uri (EShellView *shell_view,
|
||||
return NULL;
|
||||
|
||||
folder_type = get_type_for_folder (shell_view, path, &physical_uri);
|
||||
if (folder_type == NULL || strcmp (folder_type, "noselect") == 0)
|
||||
if (folder_type == NULL || physical_uri == NULL)
|
||||
return NULL;
|
||||
|
||||
folder_type_registry = e_shell_get_folder_type_registry (e_shell_view_get_shell (shell_view));
|
||||
|
@ -1101,6 +1101,10 @@ e_shell_construct (EShell *shell,
|
||||
"noselect", "empty.gif",
|
||||
"noselect", "", FALSE,
|
||||
0, NULL, 0, NULL);
|
||||
e_folder_type_registry_register_type (priv->folder_type_registry,
|
||||
"working", "working-16.png",
|
||||
"working", "", FALSE,
|
||||
0, NULL, 0, NULL);
|
||||
|
||||
/* CORBA storages must be set up before the components, because otherwise components
|
||||
cannot register their own storages. */
|
||||
|
@ -663,7 +663,7 @@ e_storage_has_subfolders (EStorage *storage,
|
||||
/* FIXME: close parent */
|
||||
}
|
||||
|
||||
pseudofolder = e_folder_new (message, "noselect", "");
|
||||
pseudofolder = e_folder_new (message, "working", "");
|
||||
if (strcmp (path, "/") == 0)
|
||||
pseudofolder_path = g_strdup_printf ("/%s", message);
|
||||
else
|
||||
|
Reference in New Issue
Block a user