diff options
author | Ted Gould <ted@canonical.com> | 2009-10-08 20:12:48 -0400 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-10-08 20:12:48 -0400 |
commit | 97a4004d26cd5ebec0b25b51d4793d1df51b5dba (patch) | |
tree | 3aca6ab71d01c391ccceb3b9f161127c5047d916 /tests/dummy-indicator-simple.c | |
parent | a28e917b914b07de67027c97eb29d533e3fe9393 (diff) | |
download | libayatana-indicator-97a4004d26cd5ebec0b25b51d4793d1df51b5dba.tar.gz libayatana-indicator-97a4004d26cd5ebec0b25b51d4793d1df51b5dba.tar.bz2 libayatana-indicator-97a4004d26cd5ebec0b25b51d4793d1df51b5dba.zip |
Create a very simple indicator and testing it.
Diffstat (limited to 'tests/dummy-indicator-simple.c')
-rw-r--r-- | tests/dummy-indicator-simple.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/dummy-indicator-simple.c b/tests/dummy-indicator-simple.c new file mode 100644 index 0000000..d939141 --- /dev/null +++ b/tests/dummy-indicator-simple.c @@ -0,0 +1,23 @@ + +#include "libindicator/indicator.h" + +INDICATOR_SET_VERSION +INDICATOR_SET_NAME("dummy-indicator-simple") + +GtkLabel * +get_label (void) +{ + return GTK_LABEL(gtk_label_new("Simple Item")); +} + +GtkImage * +get_icon (void) +{ + return GTK_IMAGE(gtk_image_new()); +} + +GtkMenu * +get_menu (void) +{ + return GTK_MENU(gtk_menu_new()); +} |