summaryrefslogtreecommitdiff
path: root/x11/gnome-panel/files
diff options
context:
space:
mode:
Diffstat (limited to 'x11/gnome-panel/files')
-rw-r--r--x11/gnome-panel/files/gp-consolekit-manager-gen.c1901
-rw-r--r--x11/gnome-panel/files/gp-consolekit-manager-gen.h315
-rw-r--r--x11/gnome-panel/files/org.freedesktop.ConsoleKit.Manager.xml32
-rw-r--r--x11/gnome-panel/files/patch-configure305
-rw-r--r--x11/gnome-panel/files/patch-modules_action-button_gp-lock-screen-applet.c28
-rw-r--r--x11/gnome-panel/files/patch-modules_launcher_gp-launcher-applet.c28
-rw-r--r--x11/gnome-panel/files/patch-modules_menu_Makefile.in101
-rw-r--r--x11/gnome-panel/files/patch-modules_menu_gp-lock-logout.c226
-rw-r--r--x11/gnome-panel/files/patch-modules_menu_gp-menu-utils.c28
9 files changed, 2964 insertions, 0 deletions
diff --git a/x11/gnome-panel/files/gp-consolekit-manager-gen.c b/x11/gnome-panel/files/gp-consolekit-manager-gen.c
new file mode 100644
index 000000000000..fbe06a9bd46c
--- /dev/null
+++ b/x11/gnome-panel/files/gp-consolekit-manager-gen.c
@@ -0,0 +1,1901 @@
+/*
+ * This file is generated by gdbus-codegen, do not modify it.
+ *
+ * The license of this code is the same as for the D-Bus interface description
+ * it was derived from. Note that it links to GLib, so must comply with the
+ * LGPL linking clauses.
+ */
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include "gp-consolekit-manager-gen.h"
+
+#include <string.h>
+#ifdef G_OS_UNIX
+# include <gio/gunixfdlist.h>
+#endif
+
+typedef struct
+{
+ GDBusArgInfo parent_struct;
+ gboolean use_gvariant;
+} _ExtendedGDBusArgInfo;
+
+typedef struct
+{
+ GDBusMethodInfo parent_struct;
+ const gchar *signal_name;
+ gboolean pass_fdlist;
+} _ExtendedGDBusMethodInfo;
+
+typedef struct
+{
+ GDBusSignalInfo parent_struct;
+ const gchar *signal_name;
+} _ExtendedGDBusSignalInfo;
+
+typedef struct
+{
+ GDBusPropertyInfo parent_struct;
+ const gchar *hyphen_name;
+ guint use_gvariant : 1;
+ guint emits_changed_signal : 1;
+} _ExtendedGDBusPropertyInfo;
+
+typedef struct
+{
+ GDBusInterfaceInfo parent_struct;
+ const gchar *hyphen_name;
+} _ExtendedGDBusInterfaceInfo;
+
+typedef struct
+{
+ const _ExtendedGDBusPropertyInfo *info;
+ guint prop_id;
+ GValue orig_value; /* the value before the change */
+} ChangedProperty;
+
+static void
+_changed_property_free (ChangedProperty *data)
+{
+ g_value_unset (&data->orig_value);
+ g_free (data);
+}
+
+static gboolean
+_g_strv_equal0 (gchar **a, gchar **b)
+{
+ gboolean ret = FALSE;
+ guint n;
+ if (a == NULL && b == NULL)
+ {
+ ret = TRUE;
+ goto out;
+ }
+ if (a == NULL || b == NULL)
+ goto out;
+ if (g_strv_length (a) != g_strv_length (b))
+ goto out;
+ for (n = 0; a[n] != NULL; n++)
+ if (g_strcmp0 (a[n], b[n]) != 0)
+ goto out;
+ ret = TRUE;
+out:
+ return ret;
+}
+
+static gboolean
+_g_variant_equal0 (GVariant *a, GVariant *b)
+{
+ gboolean ret = FALSE;
+ if (a == NULL && b == NULL)
+ {
+ ret = TRUE;
+ goto out;
+ }
+ if (a == NULL || b == NULL)
+ goto out;
+ ret = g_variant_equal (a, b);
+out:
+ return ret;
+}
+
+G_GNUC_UNUSED static gboolean
+_g_value_equal (const GValue *a, const GValue *b)
+{
+ gboolean ret = FALSE;
+ g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b));
+ switch (G_VALUE_TYPE (a))
+ {
+ case G_TYPE_BOOLEAN:
+ ret = (g_value_get_boolean (a) == g_value_get_boolean (b));
+ break;
+ case G_TYPE_UCHAR:
+ ret = (g_value_get_uchar (a) == g_value_get_uchar (b));
+ break;
+ case G_TYPE_INT:
+ ret = (g_value_get_int (a) == g_value_get_int (b));
+ break;
+ case G_TYPE_UINT:
+ ret = (g_value_get_uint (a) == g_value_get_uint (b));
+ break;
+ case G_TYPE_INT64:
+ ret = (g_value_get_int64 (a) == g_value_get_int64 (b));
+ break;
+ case G_TYPE_UINT64:
+ ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b));
+ break;
+ case G_TYPE_DOUBLE:
+ {
+ /* Avoid -Wfloat-equal warnings by doing a direct bit compare */
+ gdouble da = g_value_get_double (a);
+ gdouble db = g_value_get_double (b);
+ ret = memcmp (&da, &db, sizeof (gdouble)) == 0;
+ }
+ break;
+ case G_TYPE_STRING:
+ ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0);
+ break;
+ case G_TYPE_VARIANT:
+ ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b));
+ break;
+ default:
+ if (G_VALUE_TYPE (a) == G_TYPE_STRV)
+ ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b));
+ else
+ g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a)));
+ break;
+ }
+ return ret;
+}
+
+/* ------------------------------------------------------------------------
+ * Code for interface org.freedesktop.ConsoleKit.Manager
+ * ------------------------------------------------------------------------
+ */
+
+/**
+ * SECTION:GpConsoleKitManagerGen
+ * @title: GpConsoleKitManagerGen
+ * @short_description: Generated C code for the org.freedesktop.ConsoleKit.Manager D-Bus interface
+ *
+ * This section contains code for working with the <link linkend="gdbus-interface-org-freedesktop-ConsoleKit-Manager.top_of_page">org.freedesktop.ConsoleKit.Manager</link> D-Bus interface in C.
+ */
+
+/* ---- Introspection data for org.freedesktop.ConsoleKit.Manager ---- */
+
+static const _ExtendedGDBusArgInfo _gp_console_kit_manager_gen_method_info_suspend_IN_ARG_interactive =
+{
+ {
+ -1,
+ (gchar *) "interactive",
+ (gchar *) "b",
+ NULL
+ },
+ FALSE
+};
+
+static const GDBusArgInfo * const _gp_console_kit_manager_gen_method_info_suspend_IN_ARG_pointers[] =
+{
+ &_gp_console_kit_manager_gen_method_info_suspend_IN_ARG_interactive.parent_struct,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _gp_console_kit_manager_gen_method_info_suspend =
+{
+ {
+ -1,
+ (gchar *) "Suspend",
+ (GDBusArgInfo **) &_gp_console_kit_manager_gen_method_info_suspend_IN_ARG_pointers,
+ NULL,
+ NULL
+ },
+ "handle-suspend",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _gp_console_kit_manager_gen_method_info_hibernate_IN_ARG_interactive =
+{
+ {
+ -1,
+ (gchar *) "interactive",
+ (gchar *) "b",
+ NULL
+ },
+ FALSE
+};
+
+static const GDBusArgInfo * const _gp_console_kit_manager_gen_method_info_hibernate_IN_ARG_pointers[] =
+{
+ &_gp_console_kit_manager_gen_method_info_hibernate_IN_ARG_interactive.parent_struct,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _gp_console_kit_manager_gen_method_info_hibernate =
+{
+ {
+ -1,
+ (gchar *) "Hibernate",
+ (GDBusArgInfo **) &_gp_console_kit_manager_gen_method_info_hibernate_IN_ARG_pointers,
+ NULL,
+ NULL
+ },
+ "handle-hibernate",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _gp_console_kit_manager_gen_method_info_hybrid_sleep_IN_ARG_interactive =
+{
+ {
+ -1,
+ (gchar *) "interactive",
+ (gchar *) "b",
+ NULL
+ },
+ FALSE
+};
+
+static const GDBusArgInfo * const _gp_console_kit_manager_gen_method_info_hybrid_sleep_IN_ARG_pointers[] =
+{
+ &_gp_console_kit_manager_gen_method_info_hybrid_sleep_IN_ARG_interactive.parent_struct,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _gp_console_kit_manager_gen_method_info_hybrid_sleep =
+{
+ {
+ -1,
+ (gchar *) "HybridSleep",
+ (GDBusArgInfo **) &_gp_console_kit_manager_gen_method_info_hybrid_sleep_IN_ARG_pointers,
+ NULL,
+ NULL
+ },
+ "handle-hybrid-sleep",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _gp_console_kit_manager_gen_method_info_can_suspend_OUT_ARG_result =
+{
+ {
+ -1,
+ (gchar *) "result",
+ (gchar *) "s",
+ NULL
+ },
+ FALSE
+};
+
+static const GDBusArgInfo * const _gp_console_kit_manager_gen_method_info_can_suspend_OUT_ARG_pointers[] =
+{
+ &_gp_console_kit_manager_gen_method_info_can_suspend_OUT_ARG_result.parent_struct,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _gp_console_kit_manager_gen_method_info_can_suspend =
+{
+ {
+ -1,
+ (gchar *) "CanSuspend",
+ NULL,
+ (GDBusArgInfo **) &_gp_console_kit_manager_gen_method_info_can_suspend_OUT_ARG_pointers,
+ NULL
+ },
+ "handle-can-suspend",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _gp_console_kit_manager_gen_method_info_can_hibernate_OUT_ARG_result =
+{
+ {
+ -1,
+ (gchar *) "result",
+ (gchar *) "s",
+ NULL
+ },
+ FALSE
+};
+
+static const GDBusArgInfo * const _gp_console_kit_manager_gen_method_info_can_hibernate_OUT_ARG_pointers[] =
+{
+ &_gp_console_kit_manager_gen_method_info_can_hibernate_OUT_ARG_result.parent_struct,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _gp_console_kit_manager_gen_method_info_can_hibernate =
+{
+ {
+ -1,
+ (gchar *) "CanHibernate",
+ NULL,
+ (GDBusArgInfo **) &_gp_console_kit_manager_gen_method_info_can_hibernate_OUT_ARG_pointers,
+ NULL
+ },
+ "handle-can-hibernate",
+ FALSE
+};
+
+static const _ExtendedGDBusArgInfo _gp_console_kit_manager_gen_method_info_can_hybrid_sleep_OUT_ARG_result =
+{
+ {
+ -1,
+ (gchar *) "result",
+ (gchar *) "s",
+ NULL
+ },
+ FALSE
+};
+
+static const GDBusArgInfo * const _gp_console_kit_manager_gen_method_info_can_hybrid_sleep_OUT_ARG_pointers[] =
+{
+ &_gp_console_kit_manager_gen_method_info_can_hybrid_sleep_OUT_ARG_result.parent_struct,
+ NULL
+};
+
+static const _ExtendedGDBusMethodInfo _gp_console_kit_manager_gen_method_info_can_hybrid_sleep =
+{
+ {
+ -1,
+ (gchar *) "CanHybridSleep",
+ NULL,
+ (GDBusArgInfo **) &_gp_console_kit_manager_gen_method_info_can_hybrid_sleep_OUT_ARG_pointers,
+ NULL
+ },
+ "handle-can-hybrid-sleep",
+ FALSE
+};
+
+static const GDBusMethodInfo * const _gp_console_kit_manager_gen_method_info_pointers[] =
+{
+ &_gp_console_kit_manager_gen_method_info_suspend.parent_struct,
+ &_gp_console_kit_manager_gen_method_info_hibernate.parent_struct,
+ &_gp_console_kit_manager_gen_method_info_hybrid_sleep.parent_struct,
+ &_gp_console_kit_manager_gen_method_info_can_suspend.parent_struct,
+ &_gp_console_kit_manager_gen_method_info_can_hibernate.parent_struct,
+ &_gp_console_kit_manager_gen_method_info_can_hybrid_sleep.parent_struct,
+ NULL
+};
+
+static const _ExtendedGDBusInterfaceInfo _gp_console_kit_manager_gen_interface_info =
+{
+ {
+ -1,
+ (gchar *) "org.freedesktop.ConsoleKit.Manager",
+ (GDBusMethodInfo **) &_gp_console_kit_manager_gen_method_info_pointers,
+ NULL,
+ NULL,
+ NULL
+ },
+ "console-kit-manager-gen",
+};
+
+
+/**
+ * gp_console_kit_manager_gen_interface_info:
+ *
+ * Gets a machine-readable description of the <link linkend="gdbus-interface-org-freedesktop-ConsoleKit-Manager.top_of_page">org.freedesktop.ConsoleKit.Manager</link> D-Bus interface.
+ *
+ * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
+ */
+GDBusInterfaceInfo *
+gp_console_kit_manager_gen_interface_info (void)
+{
+ return (GDBusInterfaceInfo *) &_gp_console_kit_manager_gen_interface_info.parent_struct;
+}
+
+/**
+ * gp_console_kit_manager_gen_override_properties:
+ * @klass: The class structure for a #GObject derived class.
+ * @property_id_begin: The property id to assign to the first overridden property.
+ *
+ * Overrides all #GObject properties in the #GpConsoleKitManagerGen interface for a concrete class.
+ * The properties are overridden in the order they are defined.
+ *
+ * Returns: The last property id.
+ */
+guint
+gp_console_kit_manager_gen_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin)
+{
+ return property_id_begin - 1;
+}
+
+
+
+/**
+ * GpConsoleKitManagerGen:
+ *
+ * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-ConsoleKit-Manager.top_of_page">org.freedesktop.ConsoleKit.Manager</link>.
+ */
+
+/**
+ * GpConsoleKitManagerGenIface:
+ * @parent_iface: The parent interface.
+ * @handle_can_hibernate: Handler for the #GpConsoleKitManagerGen::handle-can-hibernate signal.
+ * @handle_can_hybrid_sleep: Handler for the #GpConsoleKitManagerGen::handle-can-hybrid-sleep signal.
+ * @handle_can_suspend: Handler for the #GpConsoleKitManagerGen::handle-can-suspend signal.
+ * @handle_hibernate: Handler for the #GpConsoleKitManagerGen::handle-hibernate signal.
+ * @handle_hybrid_sleep: Handler for the #GpConsoleKitManagerGen::handle-hybrid-sleep signal.
+ * @handle_suspend: Handler for the #GpConsoleKitManagerGen::handle-suspend signal.
+ *
+ * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-ConsoleKit-Manager.top_of_page">org.freedesktop.ConsoleKit.Manager</link>.
+ */
+
+typedef GpConsoleKitManagerGenIface GpConsoleKitManagerGenInterface;
+G_DEFINE_INTERFACE (GpConsoleKitManagerGen, gp_console_kit_manager_gen, G_TYPE_OBJECT)
+
+static void
+gp_console_kit_manager_gen_default_init (GpConsoleKitManagerGenIface *iface)
+{
+ /* GObject signals for incoming D-Bus method calls: */
+ /**
+ * GpConsoleKitManagerGen::handle-suspend:
+ * @object: A #GpConsoleKitManagerGen.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_interactive: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.Suspend">Suspend()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gp_console_kit_manager_gen_complete_suspend() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-suspend",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (GpConsoleKitManagerGenIface, handle_suspend),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 2,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN);
+
+ /**
+ * GpConsoleKitManagerGen::handle-hibernate:
+ * @object: A #GpConsoleKitManagerGen.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_interactive: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.Hibernate">Hibernate()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gp_console_kit_manager_gen_complete_hibernate() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-hibernate",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (GpConsoleKitManagerGenIface, handle_hibernate),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 2,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN);
+
+ /**
+ * GpConsoleKitManagerGen::handle-hybrid-sleep:
+ * @object: A #GpConsoleKitManagerGen.
+ * @invocation: A #GDBusMethodInvocation.
+ * @arg_interactive: Argument passed by remote caller.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.HybridSleep">HybridSleep()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gp_console_kit_manager_gen_complete_hybrid_sleep() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-hybrid-sleep",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (GpConsoleKitManagerGenIface, handle_hybrid_sleep),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 2,
+ G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN);
+
+ /**
+ * GpConsoleKitManagerGen::handle-can-suspend:
+ * @object: A #GpConsoleKitManagerGen.
+ * @invocation: A #GDBusMethodInvocation.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.CanSuspend">CanSuspend()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gp_console_kit_manager_gen_complete_can_suspend() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-can-suspend",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (GpConsoleKitManagerGenIface, handle_can_suspend),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 1,
+ G_TYPE_DBUS_METHOD_INVOCATION);
+
+ /**
+ * GpConsoleKitManagerGen::handle-can-hibernate:
+ * @object: A #GpConsoleKitManagerGen.
+ * @invocation: A #GDBusMethodInvocation.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.CanHibernate">CanHibernate()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gp_console_kit_manager_gen_complete_can_hibernate() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-can-hibernate",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (GpConsoleKitManagerGenIface, handle_can_hibernate),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 1,
+ G_TYPE_DBUS_METHOD_INVOCATION);
+
+ /**
+ * GpConsoleKitManagerGen::handle-can-hybrid-sleep:
+ * @object: A #GpConsoleKitManagerGen.
+ * @invocation: A #GDBusMethodInvocation.
+ *
+ * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.CanHybridSleep">CanHybridSleep()</link> D-Bus method.
+ *
+ * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call gp_console_kit_manager_gen_complete_can_hybrid_sleep() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
+ *
+ * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
+ */
+ g_signal_new ("handle-can-hybrid-sleep",
+ G_TYPE_FROM_INTERFACE (iface),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (GpConsoleKitManagerGenIface, handle_can_hybrid_sleep),
+ g_signal_accumulator_true_handled,
+ NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_BOOLEAN,
+ 1,
+ G_TYPE_DBUS_METHOD_INVOCATION);
+
+}
+
+/**
+ * gp_console_kit_manager_gen_call_suspend:
+ * @proxy: A #GpConsoleKitManagerGenProxy.
+ * @arg_interactive: Argument to pass with the method invocation.
+ * @cancellable: (nullable): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.Suspend">Suspend()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
+ * You can then call gp_console_kit_manager_gen_call_suspend_finish() to get the result of the operation.
+ *
+ * See gp_console_kit_manager_gen_call_suspend_sync() for the synchronous, blocking version of this method.
+ */
+void
+gp_console_kit_manager_gen_call_suspend (
+ GpConsoleKitManagerGen *proxy,
+ gboolean arg_interactive,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "Suspend",
+ g_variant_new ("(b)",
+ arg_interactive),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * gp_console_kit_manager_gen_call_suspend_finish:
+ * @proxy: A #GpConsoleKitManagerGenProxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gp_console_kit_manager_gen_call_suspend().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with gp_console_kit_manager_gen_call_suspend().
+ *
+ * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
+ */
+gboolean
+gp_console_kit_manager_gen_call_suspend_finish (
+ GpConsoleKitManagerGen *proxy,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * gp_console_kit_manager_gen_call_suspend_sync:
+ * @proxy: A #GpConsoleKitManagerGenProxy.
+ * @arg_interactive: Argument to pass with the method invocation.
+ * @cancellable: (nullable): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.Suspend">Suspend()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See gp_console_kit_manager_gen_call_suspend() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
+ */
+gboolean
+gp_console_kit_manager_gen_call_suspend_sync (
+ GpConsoleKitManagerGen *proxy,
+ gboolean arg_interactive,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "Suspend",
+ g_variant_new ("(b)",
+ arg_interactive),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * gp_console_kit_manager_gen_call_hibernate:
+ * @proxy: A #GpConsoleKitManagerGenProxy.
+ * @arg_interactive: Argument to pass with the method invocation.
+ * @cancellable: (nullable): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.Hibernate">Hibernate()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
+ * You can then call gp_console_kit_manager_gen_call_hibernate_finish() to get the result of the operation.
+ *
+ * See gp_console_kit_manager_gen_call_hibernate_sync() for the synchronous, blocking version of this method.
+ */
+void
+gp_console_kit_manager_gen_call_hibernate (
+ GpConsoleKitManagerGen *proxy,
+ gboolean arg_interactive,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "Hibernate",
+ g_variant_new ("(b)",
+ arg_interactive),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * gp_console_kit_manager_gen_call_hibernate_finish:
+ * @proxy: A #GpConsoleKitManagerGenProxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gp_console_kit_manager_gen_call_hibernate().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with gp_console_kit_manager_gen_call_hibernate().
+ *
+ * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
+ */
+gboolean
+gp_console_kit_manager_gen_call_hibernate_finish (
+ GpConsoleKitManagerGen *proxy,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * gp_console_kit_manager_gen_call_hibernate_sync:
+ * @proxy: A #GpConsoleKitManagerGenProxy.
+ * @arg_interactive: Argument to pass with the method invocation.
+ * @cancellable: (nullable): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.Hibernate">Hibernate()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See gp_console_kit_manager_gen_call_hibernate() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
+ */
+gboolean
+gp_console_kit_manager_gen_call_hibernate_sync (
+ GpConsoleKitManagerGen *proxy,
+ gboolean arg_interactive,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "Hibernate",
+ g_variant_new ("(b)",
+ arg_interactive),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * gp_console_kit_manager_gen_call_hybrid_sleep:
+ * @proxy: A #GpConsoleKitManagerGenProxy.
+ * @arg_interactive: Argument to pass with the method invocation.
+ * @cancellable: (nullable): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.HybridSleep">HybridSleep()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
+ * You can then call gp_console_kit_manager_gen_call_hybrid_sleep_finish() to get the result of the operation.
+ *
+ * See gp_console_kit_manager_gen_call_hybrid_sleep_sync() for the synchronous, blocking version of this method.
+ */
+void
+gp_console_kit_manager_gen_call_hybrid_sleep (
+ GpConsoleKitManagerGen *proxy,
+ gboolean arg_interactive,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "HybridSleep",
+ g_variant_new ("(b)",
+ arg_interactive),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * gp_console_kit_manager_gen_call_hybrid_sleep_finish:
+ * @proxy: A #GpConsoleKitManagerGenProxy.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gp_console_kit_manager_gen_call_hybrid_sleep().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with gp_console_kit_manager_gen_call_hybrid_sleep().
+ *
+ * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
+ */
+gboolean
+gp_console_kit_manager_gen_call_hybrid_sleep_finish (
+ GpConsoleKitManagerGen *proxy,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * gp_console_kit_manager_gen_call_hybrid_sleep_sync:
+ * @proxy: A #GpConsoleKitManagerGenProxy.
+ * @arg_interactive: Argument to pass with the method invocation.
+ * @cancellable: (nullable): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.HybridSleep">HybridSleep()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See gp_console_kit_manager_gen_call_hybrid_sleep() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
+ */
+gboolean
+gp_console_kit_manager_gen_call_hybrid_sleep_sync (
+ GpConsoleKitManagerGen *proxy,
+ gboolean arg_interactive,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "HybridSleep",
+ g_variant_new ("(b)",
+ arg_interactive),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "()");
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * gp_console_kit_manager_gen_call_can_suspend:
+ * @proxy: A #GpConsoleKitManagerGenProxy.
+ * @cancellable: (nullable): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.CanSuspend">CanSuspend()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
+ * You can then call gp_console_kit_manager_gen_call_can_suspend_finish() to get the result of the operation.
+ *
+ * See gp_console_kit_manager_gen_call_can_suspend_sync() for the synchronous, blocking version of this method.
+ */
+void
+gp_console_kit_manager_gen_call_can_suspend (
+ GpConsoleKitManagerGen *proxy,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "CanSuspend",
+ g_variant_new ("()"),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * gp_console_kit_manager_gen_call_can_suspend_finish:
+ * @proxy: A #GpConsoleKitManagerGenProxy.
+ * @out_result: (out) (optional): Return location for return parameter or %NULL to ignore.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gp_console_kit_manager_gen_call_can_suspend().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with gp_console_kit_manager_gen_call_can_suspend().
+ *
+ * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
+ */
+gboolean
+gp_console_kit_manager_gen_call_can_suspend_finish (
+ GpConsoleKitManagerGen *proxy,
+ gchar **out_result,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(s)",
+ out_result);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * gp_console_kit_manager_gen_call_can_suspend_sync:
+ * @proxy: A #GpConsoleKitManagerGenProxy.
+ * @out_result: (out) (optional): Return location for return parameter or %NULL to ignore.
+ * @cancellable: (nullable): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.CanSuspend">CanSuspend()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See gp_console_kit_manager_gen_call_can_suspend() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
+ */
+gboolean
+gp_console_kit_manager_gen_call_can_suspend_sync (
+ GpConsoleKitManagerGen *proxy,
+ gchar **out_result,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "CanSuspend",
+ g_variant_new ("()"),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(s)",
+ out_result);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * gp_console_kit_manager_gen_call_can_hibernate:
+ * @proxy: A #GpConsoleKitManagerGenProxy.
+ * @cancellable: (nullable): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.CanHibernate">CanHibernate()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
+ * You can then call gp_console_kit_manager_gen_call_can_hibernate_finish() to get the result of the operation.
+ *
+ * See gp_console_kit_manager_gen_call_can_hibernate_sync() for the synchronous, blocking version of this method.
+ */
+void
+gp_console_kit_manager_gen_call_can_hibernate (
+ GpConsoleKitManagerGen *proxy,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "CanHibernate",
+ g_variant_new ("()"),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * gp_console_kit_manager_gen_call_can_hibernate_finish:
+ * @proxy: A #GpConsoleKitManagerGenProxy.
+ * @out_result: (out) (optional): Return location for return parameter or %NULL to ignore.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gp_console_kit_manager_gen_call_can_hibernate().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with gp_console_kit_manager_gen_call_can_hibernate().
+ *
+ * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
+ */
+gboolean
+gp_console_kit_manager_gen_call_can_hibernate_finish (
+ GpConsoleKitManagerGen *proxy,
+ gchar **out_result,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(s)",
+ out_result);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * gp_console_kit_manager_gen_call_can_hibernate_sync:
+ * @proxy: A #GpConsoleKitManagerGenProxy.
+ * @out_result: (out) (optional): Return location for return parameter or %NULL to ignore.
+ * @cancellable: (nullable): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.CanHibernate">CanHibernate()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See gp_console_kit_manager_gen_call_can_hibernate() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
+ */
+gboolean
+gp_console_kit_manager_gen_call_can_hibernate_sync (
+ GpConsoleKitManagerGen *proxy,
+ gchar **out_result,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "CanHibernate",
+ g_variant_new ("()"),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(s)",
+ out_result);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * gp_console_kit_manager_gen_call_can_hybrid_sleep:
+ * @proxy: A #GpConsoleKitManagerGenProxy.
+ * @cancellable: (nullable): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.CanHybridSleep">CanHybridSleep()</link> D-Bus method on @proxy.
+ * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
+ * You can then call gp_console_kit_manager_gen_call_can_hybrid_sleep_finish() to get the result of the operation.
+ *
+ * See gp_console_kit_manager_gen_call_can_hybrid_sleep_sync() for the synchronous, blocking version of this method.
+ */
+void
+gp_console_kit_manager_gen_call_can_hybrid_sleep (
+ GpConsoleKitManagerGen *proxy,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_dbus_proxy_call (G_DBUS_PROXY (proxy),
+ "CanHybridSleep",
+ g_variant_new ("()"),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ callback,
+ user_data);
+}
+
+/**
+ * gp_console_kit_manager_gen_call_can_hybrid_sleep_finish:
+ * @proxy: A #GpConsoleKitManagerGenProxy.
+ * @out_result: (out) (optional): Return location for return parameter or %NULL to ignore.
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gp_console_kit_manager_gen_call_can_hybrid_sleep().
+ * @error: Return location for error or %NULL.
+ *
+ * Finishes an operation started with gp_console_kit_manager_gen_call_can_hybrid_sleep().
+ *
+ * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
+ */
+gboolean
+gp_console_kit_manager_gen_call_can_hybrid_sleep_finish (
+ GpConsoleKitManagerGen *proxy,
+ gchar **out_result,
+ GAsyncResult *res,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(s)",
+ out_result);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * gp_console_kit_manager_gen_call_can_hybrid_sleep_sync:
+ * @proxy: A #GpConsoleKitManagerGenProxy.
+ * @out_result: (out) (optional): Return location for return parameter or %NULL to ignore.
+ * @cancellable: (nullable): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL.
+ *
+ * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.CanHybridSleep">CanHybridSleep()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
+ *
+ * See gp_console_kit_manager_gen_call_can_hybrid_sleep() for the asynchronous version of this method.
+ *
+ * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
+ */
+gboolean
+gp_console_kit_manager_gen_call_can_hybrid_sleep_sync (
+ GpConsoleKitManagerGen *proxy,
+ gchar **out_result,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GVariant *_ret;
+ _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
+ "CanHybridSleep",
+ g_variant_new ("()"),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1,
+ cancellable,
+ error);
+ if (_ret == NULL)
+ goto _out;
+ g_variant_get (_ret,
+ "(s)",
+ out_result);
+ g_variant_unref (_ret);
+_out:
+ return _ret != NULL;
+}
+
+/**
+ * gp_console_kit_manager_gen_complete_suspend:
+ * @object: A #GpConsoleKitManagerGen.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.Suspend">Suspend()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+gp_console_kit_manager_gen_complete_suspend (
+ GpConsoleKitManagerGen *object G_GNUC_UNUSED,
+ GDBusMethodInvocation *invocation)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("()"));
+}
+
+/**
+ * gp_console_kit_manager_gen_complete_hibernate:
+ * @object: A #GpConsoleKitManagerGen.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.Hibernate">Hibernate()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+gp_console_kit_manager_gen_complete_hibernate (
+ GpConsoleKitManagerGen *object G_GNUC_UNUSED,
+ GDBusMethodInvocation *invocation)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("()"));
+}
+
+/**
+ * gp_console_kit_manager_gen_complete_hybrid_sleep:
+ * @object: A #GpConsoleKitManagerGen.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.HybridSleep">HybridSleep()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+gp_console_kit_manager_gen_complete_hybrid_sleep (
+ GpConsoleKitManagerGen *object G_GNUC_UNUSED,
+ GDBusMethodInvocation *invocation)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("()"));
+}
+
+/**
+ * gp_console_kit_manager_gen_complete_can_suspend:
+ * @object: A #GpConsoleKitManagerGen.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ * @result: Parameter to return.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.CanSuspend">CanSuspend()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+gp_console_kit_manager_gen_complete_can_suspend (
+ GpConsoleKitManagerGen *object G_GNUC_UNUSED,
+ GDBusMethodInvocation *invocation,
+ const gchar *result)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("(s)",
+ result));
+}
+
+/**
+ * gp_console_kit_manager_gen_complete_can_hibernate:
+ * @object: A #GpConsoleKitManagerGen.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ * @result: Parameter to return.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.CanHibernate">CanHibernate()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+gp_console_kit_manager_gen_complete_can_hibernate (
+ GpConsoleKitManagerGen *object G_GNUC_UNUSED,
+ GDBusMethodInvocation *invocation,
+ const gchar *result)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("(s)",
+ result));
+}
+
+/**
+ * gp_console_kit_manager_gen_complete_can_hybrid_sleep:
+ * @object: A #GpConsoleKitManagerGen.
+ * @invocation: (transfer full): A #GDBusMethodInvocation.
+ * @result: Parameter to return.
+ *
+ * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-ConsoleKit-Manager.CanHybridSleep">CanHybridSleep()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
+ *
+ * This method will free @invocation, you cannot use it afterwards.
+ */
+void
+gp_console_kit_manager_gen_complete_can_hybrid_sleep (
+ GpConsoleKitManagerGen *object G_GNUC_UNUSED,
+ GDBusMethodInvocation *invocation,
+ const gchar *result)
+{
+ g_dbus_method_invocation_return_value (invocation,
+ g_variant_new ("(s)",
+ result));
+}
+
+/* ------------------------------------------------------------------------ */
+
+/**
+ * GpConsoleKitManagerGenProxy:
+ *
+ * The #GpConsoleKitManagerGenProxy structure contains only private data and should only be accessed using the provided API.
+ */
+
+/**
+ * GpConsoleKitManagerGenProxyClass:
+ * @parent_class: The parent class.
+ *
+ * Class structure for #GpConsoleKitManagerGenProxy.
+ */
+
+struct _GpConsoleKitManagerGenProxyPrivate
+{
+ GData *qdata;
+};
+
+static void gp_console_kit_manager_gen_proxy_iface_init (GpConsoleKitManagerGenIface *iface);
+
+#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
+G_DEFINE_TYPE_WITH_CODE (GpConsoleKitManagerGenProxy, gp_console_kit_manager_gen_proxy, G_TYPE_DBUS_PROXY,
+ G_ADD_PRIVATE (GpConsoleKitManagerGenProxy)
+ G_IMPLEMENT_INTERFACE (GP_TYPE_CONSOLE_KIT_MANAGER_GEN, gp_console_kit_manager_gen_proxy_iface_init))
+
+#else
+G_DEFINE_TYPE_WITH_CODE (GpConsoleKitManagerGenProxy, gp_console_kit_manager_gen_proxy, G_TYPE_DBUS_PROXY,
+ G_IMPLEMENT_INTERFACE (GP_TYPE_CONSOLE_KIT_MANAGER_GEN, gp_console_kit_manager_gen_proxy_iface_init))
+
+#endif
+static void
+gp_console_kit_manager_gen_proxy_finalize (GObject *object)
+{
+ GpConsoleKitManagerGenProxy *proxy = GP_CONSOLE_KIT_MANAGER_GEN_PROXY (object);
+ g_datalist_clear (&proxy->priv->qdata);
+ G_OBJECT_CLASS (gp_console_kit_manager_gen_proxy_parent_class)->finalize (object);
+}
+
+static void
+gp_console_kit_manager_gen_proxy_get_property (GObject *object G_GNUC_UNUSED,
+ guint prop_id G_GNUC_UNUSED,
+ GValue *value G_GNUC_UNUSED,
+ GParamSpec *pspec G_GNUC_UNUSED)
+{
+}
+
+static void
+gp_console_kit_manager_gen_proxy_set_property (GObject *object G_GNUC_UNUSED,
+ guint prop_id G_GNUC_UNUSED,
+ const GValue *value G_GNUC_UNUSED,
+ GParamSpec *pspec G_GNUC_UNUSED)
+{
+}
+
+static void
+gp_console_kit_manager_gen_proxy_g_signal (GDBusProxy *proxy,
+ const gchar *sender_name G_GNUC_UNUSED,
+ const gchar *signal_name,
+ GVariant *parameters)
+{
+ _ExtendedGDBusSignalInfo *info;
+ GVariantIter iter;
+ GVariant *child;
+ GValue *paramv;
+ gsize num_params;
+ gsize n;
+ guint signal_id;
+ info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_gp_console_kit_manager_gen_interface_info.parent_struct, signal_name);
+ if (info == NULL)
+ return;
+ num_params = g_variant_n_children (parameters);
+ paramv = g_new0 (GValue, num_params + 1);
+ g_value_init (&paramv[0], GP_TYPE_CONSOLE_KIT_MANAGER_GEN);
+ g_value_set_object (&paramv[0], proxy);
+ g_variant_iter_init (&iter, parameters);
+ n = 1;
+ while ((child = g_variant_iter_next_value (&iter)) != NULL)
+ {
+ _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
+ if (arg_info->use_gvariant)
+ {
+ g_value_init (&paramv[n], G_TYPE_VARIANT);
+ g_value_set_variant (&paramv[n], child);
+ n++;
+ }
+ else
+ g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
+ g_variant_unref (child);
+ }
+ signal_id = g_signal_lookup (info->signal_name, GP_TYPE_CONSOLE_KIT_MANAGER_GEN);
+ g_signal_emitv (paramv, signal_id, 0, NULL);
+ for (n = 0; n < num_params + 1; n++)
+ g_value_unset (&paramv[n]);
+ g_free (paramv);
+}
+
+static void
+gp_console_kit_manager_gen_proxy_g_properties_changed (GDBusProxy *_proxy,
+ GVariant *changed_properties,
+ const gchar *const *invalidated_properties)
+{
+ GpConsoleKitManagerGenProxy *proxy = GP_CONSOLE_KIT_MANAGER_GEN_PROXY (_proxy);
+ guint n;
+ const gchar *key;
+ GVariantIter *iter;
+ _ExtendedGDBusPropertyInfo *info;
+ g_variant_get (changed_properties, "a{sv}", &iter);
+ while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
+ {
+ info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_gp_console_kit_manager_gen_interface_info.parent_struct, key);
+ g_datalist_remove_data (&proxy->priv->qdata, key);
+ if (info != NULL)
+ g_object_notify (G_OBJECT (proxy), info->hyphen_name);
+ }
+ g_variant_iter_free (iter);
+ for (n = 0; invalidated_properties[n] != NULL; n++)
+ {
+ info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_gp_console_kit_manager_gen_interface_info.parent_struct, invalidated_properties[n]);
+ g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
+ if (info != NULL)
+ g_object_notify (G_OBJECT (proxy), info->hyphen_name);
+ }
+}
+
+static void
+gp_console_kit_manager_gen_proxy_init (GpConsoleKitManagerGenProxy *proxy)
+{
+#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
+ proxy->priv = gp_console_kit_manager_gen_proxy_get_instance_private (proxy);
+#else
+ proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, GP_TYPE_CONSOLE_KIT_MANAGER_GEN_PROXY, GpConsoleKitManagerGenProxyPrivate);
+#endif
+
+ g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), gp_console_kit_manager_gen_interface_info ());
+}
+
+static void
+gp_console_kit_manager_gen_proxy_class_init (GpConsoleKitManagerGenProxyClass *klass)
+{
+ GObjectClass *gobject_class;
+ GDBusProxyClass *proxy_class;
+
+ gobject_class = G_OBJECT_CLASS (klass);
+ gobject_class->finalize = gp_console_kit_manager_gen_proxy_finalize;
+ gobject_class->get_property = gp_console_kit_manager_gen_proxy_get_property;
+ gobject_class->set_property = gp_console_kit_manager_gen_proxy_set_property;
+
+ proxy_class = G_DBUS_PROXY_CLASS (klass);
+ proxy_class->g_signal = gp_console_kit_manager_gen_proxy_g_signal;
+ proxy_class->g_properties_changed = gp_console_kit_manager_gen_proxy_g_properties_changed;
+
+#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
+ g_type_class_add_private (klass, sizeof (GpConsoleKitManagerGenProxyPrivate));
+#endif
+}
+
+static void
+gp_console_kit_manager_gen_proxy_iface_init (GpConsoleKitManagerGenIface *iface G_GNUC_UNUSED)
+{
+}
+
+/**
+ * gp_console_kit_manager_gen_proxy_new:
+ * @connection: A #GDBusConnection.
+ * @flags: Flags from the #GDBusProxyFlags enumeration.
+ * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
+ * @object_path: An object path.
+ * @cancellable: (nullable): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
+ * @user_data: User data to pass to @callback.
+ *
+ * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-ConsoleKit-Manager.top_of_page">org.freedesktop.ConsoleKit.Manager</link>. See g_dbus_proxy_new() for more details.
+ *
+ * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
+ * You can then call gp_console_kit_manager_gen_proxy_new_finish() to get the result of the operation.
+ *
+ * See gp_console_kit_manager_gen_proxy_new_sync() for the synchronous, blocking version of this constructor.
+ */
+void
+gp_console_kit_manager_gen_proxy_new (
+ GDBusConnection *connection,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_async_initable_new_async (GP_TYPE_CONSOLE_KIT_MANAGER_GEN_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.ConsoleKit.Manager", NULL);
+}
+
+/**
+ * gp_console_kit_manager_gen_proxy_new_finish:
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gp_console_kit_manager_gen_proxy_new().
+ * @error: Return location for error or %NULL
+ *
+ * Finishes an operation started with gp_console_kit_manager_gen_proxy_new().
+ *
+ * Returns: (transfer full) (type GpConsoleKitManagerGenProxy): The constructed proxy object or %NULL if @error is set.
+ */
+GpConsoleKitManagerGen *
+gp_console_kit_manager_gen_proxy_new_finish (
+ GAsyncResult *res,
+ GError **error)
+{
+ GObject *ret;
+ GObject *source_object;
+ source_object = g_async_result_get_source_object (res);
+ ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
+ g_object_unref (source_object);
+ if (ret != NULL)
+ return GP_CONSOLE_KIT_MANAGER_GEN (ret);
+ else
+ return NULL;
+}
+
+/**
+ * gp_console_kit_manager_gen_proxy_new_sync:
+ * @connection: A #GDBusConnection.
+ * @flags: Flags from the #GDBusProxyFlags enumeration.
+ * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
+ * @object_path: An object path.
+ * @cancellable: (nullable): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL
+ *
+ * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-ConsoleKit-Manager.top_of_page">org.freedesktop.ConsoleKit.Manager</link>. See g_dbus_proxy_new_sync() for more details.
+ *
+ * The calling thread is blocked until a reply is received.
+ *
+ * See gp_console_kit_manager_gen_proxy_new() for the asynchronous version of this constructor.
+ *
+ * Returns: (transfer full) (type GpConsoleKitManagerGenProxy): The constructed proxy object or %NULL if @error is set.
+ */
+GpConsoleKitManagerGen *
+gp_console_kit_manager_gen_proxy_new_sync (
+ GDBusConnection *connection,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GInitable *ret;
+ ret = g_initable_new (GP_TYPE_CONSOLE_KIT_MANAGER_GEN_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.ConsoleKit.Manager", NULL);
+ if (ret != NULL)
+ return GP_CONSOLE_KIT_MANAGER_GEN (ret);
+ else
+ return NULL;
+}
+
+
+/**
+ * gp_console_kit_manager_gen_proxy_new_for_bus:
+ * @bus_type: A #GBusType.
+ * @flags: Flags from the #GDBusProxyFlags enumeration.
+ * @name: A bus name (well-known or unique).
+ * @object_path: An object path.
+ * @cancellable: (nullable): A #GCancellable or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
+ * @user_data: User data to pass to @callback.
+ *
+ * Like gp_console_kit_manager_gen_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
+ *
+ * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
+ * You can then call gp_console_kit_manager_gen_proxy_new_for_bus_finish() to get the result of the operation.
+ *
+ * See gp_console_kit_manager_gen_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
+ */
+void
+gp_console_kit_manager_gen_proxy_new_for_bus (
+ GBusType bus_type,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
+{
+ g_async_initable_new_async (GP_TYPE_CONSOLE_KIT_MANAGER_GEN_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.ConsoleKit.Manager", NULL);
+}
+
+/**
+ * gp_console_kit_manager_gen_proxy_new_for_bus_finish:
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to gp_console_kit_manager_gen_proxy_new_for_bus().
+ * @error: Return location for error or %NULL
+ *
+ * Finishes an operation started with gp_console_kit_manager_gen_proxy_new_for_bus().
+ *
+ * Returns: (transfer full) (type GpConsoleKitManagerGenProxy): The constructed proxy object or %NULL if @error is set.
+ */
+GpConsoleKitManagerGen *
+gp_console_kit_manager_gen_proxy_new_for_bus_finish (
+ GAsyncResult *res,
+ GError **error)
+{
+ GObject *ret;
+ GObject *source_object;
+ source_object = g_async_result_get_source_object (res);
+ ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
+ g_object_unref (source_object);
+ if (ret != NULL)
+ return GP_CONSOLE_KIT_MANAGER_GEN (ret);
+ else
+ return NULL;
+}
+
+/**
+ * gp_console_kit_manager_gen_proxy_new_for_bus_sync:
+ * @bus_type: A #GBusType.
+ * @flags: Flags from the #GDBusProxyFlags enumeration.
+ * @name: A bus name (well-known or unique).
+ * @object_path: An object path.
+ * @cancellable: (nullable): A #GCancellable or %NULL.
+ * @error: Return location for error or %NULL
+ *
+ * Like gp_console_kit_manager_gen_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
+ *
+ * The calling thread is blocked until a reply is received.
+ *
+ * See gp_console_kit_manager_gen_proxy_new_for_bus() for the asynchronous version of this constructor.
+ *
+ * Returns: (transfer full) (type GpConsoleKitManagerGenProxy): The constructed proxy object or %NULL if @error is set.
+ */
+GpConsoleKitManagerGen *
+gp_console_kit_manager_gen_proxy_new_for_bus_sync (
+ GBusType bus_type,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GError **error)
+{
+ GInitable *ret;
+ ret = g_initable_new (GP_TYPE_CONSOLE_KIT_MANAGER_GEN_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.ConsoleKit.Manager", NULL);
+ if (ret != NULL)
+ return GP_CONSOLE_KIT_MANAGER_GEN (ret);
+ else
+ return NULL;
+}
+
+
+/* ------------------------------------------------------------------------ */
+
+/**
+ * GpConsoleKitManagerGenSkeleton:
+ *
+ * The #GpConsoleKitManagerGenSkeleton structure contains only private data and should only be accessed using the provided API.
+ */
+
+/**
+ * GpConsoleKitManagerGenSkeletonClass:
+ * @parent_class: The parent class.
+ *
+ * Class structure for #GpConsoleKitManagerGenSkeleton.
+ */
+
+struct _GpConsoleKitManagerGenSkeletonPrivate
+{
+ GValue *properties;
+ GList *changed_properties;
+ GSource *changed_properties_idle_source;
+ GMainContext *context;
+ GMutex lock;
+};
+
+static void
+_gp_console_kit_manager_gen_skeleton_handle_method_call (
+ GDBusConnection *connection G_GNUC_UNUSED,
+ const gchar *sender G_GNUC_UNUSED,
+ const gchar *object_path G_GNUC_UNUSED,
+ const gchar *interface_name,
+ const gchar *method_name,
+ GVariant *parameters,
+ GDBusMethodInvocation *invocation,
+ gpointer user_data)
+{
+ GpConsoleKitManagerGenSkeleton *skeleton = GP_CONSOLE_KIT_MANAGER_GEN_SKELETON (user_data);
+ _ExtendedGDBusMethodInfo *info;
+ GVariantIter iter;
+ GVariant *child;
+ GValue *paramv;
+ gsize num_params;
+ guint num_extra;
+ gsize n;
+ guint signal_id;
+ GValue return_value = G_VALUE_INIT;
+ info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
+ g_assert (info != NULL);
+ num_params = g_variant_n_children (parameters);
+ num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra);
+ n = 0;
+ g_value_init (&paramv[n], GP_TYPE_CONSOLE_KIT_MANAGER_GEN);
+ g_value_set_object (&paramv[n++], skeleton);
+ g_value_init (&paramv[n], G_TYPE_DBUS_METHOD_INVOCATION);
+ g_value_set_object (&paramv[n++], invocation);
+ if (info->pass_fdlist)
+ {
+#ifdef G_OS_UNIX
+ g_value_init (&paramv[n], G_TYPE_UNIX_FD_LIST);
+ g_value_set_object (&paramv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
+#else
+ g_assert_not_reached ();
+#endif
+ }
+ g_variant_iter_init (&iter, parameters);
+ while ((child = g_variant_iter_next_value (&iter)) != NULL)
+ {
+ _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
+ if (arg_info->use_gvariant)
+ {
+ g_value_init (&paramv[n], G_TYPE_VARIANT);
+ g_value_set_variant (&paramv[n], child);
+ n++;
+ }
+ else
+ g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
+ g_variant_unref (child);
+ }
+ signal_id = g_signal_lookup (info->signal_name, GP_TYPE_CONSOLE_KIT_MANAGER_GEN);
+ g_value_init (&return_value, G_TYPE_BOOLEAN);
+ g_signal_emitv (paramv, signal_id, 0, &return_value);
+ if (!g_value_get_boolean (&return_value))
+ g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name);
+ g_value_unset (&return_value);
+ for (n = 0; n < num_params + num_extra; n++)
+ g_value_unset (&paramv[n]);
+ g_free (paramv);
+}
+
+static GVariant *
+_gp_console_kit_manager_gen_skeleton_handle_get_property (
+ GDBusConnection *connection G_GNUC_UNUSED,
+ const gchar *sender G_GNUC_UNUSED,
+ const gchar *object_path G_GNUC_UNUSED,
+ const gchar *interface_name G_GNUC_UNUSED,
+ const gchar *property_name,
+ GError **error,
+ gpointer user_data)
+{
+ GpConsoleKitManagerGenSkeleton *skeleton = GP_CONSOLE_KIT_MANAGER_GEN_SKELETON (user_data);
+ GValue value = G_VALUE_INIT;
+ GParamSpec *pspec;
+ _ExtendedGDBusPropertyInfo *info;
+ GVariant *ret;
+ ret = NULL;
+ info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_gp_console_kit_manager_gen_interface_info.parent_struct, property_name);
+ g_assert (info != NULL);
+ pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
+ if (pspec == NULL)
+ {
+ g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
+ }
+ else
+ {
+ g_value_init (&value, pspec->value_type);
+ g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
+ ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
+ g_value_unset (&value);
+ }
+ return ret;
+}
+
+static gboolean
+_gp_console_kit_manager_gen_skeleton_handle_set_property (
+ GDBusConnection *connection G_GNUC_UNUSED,
+ const gchar *sender G_GNUC_UNUSED,
+ const gchar *object_path G_GNUC_UNUSED,
+ const gchar *interface_name G_GNUC_UNUSED,
+ const gchar *property_name,
+ GVariant *variant,
+ GError **error,
+ gpointer user_data)
+{
+ GpConsoleKitManagerGenSkeleton *skeleton = GP_CONSOLE_KIT_MANAGER_GEN_SKELETON (user_data);
+ GValue value = G_VALUE_INIT;
+ GParamSpec *pspec;
+ _ExtendedGDBusPropertyInfo *info;
+ gboolean ret;
+ ret = FALSE;
+ info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_gp_console_kit_manager_gen_interface_info.parent_struct, property_name);
+ g_assert (info != NULL);
+ pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
+ if (pspec == NULL)
+ {
+ g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
+ }
+ else
+ {
+ if (info->use_gvariant)
+ g_value_set_variant (&value, variant);
+ else
+ g_dbus_gvariant_to_gvalue (variant, &value);
+ g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
+ g_value_unset (&value);
+ ret = TRUE;
+ }
+ return ret;
+}
+
+static const GDBusInterfaceVTable _gp_console_kit_manager_gen_skeleton_vtable =
+{
+ _gp_console_kit_manager_gen_skeleton_handle_method_call,
+ _gp_console_kit_manager_gen_skeleton_handle_get_property,
+ _gp_console_kit_manager_gen_skeleton_handle_set_property,
+ {NULL}
+};
+
+static GDBusInterfaceInfo *
+gp_console_kit_manager_gen_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
+{
+ return gp_console_kit_manager_gen_interface_info ();
+}
+
+static GDBusInterfaceVTable *
+gp_console_kit_manager_gen_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
+{
+ return (GDBusInterfaceVTable *) &_gp_console_kit_manager_gen_skeleton_vtable;
+}
+
+static GVariant *
+gp_console_kit_manager_gen_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
+{
+ GpConsoleKitManagerGenSkeleton *skeleton = GP_CONSOLE_KIT_MANAGER_GEN_SKELETON (_skeleton);
+
+ GVariantBuilder builder;
+ guint n;
+ g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
+ if (_gp_console_kit_manager_gen_interface_info.parent_struct.properties == NULL)
+ goto out;
+ for (n = 0; _gp_console_kit_manager_gen_interface_info.parent_struct.properties[n] != NULL; n++)
+ {
+ GDBusPropertyInfo *info = _gp_console_kit_manager_gen_interface_info.parent_struct.properties[n];
+ if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
+ {
+ GVariant *value;
+ value = _gp_console_kit_manager_gen_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.ConsoleKit.Manager", info->name, NULL, skeleton);
+ if (value != NULL)
+ {
+ g_variant_take_ref (value);
+ g_variant_builder_add (&builder, "{sv}", info->name, value);
+ g_variant_unref (value);
+ }
+ }
+ }
+out:
+ return g_variant_builder_end (&builder);
+}
+
+static void
+gp_console_kit_manager_gen_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED)
+{
+}
+
+static void gp_console_kit_manager_gen_skeleton_iface_init (GpConsoleKitManagerGenIface *iface);
+#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
+G_DEFINE_TYPE_WITH_CODE (GpConsoleKitManagerGenSkeleton, gp_console_kit_manager_gen_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
+ G_ADD_PRIVATE (GpConsoleKitManagerGenSkeleton)
+ G_IMPLEMENT_INTERFACE (GP_TYPE_CONSOLE_KIT_MANAGER_GEN, gp_console_kit_manager_gen_skeleton_iface_init))
+
+#else
+G_DEFINE_TYPE_WITH_CODE (GpConsoleKitManagerGenSkeleton, gp_console_kit_manager_gen_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
+ G_IMPLEMENT_INTERFACE (GP_TYPE_CONSOLE_KIT_MANAGER_GEN, gp_console_kit_manager_gen_skeleton_iface_init))
+
+#endif
+static void
+gp_console_kit_manager_gen_skeleton_finalize (GObject *object)
+{
+ GpConsoleKitManagerGenSkeleton *skeleton = GP_CONSOLE_KIT_MANAGER_GEN_SKELETON (object);
+ g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
+ if (skeleton->priv->changed_properties_idle_source != NULL)
+ g_source_destroy (skeleton->priv->changed_properties_idle_source);
+ g_main_context_unref (skeleton->priv->context);
+ g_mutex_clear (&skeleton->priv->lock);
+ G_OBJECT_CLASS (gp_console_kit_manager_gen_skeleton_parent_class)->finalize (object);
+}
+
+static void
+gp_console_kit_manager_gen_skeleton_init (GpConsoleKitManagerGenSkeleton *skeleton)
+{
+#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
+ skeleton->priv = gp_console_kit_manager_gen_skeleton_get_instance_private (skeleton);
+#else
+ skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, GP_TYPE_CONSOLE_KIT_MANAGER_GEN_SKELETON, GpConsoleKitManagerGenSkeletonPrivate);
+#endif
+
+ g_mutex_init (&skeleton->priv->lock);
+ skeleton->priv->context = g_main_context_ref_thread_default ();
+}
+
+static void
+gp_console_kit_manager_gen_skeleton_class_init (GpConsoleKitManagerGenSkeletonClass *klass)
+{
+ GObjectClass *gobject_class;
+ GDBusInterfaceSkeletonClass *skeleton_class;
+
+ gobject_class = G_OBJECT_CLASS (klass);
+ gobject_class->finalize = gp_console_kit_manager_gen_skeleton_finalize;
+
+ skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
+ skeleton_class->get_info = gp_console_kit_manager_gen_skeleton_dbus_interface_get_info;
+ skeleton_class->get_properties = gp_console_kit_manager_gen_skeleton_dbus_interface_get_properties;
+ skeleton_class->flush = gp_console_kit_manager_gen_skeleton_dbus_interface_flush;
+ skeleton_class->get_vtable = gp_console_kit_manager_gen_skeleton_dbus_interface_get_vtable;
+
+#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
+ g_type_class_add_private (klass, sizeof (GpConsoleKitManagerGenSkeletonPrivate));
+#endif
+}
+
+static void
+gp_console_kit_manager_gen_skeleton_iface_init (GpConsoleKitManagerGenIface *iface G_GNUC_UNUSED)
+{
+}
+
+/**
+ * gp_console_kit_manager_gen_skeleton_new:
+ *
+ * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-ConsoleKit-Manager.top_of_page">org.freedesktop.ConsoleKit.Manager</link>.
+ *
+ * Returns: (transfer full) (type GpConsoleKitManagerGenSkeleton): The skeleton object.
+ */
+GpConsoleKitManagerGen *
+gp_console_kit_manager_gen_skeleton_new (void)
+{
+ return GP_CONSOLE_KIT_MANAGER_GEN (g_object_new (GP_TYPE_CONSOLE_KIT_MANAGER_GEN_SKELETON, NULL));
+}
+
diff --git a/x11/gnome-panel/files/gp-consolekit-manager-gen.h b/x11/gnome-panel/files/gp-consolekit-manager-gen.h
new file mode 100644
index 000000000000..a3856b505290
--- /dev/null
+++ b/x11/gnome-panel/files/gp-consolekit-manager-gen.h
@@ -0,0 +1,315 @@
+/*
+ * This file is generated by gdbus-codegen, do not modify it.
+ *
+ * The license of this code is the same as for the D-Bus interface description
+ * it was derived from. Note that it links to GLib, so must comply with the
+ * LGPL linking clauses.
+ */
+
+#ifndef __GP_CONSOLEKIT_MANAGER_GEN_H__
+#define __GP_CONSOLEKIT_MANAGER_GEN_H__
+
+#include <gio/gio.h>
+
+G_BEGIN_DECLS
+
+
+/* ------------------------------------------------------------------------ */
+/* Declarations for org.freedesktop.ConsoleKit.Manager */
+
+#define GP_TYPE_CONSOLE_KIT_MANAGER_GEN (gp_console_kit_manager_gen_get_type ())
+#define GP_CONSOLE_KIT_MANAGER_GEN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GP_TYPE_CONSOLE_KIT_MANAGER_GEN, GpConsoleKitManagerGen))
+#define GP_IS_CONSOLE_KIT_MANAGER_GEN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GP_TYPE_CONSOLE_KIT_MANAGER_GEN))
+#define GP_CONSOLE_KIT_MANAGER_GEN_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GP_TYPE_CONSOLE_KIT_MANAGER_GEN, GpConsoleKitManagerGenIface))
+
+struct _GpConsoleKitManagerGen;
+typedef struct _GpConsoleKitManagerGen GpConsoleKitManagerGen;
+typedef struct _GpConsoleKitManagerGenIface GpConsoleKitManagerGenIface;
+
+struct _GpConsoleKitManagerGenIface
+{
+ GTypeInterface parent_iface;
+
+ gboolean (*handle_can_hibernate) (
+ GpConsoleKitManagerGen *object,
+ GDBusMethodInvocation *invocation);
+
+ gboolean (*handle_can_hybrid_sleep) (
+ GpConsoleKitManagerGen *object,
+ GDBusMethodInvocation *invocation);
+
+ gboolean (*handle_can_suspend) (
+ GpConsoleKitManagerGen *object,
+ GDBusMethodInvocation *invocation);
+
+ gboolean (*handle_hibernate) (
+ GpConsoleKitManagerGen *object,
+ GDBusMethodInvocation *invocation,
+ gboolean arg_interactive);
+
+ gboolean (*handle_hybrid_sleep) (
+ GpConsoleKitManagerGen *object,
+ GDBusMethodInvocation *invocation,
+ gboolean arg_interactive);
+
+ gboolean (*handle_suspend) (
+ GpConsoleKitManagerGen *object,
+ GDBusMethodInvocation *invocation,
+ gboolean arg_interactive);
+
+};
+
+GType gp_console_kit_manager_gen_get_type (void) G_GNUC_CONST;
+
+GDBusInterfaceInfo *gp_console_kit_manager_gen_interface_info (void);
+guint gp_console_kit_manager_gen_override_properties (GObjectClass *klass, guint property_id_begin);
+
+
+/* D-Bus method call completion functions: */
+void gp_console_kit_manager_gen_complete_suspend (
+ GpConsoleKitManagerGen *object,
+ GDBusMethodInvocation *invocation);
+
+void gp_console_kit_manager_gen_complete_hibernate (
+ GpConsoleKitManagerGen *object,
+ GDBusMethodInvocation *invocation);
+
+void gp_console_kit_manager_gen_complete_hybrid_sleep (
+ GpConsoleKitManagerGen *object,
+ GDBusMethodInvocation *invocation);
+
+void gp_console_kit_manager_gen_complete_can_suspend (
+ GpConsoleKitManagerGen *object,
+ GDBusMethodInvocation *invocation,
+ const gchar *result);
+
+void gp_console_kit_manager_gen_complete_can_hibernate (
+ GpConsoleKitManagerGen *object,
+ GDBusMethodInvocation *invocation,
+ const gchar *result);
+
+void gp_console_kit_manager_gen_complete_can_hybrid_sleep (
+ GpConsoleKitManagerGen *object,
+ GDBusMethodInvocation *invocation,
+ const gchar *result);
+
+
+
+/* D-Bus method calls: */
+void gp_console_kit_manager_gen_call_suspend (
+ GpConsoleKitManagerGen *proxy,
+ gboolean arg_interactive,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+
+gboolean gp_console_kit_manager_gen_call_suspend_finish (
+ GpConsoleKitManagerGen *proxy,
+ GAsyncResult *res,
+ GError **error);
+
+gboolean gp_console_kit_manager_gen_call_suspend_sync (
+ GpConsoleKitManagerGen *proxy,
+ gboolean arg_interactive,
+ GCancellable *cancellable,
+ GError **error);
+
+void gp_console_kit_manager_gen_call_hibernate (
+ GpConsoleKitManagerGen *proxy,
+ gboolean arg_interactive,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+
+gboolean gp_console_kit_manager_gen_call_hibernate_finish (
+ GpConsoleKitManagerGen *proxy,
+ GAsyncResult *res,
+ GError **error);
+
+gboolean gp_console_kit_manager_gen_call_hibernate_sync (
+ GpConsoleKitManagerGen *proxy,
+ gboolean arg_interactive,
+ GCancellable *cancellable,
+ GError **error);
+
+void gp_console_kit_manager_gen_call_hybrid_sleep (
+ GpConsoleKitManagerGen *proxy,
+ gboolean arg_interactive,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+
+gboolean gp_console_kit_manager_gen_call_hybrid_sleep_finish (
+ GpConsoleKitManagerGen *proxy,
+ GAsyncResult *res,
+ GError **error);
+
+gboolean gp_console_kit_manager_gen_call_hybrid_sleep_sync (
+ GpConsoleKitManagerGen *proxy,
+ gboolean arg_interactive,
+ GCancellable *cancellable,
+ GError **error);
+
+void gp_console_kit_manager_gen_call_can_suspend (
+ GpConsoleKitManagerGen *proxy,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+
+gboolean gp_console_kit_manager_gen_call_can_suspend_finish (
+ GpConsoleKitManagerGen *proxy,
+ gchar **out_result,
+ GAsyncResult *res,
+ GError **error);
+
+gboolean gp_console_kit_manager_gen_call_can_suspend_sync (
+ GpConsoleKitManagerGen *proxy,
+ gchar **out_result,
+ GCancellable *cancellable,
+ GError **error);
+
+void gp_console_kit_manager_gen_call_can_hibernate (
+ GpConsoleKitManagerGen *proxy,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+
+gboolean gp_console_kit_manager_gen_call_can_hibernate_finish (
+ GpConsoleKitManagerGen *proxy,
+ gchar **out_result,
+ GAsyncResult *res,
+ GError **error);
+
+gboolean gp_console_kit_manager_gen_call_can_hibernate_sync (
+ GpConsoleKitManagerGen *proxy,
+ gchar **out_result,
+ GCancellable *cancellable,
+ GError **error);
+
+void gp_console_kit_manager_gen_call_can_hybrid_sleep (
+ GpConsoleKitManagerGen *proxy,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+
+gboolean gp_console_kit_manager_gen_call_can_hybrid_sleep_finish (
+ GpConsoleKitManagerGen *proxy,
+ gchar **out_result,
+ GAsyncResult *res,
+ GError **error);
+
+gboolean gp_console_kit_manager_gen_call_can_hybrid_sleep_sync (
+ GpConsoleKitManagerGen *proxy,
+ gchar **out_result,
+ GCancellable *cancellable,
+ GError **error);
+
+
+
+/* ---- */
+
+#define GP_TYPE_CONSOLE_KIT_MANAGER_GEN_PROXY (gp_console_kit_manager_gen_proxy_get_type ())
+#define GP_CONSOLE_KIT_MANAGER_GEN_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GP_TYPE_CONSOLE_KIT_MANAGER_GEN_PROXY, GpConsoleKitManagerGenProxy))
+#define GP_CONSOLE_KIT_MANAGER_GEN_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GP_TYPE_CONSOLE_KIT_MANAGER_GEN_PROXY, GpConsoleKitManagerGenProxyClass))
+#define GP_CONSOLE_KIT_MANAGER_GEN_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GP_TYPE_CONSOLE_KIT_MANAGER_GEN_PROXY, GpConsoleKitManagerGenProxyClass))
+#define GP_IS_CONSOLE_KIT_MANAGER_GEN_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GP_TYPE_CONSOLE_KIT_MANAGER_GEN_PROXY))
+#define GP_IS_CONSOLE_KIT_MANAGER_GEN_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GP_TYPE_CONSOLE_KIT_MANAGER_GEN_PROXY))
+
+typedef struct _GpConsoleKitManagerGenProxy GpConsoleKitManagerGenProxy;
+typedef struct _GpConsoleKitManagerGenProxyClass GpConsoleKitManagerGenProxyClass;
+typedef struct _GpConsoleKitManagerGenProxyPrivate GpConsoleKitManagerGenProxyPrivate;
+
+struct _GpConsoleKitManagerGenProxy
+{
+ /*< private >*/
+ GDBusProxy parent_instance;
+ GpConsoleKitManagerGenProxyPrivate *priv;
+};
+
+struct _GpConsoleKitManagerGenProxyClass
+{
+ GDBusProxyClass parent_class;
+};
+
+GType gp_console_kit_manager_gen_proxy_get_type (void) G_GNUC_CONST;
+
+#if GLIB_CHECK_VERSION(2, 44, 0)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GpConsoleKitManagerGenProxy, g_object_unref)
+#endif
+
+void gp_console_kit_manager_gen_proxy_new (
+ GDBusConnection *connection,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+GpConsoleKitManagerGen *gp_console_kit_manager_gen_proxy_new_finish (
+ GAsyncResult *res,
+ GError **error);
+GpConsoleKitManagerGen *gp_console_kit_manager_gen_proxy_new_sync (
+ GDBusConnection *connection,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GError **error);
+
+void gp_console_kit_manager_gen_proxy_new_for_bus (
+ GBusType bus_type,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+GpConsoleKitManagerGen *gp_console_kit_manager_gen_proxy_new_for_bus_finish (
+ GAsyncResult *res,
+ GError **error);
+GpConsoleKitManagerGen *gp_console_kit_manager_gen_proxy_new_for_bus_sync (
+ GBusType bus_type,
+ GDBusProxyFlags flags,
+ const gchar *name,
+ const gchar *object_path,
+ GCancellable *cancellable,
+ GError **error);
+
+
+/* ---- */
+
+#define GP_TYPE_CONSOLE_KIT_MANAGER_GEN_SKELETON (gp_console_kit_manager_gen_skeleton_get_type ())
+#define GP_CONSOLE_KIT_MANAGER_GEN_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GP_TYPE_CONSOLE_KIT_MANAGER_GEN_SKELETON, GpConsoleKitManagerGenSkeleton))
+#define GP_CONSOLE_KIT_MANAGER_GEN_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GP_TYPE_CONSOLE_KIT_MANAGER_GEN_SKELETON, GpConsoleKitManagerGenSkeletonClass))
+#define GP_CONSOLE_KIT_MANAGER_GEN_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GP_TYPE_CONSOLE_KIT_MANAGER_GEN_SKELETON, GpConsoleKitManagerGenSkeletonClass))
+#define GP_IS_CONSOLE_KIT_MANAGER_GEN_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GP_TYPE_CONSOLE_KIT_MANAGER_GEN_SKELETON))
+#define GP_IS_CONSOLE_KIT_MANAGER_GEN_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GP_TYPE_CONSOLE_KIT_MANAGER_GEN_SKELETON))
+
+typedef struct _GpConsoleKitManagerGenSkeleton GpConsoleKitManagerGenSkeleton;
+typedef struct _GpConsoleKitManagerGenSkeletonClass GpConsoleKitManagerGenSkeletonClass;
+typedef struct _GpConsoleKitManagerGenSkeletonPrivate GpConsoleKitManagerGenSkeletonPrivate;
+
+struct _GpConsoleKitManagerGenSkeleton
+{
+ /*< private >*/
+ GDBusInterfaceSkeleton parent_instance;
+ GpConsoleKitManagerGenSkeletonPrivate *priv;
+};
+
+struct _GpConsoleKitManagerGenSkeletonClass
+{
+ GDBusInterfaceSkeletonClass parent_class;
+};
+
+GType gp_console_kit_manager_gen_skeleton_get_type (void) G_GNUC_CONST;
+
+#if GLIB_CHECK_VERSION(2, 44, 0)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GpConsoleKitManagerGenSkeleton, g_object_unref)
+#endif
+
+GpConsoleKitManagerGen *gp_console_kit_manager_gen_skeleton_new (void);
+
+
+G_END_DECLS
+
+#endif /* __GP_CONSOLEKIT_MANAGER_GEN_H__ */
diff --git a/x11/gnome-panel/files/org.freedesktop.ConsoleKit.Manager.xml b/x11/gnome-panel/files/org.freedesktop.ConsoleKit.Manager.xml
new file mode 100644
index 000000000000..33c6beb8f843
--- /dev/null
+++ b/x11/gnome-panel/files/org.freedesktop.ConsoleKit.Manager.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
+"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
+<node>
+ <interface name="org.freedesktop.ConsoleKit.Manager">
+ <annotation name="org.gtk.GDBus.C.Name" value="ConsoleKitManagerGen" />
+
+ <method name="Suspend">
+ <arg name="interactive" type="b" direction="in" />
+ </method>
+
+ <method name="Hibernate">
+ <arg name="interactive" type="b" direction="in" />
+ </method>
+
+ <method name="HybridSleep">
+ <arg name="interactive" type="b" direction="in" />
+ </method>
+
+ <method name="CanSuspend">
+ <arg name="result" type="s" direction="out" />
+ </method>
+
+ <method name="CanHibernate">
+ <arg name="result" type="s" direction="out" />
+ </method>
+
+ <method name="CanHybridSleep">
+ <arg name="result" type="s" direction="out" />
+ </method>
+ </interface>
+</node>
diff --git a/x11/gnome-panel/files/patch-configure b/x11/gnome-panel/files/patch-configure
new file mode 100644
index 000000000000..2469ffba97b6
--- /dev/null
+++ b/x11/gnome-panel/files/patch-configure
@@ -0,0 +1,305 @@
+--- configure.orig 2024-10-06 18:36:02 UTC
++++ configure
+@@ -19498,7 +19498,7 @@ LIBEDATASERVER_REQUIRED=3.5.3
+ LIBGNOME_MENU_REQUIRED=3.7.90
+ LIBECAL_REQUIRED=3.33.2
+ LIBEDATASERVER_REQUIRED=3.5.3
+-LIBSYSTEMD_REQUIRED=230
++LIBCONSOLEKIT_REQUIRED=1.2.0
+ CAIRO_REQUIRED=1.0.0
+ GWEATHER_REQUIRED=3.91.0
+ DCONF_REQUIRED=0.13.4
+@@ -19928,7 +19928,7 @@ pkg_failed=no
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ x11
+ " >&5
+ printf %s "checking for
+@@ -19936,7 +19936,7 @@ printf %s "checking for
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ x11
+ ... " >&6; }
+
+@@ -19949,7 +19949,7 @@ if test -n "$ACTION_BUTTON_CFLAGS"; then
+ gnome-desktop-3.0 >= \$LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= \$GTK_REQUIRED
+ libgnome-menu-3.0 >= \$LIBGNOME_MENU_REQUIRED
+- libsystemd >= \$LIBSYSTEMD_REQUIRED
++ libconsolekit >= \$LIBCONSOLEKIT_REQUIRED
+ x11
+ \""; } >&5
+ ($PKG_CONFIG --exists --print-errors "
+@@ -19957,7 +19957,7 @@ if test -n "$ACTION_BUTTON_CFLAGS"; then
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ x11
+ ") 2>&5
+ ac_status=$?
+@@ -19968,7 +19968,7 @@ if test -n "$ACTION_BUTTON_CFLAGS"; then
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ x11
+ " 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+@@ -19987,7 +19987,7 @@ if test -n "$ACTION_BUTTON_LIBS"; then
+ gnome-desktop-3.0 >= \$LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= \$GTK_REQUIRED
+ libgnome-menu-3.0 >= \$LIBGNOME_MENU_REQUIRED
+- libsystemd >= \$LIBSYSTEMD_REQUIRED
++ libconsolekit >= \$LIBCONSOLEKIT_REQUIRED
+ x11
+ \""; } >&5
+ ($PKG_CONFIG --exists --print-errors "
+@@ -19995,7 +19995,7 @@ if test -n "$ACTION_BUTTON_LIBS"; then
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ x11
+ ") 2>&5
+ ac_status=$?
+@@ -20006,7 +20006,7 @@ if test -n "$ACTION_BUTTON_LIBS"; then
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ x11
+ " 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+@@ -20034,7 +20034,7 @@ fi
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ x11
+ " 2>&1`
+ else
+@@ -20043,7 +20043,7 @@ fi
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ x11
+ " 2>&1`
+ fi
+@@ -20055,7 +20055,7 @@ fi
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ x11
+ ) were not met:
+
+@@ -20191,14 +20191,14 @@ pkg_failed=no
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ " >&5
+ printf %s "checking for
+ gio-unix-2.0 >= $GLIB_REQUIRED
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ ... " >&6; }
+
+ if test -n "$LAUNCHER_CFLAGS"; then
+@@ -20210,14 +20210,14 @@ if test -n "$LAUNCHER_CFLAGS"; then
+ gnome-desktop-3.0 >= \$LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= \$GTK_REQUIRED
+ libgnome-menu-3.0 >= \$LIBGNOME_MENU_REQUIRED
+- libsystemd >= \$LIBSYSTEMD_REQUIRED
++ libconsolekit >= \$LIBCONSOLEKIT_REQUIRED
+ \""; } >&5
+ ($PKG_CONFIG --exists --print-errors "
+ gio-unix-2.0 >= $GLIB_REQUIRED
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ ") 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+@@ -20227,7 +20227,7 @@ if test -n "$LAUNCHER_CFLAGS"; then
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ " 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+ else
+@@ -20245,14 +20245,14 @@ if test -n "$LAUNCHER_LIBS"; then
+ gnome-desktop-3.0 >= \$LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= \$GTK_REQUIRED
+ libgnome-menu-3.0 >= \$LIBGNOME_MENU_REQUIRED
+- libsystemd >= \$LIBSYSTEMD_REQUIRED
++ libconsolekit >= \$LIBCONSOLEKIT_REQUIRED
+ \""; } >&5
+ ($PKG_CONFIG --exists --print-errors "
+ gio-unix-2.0 >= $GLIB_REQUIRED
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ ") 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+@@ -20262,7 +20262,7 @@ if test -n "$LAUNCHER_LIBS"; then
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ " 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+ else
+@@ -20289,7 +20289,7 @@ fi
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ " 2>&1`
+ else
+ LAUNCHER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
+@@ -20297,7 +20297,7 @@ fi
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ " 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+@@ -20308,7 +20308,7 @@ fi
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ ) were not met:
+
+ $LAUNCHER_PKG_ERRORS
+@@ -20350,7 +20350,7 @@ pkg_failed=no
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ " >&5
+ printf %s "checking for
+ gdm
+@@ -20358,7 +20358,7 @@ printf %s "checking for
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ ... " >&6; }
+
+ if test -n "$MENU_CFLAGS"; then
+@@ -20371,7 +20371,7 @@ if test -n "$MENU_CFLAGS"; then
+ gnome-desktop-3.0 >= \$LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= \$GTK_REQUIRED
+ libgnome-menu-3.0 >= \$LIBGNOME_MENU_REQUIRED
+- libsystemd >= \$LIBSYSTEMD_REQUIRED
++ libconsolekit >= \$LIBCONSOLEKIT_REQUIRED
+ \""; } >&5
+ ($PKG_CONFIG --exists --print-errors "
+ gdm
+@@ -20379,7 +20379,7 @@ if test -n "$MENU_CFLAGS"; then
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ ") 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+@@ -20390,7 +20390,7 @@ if test -n "$MENU_CFLAGS"; then
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ " 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+ else
+@@ -20409,7 +20409,7 @@ if test -n "$MENU_LIBS"; then
+ gnome-desktop-3.0 >= \$LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= \$GTK_REQUIRED
+ libgnome-menu-3.0 >= \$LIBGNOME_MENU_REQUIRED
+- libsystemd >= \$LIBSYSTEMD_REQUIRED
++ libconsolekit >= \$LIBCONSOLEKIT_REQUIRED
+ \""; } >&5
+ ($PKG_CONFIG --exists --print-errors "
+ gdm
+@@ -20417,7 +20417,7 @@ if test -n "$MENU_LIBS"; then
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ ") 2>&5
+ ac_status=$?
+ printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+@@ -20428,7 +20428,7 @@ if test -n "$MENU_LIBS"; then
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ " 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+ else
+@@ -20456,7 +20456,7 @@ fi
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ " 2>&1`
+ else
+ MENU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
+@@ -20465,7 +20465,7 @@ fi
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ " 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+@@ -20477,7 +20477,7 @@ fi
+ gnome-desktop-3.0 >= $LIBGNOME_DESKTOP_REQUIRED
+ gtk+-3.0 >= $GTK_REQUIRED
+ libgnome-menu-3.0 >= $LIBGNOME_MENU_REQUIRED
+- libsystemd >= $LIBSYSTEMD_REQUIRED
++ libconsolekit >= $LIBCONSOLEKIT_REQUIRED
+ ) were not met:
+
+ $MENU_PKG_ERRORS
diff --git a/x11/gnome-panel/files/patch-modules_action-button_gp-lock-screen-applet.c b/x11/gnome-panel/files/patch-modules_action-button_gp-lock-screen-applet.c
new file mode 100644
index 000000000000..eded373dbc64
--- /dev/null
+++ b/x11/gnome-panel/files/patch-modules_action-button_gp-lock-screen-applet.c
@@ -0,0 +1,28 @@
+--- modules/action-button/gp-lock-screen-applet.c.orig 2023-07-10 18:48:25 UTC
++++ modules/action-button/gp-lock-screen-applet.c
+@@ -20,7 +20,9 @@
+
+ #include <gio/gdesktopappinfo.h>
+ #include <glib/gi18n-lib.h>
++#ifdef __linux__
+ #include <systemd/sd-journal.h>
++#endif
+
+ #include "gpab-screensaver-gen.h"
+
+@@ -209,6 +211,7 @@ screensaver_cb (GSimpleAction *action,
+ static void
+ child_setup (gpointer user_data)
+ {
++#ifdef __linux__
+ GAppInfo *info;
+ const gchar *id;
+ gint stdout_fd;
+@@ -230,6 +233,7 @@ child_setup (gpointer user_data)
+ dup2 (stderr_fd, STDERR_FILENO);
+ close (stderr_fd);
+ }
++#endif
+ }
+
+ static void
diff --git a/x11/gnome-panel/files/patch-modules_launcher_gp-launcher-applet.c b/x11/gnome-panel/files/patch-modules_launcher_gp-launcher-applet.c
new file mode 100644
index 000000000000..cd4b908495b7
--- /dev/null
+++ b/x11/gnome-panel/files/patch-modules_launcher_gp-launcher-applet.c
@@ -0,0 +1,28 @@
+--- modules/launcher/gp-launcher-applet.c.orig 2024-10-06 18:30:22 UTC
++++ modules/launcher/gp-launcher-applet.c
+@@ -33,7 +33,9 @@
+ #include <glib/gi18n-lib.h>
+ #include <gmenu-tree.h>
+ #include <libgnome-desktop/gnome-systemd.h>
++#ifdef __linux__
+ #include <systemd/sd-journal.h>
++#endif
+
+ #include "gp-launcher-button.h"
+ #include "gp-launcher-properties.h"
+@@ -758,6 +760,7 @@ child_setup (gpointer user_data)
+ static void
+ child_setup (gpointer user_data)
+ {
++#ifdef __linux__
+ GAppInfo *info;
+ const gchar *id;
+ gint stdout_fd;
+@@ -779,6 +782,7 @@ child_setup (gpointer user_data)
+ dup2 (stderr_fd, STDERR_FILENO);
+ close (stderr_fd);
+ }
++#endif
+ }
+
+ static void
diff --git a/x11/gnome-panel/files/patch-modules_menu_Makefile.in b/x11/gnome-panel/files/patch-modules_menu_Makefile.in
new file mode 100644
index 000000000000..a15b462aed16
--- /dev/null
+++ b/x11/gnome-panel/files/patch-modules_menu_Makefile.in
@@ -0,0 +1,101 @@
+--- modules/menu/Makefile.in.orig 2023-07-10 18:52:39 UTC
++++ modules/menu/Makefile.in
+@@ -156,7 +156,7 @@ org_gnome_gnome_panel_menu_la_DEPENDENCIES = \
+ am__objects_1 =
+ am__objects_2 = org_gnome_gnome_panel_menu_la-menu-resources.lo \
+ org_gnome_gnome_panel_menu_la-gp-dm-seat-gen.lo \
+- org_gnome_gnome_panel_menu_la-gp-login1-manager-gen.lo \
++ org_gnome_gnome_panel_menu_la-gp-consolekit-manager-gen.lo \
+ org_gnome_gnome_panel_menu_la-gp-screensaver-gen.lo \
+ org_gnome_gnome_panel_menu_la-gp-session-manager-gen.lo \
+ $(am__objects_1)
+@@ -206,7 +206,7 @@ am__depfiles_remade = \
+ ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-bookmarks.Plo \
+ ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-dm-seat-gen.Plo \
+ ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-lock-logout.Plo \
+- ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-login1-manager-gen.Plo \
++ ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-consolekit-manager-gen.Plo \
+ ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-main-menu-applet.Plo \
+ ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-menu-bar-applet.Plo \
+ ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-menu-bar.Plo \
+@@ -529,8 +529,8 @@ BUILT_SOURCES = \
+ menu-resources.h \
+ gp-dm-seat-gen.c \
+ gp-dm-seat-gen.h \
+- gp-login1-manager-gen.c \
+- gp-login1-manager-gen.h \
++ gp-consolekit-manager-gen.c \
++ gp-consolekit-manager-gen.h \
+ gp-screensaver-gen.c \
+ gp-screensaver-gen.h \
+ gp-session-manager-gen.c \
+@@ -540,7 +540,7 @@ BUILT_SOURCES = \
+ EXTRA_DIST = \
+ menu.gresource.xml \
+ org.freedesktop.DisplayManager.Seat.xml \
+- org.freedesktop.login1.Manager.xml \
++ org.freedesktop.ConsoleKit.Manager.xml \
+ org.gnome.ScreenSaver.xml \
+ org.gnome.SessionManager.xml \
+ $(gsettings_SCHEMAS) \
+@@ -634,7 +634,7 @@ distclean-compile:
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-bookmarks.Plo@am__quote@ # am--include-marker
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-dm-seat-gen.Plo@am__quote@ # am--include-marker
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-lock-logout.Plo@am__quote@ # am--include-marker
+-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-login1-manager-gen.Plo@am__quote@ # am--include-marker
++@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-consolekit-manager-gen.Plo@am__quote@ # am--include-marker
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-main-menu-applet.Plo@am__quote@ # am--include-marker
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-menu-bar-applet.Plo@am__quote@ # am--include-marker
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-menu-bar.Plo@am__quote@ # am--include-marker
+@@ -798,12 +798,12 @@ org_gnome_gnome_panel_menu_la-gp-dm-seat-gen.lo: gp-dm
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(org_gnome_gnome_panel_menu_la_CPPFLAGS) $(CPPFLAGS) $(org_gnome_gnome_panel_menu_la_CFLAGS) $(CFLAGS) -c -o org_gnome_gnome_panel_menu_la-gp-dm-seat-gen.lo `test -f 'gp-dm-seat-gen.c' || echo '$(srcdir)/'`gp-dm-seat-gen.c
+
+-org_gnome_gnome_panel_menu_la-gp-login1-manager-gen.lo: gp-login1-manager-gen.c
+-@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(org_gnome_gnome_panel_menu_la_CPPFLAGS) $(CPPFLAGS) $(org_gnome_gnome_panel_menu_la_CFLAGS) $(CFLAGS) -MT org_gnome_gnome_panel_menu_la-gp-login1-manager-gen.lo -MD -MP -MF $(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-login1-manager-gen.Tpo -c -o org_gnome_gnome_panel_menu_la-gp-login1-manager-gen.lo `test -f 'gp-login1-manager-gen.c' || echo '$(srcdir)/'`gp-login1-manager-gen.c
+-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-login1-manager-gen.Tpo $(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-login1-manager-gen.Plo
+-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gp-login1-manager-gen.c' object='org_gnome_gnome_panel_menu_la-gp-login1-manager-gen.lo' libtool=yes @AMDEPBACKSLASH@
++org_gnome_gnome_panel_menu_la-gp-consolekit-manager-gen.lo: gp-consolekit-manager-gen.c
++@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(org_gnome_gnome_panel_menu_la_CPPFLAGS) $(CPPFLAGS) $(org_gnome_gnome_panel_menu_la_CFLAGS) $(CFLAGS) -MT org_gnome_gnome_panel_menu_la-gp-consolekit-manager-gen.lo -MD -MP -MF $(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-consolekit-manager-gen.Tpo -c -o org_gnome_gnome_panel_menu_la-gp-consolekit-manager-gen.lo `test -f 'gp-consolekit-manager-gen.c' || echo '$(srcdir)/'`gp-consolekit-manager-gen.c
++@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-consolekit-manager-gen.Tpo $(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-consolekit-manager-gen.Plo
++@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gp-consolekit-manager-gen.c' object='org_gnome_gnome_panel_menu_la-gp-consolekit-manager-gen.lo' libtool=yes @AMDEPBACKSLASH@
+ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(org_gnome_gnome_panel_menu_la_CPPFLAGS) $(CPPFLAGS) $(org_gnome_gnome_panel_menu_la_CFLAGS) $(CFLAGS) -c -o org_gnome_gnome_panel_menu_la-gp-login1-manager-gen.lo `test -f 'gp-login1-manager-gen.c' || echo '$(srcdir)/'`gp-login1-manager-gen.c
++@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(org_gnome_gnome_panel_menu_la_CPPFLAGS) $(CPPFLAGS) $(org_gnome_gnome_panel_menu_la_CFLAGS) $(CFLAGS) -c -o org_gnome_gnome_panel_menu_la-gp-consolekit-manager-gen.lo `test -f 'gp-consolekit-manager-gen.c' || echo '$(srcdir)/'`gp-consolekit-manager-gen.c
+
+ org_gnome_gnome_panel_menu_la-gp-screensaver-gen.lo: gp-screensaver-gen.c
+ @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(org_gnome_gnome_panel_menu_la_CPPFLAGS) $(CPPFLAGS) $(org_gnome_gnome_panel_menu_la_CFLAGS) $(CFLAGS) -MT org_gnome_gnome_panel_menu_la-gp-screensaver-gen.lo -MD -MP -MF $(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-screensaver-gen.Tpo -c -o org_gnome_gnome_panel_menu_la-gp-screensaver-gen.lo `test -f 'gp-screensaver-gen.c' || echo '$(srcdir)/'`gp-screensaver-gen.c
+@@ -960,7 +960,7 @@ distclean: distclean-am
+ -rm -f ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-bookmarks.Plo
+ -rm -f ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-dm-seat-gen.Plo
+ -rm -f ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-lock-logout.Plo
+- -rm -f ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-login1-manager-gen.Plo
++ -rm -f ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-consolekit-manager-gen.Plo
+ -rm -f ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-main-menu-applet.Plo
+ -rm -f ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-menu-bar-applet.Plo
+ -rm -f ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-menu-bar.Plo
+@@ -1025,7 +1025,7 @@ maintainer-clean: maintainer-clean-am
+ -rm -f ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-bookmarks.Plo
+ -rm -f ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-dm-seat-gen.Plo
+ -rm -f ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-lock-logout.Plo
+- -rm -f ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-login1-manager-gen.Plo
++ -rm -f ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-consolekit-manager-gen.Plo
+ -rm -f ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-main-menu-applet.Plo
+ -rm -f ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-menu-bar-applet.Plo
+ -rm -f ./$(DEPDIR)/org_gnome_gnome_panel_menu_la-gp-menu-bar.Plo
+@@ -1099,11 +1099,11 @@ gp-dm-seat-gen.c: org.freedesktop.DisplayManager.Seat.
+ --generate-c-code gp-dm-seat-gen \
+ $(srcdir)/org.freedesktop.DisplayManager.Seat.xml
+
+-gp-login1-manager-gen.h:
+-gp-login1-manager-gen.c: org.freedesktop.login1.Manager.xml
++gp-consolekit-manager-gen.h:
++gp-consolekit-manager-gen.c: org.freedesktop.ConsoleKit.Manager.xml
+ $(AM_V_GEN) $(GDBUS_CODEGEN) --c-namespace Gp \
+- --generate-c-code gp-login1-manager-gen \
+- $(srcdir)/org.freedesktop.login1.Manager.xml
++ --generate-c-code gp-consolekit-manager-gen \
++ $(srcdir)/org.freedesktop.ConsoleKit.Manager.xml
+
+ gp-screensaver-gen.h:
+ gp-screensaver-gen.c: org.gnome.ScreenSaver.xml
diff --git a/x11/gnome-panel/files/patch-modules_menu_gp-lock-logout.c b/x11/gnome-panel/files/patch-modules_menu_gp-lock-logout.c
new file mode 100644
index 000000000000..beec05db89fd
--- /dev/null
+++ b/x11/gnome-panel/files/patch-modules_menu_gp-lock-logout.c
@@ -0,0 +1,226 @@
+--- modules/menu/gp-lock-logout.c.orig 2023-07-10 18:48:25 UTC
++++ modules/menu/gp-lock-logout.c
+@@ -19,7 +19,7 @@
+ #include "gp-lock-logout.h"
+
+ #include "gp-dm-seat-gen.h"
+-#include "gp-login1-manager-gen.h"
++#include "gp-consolekit-manager-gen.h"
+ #include "gp-menu-utils.h"
+ #include "gp-screensaver-gen.h"
+ #include "gp-session-manager-gen.h"
+@@ -38,7 +38,7 @@ struct _GpLockLogout
+
+ GSettings *lockdown;
+
+- GpLogin1ManagerGen *login1_manager;
++ GpConsoleKitManagerGen *login1_manager;
+
+ GpSessionManagerGen *session_manager;
+
+@@ -85,11 +85,11 @@ login1_manager_proxy_ready_cb (GObject *source_ob
+ gpointer user_data)
+ {
+ GError *error;
+- GpLogin1ManagerGen *manager;
++ GpConsoleKitManagerGen *manager;
+ GpLockLogout *lock_logout;
+
+ error = NULL;
+- manager = gp_login1_manager_gen_proxy_new_for_bus_finish (res, &error);
++ manager = gp_console_kit_manager_gen_proxy_new_for_bus_finish (res, &error);
+
+ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ {
+@@ -333,8 +333,8 @@ hibernate_cb (GObject *source_object,
+ GError *error;
+
+ error = NULL;
+- gp_login1_manager_gen_call_hibernate_finish (GP_LOGIN1_MANAGER_GEN (source_object),
+- res, &error);
++ gp_console_kit_manager_gen_call_hibernate_finish (GP_CONSOLE_KIT_MANAGER_GEN (source_object),
++ res, &error);
+
+ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ {
+@@ -344,7 +344,7 @@ hibernate_cb (GObject *source_object,
+
+ if (error)
+ {
+- g_warning ("Could not ask login1 manager to hibernate: %s",
++ g_warning ("Could not ask ConsoleKit2 manager to hibernate: %s",
+ error->message);
+
+ g_error_free (error);
+@@ -356,9 +356,9 @@ static void
+ hibernate_activate_cb (GtkWidget *item,
+ GpLockLogout *lock_logout)
+ {
+- gp_login1_manager_gen_call_hibernate (lock_logout->login1_manager,
+- TRUE, NULL, hibernate_cb,
+- lock_logout);
++ gp_console_kit_manager_gen_call_hibernate (lock_logout->login1_manager,
++ TRUE, NULL, hibernate_cb,
++ lock_logout);
+ }
+
+ static void
+@@ -369,8 +369,8 @@ suspend_cb (GObject *source_object,
+ GError *error;
+
+ error = NULL;
+- gp_login1_manager_gen_call_suspend_finish (GP_LOGIN1_MANAGER_GEN (source_object),
+- res, &error);
++ gp_console_kit_manager_gen_call_suspend_finish (GP_CONSOLE_KIT_MANAGER_GEN (source_object),
++ res, &error);
+
+ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ {
+@@ -380,7 +380,7 @@ suspend_cb (GObject *source_object,
+
+ if (error)
+ {
+- g_warning ("Could not ask login1 manager to suspend: %s",
++ g_warning ("Could not ask ConsoleKit2 manager to suspend: %s",
+ error->message);
+
+ g_error_free (error);
+@@ -392,9 +392,9 @@ static void
+ suspend_activate_cb (GtkWidget *item,
+ GpLockLogout *lock_logout)
+ {
+- gp_login1_manager_gen_call_suspend (lock_logout->login1_manager,
+- TRUE, NULL, suspend_cb,
+- lock_logout);
++ gp_console_kit_manager_gen_call_suspend (lock_logout->login1_manager,
++ TRUE, NULL, suspend_cb,
++ lock_logout);
+ }
+
+ static void
+@@ -405,8 +405,8 @@ hybrid_sleep_cb (GObject *source_object,
+ GError *error;
+
+ error = NULL;
+- gp_login1_manager_gen_call_hybrid_sleep_finish (GP_LOGIN1_MANAGER_GEN (source_object),
+- res, &error);
++ gp_console_kit_manager_gen_call_hybrid_sleep_finish (GP_CONSOLE_KIT_MANAGER_GEN (source_object),
++ res, &error);
+
+ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ {
+@@ -416,7 +416,7 @@ hybrid_sleep_cb (GObject *source_object,
+
+ if (error)
+ {
+- g_warning ("Could not ask login1 manager to hybrid sleep: %s",
++ g_warning ("Could not ask ConsoleKit2 manager to hybrid sleep: %s",
+ error->message);
+
+ g_error_free (error);
+@@ -428,9 +428,9 @@ static void
+ hybrid_sleep_activate_cb (GtkWidget *item,
+ GpLockLogout *lock_logout)
+ {
+- gp_login1_manager_gen_call_hybrid_sleep (lock_logout->login1_manager,
+- TRUE, NULL, hybrid_sleep_cb,
+- lock_logout);
++ gp_console_kit_manager_gen_call_hybrid_sleep (lock_logout->login1_manager,
++ TRUE, NULL, hybrid_sleep_cb,
++ lock_logout);
+ }
+
+ static void
+@@ -522,19 +522,19 @@ get_can_hibernate (GpLockLogout *lock_logout)
+
+ if (!lock_logout->login1_manager)
+ {
+- g_warning ("Login1 manager service not available.");
++ g_warning ("ConsoleKit2 manager service not available.");
+ return FALSE;
+ }
+
+ error = NULL;
+ result = NULL;
+
+- gp_login1_manager_gen_call_can_hibernate_sync (lock_logout->login1_manager,
+- &result, NULL, &error);
++ gp_console_kit_manager_gen_call_can_hibernate_sync (lock_logout->login1_manager,
++ &result, NULL, &error);
+
+ if (error != NULL)
+ {
+- g_warning ("Could not ask login1 manager if hibernate is available: %s",
++ g_warning ("Could not ask ConsoleKit2 manager if hibernate is available: %s",
+ error->message);
+
+ g_error_free (error);
+@@ -559,19 +559,19 @@ get_can_suspend (GpLockLogout *lock_logout)
+
+ if (!lock_logout->login1_manager)
+ {
+- g_warning ("Login1 manager service not available.");
++ g_warning ("ConsoleKit2 manager service not available.");
+ return FALSE;
+ }
+
+ error = NULL;
+ result = NULL;
+
+- gp_login1_manager_gen_call_can_suspend_sync (lock_logout->login1_manager,
+- &result, NULL, &error);
++ gp_console_kit_manager_gen_call_can_suspend_sync (lock_logout->login1_manager,
++ &result, NULL, &error);
+
+ if (error != NULL)
+ {
+- g_warning ("Could not ask login1 manager if suspend is available: %s",
++ g_warning ("Could not ask ConsoleKit2 manager if suspend is available: %s",
+ error->message);
+
+ g_error_free (error);
+@@ -596,19 +596,19 @@ get_can_hybrid_sleep (GpLockLogout *lock_logout)
+
+ if (!lock_logout->login1_manager)
+ {
+- g_warning ("Login1 manager service not available.");
++ g_warning ("ConsoleKit2 manager service not available.");
+ return FALSE;
+ }
+
+ error = NULL;
+ result = NULL;
+
+- gp_login1_manager_gen_call_can_hybrid_sleep_sync (lock_logout->login1_manager,
+- &result, NULL, &error);
++ gp_console_kit_manager_gen_call_can_hybrid_sleep_sync (lock_logout->login1_manager,
++ &result, NULL, &error);
+
+ if (error != NULL)
+ {
+- g_warning ("Could not ask login1 manager if hybrid sleep is available: %s",
++ g_warning ("Could not ask ConsoleKit2 manager if hybrid sleep is available: %s",
+ error->message);
+
+ g_error_free (error);
+@@ -744,13 +744,13 @@ gp_lock_logout_constructed (GObject *object)
+ g_signal_connect (lock_logout->lockdown, "changed",
+ G_CALLBACK (lockdown_changed_cb), lock_logout);
+
+- gp_login1_manager_gen_proxy_new_for_bus (G_BUS_TYPE_SYSTEM,
+- G_DBUS_PROXY_FLAGS_NONE,
+- "org.freedesktop.login1",
+- "/org/freedesktop/login1",
+- NULL,
+- login1_manager_proxy_ready_cb,
+- lock_logout);
++ gp_console_kit_manager_gen_proxy_new_for_bus (G_BUS_TYPE_SYSTEM,
++ G_DBUS_PROXY_FLAGS_NONE,
++ "org.freedesktop.ConsoleKit",
++ "/org/freedesktop/ConsoleKit/Manager",
++ NULL,
++ login1_manager_proxy_ready_cb,
++ lock_logout);
+
+ gp_session_manager_gen_proxy_new_for_bus (G_BUS_TYPE_SESSION,
+ G_DBUS_PROXY_FLAGS_NONE,
diff --git a/x11/gnome-panel/files/patch-modules_menu_gp-menu-utils.c b/x11/gnome-panel/files/patch-modules_menu_gp-menu-utils.c
new file mode 100644
index 000000000000..386087dbc464
--- /dev/null
+++ b/x11/gnome-panel/files/patch-modules_menu_gp-menu-utils.c
@@ -0,0 +1,28 @@
+--- modules/menu/gp-menu-utils.c.orig 2024-10-06 18:30:22 UTC
++++ modules/menu/gp-menu-utils.c
+@@ -20,7 +20,9 @@
+ #include <glib/gi18n-lib.h>
+ #include <gtk/gtk.h>
+ #include <libgnome-desktop/gnome-systemd.h>
++#ifdef __linux__
+ #include <systemd/sd-journal.h>
++#endif
+
+ #include "gp-menu-utils.h"
+
+@@ -262,6 +264,7 @@ child_setup (gpointer user_data)
+ static void
+ child_setup (gpointer user_data)
+ {
++#ifdef __linux__
+ GAppInfo *info;
+ const gchar *id;
+ gint stdout_fd;
+@@ -283,6 +286,7 @@ child_setup (gpointer user_data)
+ dup2 (stderr_fd, STDERR_FILENO);
+ close (stderr_fd);
+ }
++#endif
+ }
+
+ static void