[epiphany/wip/exalm/menu: 1/7] notebook-context-menu: Hide pin actions when disabled




commit a7b9f7ed66df0f93286a8dc7686272c465a1fb8a
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]