[epiphany/wip/exalm/menu: 1/6] notebook-context-menu: Hide pin actions when disabled
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/exalm/menu: 1/6] notebook-context-menu: Hide pin actions when disabled
- Date: Mon, 7 Sep 2020 18:18:12 +0000 (UTC)
commit 2d1b916d31151e811ad9cd746abe3cb7919516eb
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Sep 7 22:37:37 2020 +0500
notebook-context-menu: Hide pin actions when disabled
Only ever show one of them at a time, not both.
src/resources/gtk/notebook-context-menu.ui | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/resources/gtk/notebook-context-menu.ui b/src/resources/gtk/notebook-context-menu.ui
index 050374bfa..43efe7db0 100644
--- a/src/resources/gtk/notebook-context-menu.ui
+++ b/src/resources/gtk/notebook-context-menu.ui
@@ -20,10 +20,12 @@
<item>
<attribute name="label" translatable="yes">P_in Tab</attribute>
<attribute name="action">tab.pin</attribute>
+ <attribute name="hidden-when">action-disabled</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Unpi_n Tab</attribute>
<attribute name="action">tab.unpin</attribute>
+ <attribute name="hidden-when">action-disabled</attribute>
</item>
</section>
<section>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]