/* Since there are two places where we transition to OFFLINE, we split that code out into a separate function.  */
static void g_dbus_menu_group_go_offline(GDBusMenuGroup *group)
/* Since there are two places where we transition to OFFLINE, we split that code out into a separate function.  */
static void g_dbus_menu_group_go_offline(GDBusMenuGroup *group)
{
  g_dbus_menu_path_deactivate (group->path);
  g_dbus_connection_call (group->path->id->connection,
                          group->path->id->bus_name,
                          group->path->id->object_path,
                          "org.gtk.Menus", "End",
                          g_variant_new_parsed ("([ %u ],)", group->id),
                          NULL, G_DBUS_CALL_FLAGS_NONE, -1,
                          NULL, NULL, NULL);
  group->state = GROUP_OFFLINE;
}