/* spawn the master */
spawn ("activated\n"
"open file:///a file:///b\n"
- "cmdline '40 +' '2'\n"
"exit status: 0\n",
"./app", NULL);
spawn ("exit status: 0\n",
"./app", "/a", "/b", NULL);
- spawn ("40 + 2 = 42\n"
- "exit status: 42\n",
- "./cmd", "40 +", "2", NULL);
-
g_main_loop_run (main_loop);
g_object_unref (c);
state = g_action_group_get_action_state (G_ACTION_GROUP (app), "test");
g_assert (g_variant_get_boolean (state) == TRUE);
+ action = g_action_map_lookup_action (G_ACTION_MAP (app), "test");
+ g_assert (action != NULL);
+
g_action_map_remove_action (G_ACTION_MAP (app), "test");
actions = g_action_group_list_actions (G_ACTION_GROUP (app));
gchar *argv[] = { binpath, NULL };
GApplication *app;
- g_unsetenv ("DBUS_SESSION_BUS_ADDRESS");
-
app = g_application_new ("org.gtk.Unimportant",
G_APPLICATION_FLAGS_NONE);
g_signal_connect (app, "activate", G_CALLBACK (on_activate), NULL);
gchar *argv[] = { binpath, "-invalid", NULL };
GApplication *app;
- g_unsetenv ("DBUS_SESSION_BUS_ADDRESS");
-
app = g_object_new (test_loc_cmd_app_get_type (),
"application-id", "org.gtk.Unimportant",
"flags", G_APPLICATION_FLAGS_NONE,