[gnome-builder] gaction-provider: filtering of duplicates



commit f5bc16e531638e13ad9a8275e63fac4f4013695d
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Wed Apr 29 16:30:06 2015 +0200

    gaction-provider: filtering of duplicates
    
    Some commands are duplicates, cmming from different widgets
    but with the same name :
    
    The global quit is renamed to quitall
    close, save and save-as of view is already handle by view-stack,
    so we masks them.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=748652

 src/commands/gb-command-gaction-provider.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/commands/gb-command-gaction-provider.c b/src/commands/gb-command-gaction-provider.c
index 410a3d2..e0be5be 100644
--- a/src/commands/gb-command-gaction-provider.c
+++ b/src/commands/gb-command-gaction-provider.c
@@ -198,7 +198,11 @@ failure:
  * As we allow a NULL command_name, you must closed the array with a triple NULL.
  */
 static const GbActionCommandMap action_maps [] = {
-  { NULL, NULL, NULL }
+  { "quitall",  "app",   "quit"  },
+  { NULL,       "view",  "close" },
+  { NULL,       "view",  "save" },
+  { NULL,       "view",  "save-as" },
+  { NULL,       NULL,    NULL }
 };
 
 static gboolean


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