diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-01-25 11:11:59 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-01-25 11:11:59 +0100 |
commit | 9c857a30aa23445708c7ed7f1d00a7d0986946bd (patch) | |
tree | b1dfef7323e798a52857401480c5d8e33af6b3d8 /libindicator/indicator-image-helper.h | |
parent | 70480923e6151c8173032710beb99707bb5b9485 (diff) | |
download | libayatana-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-image-helper.h')
-rw-r--r-- | libindicator/indicator-image-helper.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libindicator/indicator-image-helper.h b/libindicator/indicator-image-helper.h index 77e2f0a..290f4e2 100644 --- a/libindicator/indicator-image-helper.h +++ b/libindicator/indicator-image-helper.h @@ -26,8 +26,10 @@ License along with this library. If not, see #include <gtk/gtk.h> -GtkImage * indicator_image_helper (const gchar * name); -void indicator_image_helper_update (GtkImage * image, - const gchar * name); +GtkImage * indicator_image_helper (const gchar * name); +void indicator_image_helper_update (GtkImage * image, + const gchar * name); +void indicator_image_helper_update_from_gicon (GtkImage * image, + GIcon * icon); #endif /* __INDICATOR_IMAGE_HELPER_H__ */ |