git: e6d37fcd1dd8 - main - x11/gnome-panel: add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 Jun 2025 11:03:09 UTC
The branch main has been updated by bapt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e6d37fcd1dd883a8c7a9d114a57984a369f85ab0
commit e6d37fcd1dd883a8c7a9d114a57984a369f85ab0
Author: Olivier Duchateau <duchateau.olivier@gmail.com>
AuthorDate: 2025-06-10 10:12:09 +0000
Commit: Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2025-06-10 11:02:34 +0000
x11/gnome-panel: add new port
This package contains the GNOME Panel of the GNOME Flashback project.
It consists of the gnome-panel binary, the libpanel-applet library
and several applets.
PR: 286697
---
x11/Makefile | 1 +
x11/gnome-panel/Makefile | 58 +
x11/gnome-panel/distinfo | 3 +
x11/gnome-panel/files/gp-consolekit-manager-gen.c | 1901 ++++++++++++++++++++
x11/gnome-panel/files/gp-consolekit-manager-gen.h | 315 ++++
.../files/org.freedesktop.ConsoleKit.Manager.xml | 32 +
x11/gnome-panel/files/patch-configure | 305 ++++
...h-modules_action-button_gp-lock-screen-applet.c | 28 +
.../patch-modules_launcher_gp-launcher-applet.c | 28 +
.../files/patch-modules_menu_Makefile.in | 101 ++
.../files/patch-modules_menu_gp-lock-logout.c | 226 +++
.../files/patch-modules_menu_gp-menu-utils.c | 28 +
x11/gnome-panel/pkg-descr | 3 +
x11/gnome-panel/pkg-plist | 212 +++
14 files changed, 3241 insertions(+)
diff --git a/x11/Makefile b/x11/Makefile
index a05d5fc26b05..f8bfb7b0fe67 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -98,6 +98,7 @@
SUBDIR += gnome-console
SUBDIR += gnome-desktop
SUBDIR += gnome-menus
+ SUBDIR += gnome-panel
SUBDIR += gnome-pie
SUBDIR += gnome-session
SUBDIR += gnome-shell
diff --git a/x11/gnome-panel/Makefile b/x11/gnome-panel/Makefile
new file mode 100644
index 000000000000..0748dfd11724
--- /dev/null
+++ b/x11/gnome-panel/Makefile
@@ -0,0 +1,58 @@
+PORTNAME= gnome-panel
+PORTVERSION= 3.56.0
+CATEGORIES= x11 gnome
+MASTER_SITES= GNOME
+DIST_SUBDIR= gnome
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= Panel for the GNOME Flashback session
+WWW= https://gitlab.gnome.org/GNOME/gnome-panel
+
+LICENSE_COMB= multi
+LICENSE= GPLv2 LGPL21
+
+BUILD_DEPENDS= gdm>0:x11/gdm \
+ itstool>0:textproc/itstool
+LIB_DEPENDS= libgweather-4.so:net/libgweather4 \
+ libgeocode-glib-2.so:net/geocode-glib2 \
+ libsoup-3.0.so:devel/libsoup3 \
+ libjson-glib-1.0.so:devel/json-glib \
+ libical.so:devel/libical \
+ libical-glib.so:devel/libical \
+ libicalss.so:devel/libical \
+ libicalvcal.so:devel/libical \
+ libconsolekit.so:sysutils/consolekit2 \
+ libpolkit-gobject-1.so:sysutils/polkit \
+ libgdm.so:x11/gdm
+
+USES= gettext gmake gnome libtool pathfix pkgconfig tar:xz xorg
+GNU_CONFIGURE= yes
+USE_GNOME= cairo dconf evolutiondataserver3 gdkpixbuf glib20 \
+ gnomedesktop3 gnomemenus3 gtk30 libwnck3 pango libxml2
+USE_XORG= x11 xext xi xrandr
+
+CONFIGURE_ARGS= --disable-documentation \
+ --disable-gtk-doc-html \
+ --without-html-dir
+
+INSTALL_TARGET= install-strip
+
+GLIB_SCHEMAS= org.gnome.gnome-panel.applet.clock.gschema.xml \
+ org.gnome.gnome-panel.applet.fish.gschema.xml \
+ org.gnome.gnome-panel.applet.initial-settings.gschema.xml \
+ org.gnome.gnome-panel.applet.window-list.gschema.xml \
+ org.gnome.gnome-panel.applet.workspace-switcher.gschema.xml \
+ org.gnome.gnome-panel.applet.menu-button.gschema.xml \
+ org.gnome.gnome-panel.applet.launcher.gschema.xml \
+ org.gnome.gnome-panel.gschema.xml \
+ org.gnome.gnome-panel.enums.xml \
+ org.gnome.gnome-panel.object.gschema.xml \
+ org.gnome.gnome-panel.toplevel.gschema.xml
+
+post-extract:
+ ${CP} ${FILESDIR}/gp-consolekit-manager-gen.* \
+ ${WRKSRC}/modules/menu/
+ ${CP} ${FILESDIR}/org.freedesktop.ConsoleKit.Manager.xml \
+ ${WRKSRC}/modules/menu/
+
+.include <bsd.port.mk>
diff --git a/x11/gnome-panel/distinfo b/x11/gnome-panel/distinfo
new file mode 100644
index 000000000000..b6a51f065344
--- /dev/null
+++ b/x11/gnome-panel/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1745750191
+SHA256 (gnome/gnome-panel-3.56.0.tar.xz) = 528a6d67dd84edae6c80a5ee656f84fbd942f3b371d60f97a2db6065cf4fd170
+SIZE (gnome/gnome-panel-3.56.0.tar.xz) = 2973688
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;
+}
+
+/**
*** 2377 LINES SKIPPED ***