/* DBusWingpanelManager.c generated by valac 0.56.18-dirty, the Vala compiler
 * generated from DBusWingpanelManager.vala, do not modify */

/*
 * Copyright 2024 elementary, Inc. (https://elementary.io)
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#include <glib-object.h>
#include <gio/gio.h>
#include <meta/meta-plugin.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <meta/display.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif
#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif

#define GREETER_COMPOSITOR_TYPE_DBUS_WINGPANEL_MANAGER (greeter_compositor_dbus_wingpanel_manager_get_type ())
#define GREETER_COMPOSITOR_DBUS_WINGPANEL_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GREETER_COMPOSITOR_TYPE_DBUS_WINGPANEL_MANAGER, GreeterCompositorDBusWingpanelManager))
#define GREETER_COMPOSITOR_DBUS_WINGPANEL_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GREETER_COMPOSITOR_TYPE_DBUS_WINGPANEL_MANAGER, GreeterCompositorDBusWingpanelManagerClass))
#define GREETER_COMPOSITOR_IS_DBUS_WINGPANEL_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GREETER_COMPOSITOR_TYPE_DBUS_WINGPANEL_MANAGER))
#define GREETER_COMPOSITOR_IS_DBUS_WINGPANEL_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GREETER_COMPOSITOR_TYPE_DBUS_WINGPANEL_MANAGER))
#define GREETER_COMPOSITOR_DBUS_WINGPANEL_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GREETER_COMPOSITOR_TYPE_DBUS_WINGPANEL_MANAGER, GreeterCompositorDBusWingpanelManagerClass))

typedef struct _GreeterCompositorDBusWingpanelManager GreeterCompositorDBusWingpanelManager;
typedef struct _GreeterCompositorDBusWingpanelManagerClass GreeterCompositorDBusWingpanelManagerClass;
typedef struct _GreeterCompositorDBusWingpanelManagerPrivate GreeterCompositorDBusWingpanelManagerPrivate;

#define GREETER_COMPOSITOR_TYPE_WINGPANEL_MANAGER (greeter_compositor_wingpanel_manager_get_type ())
#define GREETER_COMPOSITOR_WINGPANEL_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GREETER_COMPOSITOR_TYPE_WINGPANEL_MANAGER, GreeterCompositorWingpanelManager))
#define GREETER_COMPOSITOR_WINGPANEL_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GREETER_COMPOSITOR_TYPE_WINGPANEL_MANAGER, GreeterCompositorWingpanelManagerClass))
#define GREETER_COMPOSITOR_IS_WINGPANEL_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GREETER_COMPOSITOR_TYPE_WINGPANEL_MANAGER))
#define GREETER_COMPOSITOR_IS_WINGPANEL_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GREETER_COMPOSITOR_TYPE_WINGPANEL_MANAGER))
#define GREETER_COMPOSITOR_WINGPANEL_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GREETER_COMPOSITOR_TYPE_WINGPANEL_MANAGER, GreeterCompositorWingpanelManagerClass))

typedef struct _GreeterCompositorWingpanelManager GreeterCompositorWingpanelManager;
typedef struct _GreeterCompositorWingpanelManagerClass GreeterCompositorWingpanelManagerClass;

#define GREETER_COMPOSITOR_TYPE_FOCUS_MANAGER (greeter_compositor_focus_manager_get_type ())
#define GREETER_COMPOSITOR_FOCUS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GREETER_COMPOSITOR_TYPE_FOCUS_MANAGER, GreeterCompositorFocusManager))
#define GREETER_COMPOSITOR_FOCUS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GREETER_COMPOSITOR_TYPE_FOCUS_MANAGER, GreeterCompositorFocusManagerClass))
#define GREETER_COMPOSITOR_IS_FOCUS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GREETER_COMPOSITOR_TYPE_FOCUS_MANAGER))
#define GREETER_COMPOSITOR_IS_FOCUS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GREETER_COMPOSITOR_TYPE_FOCUS_MANAGER))
#define GREETER_COMPOSITOR_FOCUS_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GREETER_COMPOSITOR_TYPE_FOCUS_MANAGER, GreeterCompositorFocusManagerClass))

typedef struct _GreeterCompositorFocusManager GreeterCompositorFocusManager;
typedef struct _GreeterCompositorFocusManagerClass GreeterCompositorFocusManagerClass;
enum  {
	GREETER_COMPOSITOR_DBUS_WINGPANEL_MANAGER_0_PROPERTY,
	GREETER_COMPOSITOR_DBUS_WINGPANEL_MANAGER_NUM_PROPERTIES
};
static GParamSpec* greeter_compositor_dbus_wingpanel_manager_properties[GREETER_COMPOSITOR_DBUS_WINGPANEL_MANAGER_NUM_PROPERTIES];

#define GREETER_COMPOSITOR_TYPE_WINDOW_MANAGER (greeter_compositor_window_manager_get_type ())
#define GREETER_COMPOSITOR_WINDOW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GREETER_COMPOSITOR_TYPE_WINDOW_MANAGER, GreeterCompositorWindowManager))
#define GREETER_COMPOSITOR_WINDOW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GREETER_COMPOSITOR_TYPE_WINDOW_MANAGER, GreeterCompositorWindowManagerClass))
#define GREETER_COMPOSITOR_IS_WINDOW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GREETER_COMPOSITOR_TYPE_WINDOW_MANAGER))
#define GREETER_COMPOSITOR_IS_WINDOW_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GREETER_COMPOSITOR_TYPE_WINDOW_MANAGER))
#define GREETER_COMPOSITOR_WINDOW_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GREETER_COMPOSITOR_TYPE_WINDOW_MANAGER, GreeterCompositorWindowManagerClass))

typedef struct _GreeterCompositorWindowManager GreeterCompositorWindowManager;
typedef struct _GreeterCompositorWindowManagerClass GreeterCompositorWindowManagerClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef enum  {
	BACKGROUND_STATE_LIGHT,
	BACKGROUND_STATE_DARK,
	BACKGROUND_STATE_MAXIMIZED,
	BACKGROUND_STATE_TRANSLUCENT_DARK,
	BACKGROUND_STATE_TRANSLUCENT_LIGHT
} BackgroundState;

#define TYPE_BACKGROUND_STATE (background_state_get_type ())
enum  {
	GREETER_COMPOSITOR_DBUS_WINGPANEL_MANAGER_STATE_CHANGED_SIGNAL,
	GREETER_COMPOSITOR_DBUS_WINGPANEL_MANAGER_NUM_SIGNALS
};
static guint greeter_compositor_dbus_wingpanel_manager_signals[GREETER_COMPOSITOR_DBUS_WINGPANEL_MANAGER_NUM_SIGNALS] = {0};

struct _GreeterCompositorDBusWingpanelManager {
	GObject parent_instance;
	GreeterCompositorDBusWingpanelManagerPrivate * priv;
};

struct _GreeterCompositorDBusWingpanelManagerClass {
	GObjectClass parent_class;
};

struct _GreeterCompositorDBusWingpanelManagerPrivate {
	GreeterCompositorWingpanelManager* background_manager;
	GreeterCompositorFocusManager* focus_manager;
};

static gint GreeterCompositorDBusWingpanelManager_private_offset;
static gpointer greeter_compositor_dbus_wingpanel_manager_parent_class = NULL;
static GreeterCompositorDBusWingpanelManager* greeter_compositor_dbus_wingpanel_manager_instance;
static GreeterCompositorDBusWingpanelManager* greeter_compositor_dbus_wingpanel_manager_instance = NULL;
static GreeterCompositorWindowManager* greeter_compositor_dbus_wingpanel_manager_wm;
static GreeterCompositorWindowManager* greeter_compositor_dbus_wingpanel_manager_wm = NULL;

VALA_EXTERN GType greeter_compositor_dbus_wingpanel_manager_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GreeterCompositorDBusWingpanelManager, g_object_unref)
VALA_EXTERN guint greeter_compositor_dbus_wingpanel_manager_register_object (void* object,
                                                                 GDBusConnection* connection,
                                                                 const gchar* path,
                                                                 GError** error);
VALA_EXTERN GType greeter_compositor_wingpanel_manager_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GreeterCompositorWingpanelManager, g_object_unref)
VALA_EXTERN GType greeter_compositor_focus_manager_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GreeterCompositorFocusManager, g_object_unref)
VALA_EXTERN GType greeter_compositor_window_manager_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GreeterCompositorWindowManager, g_object_unref)
VALA_EXTERN void greeter_compositor_dbus_wingpanel_manager_init (GreeterCompositorWindowManager* _wm);
static void __lambda52_ (GDBusConnection* connection);
VALA_EXTERN GreeterCompositorDBusWingpanelManager* greeter_compositor_dbus_wingpanel_manager_new (void);
VALA_EXTERN GreeterCompositorDBusWingpanelManager* greeter_compositor_dbus_wingpanel_manager_construct (GType object_type);
static void ___lambda52__gbus_acquired_callback (GDBusConnection* connection,
                                          const gchar* name,
                                          gpointer self);
static void __lambda53_ (void);
static void ___lambda53__gbus_name_acquired_callback (GDBusConnection* connection,
                                               const gchar* name,
                                               gpointer self);
static void __lambda54_ (void);
static void ___lambda54__gbus_name_lost_callback (GDBusConnection* connection,
                                           const gchar* name,
                                           gpointer self);
VALA_EXTERN void greeter_compositor_dbus_wingpanel_manager_initialize (GreeterCompositorDBusWingpanelManager* self,
                                                           gint monitor,
                                                           gint panel_height,
                                                           GError** error);
VALA_EXTERN GreeterCompositorWingpanelManager* greeter_compositor_wingpanel_manager_new (GreeterCompositorWindowManager* _wm,
                                                                             gint panel_height);
VALA_EXTERN GreeterCompositorWingpanelManager* greeter_compositor_wingpanel_manager_construct (GType object_type,
                                                                                   GreeterCompositorWindowManager* _wm,
                                                                                   gint panel_height);
VALA_EXTERN GType background_state_get_type (void) G_GNUC_CONST ;
static void __lambda55_ (GreeterCompositorDBusWingpanelManager* self,
                  BackgroundState state,
                  guint animation_duration);
static void ___lambda55__greeter_compositor_wingpanel_manager_state_changed (GreeterCompositorWingpanelManager* _sender,
                                                                      BackgroundState state,
                                                                      guint animation_duration,
                                                                      gpointer self);
VALA_EXTERN GreeterCompositorFocusManager* greeter_compositor_focus_manager_new (MetaDisplay* _display);
VALA_EXTERN GreeterCompositorFocusManager* greeter_compositor_focus_manager_construct (GType object_type,
                                                                           MetaDisplay* _display);
VALA_EXTERN gboolean greeter_compositor_dbus_wingpanel_manager_begin_grab_focused_window (GreeterCompositorDBusWingpanelManager* self,
                                                                              gint x,
                                                                              gint y,
                                                                              gint button,
                                                                              guint time,
                                                                              guint state,
                                                                              GError** error);
VALA_EXTERN gboolean greeter_compositor_focus_manager_begin_grab_focused_window (GreeterCompositorFocusManager* self,
                                                                     gint x,
                                                                     gint y,
                                                                     gint button,
                                                                     guint time,
                                                                     guint state);
VALA_EXTERN void greeter_compositor_dbus_wingpanel_manager_remember_focused_window (GreeterCompositorDBusWingpanelManager* self,
                                                                        GError** error);
VALA_EXTERN void greeter_compositor_focus_manager_remember_focused_window (GreeterCompositorFocusManager* self);
VALA_EXTERN void greeter_compositor_dbus_wingpanel_manager_restore_focused_window (GreeterCompositorDBusWingpanelManager* self,
                                                                       GError** error);
VALA_EXTERN void greeter_compositor_focus_manager_restore_focused_window (GreeterCompositorFocusManager* self);
static void g_cclosure_user_marshal_VOID__ENUM_UINT (GClosure * closure,
                                              GValue * return_value,
                                              guint n_param_values,
                                              const GValue * param_values,
                                              gpointer invocation_hint,
                                              gpointer marshal_data);
static void greeter_compositor_dbus_wingpanel_manager_finalize (GObject * obj);
static GType greeter_compositor_dbus_wingpanel_manager_get_type_once (void);
static void _dbus_greeter_compositor_dbus_wingpanel_manager_initialize (GreeterCompositorDBusWingpanelManager* self,
                                                                 GVariant* _parameters_,
                                                                 GDBusMethodInvocation* invocation);
static void _dbus_greeter_compositor_dbus_wingpanel_manager_begin_grab_focused_window (GreeterCompositorDBusWingpanelManager* self,
                                                                                GVariant* _parameters_,
                                                                                GDBusMethodInvocation* invocation);
static void _dbus_greeter_compositor_dbus_wingpanel_manager_remember_focused_window (GreeterCompositorDBusWingpanelManager* self,
                                                                              GVariant* _parameters_,
                                                                              GDBusMethodInvocation* invocation);
static void _dbus_greeter_compositor_dbus_wingpanel_manager_restore_focused_window (GreeterCompositorDBusWingpanelManager* self,
                                                                             GVariant* _parameters_,
                                                                             GDBusMethodInvocation* invocation);
static void greeter_compositor_dbus_wingpanel_manager_dbus_interface_method_call (GDBusConnection* connection,
                                                                           const gchar* sender,
                                                                           const gchar* object_path,
                                                                           const gchar* interface_name,
                                                                           const gchar* method_name,
                                                                           GVariant* parameters,
                                                                           GDBusMethodInvocation* invocation,
                                                                           gpointer user_data);
static GVariant* greeter_compositor_dbus_wingpanel_manager_dbus_interface_get_property (GDBusConnection* connection,
                                                                                 const gchar* sender,
                                                                                 const gchar* object_path,
                                                                                 const gchar* interface_name,
                                                                                 const gchar* property_name,
                                                                                 GError** error,
                                                                                 gpointer user_data);
static gboolean greeter_compositor_dbus_wingpanel_manager_dbus_interface_set_property (GDBusConnection* connection,
                                                                                const gchar* sender,
                                                                                const gchar* object_path,
                                                                                const gchar* interface_name,
                                                                                const gchar* property_name,
                                                                                GVariant* value,
                                                                                GError** error,
                                                                                gpointer user_data);
static void _dbus_greeter_compositor_dbus_wingpanel_manager_state_changed (GObject* _sender,
                                                                    BackgroundState state,
                                                                    guint animation_duration,
                                                                    gpointer* _data);
static void _greeter_compositor_dbus_wingpanel_manager_unregister_object (gpointer user_data);

static const GDBusArgInfo _greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_initialize_monitor = {-1, "monitor", "i", NULL};
static const GDBusArgInfo _greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_initialize_panel_height = {-1, "panel_height", "i", NULL};
static const GDBusArgInfo * const _greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_initialize_in[] = {&_greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_initialize_monitor, &_greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_initialize_panel_height, NULL};
static const GDBusArgInfo * const _greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_initialize_out[] = {NULL};
static const GDBusMethodInfo _greeter_compositor_dbus_wingpanel_manager_dbus_method_info_initialize = {-1, "Initialize", (GDBusArgInfo **) (&_greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_initialize_in), (GDBusArgInfo **) (&_greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_initialize_out), NULL};
static const GDBusArgInfo _greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_begin_grab_focused_window_x = {-1, "x", "i", NULL};
static const GDBusArgInfo _greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_begin_grab_focused_window_y = {-1, "y", "i", NULL};
static const GDBusArgInfo _greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_begin_grab_focused_window_button = {-1, "button", "i", NULL};
static const GDBusArgInfo _greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_begin_grab_focused_window_time = {-1, "time", "u", NULL};
static const GDBusArgInfo _greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_begin_grab_focused_window_state = {-1, "state", "u", NULL};
static const GDBusArgInfo _greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_begin_grab_focused_window_result = {-1, "result", "b", NULL};
static const GDBusArgInfo * const _greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_begin_grab_focused_window_in[] = {&_greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_begin_grab_focused_window_x, &_greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_begin_grab_focused_window_y, &_greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_begin_grab_focused_window_button, &_greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_begin_grab_focused_window_time, &_greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_begin_grab_focused_window_state, NULL};
static const GDBusArgInfo * const _greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_begin_grab_focused_window_out[] = {&_greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_begin_grab_focused_window_result, NULL};
static const GDBusMethodInfo _greeter_compositor_dbus_wingpanel_manager_dbus_method_info_begin_grab_focused_window = {-1, "BeginGrabFocusedWindow", (GDBusArgInfo **) (&_greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_begin_grab_focused_window_in), (GDBusArgInfo **) (&_greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_begin_grab_focused_window_out), NULL};
static const GDBusArgInfo * const _greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_remember_focused_window_in[] = {NULL};
static const GDBusArgInfo * const _greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_remember_focused_window_out[] = {NULL};
static const GDBusMethodInfo _greeter_compositor_dbus_wingpanel_manager_dbus_method_info_remember_focused_window = {-1, "RememberFocusedWindow", (GDBusArgInfo **) (&_greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_remember_focused_window_in), (GDBusArgInfo **) (&_greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_remember_focused_window_out), NULL};
static const GDBusArgInfo * const _greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_restore_focused_window_in[] = {NULL};
static const GDBusArgInfo * const _greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_restore_focused_window_out[] = {NULL};
static const GDBusMethodInfo _greeter_compositor_dbus_wingpanel_manager_dbus_method_info_restore_focused_window = {-1, "RestoreFocusedWindow", (GDBusArgInfo **) (&_greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_restore_focused_window_in), (GDBusArgInfo **) (&_greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_restore_focused_window_out), NULL};
static const GDBusMethodInfo * const _greeter_compositor_dbus_wingpanel_manager_dbus_method_info[] = {&_greeter_compositor_dbus_wingpanel_manager_dbus_method_info_initialize, &_greeter_compositor_dbus_wingpanel_manager_dbus_method_info_begin_grab_focused_window, &_greeter_compositor_dbus_wingpanel_manager_dbus_method_info_remember_focused_window, &_greeter_compositor_dbus_wingpanel_manager_dbus_method_info_restore_focused_window, NULL};
static const GDBusArgInfo _greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_state_changed_state = {-1, "state", "i", NULL};
static const GDBusArgInfo _greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_state_changed_animation_duration = {-1, "animation_duration", "u", NULL};
static const GDBusArgInfo * const _greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_state_changed[] = {&_greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_state_changed_state, &_greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_state_changed_animation_duration, NULL};
static const GDBusSignalInfo _greeter_compositor_dbus_wingpanel_manager_dbus_signal_info_state_changed = {-1, "StateChanged", (GDBusArgInfo **) (&_greeter_compositor_dbus_wingpanel_manager_dbus_arg_info_state_changed), NULL};
static const GDBusSignalInfo * const _greeter_compositor_dbus_wingpanel_manager_dbus_signal_info[] = {&_greeter_compositor_dbus_wingpanel_manager_dbus_signal_info_state_changed, NULL};
static const GDBusPropertyInfo * const _greeter_compositor_dbus_wingpanel_manager_dbus_property_info[] = {NULL};
static const GDBusInterfaceInfo _greeter_compositor_dbus_wingpanel_manager_dbus_interface_info = {-1, "org.pantheon.gala.WingpanelInterface", (GDBusMethodInfo **) (&_greeter_compositor_dbus_wingpanel_manager_dbus_method_info), (GDBusSignalInfo **) (&_greeter_compositor_dbus_wingpanel_manager_dbus_signal_info), (GDBusPropertyInfo **) (&_greeter_compositor_dbus_wingpanel_manager_dbus_property_info), NULL};
static const GDBusInterfaceVTable _greeter_compositor_dbus_wingpanel_manager_dbus_interface_vtable = {greeter_compositor_dbus_wingpanel_manager_dbus_interface_method_call, greeter_compositor_dbus_wingpanel_manager_dbus_interface_get_property, greeter_compositor_dbus_wingpanel_manager_dbus_interface_set_property};

static inline gpointer
greeter_compositor_dbus_wingpanel_manager_get_instance_private (GreeterCompositorDBusWingpanelManager* self)
{
	return G_STRUCT_MEMBER_P (self, GreeterCompositorDBusWingpanelManager_private_offset);
}

static gpointer
_g_object_ref0 (gpointer self)
{
	return self ? g_object_ref (self) : NULL;
}

static void
__lambda52_ (GDBusConnection* connection)
{
	GreeterCompositorDBusWingpanelManager* _tmp0_;
	GError* _inner_error0_ = NULL;
	g_return_if_fail (connection != NULL);
	_tmp0_ = greeter_compositor_dbus_wingpanel_manager_instance;
	if (_tmp0_ == NULL) {
		GreeterCompositorDBusWingpanelManager* _tmp1_;
		_tmp1_ = greeter_compositor_dbus_wingpanel_manager_new ();
		_g_object_unref0 (greeter_compositor_dbus_wingpanel_manager_instance);
		greeter_compositor_dbus_wingpanel_manager_instance = _tmp1_;
	}
	{
		GreeterCompositorDBusWingpanelManager* _tmp2_;
		_tmp2_ = greeter_compositor_dbus_wingpanel_manager_instance;
		greeter_compositor_dbus_wingpanel_manager_register_object (_tmp2_, connection, "/org/pantheon/gala/WingpanelInterface", &_inner_error0_);
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp3_;
		const gchar* _tmp4_;
		e = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp3_ = e;
		_tmp4_ = _tmp3_->message;
		g_warning ("DBusWingpanelManager.vala:26: %s", _tmp4_);
		_g_error_free0 (e);
	}
	__finally0:
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
		g_clear_error (&_inner_error0_);
		return;
	}
}

static void
___lambda52__gbus_acquired_callback (GDBusConnection* connection,
                                     const gchar* name,
                                     gpointer self)
{
	__lambda52_ (connection);
}

static void
__lambda53_ (void)
{
}

static void
___lambda53__gbus_name_acquired_callback (GDBusConnection* connection,
                                          const gchar* name,
                                          gpointer self)
{
	__lambda53_ ();
}

static void
__lambda54_ (void)
{
	g_warning ("DBusWingpanelManager.vala:30: Could not acquire name\n");
}

static void
___lambda54__gbus_name_lost_callback (GDBusConnection* connection,
                                      const gchar* name,
                                      gpointer self)
{
	__lambda54_ ();
}

void
greeter_compositor_dbus_wingpanel_manager_init (GreeterCompositorWindowManager* _wm)
{
	GreeterCompositorWindowManager* _tmp0_;
	g_return_if_fail (_wm != NULL);
	_tmp0_ = _g_object_ref0 (_wm);
	_g_object_unref0 (greeter_compositor_dbus_wingpanel_manager_wm);
	greeter_compositor_dbus_wingpanel_manager_wm = _tmp0_;
	g_bus_own_name_with_closures (G_BUS_TYPE_SESSION, "org.pantheon.gala.WingpanelInterface", G_BUS_NAME_OWNER_FLAGS_NONE, (GClosure*) ((___lambda52__gbus_acquired_callback == NULL) ? NULL : g_cclosure_new ((GCallback) ___lambda52__gbus_acquired_callback, NULL, (GClosureNotify) NULL)), (GClosure*) ((___lambda53__gbus_name_acquired_callback == NULL) ? NULL : g_cclosure_new ((GCallback) ___lambda53__gbus_name_acquired_callback, NULL, (GClosureNotify) NULL)), (GClosure*) ((___lambda54__gbus_name_lost_callback == NULL) ? NULL : g_cclosure_new ((GCallback) ___lambda54__gbus_name_lost_callback, NULL, (GClosureNotify) NULL)));
}

static void
__lambda55_ (GreeterCompositorDBusWingpanelManager* self,
             BackgroundState state,
             guint animation_duration)
{
	g_signal_emit (self, greeter_compositor_dbus_wingpanel_manager_signals[GREETER_COMPOSITOR_DBUS_WINGPANEL_MANAGER_STATE_CHANGED_SIGNAL], 0, state, animation_duration);
}

static void
___lambda55__greeter_compositor_wingpanel_manager_state_changed (GreeterCompositorWingpanelManager* _sender,
                                                                 BackgroundState state,
                                                                 guint animation_duration,
                                                                 gpointer self)
{
	__lambda55_ ((GreeterCompositorDBusWingpanelManager*) self, state, animation_duration);
}

void
greeter_compositor_dbus_wingpanel_manager_initialize (GreeterCompositorDBusWingpanelManager* self,
                                                      gint monitor,
                                                      gint panel_height,
                                                      GError** error)
{
	GreeterCompositorWindowManager* _tmp0_;
	GreeterCompositorWingpanelManager* _tmp1_;
	GreeterCompositorWingpanelManager* _tmp2_;
	GreeterCompositorWindowManager* _tmp3_;
	MetaDisplay* _tmp4_;
	GreeterCompositorFocusManager* _tmp5_;
	g_return_if_fail (self != NULL);
	_tmp0_ = greeter_compositor_dbus_wingpanel_manager_wm;
	_tmp1_ = greeter_compositor_wingpanel_manager_new (_tmp0_, panel_height);
	_g_object_unref0 (self->priv->background_manager);
	self->priv->background_manager = _tmp1_;
	_tmp2_ = self->priv->background_manager;
	g_signal_connect_object (_tmp2_, "state-changed", (GCallback) ___lambda55__greeter_compositor_wingpanel_manager_state_changed, self, 0);
	_tmp3_ = greeter_compositor_dbus_wingpanel_manager_wm;
	_tmp4_ = meta_plugin_get_display ((MetaPlugin*) _tmp3_);
	_tmp5_ = greeter_compositor_focus_manager_new (_tmp4_);
	_g_object_unref0 (self->priv->focus_manager);
	self->priv->focus_manager = _tmp5_;
}

gboolean
greeter_compositor_dbus_wingpanel_manager_begin_grab_focused_window (GreeterCompositorDBusWingpanelManager* self,
                                                                     gint x,
                                                                     gint y,
                                                                     gint button,
                                                                     guint time,
                                                                     guint state,
                                                                     GError** error)
{
	GreeterCompositorFocusManager* _tmp0_;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->focus_manager;
	result = greeter_compositor_focus_manager_begin_grab_focused_window (_tmp0_, x, y, button, time, state);
	return result;
}

void
greeter_compositor_dbus_wingpanel_manager_remember_focused_window (GreeterCompositorDBusWingpanelManager* self,
                                                                   GError** error)
{
	GreeterCompositorFocusManager* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->focus_manager;
	greeter_compositor_focus_manager_remember_focused_window (_tmp0_);
}

void
greeter_compositor_dbus_wingpanel_manager_restore_focused_window (GreeterCompositorDBusWingpanelManager* self,
                                                                  GError** error)
{
	GreeterCompositorFocusManager* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->focus_manager;
	greeter_compositor_focus_manager_restore_focused_window (_tmp0_);
}

GreeterCompositorDBusWingpanelManager*
greeter_compositor_dbus_wingpanel_manager_construct (GType object_type)
{
	GreeterCompositorDBusWingpanelManager * self = NULL;
	self = (GreeterCompositorDBusWingpanelManager*) g_object_new (object_type, NULL);
	return self;
}

GreeterCompositorDBusWingpanelManager*
greeter_compositor_dbus_wingpanel_manager_new (void)
{
	return greeter_compositor_dbus_wingpanel_manager_construct (GREETER_COMPOSITOR_TYPE_DBUS_WINGPANEL_MANAGER);
}

static void
g_cclosure_user_marshal_VOID__ENUM_UINT (GClosure * closure,
                                         GValue * return_value,
                                         guint n_param_values,
                                         const GValue * param_values,
                                         gpointer invocation_hint,
                                         gpointer marshal_data)
{
	typedef void (*GMarshalFunc_VOID__ENUM_UINT) (gpointer data1, gint arg_1, guint arg_2, gpointer data2);
	register GMarshalFunc_VOID__ENUM_UINT callback;
	register GCClosure * cc;
	register gpointer data1;
	register gpointer data2;
	cc = (GCClosure *) closure;
	g_return_if_fail (n_param_values == 3);
	if (G_CCLOSURE_SWAP_DATA (closure)) {
		data1 = closure->data;
		data2 = param_values->data[0].v_pointer;
	} else {
		data1 = param_values->data[0].v_pointer;
		data2 = closure->data;
	}
	callback = (GMarshalFunc_VOID__ENUM_UINT) (marshal_data ? marshal_data : cc->callback);
	callback (data1, g_value_get_enum (param_values + 1), g_value_get_uint (param_values + 2), data2);
}

static void
greeter_compositor_dbus_wingpanel_manager_class_init (GreeterCompositorDBusWingpanelManagerClass * klass,
                                                      gpointer klass_data)
{
	greeter_compositor_dbus_wingpanel_manager_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &GreeterCompositorDBusWingpanelManager_private_offset);
	G_OBJECT_CLASS (klass)->finalize = greeter_compositor_dbus_wingpanel_manager_finalize;
	greeter_compositor_dbus_wingpanel_manager_signals[GREETER_COMPOSITOR_DBUS_WINGPANEL_MANAGER_STATE_CHANGED_SIGNAL] = g_signal_new ("state-changed", GREETER_COMPOSITOR_TYPE_DBUS_WINGPANEL_MANAGER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__ENUM_UINT, G_TYPE_NONE, 2, TYPE_BACKGROUND_STATE, G_TYPE_UINT);
}

static void
greeter_compositor_dbus_wingpanel_manager_instance_init (GreeterCompositorDBusWingpanelManager * self,
                                                         gpointer klass)
{
	self->priv = greeter_compositor_dbus_wingpanel_manager_get_instance_private (self);
}

static void
greeter_compositor_dbus_wingpanel_manager_finalize (GObject * obj)
{
	GreeterCompositorDBusWingpanelManager * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GREETER_COMPOSITOR_TYPE_DBUS_WINGPANEL_MANAGER, GreeterCompositorDBusWingpanelManager);
	_g_object_unref0 (self->priv->background_manager);
	_g_object_unref0 (self->priv->focus_manager);
	G_OBJECT_CLASS (greeter_compositor_dbus_wingpanel_manager_parent_class)->finalize (obj);
}

static GType
greeter_compositor_dbus_wingpanel_manager_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (GreeterCompositorDBusWingpanelManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) greeter_compositor_dbus_wingpanel_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GreeterCompositorDBusWingpanelManager), 0, (GInstanceInitFunc) greeter_compositor_dbus_wingpanel_manager_instance_init, NULL };
	GType greeter_compositor_dbus_wingpanel_manager_type_id;
	greeter_compositor_dbus_wingpanel_manager_type_id = g_type_register_static (G_TYPE_OBJECT, "GreeterCompositorDBusWingpanelManager", &g_define_type_info, 0);
	g_type_set_qdata (greeter_compositor_dbus_wingpanel_manager_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) greeter_compositor_dbus_wingpanel_manager_register_object);
	GreeterCompositorDBusWingpanelManager_private_offset = g_type_add_instance_private (greeter_compositor_dbus_wingpanel_manager_type_id, sizeof (GreeterCompositorDBusWingpanelManagerPrivate));
	return greeter_compositor_dbus_wingpanel_manager_type_id;
}

GType
greeter_compositor_dbus_wingpanel_manager_get_type (void)
{
	static volatile gsize greeter_compositor_dbus_wingpanel_manager_type_id__once = 0;
	if (g_once_init_enter (&greeter_compositor_dbus_wingpanel_manager_type_id__once)) {
		GType greeter_compositor_dbus_wingpanel_manager_type_id;
		greeter_compositor_dbus_wingpanel_manager_type_id = greeter_compositor_dbus_wingpanel_manager_get_type_once ();
		g_once_init_leave (&greeter_compositor_dbus_wingpanel_manager_type_id__once, greeter_compositor_dbus_wingpanel_manager_type_id);
	}
	return greeter_compositor_dbus_wingpanel_manager_type_id__once;
}

static void
_dbus_greeter_compositor_dbus_wingpanel_manager_initialize (GreeterCompositorDBusWingpanelManager* self,
                                                            GVariant* _parameters_,
                                                            GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gint monitor = 0;
	GVariant* _tmp0_;
	gint panel_height = 0;
	GVariant* _tmp1_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp0_ = g_variant_iter_next_value (&_arguments_iter);
	monitor = g_variant_get_int32 (_tmp0_);
	g_variant_unref (_tmp0_);
	_tmp1_ = g_variant_iter_next_value (&_arguments_iter);
	panel_height = g_variant_get_int32 (_tmp1_);
	g_variant_unref (_tmp1_);
	greeter_compositor_dbus_wingpanel_manager_initialize (self, monitor, panel_height, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_greeter_compositor_dbus_wingpanel_manager_begin_grab_focused_window (GreeterCompositorDBusWingpanelManager* self,
                                                                           GVariant* _parameters_,
                                                                           GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gint x = 0;
	GVariant* _tmp2_;
	gint y = 0;
	GVariant* _tmp3_;
	gint button = 0;
	GVariant* _tmp4_;
	guint time = 0U;
	GVariant* _tmp5_;
	guint state = 0U;
	GVariant* _tmp6_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	gboolean result;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp2_ = g_variant_iter_next_value (&_arguments_iter);
	x = g_variant_get_int32 (_tmp2_);
	g_variant_unref (_tmp2_);
	_tmp3_ = g_variant_iter_next_value (&_arguments_iter);
	y = g_variant_get_int32 (_tmp3_);
	g_variant_unref (_tmp3_);
	_tmp4_ = g_variant_iter_next_value (&_arguments_iter);
	button = g_variant_get_int32 (_tmp4_);
	g_variant_unref (_tmp4_);
	_tmp5_ = g_variant_iter_next_value (&_arguments_iter);
	time = g_variant_get_uint32 (_tmp5_);
	g_variant_unref (_tmp5_);
	_tmp6_ = g_variant_iter_next_value (&_arguments_iter);
	state = g_variant_get_uint32 (_tmp6_);
	g_variant_unref (_tmp6_);
	result = greeter_compositor_dbus_wingpanel_manager_begin_grab_focused_window (self, x, y, button, time, state, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_reply_builder, g_variant_new_boolean (result));
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_greeter_compositor_dbus_wingpanel_manager_remember_focused_window (GreeterCompositorDBusWingpanelManager* self,
                                                                         GVariant* _parameters_,
                                                                         GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	greeter_compositor_dbus_wingpanel_manager_remember_focused_window (self, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
_dbus_greeter_compositor_dbus_wingpanel_manager_restore_focused_window (GreeterCompositorDBusWingpanelManager* self,
                                                                        GVariant* _parameters_,
                                                                        GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	greeter_compositor_dbus_wingpanel_manager_restore_focused_window (self, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		return;
	}
	_reply_message = g_dbus_message_new_method_reply (g_dbus_method_invocation_get_message (invocation));
	g_variant_builder_init (&_reply_builder, G_VARIANT_TYPE_TUPLE);
	_reply = g_variant_builder_end (&_reply_builder);
	g_dbus_message_set_body (_reply_message, _reply);
	g_dbus_connection_send_message (g_dbus_method_invocation_get_connection (invocation), _reply_message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, NULL, NULL);
	g_object_unref (invocation);
	g_object_unref (_reply_message);
}

static void
greeter_compositor_dbus_wingpanel_manager_dbus_interface_method_call (GDBusConnection* connection,
                                                                      const gchar* sender,
                                                                      const gchar* object_path,
                                                                      const gchar* interface_name,
                                                                      const gchar* method_name,
                                                                      GVariant* parameters,
                                                                      GDBusMethodInvocation* invocation,
                                                                      gpointer user_data)
{
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	if (strcmp (method_name, "Initialize") == 0) {
		_dbus_greeter_compositor_dbus_wingpanel_manager_initialize (object, parameters, invocation);
	} else if (strcmp (method_name, "BeginGrabFocusedWindow") == 0) {
		_dbus_greeter_compositor_dbus_wingpanel_manager_begin_grab_focused_window (object, parameters, invocation);
	} else if (strcmp (method_name, "RememberFocusedWindow") == 0) {
		_dbus_greeter_compositor_dbus_wingpanel_manager_remember_focused_window (object, parameters, invocation);
	} else if (strcmp (method_name, "RestoreFocusedWindow") == 0) {
		_dbus_greeter_compositor_dbus_wingpanel_manager_restore_focused_window (object, parameters, invocation);
	} else {
		g_object_unref (invocation);
	}
}

static GVariant*
greeter_compositor_dbus_wingpanel_manager_dbus_interface_get_property (GDBusConnection* connection,
                                                                       const gchar* sender,
                                                                       const gchar* object_path,
                                                                       const gchar* interface_name,
                                                                       const gchar* property_name,
                                                                       GError** error,
                                                                       gpointer user_data)
{
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return NULL;
}

static gboolean
greeter_compositor_dbus_wingpanel_manager_dbus_interface_set_property (GDBusConnection* connection,
                                                                       const gchar* sender,
                                                                       const gchar* object_path,
                                                                       const gchar* interface_name,
                                                                       const gchar* property_name,
                                                                       GVariant* value,
                                                                       GError** error,
                                                                       gpointer user_data)
{
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	return FALSE;
}

static void
_dbus_greeter_compositor_dbus_wingpanel_manager_state_changed (GObject* _sender,
                                                               BackgroundState state,
                                                               guint animation_duration,
                                                               gpointer* _data)
{
	GDBusConnection * _connection;
	const gchar * _path;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	_connection = _data[1];
	_path = _data[2];
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (state));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (animation_duration));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.pantheon.gala.WingpanelInterface", "StateChanged", _arguments, NULL);
}

guint
greeter_compositor_dbus_wingpanel_manager_register_object (gpointer object,
                                                           GDBusConnection* connection,
                                                           const gchar* path,
                                                           GError** error)
{
	guint result;
	gpointer *data;
	data = g_new (gpointer, 3);
	data[0] = g_object_ref (object);
	data[1] = g_object_ref (connection);
	data[2] = g_strdup (path);
	result = g_dbus_connection_register_object (connection, path, (GDBusInterfaceInfo *) (&_greeter_compositor_dbus_wingpanel_manager_dbus_interface_info), &_greeter_compositor_dbus_wingpanel_manager_dbus_interface_vtable, data, _greeter_compositor_dbus_wingpanel_manager_unregister_object, error);
	if (!result) {
		return 0;
	}
	g_signal_connect (object, "state-changed", (GCallback) _dbus_greeter_compositor_dbus_wingpanel_manager_state_changed, data);
	return result;
}

static void
_greeter_compositor_dbus_wingpanel_manager_unregister_object (gpointer user_data)
{
	gpointer* data;
	data = user_data;
	g_signal_handlers_disconnect_by_func (data[0], _dbus_greeter_compositor_dbus_wingpanel_manager_state_changed, data);
	g_object_unref (data[0]);
	g_object_unref (data[1]);
	g_free (data[2]);
	g_free (data);
}

