diff options
Diffstat (limited to 'calendar/modules/e-task-shell-module.c')
-rw-r--r-- | calendar/modules/e-task-shell-module.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/calendar/modules/e-task-shell-module.c b/calendar/modules/e-task-shell-module.c index 80cfc0a61a..76db5b056b 100644 --- a/calendar/modules/e-task-shell-module.c +++ b/calendar/modules/e-task-shell-module.c @@ -306,8 +306,8 @@ static GtkActionEntry source_entries[] = { }; static gboolean -task_module_handle_uri (EShellModule *shell_module, - const gchar *uri) +task_module_handle_uri_cb (EShellModule *shell_module, + const gchar *uri) { CompEditor *editor; CompEditorFlags flags = 0; @@ -449,19 +449,22 @@ exit: } static void -task_module_window_created (EShellModule *shell_module, - EShellWindow *shell_window) +task_module_window_created_cb (EShellModule *shell_module, + GtkWindow *window) { const gchar *module_name; + if (!E_IS_SHELL_WINDOW (window)) + return; + module_name = G_TYPE_MODULE (shell_module)->name; e_shell_window_register_new_item_actions ( - shell_window, module_name, + E_SHELL_WINDOW (window), module_name, item_entries, G_N_ELEMENTS (item_entries)); e_shell_window_register_new_source_actions ( - shell_window, module_name, + E_SHELL_WINDOW (window), module_name, source_entries, G_N_ELEMENTS (source_entries)); } @@ -494,9 +497,9 @@ e_shell_module_init (GTypeModule *type_module) g_signal_connect_swapped ( shell, "handle-uri", - G_CALLBACK (task_module_handle_uri), shell_module); + G_CALLBACK (task_module_handle_uri_cb), shell_module); g_signal_connect_swapped ( shell, "window-created", - G_CALLBACK (task_module_window_created), shell_module); + G_CALLBACK (task_module_window_created_cb), shell_module); } |