[gnome-boxes/wip/prelight2: 2/2] collection-view: Enable CellRendererPixbuf.follow_state
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/prelight2: 2/2] collection-view: Enable CellRendererPixbuf.follow_state
- Date: Thu, 3 Jul 2014 00:04:52 +0000 (UTC)
commit f42fa2b70b3e4ca276592bc969c1846ac670e83b
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Jul 3 00:59:40 2014 +0100
collection-view: Enable CellRendererPixbuf.follow_state
This property alone enables prelight of thumnails.
src/collection-view.vala | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/collection-view.vala b/src/collection-view.vala
index 175264c..0cccab9 100644
--- a/src/collection-view.vala
+++ b/src/collection-view.vala
@@ -42,6 +42,13 @@ private class Boxes.CollectionView: Gd.MainView, Boxes.UI {
if (!App.app.selection_mode)
unselect_all (); // Reset selection on exiting selection mode
});
+
+ var renderers = (get_generic_view () as Gtk.IconView).get_cells ();
+ foreach (var renderer in renderers)
+ if (renderer is Gtk.CellRendererPixbuf) {
+ (renderer as Gtk.CellRendererPixbuf).follow_state = true;
+ break;
+ }
}
private void ui_state_changed () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]