Updated to display the parent folder's URI and its type as well.

* evolution-test-component.c (user_create_new_item_callback):
Updated to display the parent folder's URI and its type as well.

* evolution-shell-component.c (impl_userCreateNewItem): Updated to
get the @parent_folder_physical_uri and the @parent_folder_type.
(class_init): Update the "user_create_new_item" signal to have
@parent_folder_physical_uri and @parent_folder_type args.

* e-shell-view.c (get_type_for_folder): Don't bork on a NULL
@physical_uri_return.
(e_shell_view_get_current_physical_uri): New.
(e_shell_view_get_current_folder_type): New.

* e-shell-user-creatable-items-handler.c
(e_shell_user_creatable_items_handler_setup_menus): Replace
@ui_component arg with a @shell_view arg.  Set it on the
UIComponent using gtk_object_set_data().
(verb_fn): Pass the type and physical URI of the current folder;
retrieve that from the shell_view got with gtk_object_get_data().

* Evolution-ShellComponent.idl
(userCreateNewItem): New args @parent_folder_uri,
@parent_folder_type.

svn path=/trunk/; revision=11863
This commit is contained in:
Ettore Perazzoli
2001-08-10 01:07:46 +00:00
parent 518d8af11b
commit d471640fe8
9 changed files with 111 additions and 20 deletions

View File

@ -270,9 +270,12 @@ owner_unset_callback (EvolutionShellComponent *shell_component,
static void
user_create_new_item_callback (EvolutionShellComponent *shell_component,
const char *id)
const char *id,
const char *parent_folder_physical_uri,
const char *parent_folder_type)
{
g_print ("\n*** Should create -- %s\n", id);
g_print ("\n\tType %s, URI %s\n", parent_folder_type, parent_folder_physical_uri);
}