[epiphany/wip/exalm/tabs: 82/92] Prevent closing pinned pages
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/exalm/tabs: 82/92] Prevent closing pinned pages
- Date: Wed, 27 Jan 2021 09:26:48 +0000 (UTC)
commit 057016f005b3347c2bfca0d4051ca0352b1c9bc6
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 ee631f1c7..a3c912f05 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -3015,6 +3015,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]