[baobab/wip/new-design] Tweak icon rendering



commit ca1db7a33cc94815861bcc0e3eb9daeaac13b979
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Thu Apr 5 10:35:16 2012 +0200

    Tweak icon rendering

 src/baobab-location-widget.vala |    5 ++++-
 src/baobab-location.vala        |    2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/baobab-location-widget.vala b/src/baobab-location-widget.vala
index 0288781..8412fba 100644
--- a/src/baobab-location-widget.vala
+++ b/src/baobab-location-widget.vala
@@ -26,7 +26,10 @@ namespace Baobab {
 
 			ensure_size_groups ();
 
-			var image = new Gtk.Image.from_gicon (location.icon, Gtk.IconSize.DIALOG);
+			var icon_theme = Gtk.IconTheme.get_default ();
+			var icon_info = icon_theme.lookup_by_gicon (location.icon, 64, 0);
+			var pixbuf = icon_info.load_icon ();
+			var image = new Gtk.Image.from_pixbuf (pixbuf);
 			add (image);
 
 			var label = new Gtk.Label (location.name);
diff --git a/src/baobab-location.vala b/src/baobab-location.vala
index 9eba222..183f158 100644
--- a/src/baobab-location.vala
+++ b/src/baobab-location.vala
@@ -72,7 +72,7 @@ namespace Baobab {
 
 		void make_this_home_location () {
 			name = _("Home folder");
-			icon = new ThemedIcon (Gtk.Stock.HOME);
+			icon = new ThemedIcon ("user-home");
 
 			home_location = this;
 		}



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