diff options
author | Ted Gould <ted@gould.cx> | 2010-03-10 22:10:05 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-10 22:10:05 -0600 |
commit | fdba9943dd3f86221df081b4c94089b30dfb9fef (patch) | |
tree | 618269f52f122feaf6100fe2421a6b08eba71c29 /helper/test-loader.c | |
parent | 436e5f16715448637e71fad02689d99eb7a2d8c6 (diff) | |
parent | fc9f46093c8b8a6564c62b5e6c9b6ec591acbf99 (diff) | |
download | libayatana-indicator-fdba9943dd3f86221df081b4c94089b30dfb9fef.tar.gz libayatana-indicator-fdba9943dd3f86221df081b4c94089b30dfb9fef.tar.bz2 libayatana-indicator-fdba9943dd3f86221df081b4c94089b30dfb9fef.zip |
* Upstream merge
* Adding in a image loader helper for indicators.
Diffstat (limited to 'helper/test-loader.c')
-rw-r--r-- | helper/test-loader.c | 18 |
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; +} |