aboutsummaryrefslogtreecommitdiff
path: root/helper/test-loader.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-03-10 16:30:19 -0600
committerTed Gould <ted@gould.cx>2010-03-10 16:30:19 -0600
commit0660884bfea160a9870f814bfd85265d264a34eb (patch)
treecd6b0cdcaaa8c2a53a500cca3f8547fe693a0fd5 /helper/test-loader.c
parent12ab8f4476b500c21747514cfbec272d0cbd5ada (diff)
downloadlibayatana-indicator-0660884bfea160a9870f814bfd85265d264a34eb.tar.gz
libayatana-indicator-0660884bfea160a9870f814bfd85265d264a34eb.tar.bz2
libayatana-indicator-0660884bfea160a9870f814bfd85265d264a34eb.zip
A little loader to test to see if we load an icon and what size it is.
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;
+}