[epiphany/wip/exalm/tab-fix: 5/5] window: Don't close the window 2 times when closing last tab
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/exalm/tab-fix: 5/5] window: Don't close the window 2 times when closing last tab
- Date: Tue, 30 Aug 2022 15:10:53 +0000 (UTC)
commit ed8fac8acb8cd562f720c5f9cbcb19c33b88b570
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Aug 29 17:17:46 2022 +0400
window: Don't close the window 2 times when closing last tab
We already do it in ephy_window_close_tab().
Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1188>
src/ephy-window.c | 8 --------
1 file changed, 8 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index b9939123b..f557397f0 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2722,14 +2722,6 @@ tab_view_page_detached_cb (HdyTabView *tab_view,
g_signal_handlers_disconnect_by_func
(ephy_embed_get_web_view (EPHY_EMBED (content)), G_CALLBACK (download_only_load_cb), window);
-
- if (ephy_tab_view_get_n_pages (window->tab_view) == 0) {
- EphyShell *shell = ephy_shell_get_default ();
- GList *windows = gtk_application_get_windows (GTK_APPLICATION (shell));
-
- if (g_list_length (windows) > 1)
- gtk_window_close (GTK_WINDOW (window));
- }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]