[gnome-clocks] Register the select-all accel



commit 83615011b56411d84eb16113d72fe5814218a827
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Mar 10 12:43:07 2013 +0100

    Register the select-all accel

 src/application.vala |    2 ++
 src/widgets.vala     |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/application.vala b/src/application.vala
index 11f7d13..711e8cf 100644
--- a/src/application.vala
+++ b/src/application.vala
@@ -56,6 +56,8 @@ public class Application : Gtk.Application {
         var builder = Utils.load_ui ("menu.ui");
         var app_menu = builder.get_object ("appmenu") as MenuModel;
         set_app_menu (app_menu);
+
+        add_accelerator ("<Primary>a", "win.select-all", null);
     }
 
     protected override bool local_command_line ([CCode (array_length = false, array_null_terminated = true)] 
ref unowned string[] arguments, out int exit_status) {
diff --git a/src/widgets.vala b/src/widgets.vala
index e3c6afd..84661d7 100644
--- a/src/widgets.vala
+++ b/src/widgets.vala
@@ -562,6 +562,7 @@ public class ContentView : Gtk.Bin {
     }
 
     public void select_all () {
+        icon_view.mode = IconView.Mode.SELECTION;
         icon_view.select_all ();
     }
 


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