[shotwell/wip/718349-header-only] fixed bug that prevented the page to be updated when clicking on an entry. also cleaned up a bit



commit 3be1a03e07eed04ff373baa7f23ad3fd77e5e860
Author: Wolfgang Steitz <wsteitz gmail com>
Date:   Tue Mar 17 21:08:41 2015 +0100

    fixed bug that prevented the page to be updated when clicking on an entry. also cleaned up a bit

 src/sidebar/Tree.vala |   16 ++--------------
 1 files changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/src/sidebar/Tree.vala b/src/sidebar/Tree.vala
index 036576b..a020b18 100644
--- a/src/sidebar/Tree.vala
+++ b/src/sidebar/Tree.vala
@@ -166,14 +166,6 @@ public class Sidebar.Tree : Gtk.TreeView {
         renderer.visible = !(wrapper.entry is Sidebar.Header);
     }
     
-    public void counter_renderer_function(Gtk.CellLayout layout, Gtk.CellRenderer renderer, Gtk.TreeModel 
model, Gtk.TreeIter iter) {
-        EntryWrapper? wrapper = get_wrapper_at_iter(iter);
-        if (wrapper == null) {
-            return;
-        }
-        renderer.visible = !(wrapper.entry is Sidebar.Header);
-    }
-    
     private void on_drag_begin(Gdk.DragContext ctx) {
         is_internal_drag_in_progress = true;
     }
@@ -295,7 +287,7 @@ public class Sidebar.Tree : Gtk.TreeView {
     public bool is_any_selected() {
         return get_selection().count_selected_rows() != 0;
     }
-    
+
     private Gtk.TreePath? get_selected_path() {
         Gtk.TreeModel model;
         Gtk.TreeSelection? selection = get_selection();
@@ -304,7 +296,7 @@ public class Sidebar.Tree : Gtk.TreeView {
         }
         GLib.List<Gtk.TreePath> rows = selection.get_selected_rows(out model);
         assert(rows.length() == 0 || rows.length() == 1);
-        
+
         return rows.length() != 0 ? rows.nth_data(0) : null;
     }
 
@@ -327,7 +319,6 @@ public class Sidebar.Tree : Gtk.TreeView {
         if (path == null) {
             if (base.cursor_changed != null)
                 base.cursor_changed();
-            
             return;
         }
         
@@ -942,9 +933,6 @@ public class Sidebar.Tree : Gtk.TreeView {
                 || wrapper.entry is Sidebar.InternalDropTargetEntry) {
                 // all labels are InternalDropTargetEntries
                 toggle_branch_expansion(path, false);
-                
-                if (can_rename_path(path))
-                    return false;
             }
             
             // Is this a click on an already-highlighted tree item?


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