File: test-loader.c

package info (click to toggle)
libayatana-indicator 0.8.4-1%2Bdeb11u2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 940 kB
  • sloc: ansic: 4,851; makefile: 555; python: 25; sh: 15; xml: 14
file content (18 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
}