From 70fce0bbb0712dc70a15c481c0b65d68a98a4ff7 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 28 Jan 2009 22:28:57 +0000 Subject: When invoking Evolution with URIs on the command-line (e.g. mailto:), terminate after all the windows for those URIs have been closed. svn path=/branches/kill-bonobo/; revision=37157 --- shell/test/e-test-shell-module.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'shell/test/e-test-shell-module.c') diff --git a/shell/test/e-test-shell-module.c b/shell/test/e-test-shell-module.c index fc489fa3b0..a7d2389fb7 100644 --- a/shell/test/e-test-shell-module.c +++ b/shell/test/e-test-shell-module.c @@ -115,20 +115,23 @@ test_module_send_receive_cb (EShellModule *shell_module, static void test_module_window_created_cb (EShellModule *shell_module, - EShellWindow *shell_window) + GtkWindow *window) { const gchar *module_name; - g_debug ("%s (window=%p)", G_STRFUNC, shell_window); + g_debug ("%s (%s)", G_STRFUNC, G_OBJECT_TYPE_NAME (window)); + + 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)); } -- cgit v1.2.3