aboutsummaryrefslogtreecommitdiff
path: root/helper/test-loader.c
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2010-03-11 16:34:22 -0500
committerKen VanDine <ken.vandine@canonical.com>2010-03-11 16:34:22 -0500
commitc74b2455350de6b46dd5b254a41e685783468283 (patch)
treedb318eb85d6b43c3e45406156df62f095de211cd /helper/test-loader.c
parente9aea6f9478ec403fee9e6791c178e4fe95da560 (diff)
parenta815f8420172fd403de2669ecce4b6a2c19dc5f9 (diff)
downloadlibayatana-indicator-c74b2455350de6b46dd5b254a41e685783468283.tar.gz
libayatana-indicator-c74b2455350de6b46dd5b254a41e685783468283.tar.bz2
libayatana-indicator-c74b2455350de6b46dd5b254a41e685783468283.zip
* Upstream release 0.3.5
* Adding in a image loader helper for indicators.
Diffstat (limited to 'helper/test-loader.c')
-rw-r--r--helper/test-loader.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/helper/test-loader.c b/helper/test-loader.c
new file mode 100644
index 0000000..6a06248
--- /dev/null
+++ b/helper/test-loader.c
@@ -0,0 +1,18 @@
+
+#include <gtk/gtk.h>
+#include "indicator-image-helper.h"
+
+int
+main (int argv, char * argc[])
+{
+ gtk_init(&argv, &argc);
+
+ GtkImage * image = indicator_image_helper(argc[1]);
+
+ GdkPixbuf * pixbuf = gtk_image_get_pixbuf(image);
+
+ g_debug("Pixbuf width: %d", gdk_pixbuf_get_width(pixbuf));
+ g_debug("Pixbuf height: %d", gdk_pixbuf_get_height(pixbuf));
+
+ return;
+}