From 224f26b84d9c12b0dd1d337f51c14b6ebb901007 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 4 Sep 2011 09:48:24 -0400 Subject: GtkApplication has some new EShell-like features. I pushed a few EShell features up to GtkApplication for GTK+ 3.2, so we can now trim off the redundancies in EShell. 1) GtkApplication has a new "window-added" signal which replaces EShell's own "window-created" signal. 2) GtkApplication has a new "window-removed" signal which replaces EShell's own "window-destroyed" signal. 3) gtk_application_get_windows() now returns a list of windows sorted by most recently focused, replacing e_shell_get_watched_windows(). 4) GtkApplication now provides enough hooks to subclasses that we can remove e_shell_watch_window() and call gtk_application_add_window() directly. --- shell/test/e-test-shell-backend.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'shell/test/e-test-shell-backend.c') diff --git a/shell/test/e-test-shell-backend.c b/shell/test/e-test-shell-backend.c index a30cb8a7b5..79f4aa876f 100644 --- a/shell/test/e-test-shell-backend.c +++ b/shell/test/e-test-shell-backend.c @@ -97,8 +97,8 @@ test_shell_backend_handle_uri_cb (EShellBackend *shell_backend, } static void -test_shell_backend_window_created_cb (EShellBackend *shell_backend, - GtkWindow *window) +test_shell_backend_window_added_cb (EShellBackend *shell_backend, + GtkWindow *window) { const gchar *backend_name; @@ -119,7 +119,7 @@ test_shell_backend_window_created_cb (EShellBackend *shell_backend, } static void -test_shell_backend_window_destroyed_cb (EShellBackend *shell_backend) +test_shell_backend_window_removed_cb (EShellBackend *shell_backend) { g_debug ("%s", G_STRFUNC); } @@ -139,13 +139,13 @@ test_shell_backend_constructed (GObject *object) shell_backend); g_signal_connect_swapped ( - shell, "window-created", - G_CALLBACK (test_shell_backend_window_created_cb), + shell, "window-added", + G_CALLBACK (test_shell_backend_window_added_cb), shell_backend); g_signal_connect_swapped ( - shell, "window-destroyed", - G_CALLBACK (test_shell_backend_window_destroyed_cb), + shell, "window-removed", + G_CALLBACK (test_shell_backend_window_removed_cb), shell_backend); /* Chain up to parent's constructed() method. */ -- cgit v1.2.3