Skip to content
Snippets Groups Projects
Commit 2dd01460 authored by Jannis Pohlmann's avatar Jannis Pohlmann
Browse files

Make test applications compile and run again.

parent bd9c268f
No related branches found
No related tags found
No related merge requests found
......@@ -228,10 +228,12 @@ main (int argc,
gint result = EXIT_SUCCESS;
gint n;
g_type_init ();
if (!g_thread_supported ())
g_thread_init (NULL);
garcon_init ("XFCE");
garcon_set_environment ("XFCE");
if (argc > 1)
file = g_file_new_for_path (argv[1]);
......@@ -300,7 +302,5 @@ main (int argc,
g_object_unref (parser);
garcon_shutdown ();
return result;
}
......@@ -84,7 +84,7 @@ print_menu (GarconMenu *menu,
&& garcon_menu_element_get_visible (iter->data))
{
g_printf ("%s\t%s\t%s\n", name, garcon_menu_item_get_desktop_id (iter->data),
garcon_menu_item_get_filename (iter->data));
garcon_menu_item_get_path (iter->data));
}
}
......@@ -111,8 +111,8 @@ main (int argc,
g_set_prgname ("test-menu-spec");
/* Initialize menu library */
garcon_init (NULL);
/* Initialize the type system */
g_type_init ();
/* Try to get the root menu */
menu = garcon_menu_new_applications ();
......@@ -138,8 +138,5 @@ main (int argc,
#endif
}
/* Shut down the menu library */
garcon_shutdown ();
return exit_code;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment