[gnome-packagekit] Add a silly hack until we get some metadata about animated icon sizes
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-packagekit] Add a silly hack until we get some metadata about animated icon sizes
- Date: Wed, 27 May 2009 11:38:04 -0400 (EDT)
commit c8d4d72ece8a40d5e8c9d99f954343bc9648141f
Author: Matthias Clasen <mclasen redhat com>
Date: Wed May 27 16:37:08 2009 +0100
Add a silly hack until we get some metadata about animated icon sizes
Signed-off-by: Richard Hughes <richard hughsie com>
---
src/gpk-animated-icon.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/gpk-animated-icon.c b/src/gpk-animated-icon.c
index afe71e7..32692c0 100644
--- a/src/gpk-animated-icon.c
+++ b/src/gpk-animated-icon.c
@@ -122,6 +122,12 @@ gpk_animated_icon_set_filename_tile (GpkAnimatedIcon *icon, GtkIconSize size, co
return FALSE;
}
+ /* silly hack until we get some metadata */
+ if (g_strcmp0 (name, "process-working") == 0) {
+ w = gdk_pixbuf_get_width (pixbuf) / 8;
+ h = gdk_pixbuf_get_height (pixbuf) / 4;
+ }
+
cols = gdk_pixbuf_get_width (pixbuf) / w;
rows = gdk_pixbuf_get_height (pixbuf) / h;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]