From be3e52e1c22a05b655c3b322045d1f5c6fd76c7f Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Mon, 13 Aug 2012 10:00:52 +0200 Subject: Move windows handling code from EphySession to EphyShell EphyShell is now a GtkApplication that already does window handling, however we want to maintain only the of browser windows. Instead of keeping the window lists in ephy-session, it's easier to override window_added and window_removed virtual methods of GtkApplication and update the browser window lists. Most of the cases where this API was used, had to get the session object from the shell first, now we save this step keeping the code simpler. https://bugzilla.gnome.org/show_bug.cgi?id=641734 --- src/bookmarks/ephy-bookmarks-editor.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/bookmarks') diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c index 221ab9aeb..8ffd89dcb 100644 --- a/src/bookmarks/ephy-bookmarks-editor.c +++ b/src/bookmarks/ephy-bookmarks-editor.c @@ -291,11 +291,7 @@ get_target_window (EphyBookmarksEditor *editor) } else { - EphySession *session; - - session = EPHY_SESSION (ephy_shell_get_session (ephy_shell)); - - return GTK_WIDGET (ephy_session_get_active_window (session)); + return GTK_WIDGET (ephy_shell_get_active_window (ephy_shell)); } } -- cgit v1.2.3