~dbusmenu-team/libdbusmenu/trunk.16.10

« back to all changes in this revision

Viewing changes to tests/glib-server-nomenu.c

  • Committer: Ted Gould
  • Date: 2009-04-16 21:03:57 UTC
  • mto: (3.1.1 gtkmenu)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: ted@canonical.com-20090416210357-m3mnvmb9h9tty612
Adding in tests dictory, a test, and making it compile

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <glib.h>
 
2
 
 
3
#include <libdbusmenu-glib/server.h>
 
4
#include <libdbusmenu-glib/menuitem.h>
 
5
 
 
6
int
 
7
main (int argc, char ** argv)
 
8
{
 
9
        g_type_init();
 
10
 
 
11
        DbusmenuServer * server = dbusmenu_server_new("/org/test");
 
12
        DbusmenuMenuitem * menuitem = dbusmenu_menuitem_new();
 
13
        dbusmenu_server_set_root(server, menuitem);
 
14
 
 
15
        g_main_loop_run(g_main_loop_new(NULL, FALSE));
 
16
 
 
17
        return 0;
 
18
}