[gtk/new-style-menu: 31/48] widget-factory: Don't use Return as accel



commit 3d56a895065ded2ae6e49294b076eaa36cb945a4
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jun 8 13:46:38 2019 +0000

    widget-factory: Don't use Return as accel
    
    This is a bad idea, as it interacts badly with
    general use of Return for activation.

 demos/widget-factory/widget-factory.c  | 1 -
 demos/widget-factory/widget-factory.ui | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/demos/widget-factory/widget-factory.c b/demos/widget-factory/widget-factory.c
index fb1ac6f153..7faffdbd08 100644
--- a/demos/widget-factory/widget-factory.c
+++ b/demos/widget-factory/widget-factory.c
@@ -1668,7 +1668,6 @@ activate (GApplication *app)
   } accels[] = {
     { "app.about", { "F1", NULL } },
     { "app.quit", { "<Primary>q", NULL } },
-    { "app.open", { "Return", NULL } },
     { "app.open-in", { "<Primary>n", NULL } },
     { "app.cut", { "<Primary>x", NULL } },
     { "app.copy", { "<Primary>c", NULL } },
diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui
index 7fb854ad91..2c7e6bc0b3 100644
--- a/demos/widget-factory/widget-factory.ui
+++ b/demos/widget-factory/widget-factory.ui
@@ -3834,7 +3834,7 @@ bad things might happen.</property>
     <section>
       <item>
         <attribute name="label" translatable="yes">Open</attribute>
-        <attribute name="action">app.open</attribute>
+        <attribute name="action">win.open</attribute>
       </item>
     </section>
     <section>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]