e->modifiers = modifiers;
return TRUE;
}
-
-/*
- * This is a rather annoying function needed to replace
- * NULL values of strings with the empty string. Null string
- * values can be created by the atk_object_get_name or text selection
- */
-static const void *
-provide_defaults(const gint type,
- const void *val)
-{
- switch (type)
- {
- case DBUS_TYPE_STRING:
- case DBUS_TYPE_OBJECT_PATH:
- if (!val)
- return "";
- else
- return val;
- default:
- return val;
- }
-}
{NULL}
};
-static GDBusConnection *bus_connection = NULL;
static GDBusProxy *sm_proxy = NULL;
static char *client_id = NULL;
static GDBusProxy *client_proxy = NULL;
#define SM_CLIENT_DBUS_INTERFACE "org.gnome.SessionManager.ClientPrivate"
-static void registry_session_init (const char *previous_client_id, const char *exe);
-
static void
on_session_over (GDBusProxy *proxy,
gchar *sender_name,
return (sm_proxy != NULL);
}
-static void
-stop_cb (gpointer data)
-{
- g_main_loop_quit (mainloop);
-}
-
static gboolean
end_session_response (gboolean is_okay, const gchar *reason)
{