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. --- modules/composer-autosave/e-composer-registry.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/composer-autosave') diff --git a/modules/composer-autosave/e-composer-registry.c b/modules/composer-autosave/e-composer-registry.c index 9fcba43ff9..3b69e166a7 100644 --- a/modules/composer-autosave/e-composer-registry.c +++ b/modules/composer-autosave/e-composer-registry.c @@ -149,9 +149,9 @@ composer_registry_notify_cb (EComposerRegistry *registry, } static void -composer_registry_window_created_cb (EShell *shell, - GtkWindow *window, - EComposerRegistry *registry) +composer_registry_window_added_cb (GtkApplication *application, + GtkWindow *window, + EComposerRegistry *registry) { /* Offer to restore any orphaned auto-save files from the * previous session once the first EShellWindow is mapped. */ @@ -201,8 +201,8 @@ composer_registry_constructed (GObject *object) /* Listen for new watched windows. */ g_signal_connect ( - extensible, "window-created", - G_CALLBACK (composer_registry_window_created_cb), + extensible, "window-added", + G_CALLBACK (composer_registry_window_added_cb), object); } -- cgit v1.2.3