[gnome-boxes] collection-view: convert from filter_model to model for selection
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] collection-view: convert from filter_model to model for selection
- Date: Thu, 6 Sep 2012 11:15:20 +0000 (UTC)
commit f9664c9a108d00fd957a755a0bdc9a248a926e51
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Wed Sep 5 11:25:33 2012 +0200
collection-view: convert from filter_model to model for selection
https://bugzilla.gnome.org/show_bug.cgi?id=683391
src/collection-view.vala | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/collection-view.vala b/src/collection-view.vala
index d17eb95..42af3fc 100644
--- a/src/collection-view.vala
+++ b/src/collection-view.vala
@@ -443,10 +443,13 @@ private class Boxes.CollectionView: Boxes.UI {
}
private bool on_button_release_selection_mode (Gdk.EventButton event, bool entered_mode, Gtk.TreePath path) {
- Gtk.TreeIter iter;
- if (!model.get_iter (out iter, path))
+ Gtk.TreeIter filter_iter, iter;
+
+ if (!model_filter.get_iter (out filter_iter, path))
return false;
+ model_filter.convert_iter_to_child_iter (out iter, filter_iter);
+
bool selected;
model.get (iter, ModelColumns.SELECTED, out selected);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]