diff options
Diffstat (limited to 'shell/evolution-test-component.c')
-rw-r--r-- | shell/evolution-test-component.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/shell/evolution-test-component.c b/shell/evolution-test-component.c index 4d70525c40..336912cb8c 100644 --- a/shell/evolution-test-component.c +++ b/shell/evolution-test-component.c @@ -268,6 +268,13 @@ owner_unset_callback (EvolutionShellComponent *shell_component, g_idle_add_full (G_PRIORITY_LOW, owner_unset_idle_callback, NULL, NULL); } +static void +user_create_new_item_callback (EvolutionShellComponent *shell_component, + const char *id) +{ + g_print ("\n*** Should create -- %s\n", id); +} + static BonoboObject * factory_fn (BonoboGenericFactory *factory, @@ -285,6 +292,12 @@ factory_fn (BonoboGenericFactory *factory, gtk_signal_connect (GTK_OBJECT (shell_component), "owner_unset", GTK_SIGNAL_FUNC (owner_unset_callback), NULL); + evolution_shell_component_add_user_creatable_item (shell_component, "Stuff", "New Stuff", "New _Stuff", '\0'); + evolution_shell_component_add_user_creatable_item (shell_component, "MoreStuff", "New More Stuff", "New _More Stuff", 'n'); + + gtk_signal_connect (GTK_OBJECT (shell_component), "user_create_new_item", + GTK_SIGNAL_FUNC (user_create_new_item_callback), NULL); + return BONOBO_OBJECT (shell_component); } |