diff options
author | Ted Gould <ted@canonical.com> | 2009-04-16 16:03:57 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-04-16 16:03:57 -0500 |
commit | 8fa3697487b63874cc60446c6674f77b62ee7414 (patch) | |
tree | fd0f1d2f6b362d931875d786402e3a5034c33f1f /tests/glib-server-nomenu.c | |
parent | 4cf3e30cfa9bace377649683d7c4e76c634b02e8 (diff) | |
download | libdbusmenu-8fa3697487b63874cc60446c6674f77b62ee7414.tar.gz libdbusmenu-8fa3697487b63874cc60446c6674f77b62ee7414.tar.bz2 libdbusmenu-8fa3697487b63874cc60446c6674f77b62ee7414.zip |
Adding in tests dictory, a test, and making it compile
Diffstat (limited to 'tests/glib-server-nomenu.c')
-rw-r--r-- | tests/glib-server-nomenu.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/glib-server-nomenu.c b/tests/glib-server-nomenu.c new file mode 100644 index 0000000..36aac3e --- /dev/null +++ b/tests/glib-server-nomenu.c @@ -0,0 +1,18 @@ +#include <glib.h> + +#include <libdbusmenu-glib/server.h> +#include <libdbusmenu-glib/menuitem.h> + +int +main (int argc, char ** argv) +{ + g_type_init(); + + DbusmenuServer * server = dbusmenu_server_new("/org/test"); + DbusmenuMenuitem * menuitem = dbusmenu_menuitem_new(); + dbusmenu_server_set_root(server, menuitem); + + g_main_loop_run(g_main_loop_new(NULL, FALSE)); + + return 0; +} |