[gitg/wip/commit] Emit signals when activating rows



commit a3c3b5caed24d1a5843a13ac660187d68a6fa81a
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Wed Jul 3 18:51:26 2013 +0200

    Emit signals when activating rows

 libgitg/gitg-sidebar.vala |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/libgitg/gitg-sidebar.vala b/libgitg/gitg-sidebar.vala
index 21f284a..c06626d 100644
--- a/libgitg/gitg-sidebar.vala
+++ b/libgitg/gitg-sidebar.vala
@@ -419,6 +419,21 @@ public class Sidebar : Gtk.TreeView
                });
        }
 
+       protected override void row_activated(Gtk.TreePath path, Gtk.TreeViewColumn column)
+       {
+               if (model.clearing)
+               {
+                       return;
+               }
+
+               Gtk.TreeIter iter;
+
+               if (model.get_iter(out iter, path))
+               {
+                       model.activate(iter, 2);
+               }
+       }
+
        public new SidebarStore model
        {
                get { return base.get_model() as SidebarStore; }


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