summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <alexm@gnome.org>2020-09-07 22:37:37 +0500
committerAlexander Mikhaylenko <alexm@gnome.org>2020-09-23 01:55:08 +0500
commitb63ec45085c4b2d9707f5ce2b0cd772be3806757 (patch)
treee3be12e7c8692d686c61e9ca454226bc2c4a7509
parentbe7b9fc6d5d71c7c0f19875ea9dd5de0bf47160b (diff)
downloadepiphany-b63ec45085c4b2d9707f5ce2b0cd772be3806757.tar.gz
notebook-context-menu: Hide pin actions when disabled
Only ever show one of them at a time, not both.
-rw-r--r--src/resources/gtk/notebook-context-menu.ui2
1 files changed, 2 insertions, 0 deletions
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>