[epiphany/wip/exalm/tabs: 36/37] Prevent closing pinned pages
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/exalm/tabs: 36/37] Prevent closing pinned pages
- Date: Sun, 13 Sep 2020 00:04:34 +0000 (UTC)
commit 00aadff3dc51e4c4407ecdf665b32e085b6705c4
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Fri Sep 11 19:20:20 2020 +0500
Prevent closing pinned pages
src/ephy-window.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index b277153c5..7361319b7 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2987,6 +2987,9 @@ tab_view_close_page_cb (HdyTabView *tab_view,
{
EphyEmbed *embed = EPHY_EMBED (hdy_tab_page_get_child (page));
+ if (hdy_tab_page_get_pinned (page))
+ return GDK_EVENT_PROPAGATE;
+
if (ephy_tab_view_get_n_pages (window->tab_view) == 1) {
if (g_settings_get_boolean (EPHY_SETTINGS_LOCKDOWN,
EPHY_PREFS_LOCKDOWN_QUIT)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]