From 9c857a30aa23445708c7ed7f1d00a7d0986946bd Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Fri, 25 Jan 2013 11:11:59 +0100 Subject: indicator-ng: use indicator_image_helper gtk_icon_set_from_gicon doesn't scale rectangular icons correctly. This adds indicator_image_helper_update_from_gicon() and makes refresh_image() set a broken image instead of erroring out when an icon couldn't be found. --- libindicator/indicator-ng.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libindicator/indicator-ng.c') diff --git a/libindicator/indicator-ng.c b/libindicator/indicator-ng.c index f27fbf0..f4c98c6 100644 --- a/libindicator/indicator-ng.c +++ b/libindicator/indicator-ng.c @@ -1,5 +1,6 @@ #include "indicator-ng.h" +#include "indicator-image-helper.h" #include @@ -177,7 +178,7 @@ indicator_ng_set_icon_from_string (IndicatorNg *self, icon = g_icon_new_for_string (str, &error); if (icon) { - gtk_image_set_from_gicon (self->entry.image, icon, GTK_ICON_SIZE_LARGE_TOOLBAR); + indicator_image_helper_update_from_gicon (self->entry.image, icon); g_object_unref (icon); } else -- cgit v1.2.3