aboutsummaryrefslogtreecommitdiff
path: root/libindicator/indicator-ng.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-01-25 11:11:59 +0100
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-01-25 11:11:59 +0100
commit9c857a30aa23445708c7ed7f1d00a7d0986946bd (patch)
treeb1dfef7323e798a52857401480c5d8e33af6b3d8 /libindicator/indicator-ng.c
parent70480923e6151c8173032710beb99707bb5b9485 (diff)
downloadlibayatana-indicator-9c857a30aa23445708c7ed7f1d00a7d0986946bd.tar.gz
libayatana-indicator-9c857a30aa23445708c7ed7f1d00a7d0986946bd.tar.bz2
libayatana-indicator-9c857a30aa23445708c7ed7f1d00a7d0986946bd.zip
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.
Diffstat (limited to 'libindicator/indicator-ng.c')
-rw-r--r--libindicator/indicator-ng.c3
1 files changed, 2 insertions, 1 deletions
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 <string.h>
@@ -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