[epiphany] Revert "Fix Crash closing last tab with Ctrl+W"
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Revert "Fix Crash closing last tab with Ctrl+W"
- Date: Mon, 13 May 2019 11:37:26 +0000 (UTC)
commit e4203b109553f6c120d2a449f9248c4f8298b4d2
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Mon May 13 06:33:26 2019 -0500
Revert "Fix Crash closing last tab with Ctrl+W"
This reverts commit 433ce47815c9cb4d7ee09d828456d27bb6f7663f.
Fixes #783
src/ephy-pages-popover.c | 3 ---
src/ephy-window.c | 6 ++----
2 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/src/ephy-pages-popover.c b/src/ephy-pages-popover.c
index 5ee4a9790..b490d1a4b 100644
--- a/src/ephy-pages-popover.c
+++ b/src/ephy-pages-popover.c
@@ -139,9 +139,6 @@ items_changed_cb (EphyPagesPopover *self,
g_signal_connect_swapped (items[i], "closed", G_CALLBACK (row_closed_cb), self);
}
- if (position + removed > added)
- return;
-
g_list_store_splice (self->list_store, position, removed, (gpointer) items, added);
current_page_changed_cb (self);
diff --git a/src/ephy-window.c b/src/ephy-window.c
index fd31a0588..81a75977a 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2736,10 +2736,8 @@ notebook_page_removed_cb (EphyNotebook *notebook,
tab_accels_update (window);
- if (gtk_notebook_get_n_pages (window->notebook) == 0) {
- ephy_window_close (window);
- gtk_widget_destroy (GTK_WIDGET (window));
- }
+ if (gtk_notebook_get_n_pages (window->notebook) == 0)
+ gtk_window_close (GTK_WINDOW (window));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]