[gnome-boxes/wip/less-actors: 4/5] collection-view: Remove now redundant API



commit 4b3564ea14e17454f143673cb5eea3fc45058118
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sun Feb 9 12:03:31 2014 +0100

    collection-view: Remove now redundant API

 src/collection-view.vala |   25 -------------------------
 1 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/src/collection-view.vala b/src/collection-view.vala
index e0cdf0d..89a489f 100644
--- a/src/collection-view.vala
+++ b/src/collection-view.vala
@@ -53,19 +53,6 @@ private class Boxes.CollectionView: GLib.Object, Boxes.UI {
         });
     }
 
-    public void get_item_pos (CollectionItem item, out float x, out float y) {
-        Gdk.Rectangle rect;
-        var path = get_path_for_item (item);
-        if (path != null) {
-            (main_view.get_generic_view () as Gtk.IconView).get_cell_rect (path, null, out rect);
-            x = rect.x;
-            y = rect.y;
-        } else {
-            x = 0.0f;
-            y = 0.0f;
-        }
-    }
-
     private void ui_state_changed () {
         if (ui_state == UIState.COLLECTION)
             main_view.unselect_all ();
@@ -215,18 +202,6 @@ private class Boxes.CollectionView: GLib.Object, Boxes.UI {
         }
     }
 
-    private Gtk.TreePath? get_path_for_item (CollectionItem item) {
-        var iter = item.get_data<Gtk.TreeIter?> ("iter");
-        if (iter == null)
-            return null;
-
-        Gtk.TreeIter filter_iter;
-        if (!model_filter.convert_child_iter_to_iter (out filter_iter, iter))
-            return null;
-
-        return model_filter.get_path (filter_iter);
-    }
-
     private CollectionItem get_item_for_iter (Gtk.TreeIter iter) {
         GLib.Value value;
 


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