[baobab/wip/vala: 65/65] Tweak icon rendering
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/wip/vala: 65/65] Tweak icon rendering
- Date: Thu, 5 Apr 2012 12:20:26 +0000 (UTC)
commit 0e35652e2e214e6df05b02f13328c0e653708661
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]