From 5c797c35b740399391fecf1cb5bd8eff843d3282 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 9 Nov 2009 00:27:17 -0600 Subject: A simple little app. --- tests/test-simple-app.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'tests') diff --git a/tests/test-simple-app.c b/tests/test-simple-app.c index 9c2d164..9e779ec 100644 --- a/tests/test-simple-app.c +++ b/tests/test-simple-app.c @@ -1,8 +1,32 @@ +#include +#include +#include +#include + +static GMainLoop * mainloop = NULL; + int main (int argc, char ** argv) { + g_type_init(); + + DbusmenuServer * dms = dbusmenu_server_new("/menu"); + DbusmenuMenuitem * dmi = dbusmenu_menuitem_new(); + dbusmenu_menuitem_property_set(dmi, "label", "Bob"); + + CustomIndicator * ci = CUSTOM_INDICATOR(g_object_new(CUSTOM_INDICATOR_TYPE, + "id", "test-application", + "status-enum", CUSTOM_INDICATOR_STATUS_ACTIVE, + "icon-name", "system-shutdown", + "menu-object", dms, + NULL)); + + mainloop = g_main_loop_new(NULL, FALSE); + g_main_loop_run(mainloop); + g_object_unref(G_OBJECT(ci)); + g_debug("Quiting"); return 0; } -- cgit v1.2.3