/* CDApplet.c generated by valac 0.56.19, the Vala compiler
 * generated from CDApplet.vala, do not modify */

/* This is a part of the external applet for Cairo-Dock

Copyright : (C) 2010-2011 by Fabounet
E-mail : fabounet@glx-dock.org

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
http://www.gnu.org/licenses/licenses.html#GPL */
/*/ To compile it manually:*/
/*/ valac -q -C --disable-warnings --disable-dbus-transformation --pkg gio-2.0 --vapi=CDApplet-simple.vapi --internal-vapi=CDApplet.vapi --header=CDApplet-simple.h --internal-header=CDApplet.h CDApplet.vala*/
/*/ gcc --shared -fPIC -o CDApplet.so $(pkg-config --cflags --libs gobject-2.0 gio-2.0) CDApplet.c*/
/*///////////////////////*/
/*/// dependancies //////*/
/*///////////////////////*/

#include "CDApplet.h"
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <gio/gio.h>
#include <float.h>
#include <math.h>
#include <glib-object.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

enum  {
	CAIRO_DOCK_APPLET_IAPPLET_ON_CLICK_SIGNAL,
	CAIRO_DOCK_APPLET_IAPPLET_ON_MIDDLE_CLICK_SIGNAL,
	CAIRO_DOCK_APPLET_IAPPLET_ON_BUILD_MENU_SIGNAL,
	CAIRO_DOCK_APPLET_IAPPLET_ON_MENU_SELECT_SIGNAL,
	CAIRO_DOCK_APPLET_IAPPLET_ON_SCROLL_SIGNAL,
	CAIRO_DOCK_APPLET_IAPPLET_ON_DROP_DATA_SIGNAL,
	CAIRO_DOCK_APPLET_IAPPLET_ON_ANSWER_SIGNAL,
	CAIRO_DOCK_APPLET_IAPPLET_ON_ANSWER_DIALOG_SIGNAL,
	CAIRO_DOCK_APPLET_IAPPLET_ON_SHORTKEY_SIGNAL,
	CAIRO_DOCK_APPLET_IAPPLET_ON_CHANGE_FOCUS_SIGNAL,
	CAIRO_DOCK_APPLET_IAPPLET_ON_STOP_MODULE_SIGNAL,
	CAIRO_DOCK_APPLET_IAPPLET_ON_RELOAD_MODULE_SIGNAL,
	CAIRO_DOCK_APPLET_IAPPLET_NUM_SIGNALS
};
static guint cairo_dock_applet_iapplet_signals[CAIRO_DOCK_APPLET_IAPPLET_NUM_SIGNALS] = {0};
typedef GDBusProxy CairoDockAppletIAppletProxy;
typedef GDBusProxyClass CairoDockAppletIAppletProxyClass;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
enum  {
	CAIRO_DOCK_APPLET_ISUB_APPLET_ON_CLICK_SUB_ICON_SIGNAL,
	CAIRO_DOCK_APPLET_ISUB_APPLET_ON_MIDDLE_CLICK_SUB_ICON_SIGNAL,
	CAIRO_DOCK_APPLET_ISUB_APPLET_ON_SCROLL_SUB_ICON_SIGNAL,
	CAIRO_DOCK_APPLET_ISUB_APPLET_ON_DROP_DATA_SUB_ICON_SIGNAL,
	CAIRO_DOCK_APPLET_ISUB_APPLET_ON_BUILD_MENU_SUB_ICON_SIGNAL,
	CAIRO_DOCK_APPLET_ISUB_APPLET_NUM_SIGNALS
};
static guint cairo_dock_applet_isub_applet_signals[CAIRO_DOCK_APPLET_ISUB_APPLET_NUM_SIGNALS] = {0};
typedef GDBusProxy CairoDockAppletISubAppletProxy;
typedef GDBusProxyClass CairoDockAppletISubAppletProxyClass;
enum  {
	CAIRO_DOCK_APPLET_CD_APPLET_0_PROPERTY,
	CAIRO_DOCK_APPLET_CD_APPLET_NUM_PROPERTIES
};
static GParamSpec* cairo_dock_applet_cd_applet_properties[CAIRO_DOCK_APPLET_CD_APPLET_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_key_file_unref0(var) ((var == NULL) ? NULL : (var = (g_key_file_unref (var), NULL)))

struct _CairoDockAppletCDAppletPrivate {
	GMainLoop* loop;
	gchar* _cMenuIconId;
};

static gint CairoDockAppletCDApplet_private_offset;
static gpointer cairo_dock_applet_cd_applet_parent_class = NULL;

static void g_cclosure_user_marshal_VOID__INT_VARIANT (GClosure * closure,
                                                GValue * return_value,
                                                guint n_param_values,
                                                const GValue * param_values,
                                                gpointer invocation_hint,
                                                gpointer marshal_data);
static GType cairo_dock_applet_iapplet_get_type_once (void);
static void cairo_dock_applet_iapplet_proxy_g_signal (GDBusProxy* proxy,
                                               const gchar* sender_name,
                                               const gchar* signal_name,
                                               GVariant* parameters);
static void _dbus_handle_cairo_dock_applet_iapplet_on_click (CairoDockAppletIApplet* self,
                                                      GVariant* parameters);
static void _dbus_handle_cairo_dock_applet_iapplet_on_middle_click (CairoDockAppletIApplet* self,
                                                             GVariant* parameters);
static void _dbus_handle_cairo_dock_applet_iapplet_on_build_menu (CairoDockAppletIApplet* self,
                                                           GVariant* parameters);
static void _dbus_handle_cairo_dock_applet_iapplet_on_menu_select (CairoDockAppletIApplet* self,
                                                            GVariant* parameters);
static void _dbus_handle_cairo_dock_applet_iapplet_on_scroll (CairoDockAppletIApplet* self,
                                                       GVariant* parameters);
static void _dbus_handle_cairo_dock_applet_iapplet_on_drop_data (CairoDockAppletIApplet* self,
                                                          GVariant* parameters);
static void _dbus_handle_cairo_dock_applet_iapplet_on_answer (CairoDockAppletIApplet* self,
                                                       GVariant* parameters);
static void _dbus_handle_cairo_dock_applet_iapplet_on_answer_dialog (CairoDockAppletIApplet* self,
                                                              GVariant* parameters);
static void _dbus_handle_cairo_dock_applet_iapplet_on_shortkey (CairoDockAppletIApplet* self,
                                                         GVariant* parameters);
static void _dbus_handle_cairo_dock_applet_iapplet_on_change_focus (CairoDockAppletIApplet* self,
                                                             GVariant* parameters);
static void _dbus_handle_cairo_dock_applet_iapplet_on_stop_module (CairoDockAppletIApplet* self,
                                                            GVariant* parameters);
static void _dbus_handle_cairo_dock_applet_iapplet_on_reload_module (CairoDockAppletIApplet* self,
                                                              GVariant* parameters);
static GVariant* cairo_dock_applet_iapplet_proxy_Get (CairoDockAppletIApplet* self,
                                               const gchar* cProperty,
                                               GError** error);
static GHashTable* cairo_dock_applet_iapplet_proxy_GetAll (CairoDockAppletIApplet* self,
                                                    GError** error);
static void cairo_dock_applet_iapplet_proxy_SetQuickInfo (CairoDockAppletIApplet* self,
                                                   const gchar* cQuickInfo,
                                                   GError** error);
static void cairo_dock_applet_iapplet_proxy_SetLabel (CairoDockAppletIApplet* self,
                                               const gchar* cLabel,
                                               GError** error);
static void cairo_dock_applet_iapplet_proxy_SetIcon (CairoDockAppletIApplet* self,
                                              const gchar* cImage,
                                              GError** error);
static void cairo_dock_applet_iapplet_proxy_SetEmblem (CairoDockAppletIApplet* self,
                                                const gchar* cImage,
                                                gint iPosition,
                                                GError** error);
static void cairo_dock_applet_iapplet_proxy_Animate (CairoDockAppletIApplet* self,
                                              const gchar* cAnimation,
                                              gint iRounds,
                                              GError** error);
static void cairo_dock_applet_iapplet_proxy_DemandsAttention (CairoDockAppletIApplet* self,
                                                       gboolean bStart,
                                                       const gchar* cAnimation,
                                                       GError** error);
static void cairo_dock_applet_iapplet_proxy_ShowDialog (CairoDockAppletIApplet* self,
                                                 const gchar* cMessage,
                                                 gint iDuration,
                                                 GError** error);
static void cairo_dock_applet_iapplet_proxy_PopupDialog (CairoDockAppletIApplet* self,
                                                  GHashTable* hDialogAttributes,
                                                  GHashTable* hWidgetAttributes,
                                                  GError** error);
static void cairo_dock_applet_iapplet_proxy_AddDataRenderer (CairoDockAppletIApplet* self,
                                                      const gchar* cType,
                                                      gint iNbValues,
                                                      const gchar* cTheme,
                                                      GError** error);
static void cairo_dock_applet_iapplet_proxy_RenderValues (CairoDockAppletIApplet* self,
                                                   gdouble* pValues,
                                                   gint pValues_length1,
                                                   GError** error);
static void cairo_dock_applet_iapplet_proxy_ControlAppli (CairoDockAppletIApplet* self,
                                                   const gchar* cApplicationClass,
                                                   GError** error);
static void cairo_dock_applet_iapplet_proxy_ShowAppli (CairoDockAppletIApplet* self,
                                                gboolean bShow,
                                                GError** error);
static void cairo_dock_applet_iapplet_proxy_AddMenuItems (CairoDockAppletIApplet* self,
                                                   GHashTable** pItems,
                                                   gint pItems_length1,
                                                   GError** error);
static void cairo_dock_applet_iapplet_proxy_BindShortkey (CairoDockAppletIApplet* self,
                                                   gchar** cShortkeys,
                                                   gint cShortkeys_length1,
                                                   GError** error);
static void cairo_dock_applet_iapplet_proxy_cairo_dock_applet_iapplet_interface_init (CairoDockAppletIAppletIface* iface);
static void _dbus_cairo_dock_applet_iapplet_Get (CairoDockAppletIApplet* self,
                                          GVariant* _parameters_,
                                          GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_iapplet_GetAll (CairoDockAppletIApplet* self,
                                             GVariant* _parameters_,
                                             GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_iapplet_SetQuickInfo (CairoDockAppletIApplet* self,
                                                   GVariant* _parameters_,
                                                   GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_iapplet_SetLabel (CairoDockAppletIApplet* self,
                                               GVariant* _parameters_,
                                               GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_iapplet_SetIcon (CairoDockAppletIApplet* self,
                                              GVariant* _parameters_,
                                              GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_iapplet_SetEmblem (CairoDockAppletIApplet* self,
                                                GVariant* _parameters_,
                                                GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_iapplet_Animate (CairoDockAppletIApplet* self,
                                              GVariant* _parameters_,
                                              GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_iapplet_DemandsAttention (CairoDockAppletIApplet* self,
                                                       GVariant* _parameters_,
                                                       GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_iapplet_ShowDialog (CairoDockAppletIApplet* self,
                                                 GVariant* _parameters_,
                                                 GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_iapplet_PopupDialog (CairoDockAppletIApplet* self,
                                                  GVariant* _parameters_,
                                                  GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_iapplet_AddDataRenderer (CairoDockAppletIApplet* self,
                                                      GVariant* _parameters_,
                                                      GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_iapplet_RenderValues (CairoDockAppletIApplet* self,
                                                   GVariant* _parameters_,
                                                   GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_iapplet_ControlAppli (CairoDockAppletIApplet* self,
                                                   GVariant* _parameters_,
                                                   GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_iapplet_ShowAppli (CairoDockAppletIApplet* self,
                                                GVariant* _parameters_,
                                                GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_iapplet_AddMenuItems (CairoDockAppletIApplet* self,
                                                   GVariant* _parameters_,
                                                   GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_iapplet_BindShortkey (CairoDockAppletIApplet* self,
                                                   GVariant* _parameters_,
                                                   GDBusMethodInvocation* invocation);
static void cairo_dock_applet_iapplet_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* cairo_dock_applet_iapplet_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 cairo_dock_applet_iapplet_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_cairo_dock_applet_iapplet_on_click (GObject* _sender,
                                               gint iState,
                                               gpointer* _data);
static void _dbus_cairo_dock_applet_iapplet_on_middle_click (GObject* _sender,
                                                      gpointer* _data);
static void _dbus_cairo_dock_applet_iapplet_on_build_menu (GObject* _sender,
                                                    gpointer* _data);
static void _dbus_cairo_dock_applet_iapplet_on_menu_select (GObject* _sender,
                                                     gint iNumEntry,
                                                     gpointer* _data);
static void _dbus_cairo_dock_applet_iapplet_on_scroll (GObject* _sender,
                                                gboolean bScrollUp,
                                                gpointer* _data);
static void _dbus_cairo_dock_applet_iapplet_on_drop_data (GObject* _sender,
                                                   const gchar* cReceivedData,
                                                   gpointer* _data);
static void _dbus_cairo_dock_applet_iapplet_on_answer (GObject* _sender,
                                                GVariant* answer,
                                                gpointer* _data);
static void _dbus_cairo_dock_applet_iapplet_on_answer_dialog (GObject* _sender,
                                                       gint iButton,
                                                       GVariant* answer,
                                                       gpointer* _data);
static void _dbus_cairo_dock_applet_iapplet_on_shortkey (GObject* _sender,
                                                  const gchar* cKey,
                                                  gpointer* _data);
static void _dbus_cairo_dock_applet_iapplet_on_change_focus (GObject* _sender,
                                                      gboolean bIsActive,
                                                      gpointer* _data);
static void _dbus_cairo_dock_applet_iapplet_on_stop_module (GObject* _sender,
                                                     gpointer* _data);
static void _dbus_cairo_dock_applet_iapplet_on_reload_module (GObject* _sender,
                                                       gboolean bConfigHasChanged,
                                                       gpointer* _data);
static void _cairo_dock_applet_iapplet_unregister_object (gpointer user_data);
static void g_cclosure_user_marshal_VOID__INT_STRING (GClosure * closure,
                                               GValue * return_value,
                                               guint n_param_values,
                                               const GValue * param_values,
                                               gpointer invocation_hint,
                                               gpointer marshal_data);
static void g_cclosure_user_marshal_VOID__BOOLEAN_STRING (GClosure * closure,
                                                   GValue * return_value,
                                                   guint n_param_values,
                                                   const GValue * param_values,
                                                   gpointer invocation_hint,
                                                   gpointer marshal_data);
static void g_cclosure_user_marshal_VOID__STRING_STRING (GClosure * closure,
                                                  GValue * return_value,
                                                  guint n_param_values,
                                                  const GValue * param_values,
                                                  gpointer invocation_hint,
                                                  gpointer marshal_data);
static GType cairo_dock_applet_isub_applet_get_type_once (void);
static void cairo_dock_applet_isub_applet_proxy_g_signal (GDBusProxy* proxy,
                                                   const gchar* sender_name,
                                                   const gchar* signal_name,
                                                   GVariant* parameters);
static void _dbus_handle_cairo_dock_applet_isub_applet_on_click_sub_icon (CairoDockAppletISubApplet* self,
                                                                   GVariant* parameters);
static void _dbus_handle_cairo_dock_applet_isub_applet_on_middle_click_sub_icon (CairoDockAppletISubApplet* self,
                                                                          GVariant* parameters);
static void _dbus_handle_cairo_dock_applet_isub_applet_on_scroll_sub_icon (CairoDockAppletISubApplet* self,
                                                                    GVariant* parameters);
static void _dbus_handle_cairo_dock_applet_isub_applet_on_drop_data_sub_icon (CairoDockAppletISubApplet* self,
                                                                       GVariant* parameters);
static void _dbus_handle_cairo_dock_applet_isub_applet_on_build_menu_sub_icon (CairoDockAppletISubApplet* self,
                                                                        GVariant* parameters);
static void cairo_dock_applet_isub_applet_proxy_SetQuickInfo (CairoDockAppletISubApplet* self,
                                                       const gchar* cQuickInfo,
                                                       const gchar* cIconID,
                                                       GError** error);
static void cairo_dock_applet_isub_applet_proxy_SetLabel (CairoDockAppletISubApplet* self,
                                                   const gchar* cLabel,
                                                   const gchar* cIconID,
                                                   GError** error);
static void cairo_dock_applet_isub_applet_proxy_SetIcon (CairoDockAppletISubApplet* self,
                                                  const gchar* cImage,
                                                  const gchar* cIconID,
                                                  GError** error);
static void cairo_dock_applet_isub_applet_proxy_SetEmblem (CairoDockAppletISubApplet* self,
                                                    const gchar* cImage,
                                                    gint iPosition,
                                                    const gchar* cIconID,
                                                    GError** error);
static void cairo_dock_applet_isub_applet_proxy_Animate (CairoDockAppletISubApplet* self,
                                                  const gchar* cAnimation,
                                                  gint iNbRounds,
                                                  const gchar* cIconID,
                                                  GError** error);
static void cairo_dock_applet_isub_applet_proxy_ShowDialog (CairoDockAppletISubApplet* self,
                                                     const gchar* message,
                                                     gint iDuration,
                                                     const gchar* cIconID,
                                                     GError** error);
static void cairo_dock_applet_isub_applet_proxy_AddSubIcons (CairoDockAppletISubApplet* self,
                                                      gchar** pIconFields,
                                                      gint pIconFields_length1,
                                                      GError** error);
static void cairo_dock_applet_isub_applet_proxy_RemoveSubIcon (CairoDockAppletISubApplet* self,
                                                        const gchar* cIconID,
                                                        GError** error);
static void cairo_dock_applet_isub_applet_proxy_cairo_dock_applet_isub_applet_interface_init (CairoDockAppletISubAppletIface* iface);
static void _dbus_cairo_dock_applet_isub_applet_SetQuickInfo (CairoDockAppletISubApplet* self,
                                                       GVariant* _parameters_,
                                                       GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_isub_applet_SetLabel (CairoDockAppletISubApplet* self,
                                                   GVariant* _parameters_,
                                                   GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_isub_applet_SetIcon (CairoDockAppletISubApplet* self,
                                                  GVariant* _parameters_,
                                                  GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_isub_applet_SetEmblem (CairoDockAppletISubApplet* self,
                                                    GVariant* _parameters_,
                                                    GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_isub_applet_Animate (CairoDockAppletISubApplet* self,
                                                  GVariant* _parameters_,
                                                  GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_isub_applet_ShowDialog (CairoDockAppletISubApplet* self,
                                                     GVariant* _parameters_,
                                                     GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_isub_applet_AddSubIcons (CairoDockAppletISubApplet* self,
                                                      GVariant* _parameters_,
                                                      GDBusMethodInvocation* invocation);
static void _dbus_cairo_dock_applet_isub_applet_RemoveSubIcon (CairoDockAppletISubApplet* self,
                                                        GVariant* _parameters_,
                                                        GDBusMethodInvocation* invocation);
static void cairo_dock_applet_isub_applet_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* cairo_dock_applet_isub_applet_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 cairo_dock_applet_isub_applet_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_cairo_dock_applet_isub_applet_on_click_sub_icon (GObject* _sender,
                                                            gint iState,
                                                            const gchar* cIconID,
                                                            gpointer* _data);
static void _dbus_cairo_dock_applet_isub_applet_on_middle_click_sub_icon (GObject* _sender,
                                                                   const gchar* cIconID,
                                                                   gpointer* _data);
static void _dbus_cairo_dock_applet_isub_applet_on_scroll_sub_icon (GObject* _sender,
                                                             gboolean bScrollUp,
                                                             const gchar* cIconID,
                                                             gpointer* _data);
static void _dbus_cairo_dock_applet_isub_applet_on_drop_data_sub_icon (GObject* _sender,
                                                                const gchar* cReceivedData,
                                                                const gchar* cIconID,
                                                                gpointer* _data);
static void _dbus_cairo_dock_applet_isub_applet_on_build_menu_sub_icon (GObject* _sender,
                                                                 const gchar* cIconID,
                                                                 gpointer* _data);
static void _cairo_dock_applet_isub_applet_unregister_object (gpointer user_data);
static void _cairo_dock_applet_cd_applet_get_config (CairoDockAppletCDApplet* self);
static void _cairo_dock_applet_cd_applet_connect_to_bus (CairoDockAppletCDApplet* self);
static void cairo_dock_applet_cd_applet_real_on_click (CairoDockAppletCDApplet* self,
                                                gint iState);
static void cairo_dock_applet_cd_applet_real_on_middle_click (CairoDockAppletCDApplet* self);
static void _cairo_dock_applet_cd_applet_on_build_menu (CairoDockAppletCDApplet* self);
static void cairo_dock_applet_cd_applet_real_on_build_menu (CairoDockAppletCDApplet* self);
static void _cairo_dock_applet_cd_applet_on_menu_select (CairoDockAppletCDApplet* self,
                                                  gint iNumEntry);
static void cairo_dock_applet_cd_applet_real_on_menu_select (CairoDockAppletCDApplet* self,
                                                      gint iNumEntry);
static void cairo_dock_applet_cd_applet_real_on_scroll (CairoDockAppletCDApplet* self,
                                                 gboolean bScrollUp);
static void cairo_dock_applet_cd_applet_real_on_drop_data (CairoDockAppletCDApplet* self,
                                                    const gchar* cReceivedData);
static void cairo_dock_applet_cd_applet_real_on_answer (CairoDockAppletCDApplet* self,
                                                 GVariant* answer);
static void cairo_dock_applet_cd_applet_real_on_answer_dialog (CairoDockAppletCDApplet* self,
                                                        gint iButton,
                                                        GVariant* answer);
static void cairo_dock_applet_cd_applet_real_on_shortkey (CairoDockAppletCDApplet* self,
                                                   const gchar* cKey);
static void cairo_dock_applet_cd_applet_real_on_change_focus (CairoDockAppletCDApplet* self,
                                                       gboolean bIsActive);
static void cairo_dock_applet_cd_applet_real_on_click_sub_icon (CairoDockAppletCDApplet* self,
                                                         gint iState,
                                                         const gchar* cIconID);
static void cairo_dock_applet_cd_applet_real_on_middle_click_sub_icon (CairoDockAppletCDApplet* self,
                                                                const gchar* cIconID);
static void cairo_dock_applet_cd_applet_real_on_scroll_sub_icon (CairoDockAppletCDApplet* self,
                                                          gboolean bScrollUp,
                                                          const gchar* cIconID);
static void cairo_dock_applet_cd_applet_real_on_drop_data_sub_icon (CairoDockAppletCDApplet* self,
                                                             const gchar* cReceivedData,
                                                             const gchar* cIconID);
static void _cairo_dock_applet_cd_applet_on_build_menu_sub_icon (CairoDockAppletCDApplet* self,
                                                          const gchar* cIconID);
static void cairo_dock_applet_cd_applet_real_on_build_menu_sub_icon (CairoDockAppletCDApplet* self,
                                                              const gchar* cIconID);
static void cairo_dock_applet_cd_applet_real_on_menu_select_sub_icon (CairoDockAppletCDApplet* self,
                                                               gint iNumEntry,
                                                               const gchar* cIconID);
static void cairo_dock_applet_cd_applet_real_begin (CairoDockAppletCDApplet* self);
static void cairo_dock_applet_cd_applet_real_end (CairoDockAppletCDApplet* self);
static void _cairo_dock_applet_cd_applet_on_stop (CairoDockAppletCDApplet* self);
static void cairo_dock_applet_cd_applet_real_reload (CairoDockAppletCDApplet* self);
static void _cairo_dock_applet_cd_applet_on_reload (CairoDockAppletCDApplet* self,
                                             gboolean bConfigHasChanged);
static void cairo_dock_applet_cd_applet_real_get_config (CairoDockAppletCDApplet* self,
                                                  GKeyFile* keyfile);
static void _cairo_dock_applet_cd_applet_on_click_cairo_dock_applet_iapplet_on_click (CairoDockAppletIApplet* _sender,
                                                                               gint iState,
                                                                               gpointer self);
static void _cairo_dock_applet_cd_applet_on_middle_click_cairo_dock_applet_iapplet_on_middle_click (CairoDockAppletIApplet* _sender,
                                                                                             gpointer self);
static void __cairo_dock_applet_cd_applet_on_build_menu_cairo_dock_applet_iapplet_on_build_menu (CairoDockAppletIApplet* _sender,
                                                                                          gpointer self);
static void __cairo_dock_applet_cd_applet_on_menu_select_cairo_dock_applet_iapplet_on_menu_select (CairoDockAppletIApplet* _sender,
                                                                                            gint iNumEntry,
                                                                                            gpointer self);
static void _cairo_dock_applet_cd_applet_on_scroll_cairo_dock_applet_iapplet_on_scroll (CairoDockAppletIApplet* _sender,
                                                                                 gboolean bScrollUp,
                                                                                 gpointer self);
static void _cairo_dock_applet_cd_applet_on_drop_data_cairo_dock_applet_iapplet_on_drop_data (CairoDockAppletIApplet* _sender,
                                                                                       const gchar* cReceivedData,
                                                                                       gpointer self);
static void _cairo_dock_applet_cd_applet_on_answer_cairo_dock_applet_iapplet_on_answer (CairoDockAppletIApplet* _sender,
                                                                                 GVariant* answer,
                                                                                 gpointer self);
static void _cairo_dock_applet_cd_applet_on_answer_dialog_cairo_dock_applet_iapplet_on_answer_dialog (CairoDockAppletIApplet* _sender,
                                                                                               gint iButton,
                                                                                               GVariant* answer,
                                                                                               gpointer self);
static void _cairo_dock_applet_cd_applet_on_shortkey_cairo_dock_applet_iapplet_on_shortkey (CairoDockAppletIApplet* _sender,
                                                                                     const gchar* cKey,
                                                                                     gpointer self);
static void _cairo_dock_applet_cd_applet_on_change_focus_cairo_dock_applet_iapplet_on_change_focus (CairoDockAppletIApplet* _sender,
                                                                                             gboolean bIsActive,
                                                                                             gpointer self);
static void __cairo_dock_applet_cd_applet_on_stop_cairo_dock_applet_iapplet_on_stop_module (CairoDockAppletIApplet* _sender,
                                                                                     gpointer self);
static void __cairo_dock_applet_cd_applet_on_reload_cairo_dock_applet_iapplet_on_reload_module (CairoDockAppletIApplet* _sender,
                                                                                         gboolean bConfigHasChanged,
                                                                                         gpointer self);
static void _cairo_dock_applet_cd_applet_on_click_sub_icon_cairo_dock_applet_isub_applet_on_click_sub_icon (CairoDockAppletISubApplet* _sender,
                                                                                                     gint iState,
                                                                                                     const gchar* cIconID,
                                                                                                     gpointer self);
static void _cairo_dock_applet_cd_applet_on_middle_click_sub_icon_cairo_dock_applet_isub_applet_on_middle_click_sub_icon (CairoDockAppletISubApplet* _sender,
                                                                                                                   const gchar* cIconID,
                                                                                                                   gpointer self);
static void _cairo_dock_applet_cd_applet_on_scroll_sub_icon_cairo_dock_applet_isub_applet_on_scroll_sub_icon (CairoDockAppletISubApplet* _sender,
                                                                                                       gboolean bScrollUp,
                                                                                                       const gchar* cIconID,
                                                                                                       gpointer self);
static void _cairo_dock_applet_cd_applet_on_drop_data_sub_icon_cairo_dock_applet_isub_applet_on_drop_data_sub_icon (CairoDockAppletISubApplet* _sender,
                                                                                                             const gchar* cReceivedData,
                                                                                                             const gchar* cIconID,
                                                                                                             gpointer self);
static void __cairo_dock_applet_cd_applet_on_build_menu_sub_icon_cairo_dock_applet_isub_applet_on_build_menu_sub_icon (CairoDockAppletISubApplet* _sender,
                                                                                                                const gchar* cIconID,
                                                                                                                gpointer self);
static void cairo_dock_applet_cd_applet_finalize (GObject * obj);
static GType cairo_dock_applet_cd_applet_get_type_once (void);
static void _vala_array_destroy (gpointer array,
                          gssize array_length,
                          GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array,
                       gssize array_length,
                       GDestroyNotify destroy_func);

static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_Get_cProperty = {-1, "cProperty", "s", NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_Get_result = {-1, "result", "v", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_Get_in[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_Get_cProperty, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_Get_out[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_Get_result, NULL};
static const GDBusMethodInfo _cairo_dock_applet_iapplet_dbus_method_info_Get = {-1, "Get", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_Get_in), (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_Get_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_GetAll_result = {-1, "result", "a{sv}", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_GetAll_in[] = {NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_GetAll_out[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_GetAll_result, NULL};
static const GDBusMethodInfo _cairo_dock_applet_iapplet_dbus_method_info_GetAll = {-1, "GetAll", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_GetAll_in), (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_GetAll_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_SetQuickInfo_cQuickInfo = {-1, "cQuickInfo", "s", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_SetQuickInfo_in[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_SetQuickInfo_cQuickInfo, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_SetQuickInfo_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_iapplet_dbus_method_info_SetQuickInfo = {-1, "SetQuickInfo", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_SetQuickInfo_in), (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_SetQuickInfo_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_SetLabel_cLabel = {-1, "cLabel", "s", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_SetLabel_in[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_SetLabel_cLabel, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_SetLabel_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_iapplet_dbus_method_info_SetLabel = {-1, "SetLabel", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_SetLabel_in), (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_SetLabel_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_SetIcon_cImage = {-1, "cImage", "s", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_SetIcon_in[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_SetIcon_cImage, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_SetIcon_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_iapplet_dbus_method_info_SetIcon = {-1, "SetIcon", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_SetIcon_in), (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_SetIcon_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_SetEmblem_cImage = {-1, "cImage", "s", NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_SetEmblem_iPosition = {-1, "iPosition", "i", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_SetEmblem_in[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_SetEmblem_cImage, &_cairo_dock_applet_iapplet_dbus_arg_info_SetEmblem_iPosition, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_SetEmblem_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_iapplet_dbus_method_info_SetEmblem = {-1, "SetEmblem", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_SetEmblem_in), (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_SetEmblem_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_Animate_cAnimation = {-1, "cAnimation", "s", NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_Animate_iRounds = {-1, "iRounds", "i", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_Animate_in[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_Animate_cAnimation, &_cairo_dock_applet_iapplet_dbus_arg_info_Animate_iRounds, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_Animate_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_iapplet_dbus_method_info_Animate = {-1, "Animate", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_Animate_in), (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_Animate_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_DemandsAttention_bStart = {-1, "bStart", "b", NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_DemandsAttention_cAnimation = {-1, "cAnimation", "s", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_DemandsAttention_in[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_DemandsAttention_bStart, &_cairo_dock_applet_iapplet_dbus_arg_info_DemandsAttention_cAnimation, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_DemandsAttention_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_iapplet_dbus_method_info_DemandsAttention = {-1, "DemandsAttention", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_DemandsAttention_in), (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_DemandsAttention_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_ShowDialog_cMessage = {-1, "cMessage", "s", NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_ShowDialog_iDuration = {-1, "iDuration", "i", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_ShowDialog_in[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_ShowDialog_cMessage, &_cairo_dock_applet_iapplet_dbus_arg_info_ShowDialog_iDuration, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_ShowDialog_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_iapplet_dbus_method_info_ShowDialog = {-1, "ShowDialog", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_ShowDialog_in), (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_ShowDialog_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_PopupDialog_hDialogAttributes = {-1, "hDialogAttributes", "a{sv}", NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_PopupDialog_hWidgetAttributes = {-1, "hWidgetAttributes", "a{sv}", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_PopupDialog_in[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_PopupDialog_hDialogAttributes, &_cairo_dock_applet_iapplet_dbus_arg_info_PopupDialog_hWidgetAttributes, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_PopupDialog_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_iapplet_dbus_method_info_PopupDialog = {-1, "PopupDialog", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_PopupDialog_in), (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_PopupDialog_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_AddDataRenderer_cType = {-1, "cType", "s", NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_AddDataRenderer_iNbValues = {-1, "iNbValues", "i", NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_AddDataRenderer_cTheme = {-1, "cTheme", "s", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_AddDataRenderer_in[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_AddDataRenderer_cType, &_cairo_dock_applet_iapplet_dbus_arg_info_AddDataRenderer_iNbValues, &_cairo_dock_applet_iapplet_dbus_arg_info_AddDataRenderer_cTheme, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_AddDataRenderer_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_iapplet_dbus_method_info_AddDataRenderer = {-1, "AddDataRenderer", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_AddDataRenderer_in), (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_AddDataRenderer_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_RenderValues_pValues = {-1, "pValues", "ad", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_RenderValues_in[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_RenderValues_pValues, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_RenderValues_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_iapplet_dbus_method_info_RenderValues = {-1, "RenderValues", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_RenderValues_in), (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_RenderValues_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_ControlAppli_cApplicationClass = {-1, "cApplicationClass", "s", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_ControlAppli_in[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_ControlAppli_cApplicationClass, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_ControlAppli_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_iapplet_dbus_method_info_ControlAppli = {-1, "ControlAppli", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_ControlAppli_in), (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_ControlAppli_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_ShowAppli_bShow = {-1, "bShow", "b", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_ShowAppli_in[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_ShowAppli_bShow, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_ShowAppli_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_iapplet_dbus_method_info_ShowAppli = {-1, "ShowAppli", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_ShowAppli_in), (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_ShowAppli_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_AddMenuItems_pItems = {-1, "pItems", "aa{sv}", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_AddMenuItems_in[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_AddMenuItems_pItems, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_AddMenuItems_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_iapplet_dbus_method_info_AddMenuItems = {-1, "AddMenuItems", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_AddMenuItems_in), (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_AddMenuItems_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_BindShortkey_cShortkeys = {-1, "cShortkeys", "as", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_BindShortkey_in[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_BindShortkey_cShortkeys, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_BindShortkey_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_iapplet_dbus_method_info_BindShortkey = {-1, "BindShortkey", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_BindShortkey_in), (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_BindShortkey_out), NULL};
static const GDBusMethodInfo * const _cairo_dock_applet_iapplet_dbus_method_info[] = {&_cairo_dock_applet_iapplet_dbus_method_info_Get, &_cairo_dock_applet_iapplet_dbus_method_info_GetAll, &_cairo_dock_applet_iapplet_dbus_method_info_SetQuickInfo, &_cairo_dock_applet_iapplet_dbus_method_info_SetLabel, &_cairo_dock_applet_iapplet_dbus_method_info_SetIcon, &_cairo_dock_applet_iapplet_dbus_method_info_SetEmblem, &_cairo_dock_applet_iapplet_dbus_method_info_Animate, &_cairo_dock_applet_iapplet_dbus_method_info_DemandsAttention, &_cairo_dock_applet_iapplet_dbus_method_info_ShowDialog, &_cairo_dock_applet_iapplet_dbus_method_info_PopupDialog, &_cairo_dock_applet_iapplet_dbus_method_info_AddDataRenderer, &_cairo_dock_applet_iapplet_dbus_method_info_RenderValues, &_cairo_dock_applet_iapplet_dbus_method_info_ControlAppli, &_cairo_dock_applet_iapplet_dbus_method_info_ShowAppli, &_cairo_dock_applet_iapplet_dbus_method_info_AddMenuItems, &_cairo_dock_applet_iapplet_dbus_method_info_BindShortkey, NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_on_click_iState = {-1, "iState", "i", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_on_click[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_on_click_iState, NULL};
static const GDBusSignalInfo _cairo_dock_applet_iapplet_dbus_signal_info_on_click = {-1, "on_click", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_on_click), NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_on_middle_click[] = {NULL};
static const GDBusSignalInfo _cairo_dock_applet_iapplet_dbus_signal_info_on_middle_click = {-1, "on_middle_click", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_on_middle_click), NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_on_build_menu[] = {NULL};
static const GDBusSignalInfo _cairo_dock_applet_iapplet_dbus_signal_info_on_build_menu = {-1, "on_build_menu", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_on_build_menu), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_on_menu_select_iNumEntry = {-1, "iNumEntry", "i", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_on_menu_select[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_on_menu_select_iNumEntry, NULL};
static const GDBusSignalInfo _cairo_dock_applet_iapplet_dbus_signal_info_on_menu_select = {-1, "on_menu_select", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_on_menu_select), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_on_scroll_bScrollUp = {-1, "bScrollUp", "b", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_on_scroll[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_on_scroll_bScrollUp, NULL};
static const GDBusSignalInfo _cairo_dock_applet_iapplet_dbus_signal_info_on_scroll = {-1, "on_scroll", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_on_scroll), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_on_drop_data_cReceivedData = {-1, "cReceivedData", "s", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_on_drop_data[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_on_drop_data_cReceivedData, NULL};
static const GDBusSignalInfo _cairo_dock_applet_iapplet_dbus_signal_info_on_drop_data = {-1, "on_drop_data", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_on_drop_data), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_on_answer_answer = {-1, "answer", "v", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_on_answer[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_on_answer_answer, NULL};
static const GDBusSignalInfo _cairo_dock_applet_iapplet_dbus_signal_info_on_answer = {-1, "on_answer", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_on_answer), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_on_answer_dialog_iButton = {-1, "iButton", "i", NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_on_answer_dialog_answer = {-1, "answer", "v", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_on_answer_dialog[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_on_answer_dialog_iButton, &_cairo_dock_applet_iapplet_dbus_arg_info_on_answer_dialog_answer, NULL};
static const GDBusSignalInfo _cairo_dock_applet_iapplet_dbus_signal_info_on_answer_dialog = {-1, "on_answer_dialog", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_on_answer_dialog), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_on_shortkey_cKey = {-1, "cKey", "s", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_on_shortkey[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_on_shortkey_cKey, NULL};
static const GDBusSignalInfo _cairo_dock_applet_iapplet_dbus_signal_info_on_shortkey = {-1, "on_shortkey", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_on_shortkey), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_on_change_focus_bIsActive = {-1, "bIsActive", "b", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_on_change_focus[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_on_change_focus_bIsActive, NULL};
static const GDBusSignalInfo _cairo_dock_applet_iapplet_dbus_signal_info_on_change_focus = {-1, "on_change_focus", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_on_change_focus), NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_on_stop_module[] = {NULL};
static const GDBusSignalInfo _cairo_dock_applet_iapplet_dbus_signal_info_on_stop_module = {-1, "on_stop_module", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_on_stop_module), NULL};
static const GDBusArgInfo _cairo_dock_applet_iapplet_dbus_arg_info_on_reload_module_bConfigHasChanged = {-1, "bConfigHasChanged", "b", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_iapplet_dbus_arg_info_on_reload_module[] = {&_cairo_dock_applet_iapplet_dbus_arg_info_on_reload_module_bConfigHasChanged, NULL};
static const GDBusSignalInfo _cairo_dock_applet_iapplet_dbus_signal_info_on_reload_module = {-1, "on_reload_module", (GDBusArgInfo **) (&_cairo_dock_applet_iapplet_dbus_arg_info_on_reload_module), NULL};
static const GDBusSignalInfo * const _cairo_dock_applet_iapplet_dbus_signal_info[] = {&_cairo_dock_applet_iapplet_dbus_signal_info_on_click, &_cairo_dock_applet_iapplet_dbus_signal_info_on_middle_click, &_cairo_dock_applet_iapplet_dbus_signal_info_on_build_menu, &_cairo_dock_applet_iapplet_dbus_signal_info_on_menu_select, &_cairo_dock_applet_iapplet_dbus_signal_info_on_scroll, &_cairo_dock_applet_iapplet_dbus_signal_info_on_drop_data, &_cairo_dock_applet_iapplet_dbus_signal_info_on_answer, &_cairo_dock_applet_iapplet_dbus_signal_info_on_answer_dialog, &_cairo_dock_applet_iapplet_dbus_signal_info_on_shortkey, &_cairo_dock_applet_iapplet_dbus_signal_info_on_change_focus, &_cairo_dock_applet_iapplet_dbus_signal_info_on_stop_module, &_cairo_dock_applet_iapplet_dbus_signal_info_on_reload_module, NULL};
static const GDBusPropertyInfo * const _cairo_dock_applet_iapplet_dbus_property_info[] = {NULL};
static const GDBusInterfaceInfo _cairo_dock_applet_iapplet_dbus_interface_info = {-1, "org.cairodock.CairoDock.applet", (GDBusMethodInfo **) (&_cairo_dock_applet_iapplet_dbus_method_info), (GDBusSignalInfo **) (&_cairo_dock_applet_iapplet_dbus_signal_info), (GDBusPropertyInfo **) (&_cairo_dock_applet_iapplet_dbus_property_info), NULL};
static const GDBusInterfaceVTable _cairo_dock_applet_iapplet_dbus_interface_vtable = {cairo_dock_applet_iapplet_dbus_interface_method_call, cairo_dock_applet_iapplet_dbus_interface_get_property, cairo_dock_applet_iapplet_dbus_interface_set_property};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_SetQuickInfo_cQuickInfo = {-1, "cQuickInfo", "s", NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_SetQuickInfo_cIconID = {-1, "cIconID", "s", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_SetQuickInfo_in[] = {&_cairo_dock_applet_isub_applet_dbus_arg_info_SetQuickInfo_cQuickInfo, &_cairo_dock_applet_isub_applet_dbus_arg_info_SetQuickInfo_cIconID, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_SetQuickInfo_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_isub_applet_dbus_method_info_SetQuickInfo = {-1, "SetQuickInfo", (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_SetQuickInfo_in), (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_SetQuickInfo_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_SetLabel_cLabel = {-1, "cLabel", "s", NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_SetLabel_cIconID = {-1, "cIconID", "s", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_SetLabel_in[] = {&_cairo_dock_applet_isub_applet_dbus_arg_info_SetLabel_cLabel, &_cairo_dock_applet_isub_applet_dbus_arg_info_SetLabel_cIconID, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_SetLabel_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_isub_applet_dbus_method_info_SetLabel = {-1, "SetLabel", (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_SetLabel_in), (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_SetLabel_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_SetIcon_cImage = {-1, "cImage", "s", NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_SetIcon_cIconID = {-1, "cIconID", "s", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_SetIcon_in[] = {&_cairo_dock_applet_isub_applet_dbus_arg_info_SetIcon_cImage, &_cairo_dock_applet_isub_applet_dbus_arg_info_SetIcon_cIconID, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_SetIcon_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_isub_applet_dbus_method_info_SetIcon = {-1, "SetIcon", (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_SetIcon_in), (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_SetIcon_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_SetEmblem_cImage = {-1, "cImage", "s", NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_SetEmblem_iPosition = {-1, "iPosition", "i", NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_SetEmblem_cIconID = {-1, "cIconID", "s", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_SetEmblem_in[] = {&_cairo_dock_applet_isub_applet_dbus_arg_info_SetEmblem_cImage, &_cairo_dock_applet_isub_applet_dbus_arg_info_SetEmblem_iPosition, &_cairo_dock_applet_isub_applet_dbus_arg_info_SetEmblem_cIconID, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_SetEmblem_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_isub_applet_dbus_method_info_SetEmblem = {-1, "SetEmblem", (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_SetEmblem_in), (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_SetEmblem_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_Animate_cAnimation = {-1, "cAnimation", "s", NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_Animate_iNbRounds = {-1, "iNbRounds", "i", NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_Animate_cIconID = {-1, "cIconID", "s", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_Animate_in[] = {&_cairo_dock_applet_isub_applet_dbus_arg_info_Animate_cAnimation, &_cairo_dock_applet_isub_applet_dbus_arg_info_Animate_iNbRounds, &_cairo_dock_applet_isub_applet_dbus_arg_info_Animate_cIconID, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_Animate_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_isub_applet_dbus_method_info_Animate = {-1, "Animate", (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_Animate_in), (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_Animate_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_ShowDialog_message = {-1, "message", "s", NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_ShowDialog_iDuration = {-1, "iDuration", "i", NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_ShowDialog_cIconID = {-1, "cIconID", "s", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_ShowDialog_in[] = {&_cairo_dock_applet_isub_applet_dbus_arg_info_ShowDialog_message, &_cairo_dock_applet_isub_applet_dbus_arg_info_ShowDialog_iDuration, &_cairo_dock_applet_isub_applet_dbus_arg_info_ShowDialog_cIconID, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_ShowDialog_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_isub_applet_dbus_method_info_ShowDialog = {-1, "ShowDialog", (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_ShowDialog_in), (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_ShowDialog_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_AddSubIcons_pIconFields = {-1, "pIconFields", "as", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_AddSubIcons_in[] = {&_cairo_dock_applet_isub_applet_dbus_arg_info_AddSubIcons_pIconFields, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_AddSubIcons_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_isub_applet_dbus_method_info_AddSubIcons = {-1, "AddSubIcons", (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_AddSubIcons_in), (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_AddSubIcons_out), NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_RemoveSubIcon_cIconID = {-1, "cIconID", "s", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_RemoveSubIcon_in[] = {&_cairo_dock_applet_isub_applet_dbus_arg_info_RemoveSubIcon_cIconID, NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_RemoveSubIcon_out[] = {NULL};
static const GDBusMethodInfo _cairo_dock_applet_isub_applet_dbus_method_info_RemoveSubIcon = {-1, "RemoveSubIcon", (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_RemoveSubIcon_in), (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_RemoveSubIcon_out), NULL};
static const GDBusMethodInfo * const _cairo_dock_applet_isub_applet_dbus_method_info[] = {&_cairo_dock_applet_isub_applet_dbus_method_info_SetQuickInfo, &_cairo_dock_applet_isub_applet_dbus_method_info_SetLabel, &_cairo_dock_applet_isub_applet_dbus_method_info_SetIcon, &_cairo_dock_applet_isub_applet_dbus_method_info_SetEmblem, &_cairo_dock_applet_isub_applet_dbus_method_info_Animate, &_cairo_dock_applet_isub_applet_dbus_method_info_ShowDialog, &_cairo_dock_applet_isub_applet_dbus_method_info_AddSubIcons, &_cairo_dock_applet_isub_applet_dbus_method_info_RemoveSubIcon, NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_on_click_sub_icon_iState = {-1, "iState", "i", NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_on_click_sub_icon_cIconID = {-1, "cIconID", "s", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_on_click_sub_icon[] = {&_cairo_dock_applet_isub_applet_dbus_arg_info_on_click_sub_icon_iState, &_cairo_dock_applet_isub_applet_dbus_arg_info_on_click_sub_icon_cIconID, NULL};
static const GDBusSignalInfo _cairo_dock_applet_isub_applet_dbus_signal_info_on_click_sub_icon = {-1, "on_clickSubIcon", (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_on_click_sub_icon), NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_on_middle_click_sub_icon_cIconID = {-1, "cIconID", "s", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_on_middle_click_sub_icon[] = {&_cairo_dock_applet_isub_applet_dbus_arg_info_on_middle_click_sub_icon_cIconID, NULL};
static const GDBusSignalInfo _cairo_dock_applet_isub_applet_dbus_signal_info_on_middle_click_sub_icon = {-1, "on_middle_clickSubIcon", (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_on_middle_click_sub_icon), NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_on_scroll_sub_icon_bScrollUp = {-1, "bScrollUp", "b", NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_on_scroll_sub_icon_cIconID = {-1, "cIconID", "s", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_on_scroll_sub_icon[] = {&_cairo_dock_applet_isub_applet_dbus_arg_info_on_scroll_sub_icon_bScrollUp, &_cairo_dock_applet_isub_applet_dbus_arg_info_on_scroll_sub_icon_cIconID, NULL};
static const GDBusSignalInfo _cairo_dock_applet_isub_applet_dbus_signal_info_on_scroll_sub_icon = {-1, "on_scrollSubIcon", (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_on_scroll_sub_icon), NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_on_drop_data_sub_icon_cReceivedData = {-1, "cReceivedData", "s", NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_on_drop_data_sub_icon_cIconID = {-1, "cIconID", "s", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_on_drop_data_sub_icon[] = {&_cairo_dock_applet_isub_applet_dbus_arg_info_on_drop_data_sub_icon_cReceivedData, &_cairo_dock_applet_isub_applet_dbus_arg_info_on_drop_data_sub_icon_cIconID, NULL};
static const GDBusSignalInfo _cairo_dock_applet_isub_applet_dbus_signal_info_on_drop_data_sub_icon = {-1, "on_drop_dataSubIcon", (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_on_drop_data_sub_icon), NULL};
static const GDBusArgInfo _cairo_dock_applet_isub_applet_dbus_arg_info_on_build_menu_sub_icon_cIconID = {-1, "cIconID", "s", NULL};
static const GDBusArgInfo * const _cairo_dock_applet_isub_applet_dbus_arg_info_on_build_menu_sub_icon[] = {&_cairo_dock_applet_isub_applet_dbus_arg_info_on_build_menu_sub_icon_cIconID, NULL};
static const GDBusSignalInfo _cairo_dock_applet_isub_applet_dbus_signal_info_on_build_menu_sub_icon = {-1, "on_build_menuSubIcon", (GDBusArgInfo **) (&_cairo_dock_applet_isub_applet_dbus_arg_info_on_build_menu_sub_icon), NULL};
static const GDBusSignalInfo * const _cairo_dock_applet_isub_applet_dbus_signal_info[] = {&_cairo_dock_applet_isub_applet_dbus_signal_info_on_click_sub_icon, &_cairo_dock_applet_isub_applet_dbus_signal_info_on_middle_click_sub_icon, &_cairo_dock_applet_isub_applet_dbus_signal_info_on_scroll_sub_icon, &_cairo_dock_applet_isub_applet_dbus_signal_info_on_drop_data_sub_icon, &_cairo_dock_applet_isub_applet_dbus_signal_info_on_build_menu_sub_icon, NULL};
static const GDBusPropertyInfo * const _cairo_dock_applet_isub_applet_dbus_property_info[] = {NULL};
static const GDBusInterfaceInfo _cairo_dock_applet_isub_applet_dbus_interface_info = {-1, "org.cairodock.CairoDock.subapplet", (GDBusMethodInfo **) (&_cairo_dock_applet_isub_applet_dbus_method_info), (GDBusSignalInfo **) (&_cairo_dock_applet_isub_applet_dbus_signal_info), (GDBusPropertyInfo **) (&_cairo_dock_applet_isub_applet_dbus_property_info), NULL};
static const GDBusInterfaceVTable _cairo_dock_applet_isub_applet_dbus_interface_vtable = {cairo_dock_applet_isub_applet_dbus_interface_method_call, cairo_dock_applet_isub_applet_dbus_interface_get_property, cairo_dock_applet_isub_applet_dbus_interface_set_property};

GVariant*
cairo_dock_applet_iapplet_Get (CairoDockAppletIApplet* self,
                               const gchar* cProperty,
                               GError** error)
{
	CairoDockAppletIAppletIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = CAIRO_DOCK_APPLET_IAPPLET_GET_INTERFACE (self);
	if (_iface_->Get) {
		return _iface_->Get (self, cProperty, error);
	}
	return NULL;
}

GHashTable*
cairo_dock_applet_iapplet_GetAll (CairoDockAppletIApplet* self,
                                  GError** error)
{
	CairoDockAppletIAppletIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = CAIRO_DOCK_APPLET_IAPPLET_GET_INTERFACE (self);
	if (_iface_->GetAll) {
		return _iface_->GetAll (self, error);
	}
	return NULL;
}

void
cairo_dock_applet_iapplet_SetQuickInfo (CairoDockAppletIApplet* self,
                                        const gchar* cQuickInfo,
                                        GError** error)
{
	CairoDockAppletIAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_IAPPLET_GET_INTERFACE (self);
	if (_iface_->SetQuickInfo) {
		_iface_->SetQuickInfo (self, cQuickInfo, error);
	}
}

void
cairo_dock_applet_iapplet_SetLabel (CairoDockAppletIApplet* self,
                                    const gchar* cLabel,
                                    GError** error)
{
	CairoDockAppletIAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_IAPPLET_GET_INTERFACE (self);
	if (_iface_->SetLabel) {
		_iface_->SetLabel (self, cLabel, error);
	}
}

void
cairo_dock_applet_iapplet_SetIcon (CairoDockAppletIApplet* self,
                                   const gchar* cImage,
                                   GError** error)
{
	CairoDockAppletIAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_IAPPLET_GET_INTERFACE (self);
	if (_iface_->SetIcon) {
		_iface_->SetIcon (self, cImage, error);
	}
}

void
cairo_dock_applet_iapplet_SetEmblem (CairoDockAppletIApplet* self,
                                     const gchar* cImage,
                                     gint iPosition,
                                     GError** error)
{
	CairoDockAppletIAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_IAPPLET_GET_INTERFACE (self);
	if (_iface_->SetEmblem) {
		_iface_->SetEmblem (self, cImage, iPosition, error);
	}
}

void
cairo_dock_applet_iapplet_Animate (CairoDockAppletIApplet* self,
                                   const gchar* cAnimation,
                                   gint iRounds,
                                   GError** error)
{
	CairoDockAppletIAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_IAPPLET_GET_INTERFACE (self);
	if (_iface_->Animate) {
		_iface_->Animate (self, cAnimation, iRounds, error);
	}
}

void
cairo_dock_applet_iapplet_DemandsAttention (CairoDockAppletIApplet* self,
                                            gboolean bStart,
                                            const gchar* cAnimation,
                                            GError** error)
{
	CairoDockAppletIAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_IAPPLET_GET_INTERFACE (self);
	if (_iface_->DemandsAttention) {
		_iface_->DemandsAttention (self, bStart, cAnimation, error);
	}
}

void
cairo_dock_applet_iapplet_ShowDialog (CairoDockAppletIApplet* self,
                                      const gchar* cMessage,
                                      gint iDuration,
                                      GError** error)
{
	CairoDockAppletIAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_IAPPLET_GET_INTERFACE (self);
	if (_iface_->ShowDialog) {
		_iface_->ShowDialog (self, cMessage, iDuration, error);
	}
}

void
cairo_dock_applet_iapplet_PopupDialog (CairoDockAppletIApplet* self,
                                       GHashTable* hDialogAttributes,
                                       GHashTable* hWidgetAttributes,
                                       GError** error)
{
	CairoDockAppletIAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_IAPPLET_GET_INTERFACE (self);
	if (_iface_->PopupDialog) {
		_iface_->PopupDialog (self, hDialogAttributes, hWidgetAttributes, error);
	}
}

void
cairo_dock_applet_iapplet_AddDataRenderer (CairoDockAppletIApplet* self,
                                           const gchar* cType,
                                           gint iNbValues,
                                           const gchar* cTheme,
                                           GError** error)
{
	CairoDockAppletIAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_IAPPLET_GET_INTERFACE (self);
	if (_iface_->AddDataRenderer) {
		_iface_->AddDataRenderer (self, cType, iNbValues, cTheme, error);
	}
}

void
cairo_dock_applet_iapplet_RenderValues (CairoDockAppletIApplet* self,
                                        gdouble* pValues,
                                        gint pValues_length1,
                                        GError** error)
{
	CairoDockAppletIAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_IAPPLET_GET_INTERFACE (self);
	if (_iface_->RenderValues) {
		_iface_->RenderValues (self, pValues, pValues_length1, error);
	}
}

void
cairo_dock_applet_iapplet_ControlAppli (CairoDockAppletIApplet* self,
                                        const gchar* cApplicationClass,
                                        GError** error)
{
	CairoDockAppletIAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_IAPPLET_GET_INTERFACE (self);
	if (_iface_->ControlAppli) {
		_iface_->ControlAppli (self, cApplicationClass, error);
	}
}

void
cairo_dock_applet_iapplet_ShowAppli (CairoDockAppletIApplet* self,
                                     gboolean bShow,
                                     GError** error)
{
	CairoDockAppletIAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_IAPPLET_GET_INTERFACE (self);
	if (_iface_->ShowAppli) {
		_iface_->ShowAppli (self, bShow, error);
	}
}

void
cairo_dock_applet_iapplet_AddMenuItems (CairoDockAppletIApplet* self,
                                        GHashTable** pItems,
                                        gint pItems_length1,
                                        GError** error)
{
	CairoDockAppletIAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_IAPPLET_GET_INTERFACE (self);
	if (_iface_->AddMenuItems) {
		_iface_->AddMenuItems (self, pItems, pItems_length1, error);
	}
}

void
cairo_dock_applet_iapplet_BindShortkey (CairoDockAppletIApplet* self,
                                        gchar** cShortkeys,
                                        gint cShortkeys_length1,
                                        GError** error)
{
	CairoDockAppletIAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_IAPPLET_GET_INTERFACE (self);
	if (_iface_->BindShortkey) {
		_iface_->BindShortkey (self, cShortkeys, cShortkeys_length1, error);
	}
}

static void
g_cclosure_user_marshal_VOID__INT_VARIANT (GClosure * closure,
                                           GValue * return_value,
                                           guint n_param_values,
                                           const GValue * param_values,
                                           gpointer invocation_hint,
                                           gpointer marshal_data)
{
	typedef void (*GMarshalFunc_VOID__INT_VARIANT) (gpointer data1, gint arg_1, gpointer arg_2, gpointer data2);
	register GMarshalFunc_VOID__INT_VARIANT 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__INT_VARIANT) (marshal_data ? marshal_data : cc->callback);
	callback (data1, g_value_get_int (param_values + 1), g_value_get_variant (param_values + 2), data2);
}

static void
cairo_dock_applet_iapplet_default_init (CairoDockAppletIAppletIface * iface,
                                        gpointer iface_data)
{
	cairo_dock_applet_iapplet_signals[CAIRO_DOCK_APPLET_IAPPLET_ON_CLICK_SIGNAL] = g_signal_new ("on-click", CAIRO_DOCK_APPLET_TYPE_IAPPLET, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT);
	cairo_dock_applet_iapplet_signals[CAIRO_DOCK_APPLET_IAPPLET_ON_MIDDLE_CLICK_SIGNAL] = g_signal_new ("on-middle-click", CAIRO_DOCK_APPLET_TYPE_IAPPLET, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
	cairo_dock_applet_iapplet_signals[CAIRO_DOCK_APPLET_IAPPLET_ON_BUILD_MENU_SIGNAL] = g_signal_new ("on-build-menu", CAIRO_DOCK_APPLET_TYPE_IAPPLET, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
	cairo_dock_applet_iapplet_signals[CAIRO_DOCK_APPLET_IAPPLET_ON_MENU_SELECT_SIGNAL] = g_signal_new ("on-menu-select", CAIRO_DOCK_APPLET_TYPE_IAPPLET, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1, G_TYPE_INT);
	cairo_dock_applet_iapplet_signals[CAIRO_DOCK_APPLET_IAPPLET_ON_SCROLL_SIGNAL] = g_signal_new ("on-scroll", CAIRO_DOCK_APPLET_TYPE_IAPPLET, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
	cairo_dock_applet_iapplet_signals[CAIRO_DOCK_APPLET_IAPPLET_ON_DROP_DATA_SIGNAL] = g_signal_new ("on-drop-data", CAIRO_DOCK_APPLET_TYPE_IAPPLET, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
	cairo_dock_applet_iapplet_signals[CAIRO_DOCK_APPLET_IAPPLET_ON_ANSWER_SIGNAL] = g_signal_new ("on-answer", CAIRO_DOCK_APPLET_TYPE_IAPPLET, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VARIANT, G_TYPE_NONE, 1, G_TYPE_VARIANT);
	cairo_dock_applet_iapplet_signals[CAIRO_DOCK_APPLET_IAPPLET_ON_ANSWER_DIALOG_SIGNAL] = g_signal_new ("on-answer-dialog", CAIRO_DOCK_APPLET_TYPE_IAPPLET, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__INT_VARIANT, G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_VARIANT);
	cairo_dock_applet_iapplet_signals[CAIRO_DOCK_APPLET_IAPPLET_ON_SHORTKEY_SIGNAL] = g_signal_new ("on-shortkey", CAIRO_DOCK_APPLET_TYPE_IAPPLET, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
	cairo_dock_applet_iapplet_signals[CAIRO_DOCK_APPLET_IAPPLET_ON_CHANGE_FOCUS_SIGNAL] = g_signal_new ("on-change-focus", CAIRO_DOCK_APPLET_TYPE_IAPPLET, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
	cairo_dock_applet_iapplet_signals[CAIRO_DOCK_APPLET_IAPPLET_ON_STOP_MODULE_SIGNAL] = g_signal_new ("on-stop-module", CAIRO_DOCK_APPLET_TYPE_IAPPLET, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
	cairo_dock_applet_iapplet_signals[CAIRO_DOCK_APPLET_IAPPLET_ON_RELOAD_MODULE_SIGNAL] = g_signal_new ("on-reload-module", CAIRO_DOCK_APPLET_TYPE_IAPPLET, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
}

static GType
cairo_dock_applet_iapplet_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (CairoDockAppletIAppletIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) cairo_dock_applet_iapplet_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType cairo_dock_applet_iapplet_type_id;
	cairo_dock_applet_iapplet_type_id = g_type_register_static (G_TYPE_INTERFACE, "CairoDockAppletIApplet", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (cairo_dock_applet_iapplet_type_id, G_TYPE_OBJECT);
	g_type_set_qdata (cairo_dock_applet_iapplet_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) cairo_dock_applet_iapplet_proxy_get_type);
	g_type_set_qdata (cairo_dock_applet_iapplet_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "org.cairodock.CairoDock.applet");
	g_type_set_qdata (cairo_dock_applet_iapplet_type_id, g_quark_from_static_string ("vala-dbus-interface-info"), (void*) (&_cairo_dock_applet_iapplet_dbus_interface_info));
	g_type_set_qdata (cairo_dock_applet_iapplet_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) cairo_dock_applet_iapplet_register_object);
	return cairo_dock_applet_iapplet_type_id;
}

GType
cairo_dock_applet_iapplet_get_type (void)
{
	static volatile gsize cairo_dock_applet_iapplet_type_id__once = 0;
	if (g_once_init_enter (&cairo_dock_applet_iapplet_type_id__once)) {
		GType cairo_dock_applet_iapplet_type_id;
		cairo_dock_applet_iapplet_type_id = cairo_dock_applet_iapplet_get_type_once ();
		g_once_init_leave (&cairo_dock_applet_iapplet_type_id__once, cairo_dock_applet_iapplet_type_id);
	}
	return cairo_dock_applet_iapplet_type_id__once;
}

G_DEFINE_TYPE_EXTENDED (CairoDockAppletIAppletProxy, cairo_dock_applet_iapplet_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (CAIRO_DOCK_APPLET_TYPE_IAPPLET, cairo_dock_applet_iapplet_proxy_cairo_dock_applet_iapplet_interface_init) )
static void
cairo_dock_applet_iapplet_proxy_class_init (CairoDockAppletIAppletProxyClass* klass)
{
	G_DBUS_PROXY_CLASS (klass)->g_signal = cairo_dock_applet_iapplet_proxy_g_signal;
}

static void
_dbus_handle_cairo_dock_applet_iapplet_on_click (CairoDockAppletIApplet* self,
                                                 GVariant* parameters)
{
	GVariantIter _arguments_iter;
	gint iState = 0;
	GVariant* _tmp0_;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp0_ = g_variant_iter_next_value (&_arguments_iter);
	iState = g_variant_get_int32 (_tmp0_);
	g_variant_unref (_tmp0_);
	g_signal_emit_by_name (self, "on-click", iState);
}

static void
_dbus_handle_cairo_dock_applet_iapplet_on_middle_click (CairoDockAppletIApplet* self,
                                                        GVariant* parameters)
{
	GVariantIter _arguments_iter;
	g_variant_iter_init (&_arguments_iter, parameters);
	g_signal_emit_by_name (self, "on-middle-click");
}

static void
_dbus_handle_cairo_dock_applet_iapplet_on_build_menu (CairoDockAppletIApplet* self,
                                                      GVariant* parameters)
{
	GVariantIter _arguments_iter;
	g_variant_iter_init (&_arguments_iter, parameters);
	g_signal_emit_by_name (self, "on-build-menu");
}

static void
_dbus_handle_cairo_dock_applet_iapplet_on_menu_select (CairoDockAppletIApplet* self,
                                                       GVariant* parameters)
{
	GVariantIter _arguments_iter;
	gint iNumEntry = 0;
	GVariant* _tmp1_;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp1_ = g_variant_iter_next_value (&_arguments_iter);
	iNumEntry = g_variant_get_int32 (_tmp1_);
	g_variant_unref (_tmp1_);
	g_signal_emit_by_name (self, "on-menu-select", iNumEntry);
}

static void
_dbus_handle_cairo_dock_applet_iapplet_on_scroll (CairoDockAppletIApplet* self,
                                                  GVariant* parameters)
{
	GVariantIter _arguments_iter;
	gboolean bScrollUp = FALSE;
	GVariant* _tmp2_;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp2_ = g_variant_iter_next_value (&_arguments_iter);
	bScrollUp = g_variant_get_boolean (_tmp2_);
	g_variant_unref (_tmp2_);
	g_signal_emit_by_name (self, "on-scroll", bScrollUp);
}

static void
_dbus_handle_cairo_dock_applet_iapplet_on_drop_data (CairoDockAppletIApplet* self,
                                                     GVariant* parameters)
{
	GVariantIter _arguments_iter;
	gchar* cReceivedData = NULL;
	GVariant* _tmp3_;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp3_ = g_variant_iter_next_value (&_arguments_iter);
	cReceivedData = g_variant_dup_string (_tmp3_, NULL);
	g_variant_unref (_tmp3_);
	g_signal_emit_by_name (self, "on-drop-data", cReceivedData);
	_g_free0 (cReceivedData);
}

static void
_dbus_handle_cairo_dock_applet_iapplet_on_answer (CairoDockAppletIApplet* self,
                                                  GVariant* parameters)
{
	GVariantIter _arguments_iter;
	GVariant* answer = NULL;
	GVariant* _tmp4_;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp4_ = g_variant_iter_next_value (&_arguments_iter);
	answer = g_variant_get_variant (_tmp4_);
	g_variant_unref (_tmp4_);
	g_signal_emit_by_name (self, "on-answer", answer);
	_g_variant_unref0 (answer);
}

static void
_dbus_handle_cairo_dock_applet_iapplet_on_answer_dialog (CairoDockAppletIApplet* self,
                                                         GVariant* parameters)
{
	GVariantIter _arguments_iter;
	gint iButton = 0;
	GVariant* _tmp5_;
	GVariant* answer = NULL;
	GVariant* _tmp6_;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp5_ = g_variant_iter_next_value (&_arguments_iter);
	iButton = g_variant_get_int32 (_tmp5_);
	g_variant_unref (_tmp5_);
	_tmp6_ = g_variant_iter_next_value (&_arguments_iter);
	answer = g_variant_get_variant (_tmp6_);
	g_variant_unref (_tmp6_);
	g_signal_emit_by_name (self, "on-answer-dialog", iButton, answer);
	_g_variant_unref0 (answer);
}

static void
_dbus_handle_cairo_dock_applet_iapplet_on_shortkey (CairoDockAppletIApplet* self,
                                                    GVariant* parameters)
{
	GVariantIter _arguments_iter;
	gchar* cKey = NULL;
	GVariant* _tmp7_;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp7_ = g_variant_iter_next_value (&_arguments_iter);
	cKey = g_variant_dup_string (_tmp7_, NULL);
	g_variant_unref (_tmp7_);
	g_signal_emit_by_name (self, "on-shortkey", cKey);
	_g_free0 (cKey);
}

static void
_dbus_handle_cairo_dock_applet_iapplet_on_change_focus (CairoDockAppletIApplet* self,
                                                        GVariant* parameters)
{
	GVariantIter _arguments_iter;
	gboolean bIsActive = FALSE;
	GVariant* _tmp8_;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp8_ = g_variant_iter_next_value (&_arguments_iter);
	bIsActive = g_variant_get_boolean (_tmp8_);
	g_variant_unref (_tmp8_);
	g_signal_emit_by_name (self, "on-change-focus", bIsActive);
}

static void
_dbus_handle_cairo_dock_applet_iapplet_on_stop_module (CairoDockAppletIApplet* self,
                                                       GVariant* parameters)
{
	GVariantIter _arguments_iter;
	g_variant_iter_init (&_arguments_iter, parameters);
	g_signal_emit_by_name (self, "on-stop-module");
}

static void
_dbus_handle_cairo_dock_applet_iapplet_on_reload_module (CairoDockAppletIApplet* self,
                                                         GVariant* parameters)
{
	GVariantIter _arguments_iter;
	gboolean bConfigHasChanged = FALSE;
	GVariant* _tmp9_;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp9_ = g_variant_iter_next_value (&_arguments_iter);
	bConfigHasChanged = g_variant_get_boolean (_tmp9_);
	g_variant_unref (_tmp9_);
	g_signal_emit_by_name (self, "on-reload-module", bConfigHasChanged);
}

static void
cairo_dock_applet_iapplet_proxy_g_signal (GDBusProxy* proxy,
                                          const gchar* sender_name,
                                          const gchar* signal_name,
                                          GVariant* parameters)
{
	if (strcmp (signal_name, "on_click") == 0) {
		_dbus_handle_cairo_dock_applet_iapplet_on_click ((CairoDockAppletIApplet*) proxy, parameters);
	} else if (strcmp (signal_name, "on_middle_click") == 0) {
		_dbus_handle_cairo_dock_applet_iapplet_on_middle_click ((CairoDockAppletIApplet*) proxy, parameters);
	} else if (strcmp (signal_name, "on_build_menu") == 0) {
		_dbus_handle_cairo_dock_applet_iapplet_on_build_menu ((CairoDockAppletIApplet*) proxy, parameters);
	} else if (strcmp (signal_name, "on_menu_select") == 0) {
		_dbus_handle_cairo_dock_applet_iapplet_on_menu_select ((CairoDockAppletIApplet*) proxy, parameters);
	} else if (strcmp (signal_name, "on_scroll") == 0) {
		_dbus_handle_cairo_dock_applet_iapplet_on_scroll ((CairoDockAppletIApplet*) proxy, parameters);
	} else if (strcmp (signal_name, "on_drop_data") == 0) {
		_dbus_handle_cairo_dock_applet_iapplet_on_drop_data ((CairoDockAppletIApplet*) proxy, parameters);
	} else if (strcmp (signal_name, "on_answer") == 0) {
		_dbus_handle_cairo_dock_applet_iapplet_on_answer ((CairoDockAppletIApplet*) proxy, parameters);
	} else if (strcmp (signal_name, "on_answer_dialog") == 0) {
		_dbus_handle_cairo_dock_applet_iapplet_on_answer_dialog ((CairoDockAppletIApplet*) proxy, parameters);
	} else if (strcmp (signal_name, "on_shortkey") == 0) {
		_dbus_handle_cairo_dock_applet_iapplet_on_shortkey ((CairoDockAppletIApplet*) proxy, parameters);
	} else if (strcmp (signal_name, "on_change_focus") == 0) {
		_dbus_handle_cairo_dock_applet_iapplet_on_change_focus ((CairoDockAppletIApplet*) proxy, parameters);
	} else if (strcmp (signal_name, "on_stop_module") == 0) {
		_dbus_handle_cairo_dock_applet_iapplet_on_stop_module ((CairoDockAppletIApplet*) proxy, parameters);
	} else if (strcmp (signal_name, "on_reload_module") == 0) {
		_dbus_handle_cairo_dock_applet_iapplet_on_reload_module ((CairoDockAppletIApplet*) proxy, parameters);
	}
}

static void
cairo_dock_applet_iapplet_proxy_init (CairoDockAppletIAppletProxy* self)
{
	g_dbus_proxy_set_interface_info (G_DBUS_PROXY (self), (GDBusInterfaceInfo *) (&_cairo_dock_applet_iapplet_dbus_interface_info));
}

static GVariant*
cairo_dock_applet_iapplet_proxy_Get (CairoDockAppletIApplet* self,
                                     const gchar* cProperty,
                                     GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	GVariant* _result = NULL;
	GVariant* _tmp10_;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.applet", "Get");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cProperty));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return NULL;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return NULL;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_tmp10_ = g_variant_iter_next_value (&_reply_iter);
	_result = g_variant_get_variant (_tmp10_);
	g_variant_unref (_tmp10_);
	g_object_unref (_reply_message);
	return _result;
}

static GHashTable*
cairo_dock_applet_iapplet_proxy_GetAll (CairoDockAppletIApplet* self,
                                        GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	GVariant *_reply;
	GVariantIter _reply_iter;
	GHashTable* _result = NULL;
	GVariant* _tmp11_;
	GHashTable* _tmp12_;
	GVariantIter _tmp13_;
	GVariant* _tmp14_;
	GVariant* _tmp15_;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.applet", "GetAll");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return NULL;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return NULL;
	}
	_reply = g_dbus_message_get_body (_reply_message);
	g_variant_iter_init (&_reply_iter, _reply);
	_tmp11_ = g_variant_iter_next_value (&_reply_iter);
	_tmp12_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) g_variant_unref);
	g_variant_iter_init (&_tmp13_, _tmp11_);
	while (g_variant_iter_loop (&_tmp13_, "{?*}", &_tmp14_, &_tmp15_)) {
		g_hash_table_insert (_tmp12_, g_variant_dup_string (_tmp14_, NULL), g_variant_get_variant (_tmp15_));
	}
	_result = _tmp12_;
	g_variant_unref (_tmp11_);
	g_object_unref (_reply_message);
	return _result;
}

static void
cairo_dock_applet_iapplet_proxy_SetQuickInfo (CairoDockAppletIApplet* self,
                                              const gchar* cQuickInfo,
                                              GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.applet", "SetQuickInfo");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cQuickInfo));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_iapplet_proxy_SetLabel (CairoDockAppletIApplet* self,
                                          const gchar* cLabel,
                                          GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.applet", "SetLabel");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cLabel));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_iapplet_proxy_SetIcon (CairoDockAppletIApplet* self,
                                         const gchar* cImage,
                                         GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.applet", "SetIcon");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cImage));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_iapplet_proxy_SetEmblem (CairoDockAppletIApplet* self,
                                           const gchar* cImage,
                                           gint iPosition,
                                           GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.applet", "SetEmblem");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cImage));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (iPosition));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_iapplet_proxy_Animate (CairoDockAppletIApplet* self,
                                         const gchar* cAnimation,
                                         gint iRounds,
                                         GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.applet", "Animate");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cAnimation));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (iRounds));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_iapplet_proxy_DemandsAttention (CairoDockAppletIApplet* self,
                                                  gboolean bStart,
                                                  const gchar* cAnimation,
                                                  GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.applet", "DemandsAttention");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_boolean (bStart));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cAnimation));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_iapplet_proxy_ShowDialog (CairoDockAppletIApplet* self,
                                            const gchar* cMessage,
                                            gint iDuration,
                                            GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.applet", "ShowDialog");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cMessage));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (iDuration));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_iapplet_proxy_PopupDialog (CairoDockAppletIApplet* self,
                                             GHashTable* hDialogAttributes,
                                             GHashTable* hWidgetAttributes,
                                             GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GVariantBuilder _tmp16_;
	GHashTableIter _tmp17_;
	gpointer _tmp18_;
	gpointer _tmp19_;
	GVariantBuilder _tmp20_;
	GHashTableIter _tmp21_;
	gpointer _tmp22_;
	gpointer _tmp23_;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.applet", "PopupDialog");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_hash_table_iter_init (&_tmp17_, hDialogAttributes);
	g_variant_builder_init (&_tmp16_, G_VARIANT_TYPE ("a{sv}"));
	while (g_hash_table_iter_next (&_tmp17_, &_tmp18_, &_tmp19_)) {
		gchar* _key;
		GVariant* _value;
		_key = (gchar*) _tmp18_;
		_value = (GVariant*) _tmp19_;
		g_variant_builder_add (&_tmp16_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
	}
	g_variant_builder_add_value (&_arguments_builder, g_variant_builder_end (&_tmp16_));
	g_hash_table_iter_init (&_tmp21_, hWidgetAttributes);
	g_variant_builder_init (&_tmp20_, G_VARIANT_TYPE ("a{sv}"));
	while (g_hash_table_iter_next (&_tmp21_, &_tmp22_, &_tmp23_)) {
		gchar* _key;
		GVariant* _value;
		_key = (gchar*) _tmp22_;
		_value = (GVariant*) _tmp23_;
		g_variant_builder_add (&_tmp20_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
	}
	g_variant_builder_add_value (&_arguments_builder, g_variant_builder_end (&_tmp20_));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_iapplet_proxy_AddDataRenderer (CairoDockAppletIApplet* self,
                                                 const gchar* cType,
                                                 gint iNbValues,
                                                 const gchar* cTheme,
                                                 GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.applet", "AddDataRenderer");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cType));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (iNbValues));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cTheme));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_iapplet_proxy_RenderValues (CairoDockAppletIApplet* self,
                                              gdouble* pValues,
                                              gint pValues_length1,
                                              GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	gdouble* _tmp24_;
	GVariantBuilder _tmp25_;
	gint _tmp26_;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.applet", "RenderValues");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	_tmp24_ = pValues;
	g_variant_builder_init (&_tmp25_, G_VARIANT_TYPE ("ad"));
	for (_tmp26_ = 0; _tmp26_ < pValues_length1; _tmp26_++) {
		g_variant_builder_add_value (&_tmp25_, g_variant_new_double (*_tmp24_));
		_tmp24_++;
	}
	g_variant_builder_add_value (&_arguments_builder, g_variant_builder_end (&_tmp25_));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_iapplet_proxy_ControlAppli (CairoDockAppletIApplet* self,
                                              const gchar* cApplicationClass,
                                              GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.applet", "ControlAppli");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cApplicationClass));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_iapplet_proxy_ShowAppli (CairoDockAppletIApplet* self,
                                           gboolean bShow,
                                           GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.applet", "ShowAppli");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_boolean (bShow));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_iapplet_proxy_AddMenuItems (CairoDockAppletIApplet* self,
                                              GHashTable** pItems,
                                              gint pItems_length1,
                                              GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GHashTable** _tmp27_;
	GVariantBuilder _tmp28_;
	gint _tmp29_;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.applet", "AddMenuItems");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	_tmp27_ = pItems;
	g_variant_builder_init (&_tmp28_, G_VARIANT_TYPE ("aa{sv}"));
	for (_tmp29_ = 0; _tmp29_ < pItems_length1; _tmp29_++) {
		GVariantBuilder _tmp30_;
		GHashTableIter _tmp31_;
		gpointer _tmp32_;
		gpointer _tmp33_;
		g_hash_table_iter_init (&_tmp31_, *_tmp27_);
		g_variant_builder_init (&_tmp30_, G_VARIANT_TYPE ("a{sv}"));
		while (g_hash_table_iter_next (&_tmp31_, &_tmp32_, &_tmp33_)) {
			gchar* _key;
			GVariant* _value;
			_key = (gchar*) _tmp32_;
			_value = (GVariant*) _tmp33_;
			g_variant_builder_add (&_tmp30_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
		}
		g_variant_builder_add_value (&_tmp28_, g_variant_builder_end (&_tmp30_));
		_tmp27_++;
	}
	g_variant_builder_add_value (&_arguments_builder, g_variant_builder_end (&_tmp28_));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_iapplet_proxy_BindShortkey (CairoDockAppletIApplet* self,
                                              gchar** cShortkeys,
                                              gint cShortkeys_length1,
                                              GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	gchar** _tmp34_;
	GVariantBuilder _tmp35_;
	gint _tmp36_;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.applet", "BindShortkey");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	_tmp34_ = cShortkeys;
	g_variant_builder_init (&_tmp35_, G_VARIANT_TYPE ("as"));
	for (_tmp36_ = 0; _tmp36_ < cShortkeys_length1; _tmp36_++) {
		g_variant_builder_add_value (&_tmp35_, g_variant_new_string (*_tmp34_));
		_tmp34_++;
	}
	g_variant_builder_add_value (&_arguments_builder, g_variant_builder_end (&_tmp35_));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_iapplet_proxy_cairo_dock_applet_iapplet_interface_init (CairoDockAppletIAppletIface* iface)
{
	iface->Get = cairo_dock_applet_iapplet_proxy_Get;
	iface->GetAll = cairo_dock_applet_iapplet_proxy_GetAll;
	iface->SetQuickInfo = cairo_dock_applet_iapplet_proxy_SetQuickInfo;
	iface->SetLabel = cairo_dock_applet_iapplet_proxy_SetLabel;
	iface->SetIcon = cairo_dock_applet_iapplet_proxy_SetIcon;
	iface->SetEmblem = cairo_dock_applet_iapplet_proxy_SetEmblem;
	iface->Animate = cairo_dock_applet_iapplet_proxy_Animate;
	iface->DemandsAttention = cairo_dock_applet_iapplet_proxy_DemandsAttention;
	iface->ShowDialog = cairo_dock_applet_iapplet_proxy_ShowDialog;
	iface->PopupDialog = cairo_dock_applet_iapplet_proxy_PopupDialog;
	iface->AddDataRenderer = cairo_dock_applet_iapplet_proxy_AddDataRenderer;
	iface->RenderValues = cairo_dock_applet_iapplet_proxy_RenderValues;
	iface->ControlAppli = cairo_dock_applet_iapplet_proxy_ControlAppli;
	iface->ShowAppli = cairo_dock_applet_iapplet_proxy_ShowAppli;
	iface->AddMenuItems = cairo_dock_applet_iapplet_proxy_AddMenuItems;
	iface->BindShortkey = cairo_dock_applet_iapplet_proxy_BindShortkey;
}

static void
_dbus_cairo_dock_applet_iapplet_Get (CairoDockAppletIApplet* self,
                                     GVariant* _parameters_,
                                     GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* cProperty = NULL;
	GVariant* _tmp37_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	GVariant* result;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp37_ = g_variant_iter_next_value (&_arguments_iter);
	cProperty = g_variant_dup_string (_tmp37_, NULL);
	g_variant_unref (_tmp37_);
	result = cairo_dock_applet_iapplet_Get (self, cProperty, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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_variant (result));
	_g_variant_unref0 (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);
	_error:
	_g_free0 (cProperty);
	;
}

static void
_dbus_cairo_dock_applet_iapplet_GetAll (CairoDockAppletIApplet* self,
                                        GVariant* _parameters_,
                                        GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	GHashTable* result;
	GVariantBuilder _tmp38_;
	GHashTableIter _tmp39_;
	gpointer _tmp40_;
	gpointer _tmp41_;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	result = cairo_dock_applet_iapplet_GetAll (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);
	g_hash_table_iter_init (&_tmp39_, result);
	g_variant_builder_init (&_tmp38_, G_VARIANT_TYPE ("a{sv}"));
	while (g_hash_table_iter_next (&_tmp39_, &_tmp40_, &_tmp41_)) {
		gchar* _key;
		GVariant* _value;
		_key = (gchar*) _tmp40_;
		_value = (GVariant*) _tmp41_;
		g_variant_builder_add (&_tmp38_, "{?*}", g_variant_new_string (_key), g_variant_new_variant (_value));
	}
	g_variant_builder_add_value (&_reply_builder, g_variant_builder_end (&_tmp38_));
	_g_hash_table_unref0 (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_cairo_dock_applet_iapplet_SetQuickInfo (CairoDockAppletIApplet* self,
                                              GVariant* _parameters_,
                                              GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* cQuickInfo = NULL;
	GVariant* _tmp42_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp42_ = g_variant_iter_next_value (&_arguments_iter);
	cQuickInfo = g_variant_dup_string (_tmp42_, NULL);
	g_variant_unref (_tmp42_);
	cairo_dock_applet_iapplet_SetQuickInfo (self, cQuickInfo, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	_g_free0 (cQuickInfo);
	;
}

static void
_dbus_cairo_dock_applet_iapplet_SetLabel (CairoDockAppletIApplet* self,
                                          GVariant* _parameters_,
                                          GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* cLabel = NULL;
	GVariant* _tmp43_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp43_ = g_variant_iter_next_value (&_arguments_iter);
	cLabel = g_variant_dup_string (_tmp43_, NULL);
	g_variant_unref (_tmp43_);
	cairo_dock_applet_iapplet_SetLabel (self, cLabel, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	_g_free0 (cLabel);
	;
}

static void
_dbus_cairo_dock_applet_iapplet_SetIcon (CairoDockAppletIApplet* self,
                                         GVariant* _parameters_,
                                         GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* cImage = NULL;
	GVariant* _tmp44_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp44_ = g_variant_iter_next_value (&_arguments_iter);
	cImage = g_variant_dup_string (_tmp44_, NULL);
	g_variant_unref (_tmp44_);
	cairo_dock_applet_iapplet_SetIcon (self, cImage, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	_g_free0 (cImage);
	;
}

static void
_dbus_cairo_dock_applet_iapplet_SetEmblem (CairoDockAppletIApplet* self,
                                           GVariant* _parameters_,
                                           GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* cImage = NULL;
	GVariant* _tmp45_;
	gint iPosition = 0;
	GVariant* _tmp46_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp45_ = g_variant_iter_next_value (&_arguments_iter);
	cImage = g_variant_dup_string (_tmp45_, NULL);
	g_variant_unref (_tmp45_);
	_tmp46_ = g_variant_iter_next_value (&_arguments_iter);
	iPosition = g_variant_get_int32 (_tmp46_);
	g_variant_unref (_tmp46_);
	cairo_dock_applet_iapplet_SetEmblem (self, cImage, iPosition, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	_g_free0 (cImage);
	;
}

static void
_dbus_cairo_dock_applet_iapplet_Animate (CairoDockAppletIApplet* self,
                                         GVariant* _parameters_,
                                         GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* cAnimation = NULL;
	GVariant* _tmp47_;
	gint iRounds = 0;
	GVariant* _tmp48_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp47_ = g_variant_iter_next_value (&_arguments_iter);
	cAnimation = g_variant_dup_string (_tmp47_, NULL);
	g_variant_unref (_tmp47_);
	_tmp48_ = g_variant_iter_next_value (&_arguments_iter);
	iRounds = g_variant_get_int32 (_tmp48_);
	g_variant_unref (_tmp48_);
	cairo_dock_applet_iapplet_Animate (self, cAnimation, iRounds, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	_g_free0 (cAnimation);
	;
}

static void
_dbus_cairo_dock_applet_iapplet_DemandsAttention (CairoDockAppletIApplet* self,
                                                  GVariant* _parameters_,
                                                  GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gboolean bStart = FALSE;
	GVariant* _tmp49_;
	gchar* cAnimation = NULL;
	GVariant* _tmp50_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp49_ = g_variant_iter_next_value (&_arguments_iter);
	bStart = g_variant_get_boolean (_tmp49_);
	g_variant_unref (_tmp49_);
	_tmp50_ = g_variant_iter_next_value (&_arguments_iter);
	cAnimation = g_variant_dup_string (_tmp50_, NULL);
	g_variant_unref (_tmp50_);
	cairo_dock_applet_iapplet_DemandsAttention (self, bStart, cAnimation, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	_g_free0 (cAnimation);
	;
}

static void
_dbus_cairo_dock_applet_iapplet_ShowDialog (CairoDockAppletIApplet* self,
                                            GVariant* _parameters_,
                                            GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* cMessage = NULL;
	GVariant* _tmp51_;
	gint iDuration = 0;
	GVariant* _tmp52_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp51_ = g_variant_iter_next_value (&_arguments_iter);
	cMessage = g_variant_dup_string (_tmp51_, NULL);
	g_variant_unref (_tmp51_);
	_tmp52_ = g_variant_iter_next_value (&_arguments_iter);
	iDuration = g_variant_get_int32 (_tmp52_);
	g_variant_unref (_tmp52_);
	cairo_dock_applet_iapplet_ShowDialog (self, cMessage, iDuration, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	_g_free0 (cMessage);
	;
}

static void
_dbus_cairo_dock_applet_iapplet_PopupDialog (CairoDockAppletIApplet* self,
                                             GVariant* _parameters_,
                                             GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GHashTable* hDialogAttributes = NULL;
	GVariant* _tmp53_;
	GHashTable* _tmp54_;
	GVariantIter _tmp55_;
	GVariant* _tmp56_;
	GVariant* _tmp57_;
	GHashTable* hWidgetAttributes = NULL;
	GVariant* _tmp58_;
	GHashTable* _tmp59_;
	GVariantIter _tmp60_;
	GVariant* _tmp61_;
	GVariant* _tmp62_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp53_ = g_variant_iter_next_value (&_arguments_iter);
	_tmp54_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) g_variant_unref);
	g_variant_iter_init (&_tmp55_, _tmp53_);
	while (g_variant_iter_loop (&_tmp55_, "{?*}", &_tmp56_, &_tmp57_)) {
		g_hash_table_insert (_tmp54_, g_variant_dup_string (_tmp56_, NULL), g_variant_get_variant (_tmp57_));
	}
	hDialogAttributes = _tmp54_;
	g_variant_unref (_tmp53_);
	_tmp58_ = g_variant_iter_next_value (&_arguments_iter);
	_tmp59_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) g_variant_unref);
	g_variant_iter_init (&_tmp60_, _tmp58_);
	while (g_variant_iter_loop (&_tmp60_, "{?*}", &_tmp61_, &_tmp62_)) {
		g_hash_table_insert (_tmp59_, g_variant_dup_string (_tmp61_, NULL), g_variant_get_variant (_tmp62_));
	}
	hWidgetAttributes = _tmp59_;
	g_variant_unref (_tmp58_);
	cairo_dock_applet_iapplet_PopupDialog (self, hDialogAttributes, hWidgetAttributes, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	_g_hash_table_unref0 (hDialogAttributes);
	_g_hash_table_unref0 (hWidgetAttributes);
	;
}

static void
_dbus_cairo_dock_applet_iapplet_AddDataRenderer (CairoDockAppletIApplet* self,
                                                 GVariant* _parameters_,
                                                 GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* cType = NULL;
	GVariant* _tmp63_;
	gint iNbValues = 0;
	GVariant* _tmp64_;
	gchar* cTheme = NULL;
	GVariant* _tmp65_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp63_ = g_variant_iter_next_value (&_arguments_iter);
	cType = g_variant_dup_string (_tmp63_, NULL);
	g_variant_unref (_tmp63_);
	_tmp64_ = g_variant_iter_next_value (&_arguments_iter);
	iNbValues = g_variant_get_int32 (_tmp64_);
	g_variant_unref (_tmp64_);
	_tmp65_ = g_variant_iter_next_value (&_arguments_iter);
	cTheme = g_variant_dup_string (_tmp65_, NULL);
	g_variant_unref (_tmp65_);
	cairo_dock_applet_iapplet_AddDataRenderer (self, cType, iNbValues, cTheme, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	_g_free0 (cType);
	_g_free0 (cTheme);
	;
}

static void
_dbus_cairo_dock_applet_iapplet_RenderValues (CairoDockAppletIApplet* self,
                                              GVariant* _parameters_,
                                              GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gdouble* pValues = NULL;
	gint pValues_length1 = 0;
	GVariant* _tmp66_;
	gdouble* _tmp67_;
	gint _tmp67__length;
	gint _tmp67__size;
	gint _tmp67__length1;
	GVariantIter _tmp68_;
	GVariant* _tmp69_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp66_ = g_variant_iter_next_value (&_arguments_iter);
	_tmp67_ = g_new (gdouble, 5);
	_tmp67__length = 0;
	_tmp67__size = 4;
	_tmp67__length1 = 0;
	g_variant_iter_init (&_tmp68_, _tmp66_);
	for (; (_tmp69_ = g_variant_iter_next_value (&_tmp68_)) != NULL; _tmp67__length1++) {
		if (_tmp67__size == _tmp67__length) {
			_tmp67__size = 2 * _tmp67__size;
			_tmp67_ = g_renew (gdouble, _tmp67_, _tmp67__size + 1);
		}
		_tmp67_[_tmp67__length++] = g_variant_get_double (_tmp69_);
		g_variant_unref (_tmp69_);
	}
	pValues_length1 = _tmp67__length1;
	pValues = _tmp67_;
	g_variant_unref (_tmp66_);
	cairo_dock_applet_iapplet_RenderValues (self, pValues, pValues_length1, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	pValues = (g_free (pValues), NULL);
	;
}

static void
_dbus_cairo_dock_applet_iapplet_ControlAppli (CairoDockAppletIApplet* self,
                                              GVariant* _parameters_,
                                              GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* cApplicationClass = NULL;
	GVariant* _tmp70_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp70_ = g_variant_iter_next_value (&_arguments_iter);
	cApplicationClass = g_variant_dup_string (_tmp70_, NULL);
	g_variant_unref (_tmp70_);
	cairo_dock_applet_iapplet_ControlAppli (self, cApplicationClass, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	_g_free0 (cApplicationClass);
	;
}

static void
_dbus_cairo_dock_applet_iapplet_ShowAppli (CairoDockAppletIApplet* self,
                                           GVariant* _parameters_,
                                           GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gboolean bShow = FALSE;
	GVariant* _tmp71_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp71_ = g_variant_iter_next_value (&_arguments_iter);
	bShow = g_variant_get_boolean (_tmp71_);
	g_variant_unref (_tmp71_);
	cairo_dock_applet_iapplet_ShowAppli (self, bShow, &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_cairo_dock_applet_iapplet_AddMenuItems (CairoDockAppletIApplet* self,
                                              GVariant* _parameters_,
                                              GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	GHashTable** pItems = NULL;
	gint pItems_length1 = 0;
	GVariant* _tmp72_;
	GHashTable** _tmp73_;
	gint _tmp73__length;
	gint _tmp73__size;
	gint _tmp73__length1;
	GVariantIter _tmp74_;
	GVariant* _tmp75_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp72_ = g_variant_iter_next_value (&_arguments_iter);
	_tmp73_ = g_new (GHashTable*, 5);
	_tmp73__length = 0;
	_tmp73__size = 4;
	_tmp73__length1 = 0;
	g_variant_iter_init (&_tmp74_, _tmp72_);
	for (; (_tmp75_ = g_variant_iter_next_value (&_tmp74_)) != NULL; _tmp73__length1++) {
		GHashTable* _tmp76_;
		GVariantIter _tmp77_;
		GVariant* _tmp78_;
		GVariant* _tmp79_;
		if (_tmp73__size == _tmp73__length) {
			_tmp73__size = 2 * _tmp73__size;
			_tmp73_ = g_renew (GHashTable*, _tmp73_, _tmp73__size + 1);
		}
		_tmp76_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) g_variant_unref);
		g_variant_iter_init (&_tmp77_, _tmp75_);
		while (g_variant_iter_loop (&_tmp77_, "{?*}", &_tmp78_, &_tmp79_)) {
			g_hash_table_insert (_tmp76_, g_variant_dup_string (_tmp78_, NULL), g_variant_get_variant (_tmp79_));
		}
		_tmp73_[_tmp73__length++] = _tmp76_;
		g_variant_unref (_tmp75_);
	}
	pItems_length1 = _tmp73__length1;
	_tmp73_[_tmp73__length] = NULL;
	pItems = _tmp73_;
	g_variant_unref (_tmp72_);
	cairo_dock_applet_iapplet_AddMenuItems (self, pItems, pItems_length1, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	pItems = (_vala_array_free (pItems, pItems_length1, (GDestroyNotify) g_hash_table_unref), NULL);
	;
}

static void
_dbus_cairo_dock_applet_iapplet_BindShortkey (CairoDockAppletIApplet* self,
                                              GVariant* _parameters_,
                                              GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar** cShortkeys = NULL;
	gint cShortkeys_length1 = 0;
	GVariant* _tmp80_;
	gchar** _tmp81_;
	gint _tmp81__length;
	gint _tmp81__size;
	gint _tmp81__length1;
	GVariantIter _tmp82_;
	GVariant* _tmp83_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp80_ = g_variant_iter_next_value (&_arguments_iter);
	_tmp81_ = g_new (gchar*, 5);
	_tmp81__length = 0;
	_tmp81__size = 4;
	_tmp81__length1 = 0;
	g_variant_iter_init (&_tmp82_, _tmp80_);
	for (; (_tmp83_ = g_variant_iter_next_value (&_tmp82_)) != NULL; _tmp81__length1++) {
		if (_tmp81__size == _tmp81__length) {
			_tmp81__size = 2 * _tmp81__size;
			_tmp81_ = g_renew (gchar*, _tmp81_, _tmp81__size + 1);
		}
		_tmp81_[_tmp81__length++] = g_variant_dup_string (_tmp83_, NULL);
		g_variant_unref (_tmp83_);
	}
	cShortkeys_length1 = _tmp81__length1;
	_tmp81_[_tmp81__length] = NULL;
	cShortkeys = _tmp81_;
	g_variant_unref (_tmp80_);
	cairo_dock_applet_iapplet_BindShortkey (self, cShortkeys, cShortkeys_length1, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	cShortkeys = (_vala_array_free (cShortkeys, cShortkeys_length1, (GDestroyNotify) g_free), NULL);
	;
}

static void
cairo_dock_applet_iapplet_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, "Get") == 0) {
		_dbus_cairo_dock_applet_iapplet_Get (object, parameters, invocation);
	} else if (strcmp (method_name, "GetAll") == 0) {
		_dbus_cairo_dock_applet_iapplet_GetAll (object, parameters, invocation);
	} else if (strcmp (method_name, "SetQuickInfo") == 0) {
		_dbus_cairo_dock_applet_iapplet_SetQuickInfo (object, parameters, invocation);
	} else if (strcmp (method_name, "SetLabel") == 0) {
		_dbus_cairo_dock_applet_iapplet_SetLabel (object, parameters, invocation);
	} else if (strcmp (method_name, "SetIcon") == 0) {
		_dbus_cairo_dock_applet_iapplet_SetIcon (object, parameters, invocation);
	} else if (strcmp (method_name, "SetEmblem") == 0) {
		_dbus_cairo_dock_applet_iapplet_SetEmblem (object, parameters, invocation);
	} else if (strcmp (method_name, "Animate") == 0) {
		_dbus_cairo_dock_applet_iapplet_Animate (object, parameters, invocation);
	} else if (strcmp (method_name, "DemandsAttention") == 0) {
		_dbus_cairo_dock_applet_iapplet_DemandsAttention (object, parameters, invocation);
	} else if (strcmp (method_name, "ShowDialog") == 0) {
		_dbus_cairo_dock_applet_iapplet_ShowDialog (object, parameters, invocation);
	} else if (strcmp (method_name, "PopupDialog") == 0) {
		_dbus_cairo_dock_applet_iapplet_PopupDialog (object, parameters, invocation);
	} else if (strcmp (method_name, "AddDataRenderer") == 0) {
		_dbus_cairo_dock_applet_iapplet_AddDataRenderer (object, parameters, invocation);
	} else if (strcmp (method_name, "RenderValues") == 0) {
		_dbus_cairo_dock_applet_iapplet_RenderValues (object, parameters, invocation);
	} else if (strcmp (method_name, "ControlAppli") == 0) {
		_dbus_cairo_dock_applet_iapplet_ControlAppli (object, parameters, invocation);
	} else if (strcmp (method_name, "ShowAppli") == 0) {
		_dbus_cairo_dock_applet_iapplet_ShowAppli (object, parameters, invocation);
	} else if (strcmp (method_name, "AddMenuItems") == 0) {
		_dbus_cairo_dock_applet_iapplet_AddMenuItems (object, parameters, invocation);
	} else if (strcmp (method_name, "BindShortkey") == 0) {
		_dbus_cairo_dock_applet_iapplet_BindShortkey (object, parameters, invocation);
	} else {
		g_object_unref (invocation);
	}
}

static GVariant*
cairo_dock_applet_iapplet_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)
{
	return NULL;
}

static gboolean
cairo_dock_applet_iapplet_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)
{
	return FALSE;
}

static void
_dbus_cairo_dock_applet_iapplet_on_click (GObject* _sender,
                                          gint iState,
                                          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 (iState));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.cairodock.CairoDock.applet", "on_click", _arguments, NULL);
}

static void
_dbus_cairo_dock_applet_iapplet_on_middle_click (GObject* _sender,
                                                 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);
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.cairodock.CairoDock.applet", "on_middle_click", _arguments, NULL);
}

static void
_dbus_cairo_dock_applet_iapplet_on_build_menu (GObject* _sender,
                                               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);
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.cairodock.CairoDock.applet", "on_build_menu", _arguments, NULL);
}

static void
_dbus_cairo_dock_applet_iapplet_on_menu_select (GObject* _sender,
                                                gint iNumEntry,
                                                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 (iNumEntry));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.cairodock.CairoDock.applet", "on_menu_select", _arguments, NULL);
}

static void
_dbus_cairo_dock_applet_iapplet_on_scroll (GObject* _sender,
                                           gboolean bScrollUp,
                                           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_boolean (bScrollUp));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.cairodock.CairoDock.applet", "on_scroll", _arguments, NULL);
}

static void
_dbus_cairo_dock_applet_iapplet_on_drop_data (GObject* _sender,
                                              const gchar* cReceivedData,
                                              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_string (cReceivedData));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.cairodock.CairoDock.applet", "on_drop_data", _arguments, NULL);
}

static void
_dbus_cairo_dock_applet_iapplet_on_answer (GObject* _sender,
                                           GVariant* answer,
                                           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_variant (answer));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.cairodock.CairoDock.applet", "on_answer", _arguments, NULL);
}

static void
_dbus_cairo_dock_applet_iapplet_on_answer_dialog (GObject* _sender,
                                                  gint iButton,
                                                  GVariant* answer,
                                                  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 (iButton));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_variant (answer));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.cairodock.CairoDock.applet", "on_answer_dialog", _arguments, NULL);
}

static void
_dbus_cairo_dock_applet_iapplet_on_shortkey (GObject* _sender,
                                             const gchar* cKey,
                                             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_string (cKey));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.cairodock.CairoDock.applet", "on_shortkey", _arguments, NULL);
}

static void
_dbus_cairo_dock_applet_iapplet_on_change_focus (GObject* _sender,
                                                 gboolean bIsActive,
                                                 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_boolean (bIsActive));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.cairodock.CairoDock.applet", "on_change_focus", _arguments, NULL);
}

static void
_dbus_cairo_dock_applet_iapplet_on_stop_module (GObject* _sender,
                                                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);
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.cairodock.CairoDock.applet", "on_stop_module", _arguments, NULL);
}

static void
_dbus_cairo_dock_applet_iapplet_on_reload_module (GObject* _sender,
                                                  gboolean bConfigHasChanged,
                                                  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_boolean (bConfigHasChanged));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.cairodock.CairoDock.applet", "on_reload_module", _arguments, NULL);
}

guint
cairo_dock_applet_iapplet_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 *) (&_cairo_dock_applet_iapplet_dbus_interface_info), &_cairo_dock_applet_iapplet_dbus_interface_vtable, data, _cairo_dock_applet_iapplet_unregister_object, error);
	if (!result) {
		return 0;
	}
	g_signal_connect (object, "on-click", (GCallback) _dbus_cairo_dock_applet_iapplet_on_click, data);
	g_signal_connect (object, "on-middle-click", (GCallback) _dbus_cairo_dock_applet_iapplet_on_middle_click, data);
	g_signal_connect (object, "on-build-menu", (GCallback) _dbus_cairo_dock_applet_iapplet_on_build_menu, data);
	g_signal_connect (object, "on-menu-select", (GCallback) _dbus_cairo_dock_applet_iapplet_on_menu_select, data);
	g_signal_connect (object, "on-scroll", (GCallback) _dbus_cairo_dock_applet_iapplet_on_scroll, data);
	g_signal_connect (object, "on-drop-data", (GCallback) _dbus_cairo_dock_applet_iapplet_on_drop_data, data);
	g_signal_connect (object, "on-answer", (GCallback) _dbus_cairo_dock_applet_iapplet_on_answer, data);
	g_signal_connect (object, "on-answer-dialog", (GCallback) _dbus_cairo_dock_applet_iapplet_on_answer_dialog, data);
	g_signal_connect (object, "on-shortkey", (GCallback) _dbus_cairo_dock_applet_iapplet_on_shortkey, data);
	g_signal_connect (object, "on-change-focus", (GCallback) _dbus_cairo_dock_applet_iapplet_on_change_focus, data);
	g_signal_connect (object, "on-stop-module", (GCallback) _dbus_cairo_dock_applet_iapplet_on_stop_module, data);
	g_signal_connect (object, "on-reload-module", (GCallback) _dbus_cairo_dock_applet_iapplet_on_reload_module, data);
	return result;
}

static void
_cairo_dock_applet_iapplet_unregister_object (gpointer user_data)
{
	gpointer* data;
	data = user_data;
	g_signal_handlers_disconnect_by_func (data[0], _dbus_cairo_dock_applet_iapplet_on_click, data);
	g_signal_handlers_disconnect_by_func (data[0], _dbus_cairo_dock_applet_iapplet_on_middle_click, data);
	g_signal_handlers_disconnect_by_func (data[0], _dbus_cairo_dock_applet_iapplet_on_build_menu, data);
	g_signal_handlers_disconnect_by_func (data[0], _dbus_cairo_dock_applet_iapplet_on_menu_select, data);
	g_signal_handlers_disconnect_by_func (data[0], _dbus_cairo_dock_applet_iapplet_on_scroll, data);
	g_signal_handlers_disconnect_by_func (data[0], _dbus_cairo_dock_applet_iapplet_on_drop_data, data);
	g_signal_handlers_disconnect_by_func (data[0], _dbus_cairo_dock_applet_iapplet_on_answer, data);
	g_signal_handlers_disconnect_by_func (data[0], _dbus_cairo_dock_applet_iapplet_on_answer_dialog, data);
	g_signal_handlers_disconnect_by_func (data[0], _dbus_cairo_dock_applet_iapplet_on_shortkey, data);
	g_signal_handlers_disconnect_by_func (data[0], _dbus_cairo_dock_applet_iapplet_on_change_focus, data);
	g_signal_handlers_disconnect_by_func (data[0], _dbus_cairo_dock_applet_iapplet_on_stop_module, data);
	g_signal_handlers_disconnect_by_func (data[0], _dbus_cairo_dock_applet_iapplet_on_reload_module, data);
	g_object_unref (data[0]);
	g_object_unref (data[1]);
	g_free (data[2]);
	g_free (data);
}

void
cairo_dock_applet_isub_applet_SetQuickInfo (CairoDockAppletISubApplet* self,
                                            const gchar* cQuickInfo,
                                            const gchar* cIconID,
                                            GError** error)
{
	CairoDockAppletISubAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_ISUB_APPLET_GET_INTERFACE (self);
	if (_iface_->SetQuickInfo) {
		_iface_->SetQuickInfo (self, cQuickInfo, cIconID, error);
	}
}

void
cairo_dock_applet_isub_applet_SetLabel (CairoDockAppletISubApplet* self,
                                        const gchar* cLabel,
                                        const gchar* cIconID,
                                        GError** error)
{
	CairoDockAppletISubAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_ISUB_APPLET_GET_INTERFACE (self);
	if (_iface_->SetLabel) {
		_iface_->SetLabel (self, cLabel, cIconID, error);
	}
}

void
cairo_dock_applet_isub_applet_SetIcon (CairoDockAppletISubApplet* self,
                                       const gchar* cImage,
                                       const gchar* cIconID,
                                       GError** error)
{
	CairoDockAppletISubAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_ISUB_APPLET_GET_INTERFACE (self);
	if (_iface_->SetIcon) {
		_iface_->SetIcon (self, cImage, cIconID, error);
	}
}

void
cairo_dock_applet_isub_applet_SetEmblem (CairoDockAppletISubApplet* self,
                                         const gchar* cImage,
                                         gint iPosition,
                                         const gchar* cIconID,
                                         GError** error)
{
	CairoDockAppletISubAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_ISUB_APPLET_GET_INTERFACE (self);
	if (_iface_->SetEmblem) {
		_iface_->SetEmblem (self, cImage, iPosition, cIconID, error);
	}
}

void
cairo_dock_applet_isub_applet_Animate (CairoDockAppletISubApplet* self,
                                       const gchar* cAnimation,
                                       gint iNbRounds,
                                       const gchar* cIconID,
                                       GError** error)
{
	CairoDockAppletISubAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_ISUB_APPLET_GET_INTERFACE (self);
	if (_iface_->Animate) {
		_iface_->Animate (self, cAnimation, iNbRounds, cIconID, error);
	}
}

void
cairo_dock_applet_isub_applet_ShowDialog (CairoDockAppletISubApplet* self,
                                          const gchar* message,
                                          gint iDuration,
                                          const gchar* cIconID,
                                          GError** error)
{
	CairoDockAppletISubAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_ISUB_APPLET_GET_INTERFACE (self);
	if (_iface_->ShowDialog) {
		_iface_->ShowDialog (self, message, iDuration, cIconID, error);
	}
}

void
cairo_dock_applet_isub_applet_AddSubIcons (CairoDockAppletISubApplet* self,
                                           gchar** pIconFields,
                                           gint pIconFields_length1,
                                           GError** error)
{
	CairoDockAppletISubAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_ISUB_APPLET_GET_INTERFACE (self);
	if (_iface_->AddSubIcons) {
		_iface_->AddSubIcons (self, pIconFields, pIconFields_length1, error);
	}
}

void
cairo_dock_applet_isub_applet_RemoveSubIcon (CairoDockAppletISubApplet* self,
                                             const gchar* cIconID,
                                             GError** error)
{
	CairoDockAppletISubAppletIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = CAIRO_DOCK_APPLET_ISUB_APPLET_GET_INTERFACE (self);
	if (_iface_->RemoveSubIcon) {
		_iface_->RemoveSubIcon (self, cIconID, error);
	}
}

static void
g_cclosure_user_marshal_VOID__INT_STRING (GClosure * closure,
                                          GValue * return_value,
                                          guint n_param_values,
                                          const GValue * param_values,
                                          gpointer invocation_hint,
                                          gpointer marshal_data)
{
	typedef void (*GMarshalFunc_VOID__INT_STRING) (gpointer data1, gint arg_1, const char* arg_2, gpointer data2);
	register GMarshalFunc_VOID__INT_STRING 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__INT_STRING) (marshal_data ? marshal_data : cc->callback);
	callback (data1, g_value_get_int (param_values + 1), g_value_get_string (param_values + 2), data2);
}

static void
g_cclosure_user_marshal_VOID__BOOLEAN_STRING (GClosure * closure,
                                              GValue * return_value,
                                              guint n_param_values,
                                              const GValue * param_values,
                                              gpointer invocation_hint,
                                              gpointer marshal_data)
{
	typedef void (*GMarshalFunc_VOID__BOOLEAN_STRING) (gpointer data1, gboolean arg_1, const char* arg_2, gpointer data2);
	register GMarshalFunc_VOID__BOOLEAN_STRING 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__BOOLEAN_STRING) (marshal_data ? marshal_data : cc->callback);
	callback (data1, g_value_get_boolean (param_values + 1), g_value_get_string (param_values + 2), data2);
}

static void
g_cclosure_user_marshal_VOID__STRING_STRING (GClosure * closure,
                                             GValue * return_value,
                                             guint n_param_values,
                                             const GValue * param_values,
                                             gpointer invocation_hint,
                                             gpointer marshal_data)
{
	typedef void (*GMarshalFunc_VOID__STRING_STRING) (gpointer data1, const char* arg_1, const char* arg_2, gpointer data2);
	register GMarshalFunc_VOID__STRING_STRING 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__STRING_STRING) (marshal_data ? marshal_data : cc->callback);
	callback (data1, g_value_get_string (param_values + 1), g_value_get_string (param_values + 2), data2);
}

static void
cairo_dock_applet_isub_applet_default_init (CairoDockAppletISubAppletIface * iface,
                                            gpointer iface_data)
{
	cairo_dock_applet_isub_applet_signals[CAIRO_DOCK_APPLET_ISUB_APPLET_ON_CLICK_SUB_ICON_SIGNAL] = g_signal_new ("on-click-sub-icon", CAIRO_DOCK_APPLET_TYPE_ISUB_APPLET, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__INT_STRING, G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_STRING);
	cairo_dock_applet_isub_applet_signals[CAIRO_DOCK_APPLET_ISUB_APPLET_ON_MIDDLE_CLICK_SUB_ICON_SIGNAL] = g_signal_new ("on-middle-click-sub-icon", CAIRO_DOCK_APPLET_TYPE_ISUB_APPLET, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
	cairo_dock_applet_isub_applet_signals[CAIRO_DOCK_APPLET_ISUB_APPLET_ON_SCROLL_SUB_ICON_SIGNAL] = g_signal_new ("on-scroll-sub-icon", CAIRO_DOCK_APPLET_TYPE_ISUB_APPLET, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__BOOLEAN_STRING, G_TYPE_NONE, 2, G_TYPE_BOOLEAN, G_TYPE_STRING);
	cairo_dock_applet_isub_applet_signals[CAIRO_DOCK_APPLET_ISUB_APPLET_ON_DROP_DATA_SUB_ICON_SIGNAL] = g_signal_new ("on-drop-data-sub-icon", CAIRO_DOCK_APPLET_TYPE_ISUB_APPLET, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_STRING, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_STRING);
	cairo_dock_applet_isub_applet_signals[CAIRO_DOCK_APPLET_ISUB_APPLET_ON_BUILD_MENU_SUB_ICON_SIGNAL] = g_signal_new ("on-build-menu-sub-icon", CAIRO_DOCK_APPLET_TYPE_ISUB_APPLET, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
}

static GType
cairo_dock_applet_isub_applet_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (CairoDockAppletISubAppletIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) cairo_dock_applet_isub_applet_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType cairo_dock_applet_isub_applet_type_id;
	cairo_dock_applet_isub_applet_type_id = g_type_register_static (G_TYPE_INTERFACE, "CairoDockAppletISubApplet", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (cairo_dock_applet_isub_applet_type_id, G_TYPE_OBJECT);
	g_type_set_qdata (cairo_dock_applet_isub_applet_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) cairo_dock_applet_isub_applet_proxy_get_type);
	g_type_set_qdata (cairo_dock_applet_isub_applet_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "org.cairodock.CairoDock.subapplet");
	g_type_set_qdata (cairo_dock_applet_isub_applet_type_id, g_quark_from_static_string ("vala-dbus-interface-info"), (void*) (&_cairo_dock_applet_isub_applet_dbus_interface_info));
	g_type_set_qdata (cairo_dock_applet_isub_applet_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) cairo_dock_applet_isub_applet_register_object);
	return cairo_dock_applet_isub_applet_type_id;
}

GType
cairo_dock_applet_isub_applet_get_type (void)
{
	static volatile gsize cairo_dock_applet_isub_applet_type_id__once = 0;
	if (g_once_init_enter (&cairo_dock_applet_isub_applet_type_id__once)) {
		GType cairo_dock_applet_isub_applet_type_id;
		cairo_dock_applet_isub_applet_type_id = cairo_dock_applet_isub_applet_get_type_once ();
		g_once_init_leave (&cairo_dock_applet_isub_applet_type_id__once, cairo_dock_applet_isub_applet_type_id);
	}
	return cairo_dock_applet_isub_applet_type_id__once;
}

G_DEFINE_TYPE_EXTENDED (CairoDockAppletISubAppletProxy, cairo_dock_applet_isub_applet_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (CAIRO_DOCK_APPLET_TYPE_ISUB_APPLET, cairo_dock_applet_isub_applet_proxy_cairo_dock_applet_isub_applet_interface_init) )
static void
cairo_dock_applet_isub_applet_proxy_class_init (CairoDockAppletISubAppletProxyClass* klass)
{
	G_DBUS_PROXY_CLASS (klass)->g_signal = cairo_dock_applet_isub_applet_proxy_g_signal;
}

static void
_dbus_handle_cairo_dock_applet_isub_applet_on_click_sub_icon (CairoDockAppletISubApplet* self,
                                                              GVariant* parameters)
{
	GVariantIter _arguments_iter;
	gint iState = 0;
	GVariant* _tmp84_;
	gchar* cIconID = NULL;
	GVariant* _tmp85_;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp84_ = g_variant_iter_next_value (&_arguments_iter);
	iState = g_variant_get_int32 (_tmp84_);
	g_variant_unref (_tmp84_);
	_tmp85_ = g_variant_iter_next_value (&_arguments_iter);
	cIconID = g_variant_dup_string (_tmp85_, NULL);
	g_variant_unref (_tmp85_);
	g_signal_emit_by_name (self, "on-click-sub-icon", iState, cIconID);
	_g_free0 (cIconID);
}

static void
_dbus_handle_cairo_dock_applet_isub_applet_on_middle_click_sub_icon (CairoDockAppletISubApplet* self,
                                                                     GVariant* parameters)
{
	GVariantIter _arguments_iter;
	gchar* cIconID = NULL;
	GVariant* _tmp86_;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp86_ = g_variant_iter_next_value (&_arguments_iter);
	cIconID = g_variant_dup_string (_tmp86_, NULL);
	g_variant_unref (_tmp86_);
	g_signal_emit_by_name (self, "on-middle-click-sub-icon", cIconID);
	_g_free0 (cIconID);
}

static void
_dbus_handle_cairo_dock_applet_isub_applet_on_scroll_sub_icon (CairoDockAppletISubApplet* self,
                                                               GVariant* parameters)
{
	GVariantIter _arguments_iter;
	gboolean bScrollUp = FALSE;
	GVariant* _tmp87_;
	gchar* cIconID = NULL;
	GVariant* _tmp88_;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp87_ = g_variant_iter_next_value (&_arguments_iter);
	bScrollUp = g_variant_get_boolean (_tmp87_);
	g_variant_unref (_tmp87_);
	_tmp88_ = g_variant_iter_next_value (&_arguments_iter);
	cIconID = g_variant_dup_string (_tmp88_, NULL);
	g_variant_unref (_tmp88_);
	g_signal_emit_by_name (self, "on-scroll-sub-icon", bScrollUp, cIconID);
	_g_free0 (cIconID);
}

static void
_dbus_handle_cairo_dock_applet_isub_applet_on_drop_data_sub_icon (CairoDockAppletISubApplet* self,
                                                                  GVariant* parameters)
{
	GVariantIter _arguments_iter;
	gchar* cReceivedData = NULL;
	GVariant* _tmp89_;
	gchar* cIconID = NULL;
	GVariant* _tmp90_;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp89_ = g_variant_iter_next_value (&_arguments_iter);
	cReceivedData = g_variant_dup_string (_tmp89_, NULL);
	g_variant_unref (_tmp89_);
	_tmp90_ = g_variant_iter_next_value (&_arguments_iter);
	cIconID = g_variant_dup_string (_tmp90_, NULL);
	g_variant_unref (_tmp90_);
	g_signal_emit_by_name (self, "on-drop-data-sub-icon", cReceivedData, cIconID);
	_g_free0 (cReceivedData);
	_g_free0 (cIconID);
}

static void
_dbus_handle_cairo_dock_applet_isub_applet_on_build_menu_sub_icon (CairoDockAppletISubApplet* self,
                                                                   GVariant* parameters)
{
	GVariantIter _arguments_iter;
	gchar* cIconID = NULL;
	GVariant* _tmp91_;
	g_variant_iter_init (&_arguments_iter, parameters);
	_tmp91_ = g_variant_iter_next_value (&_arguments_iter);
	cIconID = g_variant_dup_string (_tmp91_, NULL);
	g_variant_unref (_tmp91_);
	g_signal_emit_by_name (self, "on-build-menu-sub-icon", cIconID);
	_g_free0 (cIconID);
}

static void
cairo_dock_applet_isub_applet_proxy_g_signal (GDBusProxy* proxy,
                                              const gchar* sender_name,
                                              const gchar* signal_name,
                                              GVariant* parameters)
{
	if (strcmp (signal_name, "on_clickSubIcon") == 0) {
		_dbus_handle_cairo_dock_applet_isub_applet_on_click_sub_icon ((CairoDockAppletISubApplet*) proxy, parameters);
	} else if (strcmp (signal_name, "on_middle_clickSubIcon") == 0) {
		_dbus_handle_cairo_dock_applet_isub_applet_on_middle_click_sub_icon ((CairoDockAppletISubApplet*) proxy, parameters);
	} else if (strcmp (signal_name, "on_scrollSubIcon") == 0) {
		_dbus_handle_cairo_dock_applet_isub_applet_on_scroll_sub_icon ((CairoDockAppletISubApplet*) proxy, parameters);
	} else if (strcmp (signal_name, "on_drop_dataSubIcon") == 0) {
		_dbus_handle_cairo_dock_applet_isub_applet_on_drop_data_sub_icon ((CairoDockAppletISubApplet*) proxy, parameters);
	} else if (strcmp (signal_name, "on_build_menuSubIcon") == 0) {
		_dbus_handle_cairo_dock_applet_isub_applet_on_build_menu_sub_icon ((CairoDockAppletISubApplet*) proxy, parameters);
	}
}

static void
cairo_dock_applet_isub_applet_proxy_init (CairoDockAppletISubAppletProxy* self)
{
	g_dbus_proxy_set_interface_info (G_DBUS_PROXY (self), (GDBusInterfaceInfo *) (&_cairo_dock_applet_isub_applet_dbus_interface_info));
}

static void
cairo_dock_applet_isub_applet_proxy_SetQuickInfo (CairoDockAppletISubApplet* self,
                                                  const gchar* cQuickInfo,
                                                  const gchar* cIconID,
                                                  GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.subapplet", "SetQuickInfo");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cQuickInfo));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cIconID));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_isub_applet_proxy_SetLabel (CairoDockAppletISubApplet* self,
                                              const gchar* cLabel,
                                              const gchar* cIconID,
                                              GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.subapplet", "SetLabel");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cLabel));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cIconID));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_isub_applet_proxy_SetIcon (CairoDockAppletISubApplet* self,
                                             const gchar* cImage,
                                             const gchar* cIconID,
                                             GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.subapplet", "SetIcon");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cImage));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cIconID));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_isub_applet_proxy_SetEmblem (CairoDockAppletISubApplet* self,
                                               const gchar* cImage,
                                               gint iPosition,
                                               const gchar* cIconID,
                                               GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.subapplet", "SetEmblem");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cImage));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (iPosition));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cIconID));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_isub_applet_proxy_Animate (CairoDockAppletISubApplet* self,
                                             const gchar* cAnimation,
                                             gint iNbRounds,
                                             const gchar* cIconID,
                                             GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.subapplet", "Animate");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cAnimation));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (iNbRounds));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cIconID));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_isub_applet_proxy_ShowDialog (CairoDockAppletISubApplet* self,
                                                const gchar* message,
                                                gint iDuration,
                                                const gchar* cIconID,
                                                GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.subapplet", "ShowDialog");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (message));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (iDuration));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cIconID));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_isub_applet_proxy_AddSubIcons (CairoDockAppletISubApplet* self,
                                                 gchar** pIconFields,
                                                 gint pIconFields_length1,
                                                 GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	gchar** _tmp92_;
	GVariantBuilder _tmp93_;
	gint _tmp94_;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.subapplet", "AddSubIcons");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	_tmp92_ = pIconFields;
	g_variant_builder_init (&_tmp93_, G_VARIANT_TYPE ("as"));
	for (_tmp94_ = 0; _tmp94_ < pIconFields_length1; _tmp94_++) {
		g_variant_builder_add_value (&_tmp93_, g_variant_new_string (*_tmp92_));
		_tmp92_++;
	}
	g_variant_builder_add_value (&_arguments_builder, g_variant_builder_end (&_tmp93_));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_isub_applet_proxy_RemoveSubIcon (CairoDockAppletISubApplet* self,
                                                   const gchar* cIconID,
                                                   GError** error)
{
	GDBusMessage *_message;
	GVariant *_arguments;
	GVariantBuilder _arguments_builder;
	GDBusMessage *_reply_message;
	G_IO_ERROR;
	_message = g_dbus_message_new_method_call (g_dbus_proxy_get_name ((GDBusProxy *) self), g_dbus_proxy_get_object_path ((GDBusProxy *) self), "org.cairodock.CairoDock.subapplet", "RemoveSubIcon");
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cIconID));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_message_set_body (_message, _arguments);
	_reply_message = g_dbus_connection_send_message_with_reply_sync (g_dbus_proxy_get_connection ((GDBusProxy *) self), _message, G_DBUS_SEND_MESSAGE_FLAGS_NONE, g_dbus_proxy_get_default_timeout ((GDBusProxy *) self), NULL, NULL, error);
	g_object_unref (_message);
	if (!_reply_message) {
		return;
	}
	if (g_dbus_message_to_gerror (_reply_message, error)) {
		g_object_unref (_reply_message);
		return;
	}
	g_object_unref (_reply_message);
}

static void
cairo_dock_applet_isub_applet_proxy_cairo_dock_applet_isub_applet_interface_init (CairoDockAppletISubAppletIface* iface)
{
	iface->SetQuickInfo = cairo_dock_applet_isub_applet_proxy_SetQuickInfo;
	iface->SetLabel = cairo_dock_applet_isub_applet_proxy_SetLabel;
	iface->SetIcon = cairo_dock_applet_isub_applet_proxy_SetIcon;
	iface->SetEmblem = cairo_dock_applet_isub_applet_proxy_SetEmblem;
	iface->Animate = cairo_dock_applet_isub_applet_proxy_Animate;
	iface->ShowDialog = cairo_dock_applet_isub_applet_proxy_ShowDialog;
	iface->AddSubIcons = cairo_dock_applet_isub_applet_proxy_AddSubIcons;
	iface->RemoveSubIcon = cairo_dock_applet_isub_applet_proxy_RemoveSubIcon;
}

static void
_dbus_cairo_dock_applet_isub_applet_SetQuickInfo (CairoDockAppletISubApplet* self,
                                                  GVariant* _parameters_,
                                                  GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* cQuickInfo = NULL;
	GVariant* _tmp95_;
	gchar* cIconID = NULL;
	GVariant* _tmp96_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp95_ = g_variant_iter_next_value (&_arguments_iter);
	cQuickInfo = g_variant_dup_string (_tmp95_, NULL);
	g_variant_unref (_tmp95_);
	_tmp96_ = g_variant_iter_next_value (&_arguments_iter);
	cIconID = g_variant_dup_string (_tmp96_, NULL);
	g_variant_unref (_tmp96_);
	cairo_dock_applet_isub_applet_SetQuickInfo (self, cQuickInfo, cIconID, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	_g_free0 (cQuickInfo);
	_g_free0 (cIconID);
	;
}

static void
_dbus_cairo_dock_applet_isub_applet_SetLabel (CairoDockAppletISubApplet* self,
                                              GVariant* _parameters_,
                                              GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* cLabel = NULL;
	GVariant* _tmp97_;
	gchar* cIconID = NULL;
	GVariant* _tmp98_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp97_ = g_variant_iter_next_value (&_arguments_iter);
	cLabel = g_variant_dup_string (_tmp97_, NULL);
	g_variant_unref (_tmp97_);
	_tmp98_ = g_variant_iter_next_value (&_arguments_iter);
	cIconID = g_variant_dup_string (_tmp98_, NULL);
	g_variant_unref (_tmp98_);
	cairo_dock_applet_isub_applet_SetLabel (self, cLabel, cIconID, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	_g_free0 (cLabel);
	_g_free0 (cIconID);
	;
}

static void
_dbus_cairo_dock_applet_isub_applet_SetIcon (CairoDockAppletISubApplet* self,
                                             GVariant* _parameters_,
                                             GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* cImage = NULL;
	GVariant* _tmp99_;
	gchar* cIconID = NULL;
	GVariant* _tmp100_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp99_ = g_variant_iter_next_value (&_arguments_iter);
	cImage = g_variant_dup_string (_tmp99_, NULL);
	g_variant_unref (_tmp99_);
	_tmp100_ = g_variant_iter_next_value (&_arguments_iter);
	cIconID = g_variant_dup_string (_tmp100_, NULL);
	g_variant_unref (_tmp100_);
	cairo_dock_applet_isub_applet_SetIcon (self, cImage, cIconID, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	_g_free0 (cImage);
	_g_free0 (cIconID);
	;
}

static void
_dbus_cairo_dock_applet_isub_applet_SetEmblem (CairoDockAppletISubApplet* self,
                                               GVariant* _parameters_,
                                               GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* cImage = NULL;
	GVariant* _tmp101_;
	gint iPosition = 0;
	GVariant* _tmp102_;
	gchar* cIconID = NULL;
	GVariant* _tmp103_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp101_ = g_variant_iter_next_value (&_arguments_iter);
	cImage = g_variant_dup_string (_tmp101_, NULL);
	g_variant_unref (_tmp101_);
	_tmp102_ = g_variant_iter_next_value (&_arguments_iter);
	iPosition = g_variant_get_int32 (_tmp102_);
	g_variant_unref (_tmp102_);
	_tmp103_ = g_variant_iter_next_value (&_arguments_iter);
	cIconID = g_variant_dup_string (_tmp103_, NULL);
	g_variant_unref (_tmp103_);
	cairo_dock_applet_isub_applet_SetEmblem (self, cImage, iPosition, cIconID, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	_g_free0 (cImage);
	_g_free0 (cIconID);
	;
}

static void
_dbus_cairo_dock_applet_isub_applet_Animate (CairoDockAppletISubApplet* self,
                                             GVariant* _parameters_,
                                             GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* cAnimation = NULL;
	GVariant* _tmp104_;
	gint iNbRounds = 0;
	GVariant* _tmp105_;
	gchar* cIconID = NULL;
	GVariant* _tmp106_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp104_ = g_variant_iter_next_value (&_arguments_iter);
	cAnimation = g_variant_dup_string (_tmp104_, NULL);
	g_variant_unref (_tmp104_);
	_tmp105_ = g_variant_iter_next_value (&_arguments_iter);
	iNbRounds = g_variant_get_int32 (_tmp105_);
	g_variant_unref (_tmp105_);
	_tmp106_ = g_variant_iter_next_value (&_arguments_iter);
	cIconID = g_variant_dup_string (_tmp106_, NULL);
	g_variant_unref (_tmp106_);
	cairo_dock_applet_isub_applet_Animate (self, cAnimation, iNbRounds, cIconID, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	_g_free0 (cAnimation);
	_g_free0 (cIconID);
	;
}

static void
_dbus_cairo_dock_applet_isub_applet_ShowDialog (CairoDockAppletISubApplet* self,
                                                GVariant* _parameters_,
                                                GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* message = NULL;
	GVariant* _tmp107_;
	gint iDuration = 0;
	GVariant* _tmp108_;
	gchar* cIconID = NULL;
	GVariant* _tmp109_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp107_ = g_variant_iter_next_value (&_arguments_iter);
	message = g_variant_dup_string (_tmp107_, NULL);
	g_variant_unref (_tmp107_);
	_tmp108_ = g_variant_iter_next_value (&_arguments_iter);
	iDuration = g_variant_get_int32 (_tmp108_);
	g_variant_unref (_tmp108_);
	_tmp109_ = g_variant_iter_next_value (&_arguments_iter);
	cIconID = g_variant_dup_string (_tmp109_, NULL);
	g_variant_unref (_tmp109_);
	cairo_dock_applet_isub_applet_ShowDialog (self, message, iDuration, cIconID, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	_g_free0 (message);
	_g_free0 (cIconID);
	;
}

static void
_dbus_cairo_dock_applet_isub_applet_AddSubIcons (CairoDockAppletISubApplet* self,
                                                 GVariant* _parameters_,
                                                 GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar** pIconFields = NULL;
	gint pIconFields_length1 = 0;
	GVariant* _tmp110_;
	gchar** _tmp111_;
	gint _tmp111__length;
	gint _tmp111__size;
	gint _tmp111__length1;
	GVariantIter _tmp112_;
	GVariant* _tmp113_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp110_ = g_variant_iter_next_value (&_arguments_iter);
	_tmp111_ = g_new (gchar*, 5);
	_tmp111__length = 0;
	_tmp111__size = 4;
	_tmp111__length1 = 0;
	g_variant_iter_init (&_tmp112_, _tmp110_);
	for (; (_tmp113_ = g_variant_iter_next_value (&_tmp112_)) != NULL; _tmp111__length1++) {
		if (_tmp111__size == _tmp111__length) {
			_tmp111__size = 2 * _tmp111__size;
			_tmp111_ = g_renew (gchar*, _tmp111_, _tmp111__size + 1);
		}
		_tmp111_[_tmp111__length++] = g_variant_dup_string (_tmp113_, NULL);
		g_variant_unref (_tmp113_);
	}
	pIconFields_length1 = _tmp111__length1;
	_tmp111_[_tmp111__length] = NULL;
	pIconFields = _tmp111_;
	g_variant_unref (_tmp110_);
	cairo_dock_applet_isub_applet_AddSubIcons (self, pIconFields, pIconFields_length1, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	pIconFields = (_vala_array_free (pIconFields, pIconFields_length1, (GDestroyNotify) g_free), NULL);
	;
}

static void
_dbus_cairo_dock_applet_isub_applet_RemoveSubIcon (CairoDockAppletISubApplet* self,
                                                   GVariant* _parameters_,
                                                   GDBusMethodInvocation* invocation)
{
	GError* error = NULL;
	GVariantIter _arguments_iter;
	gchar* cIconID = NULL;
	GVariant* _tmp114_;
	GDBusMessage* _reply_message = NULL;
	GVariant* _reply;
	GVariantBuilder _reply_builder;
	g_variant_iter_init (&_arguments_iter, _parameters_);
	_tmp114_ = g_variant_iter_next_value (&_arguments_iter);
	cIconID = g_variant_dup_string (_tmp114_, NULL);
	g_variant_unref (_tmp114_);
	cairo_dock_applet_isub_applet_RemoveSubIcon (self, cIconID, &error);
	if (error) {
		g_dbus_method_invocation_take_error (invocation, error);
		goto _error;
	}
	_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);
	_error:
	_g_free0 (cIconID);
	;
}

static void
cairo_dock_applet_isub_applet_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, "SetQuickInfo") == 0) {
		_dbus_cairo_dock_applet_isub_applet_SetQuickInfo (object, parameters, invocation);
	} else if (strcmp (method_name, "SetLabel") == 0) {
		_dbus_cairo_dock_applet_isub_applet_SetLabel (object, parameters, invocation);
	} else if (strcmp (method_name, "SetIcon") == 0) {
		_dbus_cairo_dock_applet_isub_applet_SetIcon (object, parameters, invocation);
	} else if (strcmp (method_name, "SetEmblem") == 0) {
		_dbus_cairo_dock_applet_isub_applet_SetEmblem (object, parameters, invocation);
	} else if (strcmp (method_name, "Animate") == 0) {
		_dbus_cairo_dock_applet_isub_applet_Animate (object, parameters, invocation);
	} else if (strcmp (method_name, "ShowDialog") == 0) {
		_dbus_cairo_dock_applet_isub_applet_ShowDialog (object, parameters, invocation);
	} else if (strcmp (method_name, "AddSubIcons") == 0) {
		_dbus_cairo_dock_applet_isub_applet_AddSubIcons (object, parameters, invocation);
	} else if (strcmp (method_name, "RemoveSubIcon") == 0) {
		_dbus_cairo_dock_applet_isub_applet_RemoveSubIcon (object, parameters, invocation);
	} else {
		g_object_unref (invocation);
	}
}

static GVariant*
cairo_dock_applet_isub_applet_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)
{
	return NULL;
}

static gboolean
cairo_dock_applet_isub_applet_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)
{
	return FALSE;
}

static void
_dbus_cairo_dock_applet_isub_applet_on_click_sub_icon (GObject* _sender,
                                                       gint iState,
                                                       const gchar* cIconID,
                                                       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 (iState));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cIconID));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.cairodock.CairoDock.subapplet", "on_clickSubIcon", _arguments, NULL);
}

static void
_dbus_cairo_dock_applet_isub_applet_on_middle_click_sub_icon (GObject* _sender,
                                                              const gchar* cIconID,
                                                              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_string (cIconID));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.cairodock.CairoDock.subapplet", "on_middle_clickSubIcon", _arguments, NULL);
}

static void
_dbus_cairo_dock_applet_isub_applet_on_scroll_sub_icon (GObject* _sender,
                                                        gboolean bScrollUp,
                                                        const gchar* cIconID,
                                                        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_boolean (bScrollUp));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cIconID));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.cairodock.CairoDock.subapplet", "on_scrollSubIcon", _arguments, NULL);
}

static void
_dbus_cairo_dock_applet_isub_applet_on_drop_data_sub_icon (GObject* _sender,
                                                           const gchar* cReceivedData,
                                                           const gchar* cIconID,
                                                           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_string (cReceivedData));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (cIconID));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.cairodock.CairoDock.subapplet", "on_drop_dataSubIcon", _arguments, NULL);
}

static void
_dbus_cairo_dock_applet_isub_applet_on_build_menu_sub_icon (GObject* _sender,
                                                            const gchar* cIconID,
                                                            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_string (cIconID));
	_arguments = g_variant_builder_end (&_arguments_builder);
	g_dbus_connection_emit_signal (_connection, NULL, _path, "org.cairodock.CairoDock.subapplet", "on_build_menuSubIcon", _arguments, NULL);
}

guint
cairo_dock_applet_isub_applet_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 *) (&_cairo_dock_applet_isub_applet_dbus_interface_info), &_cairo_dock_applet_isub_applet_dbus_interface_vtable, data, _cairo_dock_applet_isub_applet_unregister_object, error);
	if (!result) {
		return 0;
	}
	g_signal_connect (object, "on-click-sub-icon", (GCallback) _dbus_cairo_dock_applet_isub_applet_on_click_sub_icon, data);
	g_signal_connect (object, "on-middle-click-sub-icon", (GCallback) _dbus_cairo_dock_applet_isub_applet_on_middle_click_sub_icon, data);
	g_signal_connect (object, "on-scroll-sub-icon", (GCallback) _dbus_cairo_dock_applet_isub_applet_on_scroll_sub_icon, data);
	g_signal_connect (object, "on-drop-data-sub-icon", (GCallback) _dbus_cairo_dock_applet_isub_applet_on_drop_data_sub_icon, data);
	g_signal_connect (object, "on-build-menu-sub-icon", (GCallback) _dbus_cairo_dock_applet_isub_applet_on_build_menu_sub_icon, data);
	return result;
}

static void
_cairo_dock_applet_isub_applet_unregister_object (gpointer user_data)
{
	gpointer* data;
	data = user_data;
	g_signal_handlers_disconnect_by_func (data[0], _dbus_cairo_dock_applet_isub_applet_on_click_sub_icon, data);
	g_signal_handlers_disconnect_by_func (data[0], _dbus_cairo_dock_applet_isub_applet_on_middle_click_sub_icon, data);
	g_signal_handlers_disconnect_by_func (data[0], _dbus_cairo_dock_applet_isub_applet_on_scroll_sub_icon, data);
	g_signal_handlers_disconnect_by_func (data[0], _dbus_cairo_dock_applet_isub_applet_on_drop_data_sub_icon, data);
	g_signal_handlers_disconnect_by_func (data[0], _dbus_cairo_dock_applet_isub_applet_on_build_menu_sub_icon, data);
	g_object_unref (data[0]);
	g_object_unref (data[1]);
	g_free (data[2]);
	g_free (data);
}

static inline gpointer
cairo_dock_applet_cd_applet_get_instance_private (CairoDockAppletCDApplet* self)
{
	return G_STRUCT_MEMBER_P (self, CairoDockAppletCDApplet_private_offset);
}

static GType
cairo_dock_applet_cd_applet_screen_position_get_type_once (void)
{
	static const GEnumValue values[] = {{CAIRO_DOCK_APPLET_CD_APPLET_SCREEN_POSITION_BOTTOM, "CAIRO_DOCK_APPLET_CD_APPLET_SCREEN_POSITION_BOTTOM", "bottom"}, {CAIRO_DOCK_APPLET_CD_APPLET_SCREEN_POSITION_TOP, "CAIRO_DOCK_APPLET_CD_APPLET_SCREEN_POSITION_TOP", "top"}, {CAIRO_DOCK_APPLET_CD_APPLET_SCREEN_POSITION_RIGHT, "CAIRO_DOCK_APPLET_CD_APPLET_SCREEN_POSITION_RIGHT", "right"}, {CAIRO_DOCK_APPLET_CD_APPLET_SCREEN_POSITION_LEFT, "CAIRO_DOCK_APPLET_CD_APPLET_SCREEN_POSITION_LEFT", "left"}, {0, NULL, NULL}};
	GType cairo_dock_applet_cd_applet_screen_position_type_id;
	cairo_dock_applet_cd_applet_screen_position_type_id = g_enum_register_static ("CairoDockAppletCDAppletScreenPosition", values);
	return cairo_dock_applet_cd_applet_screen_position_type_id;
}

GType
cairo_dock_applet_cd_applet_screen_position_get_type (void)
{
	static volatile gsize cairo_dock_applet_cd_applet_screen_position_type_id__once = 0;
	if (g_once_init_enter (&cairo_dock_applet_cd_applet_screen_position_type_id__once)) {
		GType cairo_dock_applet_cd_applet_screen_position_type_id;
		cairo_dock_applet_cd_applet_screen_position_type_id = cairo_dock_applet_cd_applet_screen_position_get_type_once ();
		g_once_init_leave (&cairo_dock_applet_cd_applet_screen_position_type_id__once, cairo_dock_applet_cd_applet_screen_position_type_id);
	}
	return cairo_dock_applet_cd_applet_screen_position_type_id__once;
}

static GType
cairo_dock_applet_cd_applet_container_type_get_type_once (void)
{
	static const GEnumValue values[] = {{CAIRO_DOCK_APPLET_CD_APPLET_CONTAINER_TYPE_DOCK, "CAIRO_DOCK_APPLET_CD_APPLET_CONTAINER_TYPE_DOCK", "dock"}, {CAIRO_DOCK_APPLET_CD_APPLET_CONTAINER_TYPE_DESKLET, "CAIRO_DOCK_APPLET_CD_APPLET_CONTAINER_TYPE_DESKLET", "desklet"}, {0, NULL, NULL}};
	GType cairo_dock_applet_cd_applet_container_type_type_id;
	cairo_dock_applet_cd_applet_container_type_type_id = g_enum_register_static ("CairoDockAppletCDAppletContainerType", values);
	return cairo_dock_applet_cd_applet_container_type_type_id;
}

GType
cairo_dock_applet_cd_applet_container_type_get_type (void)
{
	static volatile gsize cairo_dock_applet_cd_applet_container_type_type_id__once = 0;
	if (g_once_init_enter (&cairo_dock_applet_cd_applet_container_type_type_id__once)) {
		GType cairo_dock_applet_cd_applet_container_type_type_id;
		cairo_dock_applet_cd_applet_container_type_type_id = cairo_dock_applet_cd_applet_container_type_get_type_once ();
		g_once_init_leave (&cairo_dock_applet_cd_applet_container_type_type_id__once, cairo_dock_applet_cd_applet_container_type_type_id);
	}
	return cairo_dock_applet_cd_applet_container_type_type_id__once;
}

static GType
cairo_dock_applet_cd_applet_emblem_position_get_type_once (void)
{
	static const GEnumValue values[] = {{CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_TOP_LEFT, "CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_TOP_LEFT", "emblem-top-left"}, {CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_BOTTOM_RIGHT, "CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_BOTTOM_RIGHT", "emblem-bottom-right"}, {CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_BOTTOM_LEFT, "CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_BOTTOM_LEFT", "emblem-bottom-left"}, {CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_TOP_RIGHT, "CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_TOP_RIGHT", "emblem-top-right"}, {CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_MIDDLE, "CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_MIDDLE", "emblem-middle"}, {CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_BOTTOM, "CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_BOTTOM", "emblem-bottom"}, {CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_TOP, "CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_TOP", "emblem-top"}, {CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_RIGHT, "CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_RIGHT", "emblem-right"}, {CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_LEFT, "CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_POSITION_EMBLEM_LEFT", "emblem-left"}, {0, NULL, NULL}};
	GType cairo_dock_applet_cd_applet_emblem_position_type_id;
	cairo_dock_applet_cd_applet_emblem_position_type_id = g_enum_register_static ("CairoDockAppletCDAppletEmblemPosition", values);
	return cairo_dock_applet_cd_applet_emblem_position_type_id;
}

GType
cairo_dock_applet_cd_applet_emblem_position_get_type (void)
{
	static volatile gsize cairo_dock_applet_cd_applet_emblem_position_type_id__once = 0;
	if (g_once_init_enter (&cairo_dock_applet_cd_applet_emblem_position_type_id__once)) {
		GType cairo_dock_applet_cd_applet_emblem_position_type_id;
		cairo_dock_applet_cd_applet_emblem_position_type_id = cairo_dock_applet_cd_applet_emblem_position_get_type_once ();
		g_once_init_leave (&cairo_dock_applet_cd_applet_emblem_position_type_id__once, cairo_dock_applet_cd_applet_emblem_position_type_id);
	}
	return cairo_dock_applet_cd_applet_emblem_position_type_id__once;
}

static GType
cairo_dock_applet_cd_applet_emblem_modifier_get_type_once (void)
{
	static const GEnumValue values[] = {{CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_MODIFIER_EMBLEM_PERSISTENT, "CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_MODIFIER_EMBLEM_PERSISTENT", "emblem-persistent"}, {CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_MODIFIER_EMBLEM_PRINT, "CAIRO_DOCK_APPLET_CD_APPLET_EMBLEM_MODIFIER_EMBLEM_PRINT", "emblem-print"}, {0, NULL, NULL}};
	GType cairo_dock_applet_cd_applet_emblem_modifier_type_id;
	cairo_dock_applet_cd_applet_emblem_modifier_type_id = g_enum_register_static ("CairoDockAppletCDAppletEmblemModifier", values);
	return cairo_dock_applet_cd_applet_emblem_modifier_type_id;
}

GType
cairo_dock_applet_cd_applet_emblem_modifier_get_type (void)
{
	static volatile gsize cairo_dock_applet_cd_applet_emblem_modifier_type_id__once = 0;
	if (g_once_init_enter (&cairo_dock_applet_cd_applet_emblem_modifier_type_id__once)) {
		GType cairo_dock_applet_cd_applet_emblem_modifier_type_id;
		cairo_dock_applet_cd_applet_emblem_modifier_type_id = cairo_dock_applet_cd_applet_emblem_modifier_get_type_once ();
		g_once_init_leave (&cairo_dock_applet_cd_applet_emblem_modifier_type_id__once, cairo_dock_applet_cd_applet_emblem_modifier_type_id);
	}
	return cairo_dock_applet_cd_applet_emblem_modifier_type_id__once;
}

static GType
cairo_dock_applet_cd_applet_menu_item_type_get_type_once (void)
{
	static const GEnumValue values[] = {{CAIRO_DOCK_APPLET_CD_APPLET_MENU_ITEM_TYPE_MENU_ENTRY, "CAIRO_DOCK_APPLET_CD_APPLET_MENU_ITEM_TYPE_MENU_ENTRY", "menu-entry"}, {CAIRO_DOCK_APPLET_CD_APPLET_MENU_ITEM_TYPE_MENU_SUB_MENU, "CAIRO_DOCK_APPLET_CD_APPLET_MENU_ITEM_TYPE_MENU_SUB_MENU", "menu-sub-menu"}, {CAIRO_DOCK_APPLET_CD_APPLET_MENU_ITEM_TYPE_MENU_SEPARATOR, "CAIRO_DOCK_APPLET_CD_APPLET_MENU_ITEM_TYPE_MENU_SEPARATOR", "menu-separator"}, {CAIRO_DOCK_APPLET_CD_APPLET_MENU_ITEM_TYPE_MENU_CHECKBOX, "CAIRO_DOCK_APPLET_CD_APPLET_MENU_ITEM_TYPE_MENU_CHECKBOX", "menu-checkbox"}, {CAIRO_DOCK_APPLET_CD_APPLET_MENU_ITEM_TYPE_MENU_RADIO_BUTTON, "CAIRO_DOCK_APPLET_CD_APPLET_MENU_ITEM_TYPE_MENU_RADIO_BUTTON", "menu-radio-button"}, {0, NULL, NULL}};
	GType cairo_dock_applet_cd_applet_menu_item_type_type_id;
	cairo_dock_applet_cd_applet_menu_item_type_type_id = g_enum_register_static ("CairoDockAppletCDAppletMenuItemType", values);
	return cairo_dock_applet_cd_applet_menu_item_type_type_id;
}

GType
cairo_dock_applet_cd_applet_menu_item_type_get_type (void)
{
	static volatile gsize cairo_dock_applet_cd_applet_menu_item_type_type_id__once = 0;
	if (g_once_init_enter (&cairo_dock_applet_cd_applet_menu_item_type_type_id__once)) {
		GType cairo_dock_applet_cd_applet_menu_item_type_type_id;
		cairo_dock_applet_cd_applet_menu_item_type_type_id = cairo_dock_applet_cd_applet_menu_item_type_get_type_once ();
		g_once_init_leave (&cairo_dock_applet_cd_applet_menu_item_type_type_id__once, cairo_dock_applet_cd_applet_menu_item_type_type_id);
	}
	return cairo_dock_applet_cd_applet_menu_item_type_type_id__once;
}

static GType
cairo_dock_applet_cd_applet_menu_item_id_get_type_once (void)
{
	static const GEnumValue values[] = {{CAIRO_DOCK_APPLET_CD_APPLET_MENU_ITEM_ID_MAIN_MENU_ID, "CAIRO_DOCK_APPLET_CD_APPLET_MENU_ITEM_ID_MAIN_MENU_ID", "main-menu-id"}, {0, NULL, NULL}};
	GType cairo_dock_applet_cd_applet_menu_item_id_type_id;
	cairo_dock_applet_cd_applet_menu_item_id_type_id = g_enum_register_static ("CairoDockAppletCDAppletMenuItemId", values);
	return cairo_dock_applet_cd_applet_menu_item_id_type_id;
}

GType
cairo_dock_applet_cd_applet_menu_item_id_get_type (void)
{
	static volatile gsize cairo_dock_applet_cd_applet_menu_item_id_type_id__once = 0;
	if (g_once_init_enter (&cairo_dock_applet_cd_applet_menu_item_id_type_id__once)) {
		GType cairo_dock_applet_cd_applet_menu_item_id_type_id;
		cairo_dock_applet_cd_applet_menu_item_id_type_id = cairo_dock_applet_cd_applet_menu_item_id_get_type_once ();
		g_once_init_leave (&cairo_dock_applet_cd_applet_menu_item_id_type_id__once, cairo_dock_applet_cd_applet_menu_item_id_type_id);
	}
	return cairo_dock_applet_cd_applet_menu_item_id_type_id__once;
}

static GType
cairo_dock_applet_cd_applet_dialog_key_get_type_once (void)
{
	static const GEnumValue values[] = {{CAIRO_DOCK_APPLET_CD_APPLET_DIALOG_KEY_DIALOG_KEY_ENTER, "CAIRO_DOCK_APPLET_CD_APPLET_DIALOG_KEY_DIALOG_KEY_ENTER", "dialog-key-enter"}, {CAIRO_DOCK_APPLET_CD_APPLET_DIALOG_KEY_DIALOG_KEY_ESCAPE, "CAIRO_DOCK_APPLET_CD_APPLET_DIALOG_KEY_DIALOG_KEY_ESCAPE", "dialog-key-escape"}, {0, NULL, NULL}};
	GType cairo_dock_applet_cd_applet_dialog_key_type_id;
	cairo_dock_applet_cd_applet_dialog_key_type_id = g_enum_register_static ("CairoDockAppletCDAppletDialogKey", values);
	return cairo_dock_applet_cd_applet_dialog_key_type_id;
}

GType
cairo_dock_applet_cd_applet_dialog_key_get_type (void)
{
	static volatile gsize cairo_dock_applet_cd_applet_dialog_key_type_id__once = 0;
	if (g_once_init_enter (&cairo_dock_applet_cd_applet_dialog_key_type_id__once)) {
		GType cairo_dock_applet_cd_applet_dialog_key_type_id;
		cairo_dock_applet_cd_applet_dialog_key_type_id = cairo_dock_applet_cd_applet_dialog_key_get_type_once ();
		g_once_init_leave (&cairo_dock_applet_cd_applet_dialog_key_type_id__once, cairo_dock_applet_cd_applet_dialog_key_type_id);
	}
	return cairo_dock_applet_cd_applet_dialog_key_type_id__once;
}

static glong
string_strnlen (gchar* str,
                glong maxlen)
{
	gchar* end = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	glong result;
	_tmp0_ = memchr (str, 0, (gsize) maxlen);
	end = _tmp0_;
	_tmp1_ = end;
	if (_tmp1_ == NULL) {
		result = maxlen;
		return result;
	} else {
		gchar* _tmp2_;
		_tmp2_ = end;
		result = (glong) (_tmp2_ - str);
		return result;
	}
}

static gchar*
string_substring (const gchar* self,
                  glong offset,
                  glong len)
{
	glong string_length = 0L;
	gboolean _tmp0_ = FALSE;
	gchar* _tmp3_;
	gchar* result;
	g_return_val_if_fail (self != NULL, NULL);
	if (offset >= ((glong) 0)) {
		_tmp0_ = len >= ((glong) 0);
	} else {
		_tmp0_ = FALSE;
	}
	if (_tmp0_) {
		string_length = string_strnlen ((gchar*) self, offset + len);
	} else {
		gint _tmp1_;
		gint _tmp2_;
		_tmp1_ = strlen (self);
		_tmp2_ = _tmp1_;
		string_length = (glong) _tmp2_;
	}
	if (offset < ((glong) 0)) {
		offset = string_length + offset;
		g_return_val_if_fail (offset >= ((glong) 0), NULL);
	} else {
		g_return_val_if_fail (offset <= string_length, NULL);
	}
	if (len < ((glong) 0)) {
		len = string_length - offset;
	}
	g_return_val_if_fail ((offset + len) <= string_length, NULL);
	_tmp3_ = g_strndup (((gchar*) self) + offset, (gsize) len);
	result = _tmp3_;
	return result;
}

CairoDockAppletCDApplet*
cairo_dock_applet_cd_applet_construct (GType object_type,
                                       gchar** argv,
                                       gint argv_length1)
{
	CairoDockAppletCDApplet * self = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	const gchar* _tmp2_;
	gchar* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	const gchar* _tmp6_;
	gchar* _tmp7_;
	const gchar* _tmp8_;
	gchar* _tmp9_;
	self = (CairoDockAppletCDApplet*) g_object_new (object_type, NULL);
	_tmp0_ = argv[0];
	_tmp1_ = string_substring (_tmp0_, (glong) 2, (glong) 999);
	_g_free0 (self->cAppletName);
	self->cAppletName = _tmp1_;
	_tmp2_ = argv[2];
	_tmp3_ = g_strdup (_tmp2_);
	_g_free0 (self->cBusPath);
	self->cBusPath = _tmp3_;
	_tmp4_ = argv[3];
	_tmp5_ = g_strdup (_tmp4_);
	_g_free0 (self->cConfFile);
	self->cConfFile = _tmp5_;
	_tmp6_ = argv[4];
	_tmp7_ = g_strdup (_tmp6_);
	_g_free0 (self->cRootDataDir);
	self->cRootDataDir = _tmp7_;
	_tmp8_ = argv[5];
	_tmp9_ = g_strdup (_tmp8_);
	_g_free0 (self->cParentAppName);
	self->cParentAppName = _tmp9_;
	_cairo_dock_applet_cd_applet_get_config (self);
	_cairo_dock_applet_cd_applet_connect_to_bus (self);
	_g_free0 (self->priv->_cMenuIconId);
	self->priv->_cMenuIconId = NULL;
	return self;
}

CairoDockAppletCDApplet*
cairo_dock_applet_cd_applet_new (gchar** argv,
                                 gint argv_length1)
{
	return cairo_dock_applet_cd_applet_construct (CAIRO_DOCK_APPLET_TYPE_CD_APPLET, argv, argv_length1);
}

void
cairo_dock_applet_cd_applet_run (CairoDockAppletCDApplet* self)
{
	GMainLoop* _tmp0_;
	GMainLoop* _tmp1_;
	g_return_if_fail (self != NULL);
	cairo_dock_applet_cd_applet_begin (self);
	_tmp0_ = g_main_loop_new (NULL, FALSE);
	_g_main_loop_unref0 (self->priv->loop);
	self->priv->loop = _tmp0_;
	_tmp1_ = self->priv->loop;
	g_main_loop_run (_tmp1_);
}

static void
cairo_dock_applet_cd_applet_real_on_click (CairoDockAppletCDApplet* self,
                                           gint iState)
{
	g_print (">>> clic !\n");
}

void
cairo_dock_applet_cd_applet_on_click (CairoDockAppletCDApplet* self,
                                      gint iState)
{
	CairoDockAppletCDAppletClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = CAIRO_DOCK_APPLET_CD_APPLET_GET_CLASS (self);
	if (_klass_->on_click) {
		_klass_->on_click (self, iState);
	}
}

static void
cairo_dock_applet_cd_applet_real_on_middle_click (CairoDockAppletCDApplet* self)
{
	g_print (">>> middle clic !\n");
}

void
cairo_dock_applet_cd_applet_on_middle_click (CairoDockAppletCDApplet* self)
{
	CairoDockAppletCDAppletClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = CAIRO_DOCK_APPLET_CD_APPLET_GET_CLASS (self);
	if (_klass_->on_middle_click) {
		_klass_->on_middle_click (self);
	}
}

static void
_cairo_dock_applet_cd_applet_on_build_menu (CairoDockAppletCDApplet* self)
{
	g_return_if_fail (self != NULL);
	_g_free0 (self->priv->_cMenuIconId);
	self->priv->_cMenuIconId = NULL;
	cairo_dock_applet_cd_applet_on_build_menu (self);
}

static void
cairo_dock_applet_cd_applet_real_on_build_menu (CairoDockAppletCDApplet* self)
{
	g_print (">>> build menu !\n");
}

void
cairo_dock_applet_cd_applet_on_build_menu (CairoDockAppletCDApplet* self)
{
	CairoDockAppletCDAppletClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = CAIRO_DOCK_APPLET_CD_APPLET_GET_CLASS (self);
	if (_klass_->on_build_menu) {
		_klass_->on_build_menu (self);
	}
}

static void
_cairo_dock_applet_cd_applet_on_menu_select (CairoDockAppletCDApplet* self,
                                             gint iNumEntry)
{
	const gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->_cMenuIconId;
	if (_tmp0_ == NULL) {
		cairo_dock_applet_cd_applet_on_menu_select (self, iNumEntry);
	} else {
		const gchar* _tmp1_;
		_tmp1_ = self->priv->_cMenuIconId;
		cairo_dock_applet_cd_applet_on_menu_select_sub_icon (self, iNumEntry, _tmp1_);
	}
}

static void
cairo_dock_applet_cd_applet_real_on_menu_select (CairoDockAppletCDApplet* self,
                                                 gint iNumEntry)
{
	g_print (">>> choice %d has been selected !\n", iNumEntry);
}

void
cairo_dock_applet_cd_applet_on_menu_select (CairoDockAppletCDApplet* self,
                                            gint iNumEntry)
{
	CairoDockAppletCDAppletClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = CAIRO_DOCK_APPLET_CD_APPLET_GET_CLASS (self);
	if (_klass_->on_menu_select) {
		_klass_->on_menu_select (self, iNumEntry);
	}
}

static void
cairo_dock_applet_cd_applet_real_on_scroll (CairoDockAppletCDApplet* self,
                                            gboolean bScrollUp)
{
	g_print (">>> scroll (up:%d)\n", (gint) bScrollUp);
}

void
cairo_dock_applet_cd_applet_on_scroll (CairoDockAppletCDApplet* self,
                                       gboolean bScrollUp)
{
	CairoDockAppletCDAppletClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = CAIRO_DOCK_APPLET_CD_APPLET_GET_CLASS (self);
	if (_klass_->on_scroll) {
		_klass_->on_scroll (self, bScrollUp);
	}
}

static void
cairo_dock_applet_cd_applet_real_on_drop_data (CairoDockAppletCDApplet* self,
                                               const gchar* cReceivedData)
{
	g_return_if_fail (cReceivedData != NULL);
	g_print (">>> received : %s\n", cReceivedData);
}

void
cairo_dock_applet_cd_applet_on_drop_data (CairoDockAppletCDApplet* self,
                                          const gchar* cReceivedData)
{
	CairoDockAppletCDAppletClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = CAIRO_DOCK_APPLET_CD_APPLET_GET_CLASS (self);
	if (_klass_->on_drop_data) {
		_klass_->on_drop_data (self, cReceivedData);
	}
}

static void
cairo_dock_applet_cd_applet_real_on_answer (CairoDockAppletCDApplet* self,
                                            GVariant* answer)
{
	g_return_if_fail (answer != NULL);
	g_print (">>> answer\n");
}

void
cairo_dock_applet_cd_applet_on_answer (CairoDockAppletCDApplet* self,
                                       GVariant* answer)
{
	CairoDockAppletCDAppletClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = CAIRO_DOCK_APPLET_CD_APPLET_GET_CLASS (self);
	if (_klass_->on_answer) {
		_klass_->on_answer (self, answer);
	}
}

static void
cairo_dock_applet_cd_applet_real_on_answer_dialog (CairoDockAppletCDApplet* self,
                                                   gint iButton,
                                                   GVariant* answer)
{
	g_return_if_fail (answer != NULL);
	g_print (">>> answer dialog\n");
}

void
cairo_dock_applet_cd_applet_on_answer_dialog (CairoDockAppletCDApplet* self,
                                              gint iButton,
                                              GVariant* answer)
{
	CairoDockAppletCDAppletClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = CAIRO_DOCK_APPLET_CD_APPLET_GET_CLASS (self);
	if (_klass_->on_answer_dialog) {
		_klass_->on_answer_dialog (self, iButton, answer);
	}
}

static void
cairo_dock_applet_cd_applet_real_on_shortkey (CairoDockAppletCDApplet* self,
                                              const gchar* cKey)
{
	g_return_if_fail (cKey != NULL);
	g_print (">>> shortkey : %s\n", cKey);
}

void
cairo_dock_applet_cd_applet_on_shortkey (CairoDockAppletCDApplet* self,
                                         const gchar* cKey)
{
	CairoDockAppletCDAppletClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = CAIRO_DOCK_APPLET_CD_APPLET_GET_CLASS (self);
	if (_klass_->on_shortkey) {
		_klass_->on_shortkey (self, cKey);
	}
}

static void
cairo_dock_applet_cd_applet_real_on_change_focus (CairoDockAppletCDApplet* self,
                                                  gboolean bIsActive)
{
	g_print (">>> changed focus -> %d\n", (gint) bIsActive);
}

void
cairo_dock_applet_cd_applet_on_change_focus (CairoDockAppletCDApplet* self,
                                             gboolean bIsActive)
{
	CairoDockAppletCDAppletClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = CAIRO_DOCK_APPLET_CD_APPLET_GET_CLASS (self);
	if (_klass_->on_change_focus) {
		_klass_->on_change_focus (self, bIsActive);
	}
}

static void
cairo_dock_applet_cd_applet_real_on_click_sub_icon (CairoDockAppletCDApplet* self,
                                                    gint iState,
                                                    const gchar* cIconID)
{
	g_return_if_fail (cIconID != NULL);
	g_print ("clic on the sub-icon '%s' !\n", cIconID);
}

void
cairo_dock_applet_cd_applet_on_click_sub_icon (CairoDockAppletCDApplet* self,
                                               gint iState,
                                               const gchar* cIconID)
{
	CairoDockAppletCDAppletClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = CAIRO_DOCK_APPLET_CD_APPLET_GET_CLASS (self);
	if (_klass_->on_click_sub_icon) {
		_klass_->on_click_sub_icon (self, iState, cIconID);
	}
}

static void
cairo_dock_applet_cd_applet_real_on_middle_click_sub_icon (CairoDockAppletCDApplet* self,
                                                           const gchar* cIconID)
{
	g_return_if_fail (cIconID != NULL);
	g_print ("middle-clic on the sub-icon '%s' !\n", cIconID);
}

void
cairo_dock_applet_cd_applet_on_middle_click_sub_icon (CairoDockAppletCDApplet* self,
                                                      const gchar* cIconID)
{
	CairoDockAppletCDAppletClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = CAIRO_DOCK_APPLET_CD_APPLET_GET_CLASS (self);
	if (_klass_->on_middle_click_sub_icon) {
		_klass_->on_middle_click_sub_icon (self, cIconID);
	}
}

static void
cairo_dock_applet_cd_applet_real_on_scroll_sub_icon (CairoDockAppletCDApplet* self,
                                                     gboolean bScrollUp,
                                                     const gchar* cIconID)
{
	g_return_if_fail (cIconID != NULL);
	g_print ("scroll on the sub-icon '%s' !\n", cIconID);
}

void
cairo_dock_applet_cd_applet_on_scroll_sub_icon (CairoDockAppletCDApplet* self,
                                                gboolean bScrollUp,
                                                const gchar* cIconID)
{
	CairoDockAppletCDAppletClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = CAIRO_DOCK_APPLET_CD_APPLET_GET_CLASS (self);
	if (_klass_->on_scroll_sub_icon) {
		_klass_->on_scroll_sub_icon (self, bScrollUp, cIconID);
	}
}

static void
cairo_dock_applet_cd_applet_real_on_drop_data_sub_icon (CairoDockAppletCDApplet* self,
                                                        const gchar* cReceivedData,
                                                        const gchar* cIconID)
{
	g_return_if_fail (cReceivedData != NULL);
	g_return_if_fail (cIconID != NULL);
	g_print ("drop on the sub-icon '%s' !\n", cIconID);
}

void
cairo_dock_applet_cd_applet_on_drop_data_sub_icon (CairoDockAppletCDApplet* self,
                                                   const gchar* cReceivedData,
                                                   const gchar* cIconID)
{
	CairoDockAppletCDAppletClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = CAIRO_DOCK_APPLET_CD_APPLET_GET_CLASS (self);
	if (_klass_->on_drop_data_sub_icon) {
		_klass_->on_drop_data_sub_icon (self, cReceivedData, cIconID);
	}
}

static void
_cairo_dock_applet_cd_applet_on_build_menu_sub_icon (CairoDockAppletCDApplet* self,
                                                     const gchar* cIconID)
{
	gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (cIconID != NULL);
	_tmp0_ = g_strdup (cIconID);
	_g_free0 (self->priv->_cMenuIconId);
	self->priv->_cMenuIconId = _tmp0_;
	cairo_dock_applet_cd_applet_on_build_menu_sub_icon (self, cIconID);
}

static void
cairo_dock_applet_cd_applet_real_on_build_menu_sub_icon (CairoDockAppletCDApplet* self,
                                                         const gchar* cIconID)
{
	g_return_if_fail (cIconID != NULL);
	g_print ("build menu on the sub-icon '%s' !\n", cIconID);
}

void
cairo_dock_applet_cd_applet_on_build_menu_sub_icon (CairoDockAppletCDApplet* self,
                                                    const gchar* cIconID)
{
	CairoDockAppletCDAppletClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = CAIRO_DOCK_APPLET_CD_APPLET_GET_CLASS (self);
	if (_klass_->on_build_menu_sub_icon) {
		_klass_->on_build_menu_sub_icon (self, cIconID);
	}
}

static void
cairo_dock_applet_cd_applet_real_on_menu_select_sub_icon (CairoDockAppletCDApplet* self,
                                                          gint iNumEntry,
                                                          const gchar* cIconID)
{
	g_return_if_fail (cIconID != NULL);
	g_print (">>> choice %d has been selected on icon %s !\n", iNumEntry, cIconID);
}

void
cairo_dock_applet_cd_applet_on_menu_select_sub_icon (CairoDockAppletCDApplet* self,
                                                     gint iNumEntry,
                                                     const gchar* cIconID)
{
	CairoDockAppletCDAppletClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = CAIRO_DOCK_APPLET_CD_APPLET_GET_CLASS (self);
	if (_klass_->on_menu_select_sub_icon) {
		_klass_->on_menu_select_sub_icon (self, iNumEntry, cIconID);
	}
}

static void
cairo_dock_applet_cd_applet_real_begin (CairoDockAppletCDApplet* self)
{
}

void
cairo_dock_applet_cd_applet_begin (CairoDockAppletCDApplet* self)
{
	CairoDockAppletCDAppletClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = CAIRO_DOCK_APPLET_CD_APPLET_GET_CLASS (self);
	if (_klass_->begin) {
		_klass_->begin (self);
	}
}

static void
cairo_dock_applet_cd_applet_real_end (CairoDockAppletCDApplet* self)
{
}

void
cairo_dock_applet_cd_applet_end (CairoDockAppletCDApplet* self)
{
	CairoDockAppletCDAppletClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = CAIRO_DOCK_APPLET_CD_APPLET_GET_CLASS (self);
	if (_klass_->end) {
		_klass_->end (self);
	}
}

static void
_cairo_dock_applet_cd_applet_on_stop (CairoDockAppletCDApplet* self)
{
	const gchar* _tmp0_;
	GMainLoop* _tmp1_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->cAppletName;
	g_print (">>> applet '%s' is stopped\n", _tmp0_);
	cairo_dock_applet_cd_applet_end (self);
	_tmp1_ = self->priv->loop;
	g_main_loop_quit (_tmp1_);
}

static void
cairo_dock_applet_cd_applet_real_reload (CairoDockAppletCDApplet* self)
{
}

void
cairo_dock_applet_cd_applet_reload (CairoDockAppletCDApplet* self)
{
	CairoDockAppletCDAppletClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = CAIRO_DOCK_APPLET_CD_APPLET_GET_CLASS (self);
	if (_klass_->reload) {
		_klass_->reload (self);
	}
}

static void
_cairo_dock_applet_cd_applet_on_reload (CairoDockAppletCDApplet* self,
                                        gboolean bConfigHasChanged)
{
	g_return_if_fail (self != NULL);
	g_print (">>> our module is reloaded\n");
	if (bConfigHasChanged) {
		g_print (">>>  and our config has changed\n");
		_cairo_dock_applet_cd_applet_get_config (self);
		cairo_dock_applet_cd_applet_reload (self);
	}
}

static void
cairo_dock_applet_cd_applet_real_get_config (CairoDockAppletCDApplet* self,
                                             GKeyFile* keyfile)
{
	g_return_if_fail (keyfile != NULL);
}

void
cairo_dock_applet_cd_applet_get_config (CairoDockAppletCDApplet* self,
                                        GKeyFile* keyfile)
{
	CairoDockAppletCDAppletClass* _klass_;
	g_return_if_fail (self != NULL);
	_klass_ = CAIRO_DOCK_APPLET_CD_APPLET_GET_CLASS (self);
	if (_klass_->get_config) {
		_klass_->get_config (self, keyfile);
	}
}

static void
_cairo_dock_applet_cd_applet_get_config (CairoDockAppletCDApplet* self)
{
	GKeyFile* keyfile = NULL;
	GKeyFile* _tmp0_;
	GError* _inner_error0_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_key_file_new ();
	keyfile = _tmp0_;
	{
		const gchar* _tmp1_;
		_tmp1_ = self->cConfFile;
		g_key_file_load_from_file (keyfile, _tmp1_, G_KEY_FILE_NONE, &_inner_error0_);
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp2_;
		const gchar* _tmp3_;
		e = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp2_ = e;
		_tmp3_ = _tmp2_->message;
		g_warning ("CDApplet.vala:290: %s", _tmp3_);
		_g_error_free0 (e);
	}
	__finally0:
	{
		GError* _inner_error1_ = NULL;
		cairo_dock_applet_cd_applet_get_config (self, keyfile);
	}
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		_g_key_file_unref0 (keyfile);
		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;
	}
	_g_key_file_unref0 (keyfile);
}

static void
_cairo_dock_applet_cd_applet_on_click_cairo_dock_applet_iapplet_on_click (CairoDockAppletIApplet* _sender,
                                                                          gint iState,
                                                                          gpointer self)
{
	cairo_dock_applet_cd_applet_on_click ((CairoDockAppletCDApplet*) self, iState);
}

static void
_cairo_dock_applet_cd_applet_on_middle_click_cairo_dock_applet_iapplet_on_middle_click (CairoDockAppletIApplet* _sender,
                                                                                        gpointer self)
{
	cairo_dock_applet_cd_applet_on_middle_click ((CairoDockAppletCDApplet*) self);
}

static void
__cairo_dock_applet_cd_applet_on_build_menu_cairo_dock_applet_iapplet_on_build_menu (CairoDockAppletIApplet* _sender,
                                                                                     gpointer self)
{
	_cairo_dock_applet_cd_applet_on_build_menu ((CairoDockAppletCDApplet*) self);
}

static void
__cairo_dock_applet_cd_applet_on_menu_select_cairo_dock_applet_iapplet_on_menu_select (CairoDockAppletIApplet* _sender,
                                                                                       gint iNumEntry,
                                                                                       gpointer self)
{
	_cairo_dock_applet_cd_applet_on_menu_select ((CairoDockAppletCDApplet*) self, iNumEntry);
}

static void
_cairo_dock_applet_cd_applet_on_scroll_cairo_dock_applet_iapplet_on_scroll (CairoDockAppletIApplet* _sender,
                                                                            gboolean bScrollUp,
                                                                            gpointer self)
{
	cairo_dock_applet_cd_applet_on_scroll ((CairoDockAppletCDApplet*) self, bScrollUp);
}

static void
_cairo_dock_applet_cd_applet_on_drop_data_cairo_dock_applet_iapplet_on_drop_data (CairoDockAppletIApplet* _sender,
                                                                                  const gchar* cReceivedData,
                                                                                  gpointer self)
{
	cairo_dock_applet_cd_applet_on_drop_data ((CairoDockAppletCDApplet*) self, cReceivedData);
}

static void
_cairo_dock_applet_cd_applet_on_answer_cairo_dock_applet_iapplet_on_answer (CairoDockAppletIApplet* _sender,
                                                                            GVariant* answer,
                                                                            gpointer self)
{
	cairo_dock_applet_cd_applet_on_answer ((CairoDockAppletCDApplet*) self, answer);
}

static void
_cairo_dock_applet_cd_applet_on_answer_dialog_cairo_dock_applet_iapplet_on_answer_dialog (CairoDockAppletIApplet* _sender,
                                                                                          gint iButton,
                                                                                          GVariant* answer,
                                                                                          gpointer self)
{
	cairo_dock_applet_cd_applet_on_answer_dialog ((CairoDockAppletCDApplet*) self, iButton, answer);
}

static void
_cairo_dock_applet_cd_applet_on_shortkey_cairo_dock_applet_iapplet_on_shortkey (CairoDockAppletIApplet* _sender,
                                                                                const gchar* cKey,
                                                                                gpointer self)
{
	cairo_dock_applet_cd_applet_on_shortkey ((CairoDockAppletCDApplet*) self, cKey);
}

static void
_cairo_dock_applet_cd_applet_on_change_focus_cairo_dock_applet_iapplet_on_change_focus (CairoDockAppletIApplet* _sender,
                                                                                        gboolean bIsActive,
                                                                                        gpointer self)
{
	cairo_dock_applet_cd_applet_on_change_focus ((CairoDockAppletCDApplet*) self, bIsActive);
}

static void
__cairo_dock_applet_cd_applet_on_stop_cairo_dock_applet_iapplet_on_stop_module (CairoDockAppletIApplet* _sender,
                                                                                gpointer self)
{
	_cairo_dock_applet_cd_applet_on_stop ((CairoDockAppletCDApplet*) self);
}

static void
__cairo_dock_applet_cd_applet_on_reload_cairo_dock_applet_iapplet_on_reload_module (CairoDockAppletIApplet* _sender,
                                                                                    gboolean bConfigHasChanged,
                                                                                    gpointer self)
{
	_cairo_dock_applet_cd_applet_on_reload ((CairoDockAppletCDApplet*) self, bConfigHasChanged);
}

static void
_cairo_dock_applet_cd_applet_on_click_sub_icon_cairo_dock_applet_isub_applet_on_click_sub_icon (CairoDockAppletISubApplet* _sender,
                                                                                                gint iState,
                                                                                                const gchar* cIconID,
                                                                                                gpointer self)
{
	cairo_dock_applet_cd_applet_on_click_sub_icon ((CairoDockAppletCDApplet*) self, iState, cIconID);
}

static void
_cairo_dock_applet_cd_applet_on_middle_click_sub_icon_cairo_dock_applet_isub_applet_on_middle_click_sub_icon (CairoDockAppletISubApplet* _sender,
                                                                                                              const gchar* cIconID,
                                                                                                              gpointer self)
{
	cairo_dock_applet_cd_applet_on_middle_click_sub_icon ((CairoDockAppletCDApplet*) self, cIconID);
}

static void
_cairo_dock_applet_cd_applet_on_scroll_sub_icon_cairo_dock_applet_isub_applet_on_scroll_sub_icon (CairoDockAppletISubApplet* _sender,
                                                                                                  gboolean bScrollUp,
                                                                                                  const gchar* cIconID,
                                                                                                  gpointer self)
{
	cairo_dock_applet_cd_applet_on_scroll_sub_icon ((CairoDockAppletCDApplet*) self, bScrollUp, cIconID);
}

static void
_cairo_dock_applet_cd_applet_on_drop_data_sub_icon_cairo_dock_applet_isub_applet_on_drop_data_sub_icon (CairoDockAppletISubApplet* _sender,
                                                                                                        const gchar* cReceivedData,
                                                                                                        const gchar* cIconID,
                                                                                                        gpointer self)
{
	cairo_dock_applet_cd_applet_on_drop_data_sub_icon ((CairoDockAppletCDApplet*) self, cReceivedData, cIconID);
}

static void
__cairo_dock_applet_cd_applet_on_build_menu_sub_icon_cairo_dock_applet_isub_applet_on_build_menu_sub_icon (CairoDockAppletISubApplet* _sender,
                                                                                                           const gchar* cIconID,
                                                                                                           gpointer self)
{
	_cairo_dock_applet_cd_applet_on_build_menu_sub_icon ((CairoDockAppletCDApplet*) self, cIconID);
}

static void
_cairo_dock_applet_cd_applet_connect_to_bus (CairoDockAppletCDApplet* self)
{
	CairoDockAppletIApplet* _tmp15_;
	CairoDockAppletIApplet* _tmp16_;
	CairoDockAppletIApplet* _tmp17_;
	CairoDockAppletIApplet* _tmp18_;
	CairoDockAppletIApplet* _tmp19_;
	CairoDockAppletIApplet* _tmp20_;
	CairoDockAppletIApplet* _tmp21_;
	CairoDockAppletIApplet* _tmp22_;
	CairoDockAppletIApplet* _tmp23_;
	CairoDockAppletIApplet* _tmp24_;
	CairoDockAppletIApplet* _tmp25_;
	CairoDockAppletIApplet* _tmp26_;
	CairoDockAppletISubApplet* _tmp27_;
	CairoDockAppletISubApplet* _tmp28_;
	CairoDockAppletISubApplet* _tmp29_;
	CairoDockAppletISubApplet* _tmp30_;
	CairoDockAppletISubApplet* _tmp31_;
	GError* _inner_error0_ = NULL;
	g_return_if_fail (self != NULL);
	{
		CairoDockAppletIApplet* _tmp0_ = NULL;
		const gchar* _tmp1_;
		CairoDockAppletIApplet* _tmp2_;
		CairoDockAppletIApplet* _tmp3_;
		_tmp1_ = self->cBusPath;
		_tmp2_ = (CairoDockAppletIApplet*) g_initable_new (CAIRO_DOCK_APPLET_TYPE_IAPPLET_PROXY, NULL, &_inner_error0_, "g-flags", 0, "g-name", "org.cairodock.CairoDock", "g-bus-type", G_BUS_TYPE_SESSION, "g-object-path", _tmp1_, "g-interface-name", "org.cairodock.CairoDock.applet", NULL);
		_tmp0_ = (CairoDockAppletIApplet*) _tmp2_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			if (_inner_error0_->domain == G_IO_ERROR) {
				goto __catch0_g_io_error;
			}
			g_critical ("file %s: line %d: unexpected 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;
		}
		_tmp3_ = _tmp0_;
		_tmp0_ = NULL;
		_g_object_unref0 (self->icon);
		self->icon = _tmp3_;
		_g_object_unref0 (_tmp0_);
	}
	goto __finally0;
	__catch0_g_io_error:
	{
		GError* e = NULL;
		const gchar* _tmp4_;
		const gchar* _tmp5_;
		e = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp4_ = self->cAppletName;
		_tmp5_ = e->message;
		g_error ("CDApplet.vala:309: >>> module '%s' can't be found on the bus, exit.\n" \
"Error was: %s\n", _tmp4_, _tmp5_);
		_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;
	}
	{
		CairoDockAppletISubApplet* _tmp6_ = NULL;
		const gchar* _tmp7_;
		gchar* _tmp8_;
		gchar* _tmp9_;
		CairoDockAppletISubApplet* _tmp10_;
		CairoDockAppletISubApplet* _tmp11_;
		CairoDockAppletISubApplet* _tmp12_;
		_tmp7_ = self->cBusPath;
		_tmp8_ = g_strconcat (_tmp7_, "/sub_icons", NULL);
		_tmp9_ = _tmp8_;
		_tmp10_ = (CairoDockAppletISubApplet*) g_initable_new (CAIRO_DOCK_APPLET_TYPE_ISUB_APPLET_PROXY, NULL, &_inner_error0_, "g-flags", 0, "g-name", "org.cairodock.CairoDock", "g-bus-type", G_BUS_TYPE_SESSION, "g-object-path", _tmp9_, "g-interface-name", "org.cairodock.CairoDock.subapplet", NULL);
		_tmp11_ = (CairoDockAppletISubApplet*) _tmp10_;
		_g_free0 (_tmp9_);
		_tmp6_ = _tmp11_;
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			if (_inner_error0_->domain == G_IO_ERROR) {
				goto __catch1_g_io_error;
			}
			g_critical ("file %s: line %d: unexpected 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;
		}
		_tmp12_ = _tmp6_;
		_tmp6_ = NULL;
		_g_object_unref0 (self->sub_icons);
		self->sub_icons = _tmp12_;
		_g_object_unref0 (_tmp6_);
	}
	goto __finally1;
	__catch1_g_io_error:
	{
		GError* e = NULL;
		const gchar* _tmp13_;
		const gchar* _tmp14_;
		e = _inner_error0_;
		_inner_error0_ = NULL;
		_tmp13_ = self->cAppletName;
		_tmp14_ = e->message;
		g_error ("CDApplet.vala:319: >>> module '%s' can't be found on the bus, exit.\n" \
"Error was: %s\n", _tmp13_, _tmp14_);
		_g_error_free0 (e);
	}
	__finally1:
	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;
	}
	_tmp15_ = self->icon;
	g_signal_connect_object (_tmp15_, "on-click", (GCallback) _cairo_dock_applet_cd_applet_on_click_cairo_dock_applet_iapplet_on_click, self, 0);
	_tmp16_ = self->icon;
	g_signal_connect_object (_tmp16_, "on-middle-click", (GCallback) _cairo_dock_applet_cd_applet_on_middle_click_cairo_dock_applet_iapplet_on_middle_click, self, 0);
	_tmp17_ = self->icon;
	g_signal_connect_object (_tmp17_, "on-build-menu", (GCallback) __cairo_dock_applet_cd_applet_on_build_menu_cairo_dock_applet_iapplet_on_build_menu, self, 0);
	_tmp18_ = self->icon;
	g_signal_connect_object (_tmp18_, "on-menu-select", (GCallback) __cairo_dock_applet_cd_applet_on_menu_select_cairo_dock_applet_iapplet_on_menu_select, self, 0);
	_tmp19_ = self->icon;
	g_signal_connect_object (_tmp19_, "on-scroll", (GCallback) _cairo_dock_applet_cd_applet_on_scroll_cairo_dock_applet_iapplet_on_scroll, self, 0);
	_tmp20_ = self->icon;
	g_signal_connect_object (_tmp20_, "on-drop-data", (GCallback) _cairo_dock_applet_cd_applet_on_drop_data_cairo_dock_applet_iapplet_on_drop_data, self, 0);
	_tmp21_ = self->icon;
	g_signal_connect_object (_tmp21_, "on-answer", (GCallback) _cairo_dock_applet_cd_applet_on_answer_cairo_dock_applet_iapplet_on_answer, self, 0);
	_tmp22_ = self->icon;
	g_signal_connect_object (_tmp22_, "on-answer-dialog", (GCallback) _cairo_dock_applet_cd_applet_on_answer_dialog_cairo_dock_applet_iapplet_on_answer_dialog, self, 0);
	_tmp23_ = self->icon;
	g_signal_connect_object (_tmp23_, "on-shortkey", (GCallback) _cairo_dock_applet_cd_applet_on_shortkey_cairo_dock_applet_iapplet_on_shortkey, self, 0);
	_tmp24_ = self->icon;
	g_signal_connect_object (_tmp24_, "on-change-focus", (GCallback) _cairo_dock_applet_cd_applet_on_change_focus_cairo_dock_applet_iapplet_on_change_focus, self, 0);
	_tmp25_ = self->icon;
	g_signal_connect_object (_tmp25_, "on-stop-module", (GCallback) __cairo_dock_applet_cd_applet_on_stop_cairo_dock_applet_iapplet_on_stop_module, self, 0);
	_tmp26_ = self->icon;
	g_signal_connect_object (_tmp26_, "on-reload-module", (GCallback) __cairo_dock_applet_cd_applet_on_reload_cairo_dock_applet_iapplet_on_reload_module, self, 0);
	_tmp27_ = self->sub_icons;
	g_signal_connect_object (_tmp27_, "on-click-sub-icon", (GCallback) _cairo_dock_applet_cd_applet_on_click_sub_icon_cairo_dock_applet_isub_applet_on_click_sub_icon, self, 0);
	_tmp28_ = self->sub_icons;
	g_signal_connect_object (_tmp28_, "on-middle-click-sub-icon", (GCallback) _cairo_dock_applet_cd_applet_on_middle_click_sub_icon_cairo_dock_applet_isub_applet_on_middle_click_sub_icon, self, 0);
	_tmp29_ = self->sub_icons;
	g_signal_connect_object (_tmp29_, "on-scroll-sub-icon", (GCallback) _cairo_dock_applet_cd_applet_on_scroll_sub_icon_cairo_dock_applet_isub_applet_on_scroll_sub_icon, self, 0);
	_tmp30_ = self->sub_icons;
	g_signal_connect_object (_tmp30_, "on-drop-data-sub-icon", (GCallback) _cairo_dock_applet_cd_applet_on_drop_data_sub_icon_cairo_dock_applet_isub_applet_on_drop_data_sub_icon, self, 0);
	_tmp31_ = self->sub_icons;
	g_signal_connect_object (_tmp31_, "on-build-menu-sub-icon", (GCallback) __cairo_dock_applet_cd_applet_on_build_menu_sub_icon_cairo_dock_applet_isub_applet_on_build_menu_sub_icon, self, 0);
}

static void
cairo_dock_applet_cd_applet_class_init (CairoDockAppletCDAppletClass * klass,
                                        gpointer klass_data)
{
	cairo_dock_applet_cd_applet_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &CairoDockAppletCDApplet_private_offset);
	((CairoDockAppletCDAppletClass *) klass)->on_click = (void (*) (CairoDockAppletCDApplet*, gint)) cairo_dock_applet_cd_applet_real_on_click;
	((CairoDockAppletCDAppletClass *) klass)->on_middle_click = (void (*) (CairoDockAppletCDApplet*)) cairo_dock_applet_cd_applet_real_on_middle_click;
	((CairoDockAppletCDAppletClass *) klass)->on_build_menu = (void (*) (CairoDockAppletCDApplet*)) cairo_dock_applet_cd_applet_real_on_build_menu;
	((CairoDockAppletCDAppletClass *) klass)->on_menu_select = (void (*) (CairoDockAppletCDApplet*, gint)) cairo_dock_applet_cd_applet_real_on_menu_select;
	((CairoDockAppletCDAppletClass *) klass)->on_scroll = (void (*) (CairoDockAppletCDApplet*, gboolean)) cairo_dock_applet_cd_applet_real_on_scroll;
	((CairoDockAppletCDAppletClass *) klass)->on_drop_data = (void (*) (CairoDockAppletCDApplet*, const gchar*)) cairo_dock_applet_cd_applet_real_on_drop_data;
	((CairoDockAppletCDAppletClass *) klass)->on_answer = (void (*) (CairoDockAppletCDApplet*, GVariant*)) cairo_dock_applet_cd_applet_real_on_answer;
	((CairoDockAppletCDAppletClass *) klass)->on_answer_dialog = (void (*) (CairoDockAppletCDApplet*, gint, GVariant*)) cairo_dock_applet_cd_applet_real_on_answer_dialog;
	((CairoDockAppletCDAppletClass *) klass)->on_shortkey = (void (*) (CairoDockAppletCDApplet*, const gchar*)) cairo_dock_applet_cd_applet_real_on_shortkey;
	((CairoDockAppletCDAppletClass *) klass)->on_change_focus = (void (*) (CairoDockAppletCDApplet*, gboolean)) cairo_dock_applet_cd_applet_real_on_change_focus;
	((CairoDockAppletCDAppletClass *) klass)->on_click_sub_icon = (void (*) (CairoDockAppletCDApplet*, gint, const gchar*)) cairo_dock_applet_cd_applet_real_on_click_sub_icon;
	((CairoDockAppletCDAppletClass *) klass)->on_middle_click_sub_icon = (void (*) (CairoDockAppletCDApplet*, const gchar*)) cairo_dock_applet_cd_applet_real_on_middle_click_sub_icon;
	((CairoDockAppletCDAppletClass *) klass)->on_scroll_sub_icon = (void (*) (CairoDockAppletCDApplet*, gboolean, const gchar*)) cairo_dock_applet_cd_applet_real_on_scroll_sub_icon;
	((CairoDockAppletCDAppletClass *) klass)->on_drop_data_sub_icon = (void (*) (CairoDockAppletCDApplet*, const gchar*, const gchar*)) cairo_dock_applet_cd_applet_real_on_drop_data_sub_icon;
	((CairoDockAppletCDAppletClass *) klass)->on_build_menu_sub_icon = (void (*) (CairoDockAppletCDApplet*, const gchar*)) cairo_dock_applet_cd_applet_real_on_build_menu_sub_icon;
	((CairoDockAppletCDAppletClass *) klass)->on_menu_select_sub_icon = (void (*) (CairoDockAppletCDApplet*, gint, const gchar*)) cairo_dock_applet_cd_applet_real_on_menu_select_sub_icon;
	((CairoDockAppletCDAppletClass *) klass)->begin = (void (*) (CairoDockAppletCDApplet*)) cairo_dock_applet_cd_applet_real_begin;
	((CairoDockAppletCDAppletClass *) klass)->end = (void (*) (CairoDockAppletCDApplet*)) cairo_dock_applet_cd_applet_real_end;
	((CairoDockAppletCDAppletClass *) klass)->reload = (void (*) (CairoDockAppletCDApplet*)) cairo_dock_applet_cd_applet_real_reload;
	((CairoDockAppletCDAppletClass *) klass)->get_config = (void (*) (CairoDockAppletCDApplet*, GKeyFile*)) cairo_dock_applet_cd_applet_real_get_config;
	G_OBJECT_CLASS (klass)->finalize = cairo_dock_applet_cd_applet_finalize;
}

static void
cairo_dock_applet_cd_applet_instance_init (CairoDockAppletCDApplet * self,
                                           gpointer klass)
{
	self->priv = cairo_dock_applet_cd_applet_get_instance_private (self);
}

static void
cairo_dock_applet_cd_applet_finalize (GObject * obj)
{
	CairoDockAppletCDApplet * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, CAIRO_DOCK_APPLET_TYPE_CD_APPLET, CairoDockAppletCDApplet);
	_g_object_unref0 (self->icon);
	_g_object_unref0 (self->sub_icons);
	_g_free0 (self->cAppletName);
	_g_free0 (self->cConfFile);
	_g_free0 (self->cParentAppName);
	_g_free0 (self->cBusPath);
	_g_free0 (self->cShareDataDir);
	_g_free0 (self->cRootDataDir);
	_g_main_loop_unref0 (self->priv->loop);
	_g_free0 (self->priv->_cMenuIconId);
	G_OBJECT_CLASS (cairo_dock_applet_cd_applet_parent_class)->finalize (obj);
}

static GType
cairo_dock_applet_cd_applet_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (CairoDockAppletCDAppletClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) cairo_dock_applet_cd_applet_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (CairoDockAppletCDApplet), 0, (GInstanceInitFunc) cairo_dock_applet_cd_applet_instance_init, NULL };
	GType cairo_dock_applet_cd_applet_type_id;
	cairo_dock_applet_cd_applet_type_id = g_type_register_static (G_TYPE_OBJECT, "CairoDockAppletCDApplet", &g_define_type_info, 0);
	CairoDockAppletCDApplet_private_offset = g_type_add_instance_private (cairo_dock_applet_cd_applet_type_id, sizeof (CairoDockAppletCDAppletPrivate));
	return cairo_dock_applet_cd_applet_type_id;
}

GType
cairo_dock_applet_cd_applet_get_type (void)
{
	static volatile gsize cairo_dock_applet_cd_applet_type_id__once = 0;
	if (g_once_init_enter (&cairo_dock_applet_cd_applet_type_id__once)) {
		GType cairo_dock_applet_cd_applet_type_id;
		cairo_dock_applet_cd_applet_type_id = cairo_dock_applet_cd_applet_get_type_once ();
		g_once_init_leave (&cairo_dock_applet_cd_applet_type_id__once, cairo_dock_applet_cd_applet_type_id);
	}
	return cairo_dock_applet_cd_applet_type_id__once;
}

static void
_vala_array_destroy (gpointer array,
                     gssize array_length,
                     GDestroyNotify destroy_func)
{
	if ((array != NULL) && (destroy_func != NULL)) {
		gssize i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}

static void
_vala_array_free (gpointer array,
                  gssize array_length,
                  GDestroyNotify destroy_func)
{
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}

