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

#include "org.ubuntubudgie.raven.widget.budgie-wswitcher.h"
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <gio/gio.h>
#include <raven-plugin.h>
#include <libpeas.h>
#include <locale.h>
#include <glib/gi18n-lib.h>
#include <config.h>
#include <glib-object.h>
#include <gtk/gtk.h>

#define WALLPAPER_SWITCHER_WIDGET_WALLPAPER_SWITCHER_WIDGET_SETTRUE _ ("Stop")
#define WALLPAPER_SWITCHER_WIDGET_WALLPAPER_SWITCHER_WIDGET_SETFALSE _ ("Start")
#define WALLPAPER_SWITCHER_WIDGET_WALLPAPER_SWITCHER_WIDGET_EXPLAIN _ ("Wallpaper Workspace Switcher automatically remembers which wallpaper w" \
"as set per workspace")
#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  {
	WALLPAPER_SWITCHER_WIDGET_WALLPAPER_SWITCHER_PLUGIN_0_PROPERTY,
	WALLPAPER_SWITCHER_WIDGET_WALLPAPER_SWITCHER_PLUGIN_NUM_PROPERTIES
};
static GParamSpec* wallpaper_switcher_widget_wallpaper_switcher_plugin_properties[WALLPAPER_SWITCHER_WIDGET_WALLPAPER_SWITCHER_PLUGIN_NUM_PROPERTIES];
typedef struct _Block1Data Block1Data;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
enum  {
	WALLPAPER_SWITCHER_WIDGET_WALLPAPER_SWITCHER_WIDGET_0_PROPERTY,
	WALLPAPER_SWITCHER_WIDGET_WALLPAPER_SWITCHER_WIDGET_NUM_PROPERTIES
};
static GParamSpec* wallpaper_switcher_widget_wallpaper_switcher_widget_properties[WALLPAPER_SWITCHER_WIDGET_WALLPAPER_SWITCHER_WIDGET_NUM_PROPERTIES];

struct _Block1Data {
	int _ref_count_;
	WallpaperSwitcherWidgetWallpaperSwitcherPlugin* self;
	gchar* cmd;
};

struct _WallpaperSwitcherWidgetWallpaperSwitcherWidgetPrivate {
	GtkImage* icon;
	GtkImage* stop_icon;
	GtkImage* start_icon;
	GtkBox* widget;
	GtkLabel* label;
	GtkButton* action_button;
	GSettings* switchersettings;
};

static gpointer wallpaper_switcher_widget_wallpaper_switcher_plugin_parent_class = NULL;
static BudgieRavenPluginIface * wallpaper_switcher_widget_wallpaper_switcher_plugin_budgie_raven_plugin_parent_iface = NULL;
static GType wallpaper_switcher_widget_wallpaper_switcher_plugin_type_id = 0;
static gint WallpaperSwitcherWidgetWallpaperSwitcherWidget_private_offset;
static gpointer wallpaper_switcher_widget_wallpaper_switcher_widget_parent_class = NULL;
static GType wallpaper_switcher_widget_wallpaper_switcher_widget_type_id = 0;

static BudgieRavenWidget* wallpaper_switcher_widget_wallpaper_switcher_plugin_real_new_widget_instance (BudgieRavenPlugin* base,
                                                                                                 const gchar* uuid,
                                                                                                 GSettings* settings);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
static gboolean __lambda4_ (Block1Data* _data1_);
static gboolean ___lambda4__gsource_func (gpointer self);
static gboolean wallpaper_switcher_widget_wallpaper_switcher_plugin_real_supports_settings (BudgieRavenPlugin* base);
static void __lambda5_ (WallpaperSwitcherWidgetWallpaperSwitcherWidget* self);
static void wallpaper_switcher_widget_wallpaper_switcher_widget_set_action_button_image (WallpaperSwitcherWidgetWallpaperSwitcherWidget* self,
                                                                                  gboolean running);
static void ___lambda5__gtk_button_clicked (GtkButton* _sender,
                                     gpointer self);
static void wallpaper_switcher_widget_wallpaper_switcher_widget_finalize (GObject * obj);

static Block1Data*
block1_data_ref (Block1Data* _data1_)
{
	g_atomic_int_inc (&_data1_->_ref_count_);
	return _data1_;
}

static void
block1_data_unref (void * _userdata_)
{
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
		WallpaperSwitcherWidgetWallpaperSwitcherPlugin* self;
		self = _data1_->self;
		_g_free0 (_data1_->cmd);
		_g_object_unref0 (self);
		g_slice_free (Block1Data, _data1_);
	}
}

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

static const gchar*
string_to_string (const gchar* self)
{
	const gchar* result;
	g_return_val_if_fail (self != NULL, NULL);
	result = self;
	return result;
}

static gboolean
__lambda4_ (Block1Data* _data1_)
{
	WallpaperSwitcherWidgetWallpaperSwitcherPlugin* self;
	GError* _inner_error0_ = NULL;
	gboolean result;
	self = _data1_->self;
	{
		g_spawn_command_line_async (_data1_->cmd, &_inner_error0_);
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
		g_clear_error (&_inner_error0_);
	}
	__finally0:
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
		gboolean _tmp0_ = FALSE;
		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 _tmp0_;
	}
	result = FALSE;
	return result;
}

static gboolean
___lambda4__gsource_func (gpointer self)
{
	gboolean result;
	result = __lambda4_ (self);
	return result;
}

static BudgieRavenWidget*
wallpaper_switcher_widget_wallpaper_switcher_plugin_real_new_widget_instance (BudgieRavenPlugin* base,
                                                                              const gchar* uuid,
                                                                              GSettings* settings)
{
	WallpaperSwitcherWidgetWallpaperSwitcherPlugin * self;
	Block1Data* _data1_;
	PeasPluginInfo* plugin_info = NULL;
	PeasPluginInfo* _tmp0_;
	PeasPluginInfo* _tmp1_;
	gchar* moduledir = NULL;
	const gchar* _tmp2_;
	gchar* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	WallpaperSwitcherWidgetWallpaperSwitcherWidget* _tmp9_;
	BudgieRavenWidget* result;
	self = (WallpaperSwitcherWidgetWallpaperSwitcherPlugin*) base;
	g_return_val_if_fail (uuid != NULL, NULL);
	_data1_ = g_slice_new0 (Block1Data);
	_data1_->_ref_count_ = 1;
	_data1_->self = g_object_ref (self);
	_tmp0_ = peas_extension_base_get_plugin_info ((PeasExtensionBase*) self);
	_tmp1_ = _g_object_ref0 (_tmp0_);
	plugin_info = _tmp1_;
	_tmp2_ = peas_plugin_info_get_module_dir (plugin_info);
	_tmp3_ = g_strdup (_tmp2_);
	moduledir = _tmp3_;
	_tmp4_ = string_to_string (uuid);
	_tmp5_ = g_strconcat ("/wallpaperswitcher_runner ", _tmp4_, NULL);
	_tmp6_ = _tmp5_;
	_tmp7_ = g_strconcat (moduledir, _tmp6_, NULL);
	_tmp8_ = _tmp7_;
	_g_free0 (_tmp6_);
	_data1_->cmd = _tmp8_;
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, ___lambda4__gsource_func, block1_data_ref (_data1_), block1_data_unref);
	wallpaper_switcher_widget_wallpaper_switcher_plugin_initialiseLocaleLanguageSupport (self);
	_tmp9_ = wallpaper_switcher_widget_wallpaper_switcher_widget_new (uuid, settings);
	g_object_ref_sink (_tmp9_);
	result = (BudgieRavenWidget*) _tmp9_;
	_g_free0 (moduledir);
	_g_object_unref0 (plugin_info);
	block1_data_unref (_data1_);
	_data1_ = NULL;
	return result;
}

void
wallpaper_switcher_widget_wallpaper_switcher_plugin_initialiseLocaleLanguageSupport (WallpaperSwitcherWidgetWallpaperSwitcherPlugin* self)
{
	g_return_if_fail (self != NULL);
	setlocale (LC_ALL, "");
	bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALEDIR);
	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
	textdomain (GETTEXT_PACKAGE);
}

static gboolean
wallpaper_switcher_widget_wallpaper_switcher_plugin_real_supports_settings (BudgieRavenPlugin* base)
{
	WallpaperSwitcherWidgetWallpaperSwitcherPlugin * self;
	gboolean result;
	self = (WallpaperSwitcherWidgetWallpaperSwitcherPlugin*) base;
	result = FALSE;
	return result;
}

WallpaperSwitcherWidgetWallpaperSwitcherPlugin*
wallpaper_switcher_widget_wallpaper_switcher_plugin_construct (GType object_type)
{
	WallpaperSwitcherWidgetWallpaperSwitcherPlugin * self = NULL;
	self = (WallpaperSwitcherWidgetWallpaperSwitcherPlugin*) g_object_new (object_type, NULL);
	return self;
}

WallpaperSwitcherWidgetWallpaperSwitcherPlugin*
wallpaper_switcher_widget_wallpaper_switcher_plugin_new (void)
{
	return wallpaper_switcher_widget_wallpaper_switcher_plugin_construct (WALLPAPER_SWITCHER_WIDGET_TYPE_WALLPAPER_SWITCHER_PLUGIN);
}

static void
wallpaper_switcher_widget_wallpaper_switcher_plugin_class_init (WallpaperSwitcherWidgetWallpaperSwitcherPluginClass * klass,
                                                                gpointer klass_data)
{
	wallpaper_switcher_widget_wallpaper_switcher_plugin_parent_class = g_type_class_peek_parent (klass);
}

static void
wallpaper_switcher_widget_wallpaper_switcher_plugin_budgie_raven_plugin_interface_init (BudgieRavenPluginIface * iface,
                                                                                        gpointer iface_data)
{
	wallpaper_switcher_widget_wallpaper_switcher_plugin_budgie_raven_plugin_parent_iface = g_type_interface_peek_parent (iface);
	iface->new_widget_instance = (BudgieRavenWidget* (*) (BudgieRavenPlugin*, const gchar*, GSettings*)) wallpaper_switcher_widget_wallpaper_switcher_plugin_real_new_widget_instance;
	iface->supports_settings = (gboolean (*) (BudgieRavenPlugin*)) wallpaper_switcher_widget_wallpaper_switcher_plugin_real_supports_settings;
}

static void
wallpaper_switcher_widget_wallpaper_switcher_plugin_instance_init (WallpaperSwitcherWidgetWallpaperSwitcherPlugin * self,
                                                                   gpointer klass)
{
}

GType
wallpaper_switcher_widget_wallpaper_switcher_plugin_get_type (void)
{
	return wallpaper_switcher_widget_wallpaper_switcher_plugin_type_id;
}

GType
wallpaper_switcher_widget_wallpaper_switcher_plugin_register_type (GTypeModule * module)
{
	static const GTypeInfo g_define_type_info = { sizeof (WallpaperSwitcherWidgetWallpaperSwitcherPluginClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) wallpaper_switcher_widget_wallpaper_switcher_plugin_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (WallpaperSwitcherWidgetWallpaperSwitcherPlugin), 0, (GInstanceInitFunc) wallpaper_switcher_widget_wallpaper_switcher_plugin_instance_init, NULL };
	static const GInterfaceInfo budgie_raven_plugin_info = { (GInterfaceInitFunc) wallpaper_switcher_widget_wallpaper_switcher_plugin_budgie_raven_plugin_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	wallpaper_switcher_widget_wallpaper_switcher_plugin_type_id = g_type_module_register_type (module, peas_extension_base_get_type (), "WallpaperSwitcherWidgetWallpaperSwitcherPlugin", &g_define_type_info, 0);
	g_type_module_add_interface (module, wallpaper_switcher_widget_wallpaper_switcher_plugin_type_id, budgie_raven_plugin_get_type (), &budgie_raven_plugin_info);
	return wallpaper_switcher_widget_wallpaper_switcher_plugin_type_id;
}

static inline gpointer
wallpaper_switcher_widget_wallpaper_switcher_widget_get_instance_private (WallpaperSwitcherWidgetWallpaperSwitcherWidget* self)
{
	return G_STRUCT_MEMBER_P (self, WallpaperSwitcherWidgetWallpaperSwitcherWidget_private_offset);
}

static void
__lambda5_ (WallpaperSwitcherWidgetWallpaperSwitcherWidget* self)
{
	gboolean running = FALSE;
	GSettings* _tmp0_;
	GSettings* _tmp1_;
	_tmp0_ = self->priv->switchersettings;
	running = !g_settings_get_boolean (_tmp0_, "runwswitcher");
	wallpaper_switcher_widget_wallpaper_switcher_widget_set_action_button_image (self, running);
	_tmp1_ = self->priv->switchersettings;
	g_settings_set_boolean (_tmp1_, "runwswitcher", running);
}

static void
___lambda5__gtk_button_clicked (GtkButton* _sender,
                                gpointer self)
{
	__lambda5_ ((WallpaperSwitcherWidgetWallpaperSwitcherWidget*) self);
}

WallpaperSwitcherWidgetWallpaperSwitcherWidget*
wallpaper_switcher_widget_wallpaper_switcher_widget_construct (GType object_type,
                                                               const gchar* uuid,
                                                               GSettings* settings)
{
	WallpaperSwitcherWidgetWallpaperSwitcherWidget * self = NULL;
	GSettings* _tmp0_;
	GtkBox* _tmp1_;
	GtkBox* _tmp2_;
	GtkBox* _tmp3_;
	GtkStyleContext* _tmp4_;
	GtkImage* _tmp5_;
	GtkImage* _tmp6_;
	GtkImage* _tmp7_;
	GtkImage* _tmp8_;
	GtkImage* _tmp9_;
	GtkImage* _tmp10_;
	GtkImage* _tmp11_;
	GtkBox* _tmp12_;
	GtkImage* _tmp13_;
	GtkLabel* _tmp14_;
	GtkBox* _tmp15_;
	GtkLabel* _tmp16_;
	GtkButton* _tmp17_;
	GtkButton* _tmp18_;
	GtkStyleContext* _tmp19_;
	GtkButton* _tmp20_;
	GtkStyleContext* _tmp21_;
	GtkButton* _tmp22_;
	GtkButton* _tmp23_;
	GtkBox* _tmp24_;
	GtkButton* _tmp25_;
	GtkButton* _tmp26_;
	GSettings* _tmp27_;
	g_return_val_if_fail (uuid != NULL, NULL);
	self = (WallpaperSwitcherWidgetWallpaperSwitcherWidget*) g_object_new (object_type, NULL);
	budgie_raven_widget_initialize ((BudgieRavenWidget*) self, uuid, settings);
	_tmp0_ = g_settings_new ("org.ubuntubudgie.plugins.budgie-wswitcher");
	_g_object_unref0 (self->priv->switchersettings);
	self->priv->switchersettings = _tmp0_;
	_tmp1_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
	g_object_ref_sink (_tmp1_);
	_g_object_unref0 (self->priv->widget);
	self->priv->widget = _tmp1_;
	_tmp2_ = self->priv->widget;
	gtk_container_add ((GtkContainer*) self, (GtkWidget*) _tmp2_);
	_tmp3_ = self->priv->widget;
	_tmp4_ = gtk_widget_get_style_context ((GtkWidget*) _tmp3_);
	gtk_style_context_add_class (_tmp4_, "raven-header");
	_tmp5_ = (GtkImage*) gtk_image_new_from_icon_name ("budgie-wsw-symbolic", (GtkIconSize) GTK_ICON_SIZE_MENU);
	g_object_ref_sink (_tmp5_);
	_g_object_unref0 (self->priv->icon);
	self->priv->icon = _tmp5_;
	_tmp6_ = self->priv->icon;
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp6_, WALLPAPER_SWITCHER_WIDGET_WALLPAPER_SWITCHER_WIDGET_EXPLAIN);
	_tmp7_ = (GtkImage*) gtk_image_new_from_icon_name ("media-playback-paused-symbolic", (GtkIconSize) GTK_ICON_SIZE_MENU);
	g_object_ref_sink (_tmp7_);
	_g_object_unref0 (self->priv->stop_icon);
	self->priv->stop_icon = _tmp7_;
	_tmp8_ = (GtkImage*) gtk_image_new_from_icon_name ("media-playback-start-symbolic", (GtkIconSize) GTK_ICON_SIZE_MENU);
	g_object_ref_sink (_tmp8_);
	_g_object_unref0 (self->priv->start_icon);
	self->priv->start_icon = _tmp8_;
	_tmp9_ = self->priv->icon;
	g_object_set ((GtkWidget*) _tmp9_, "margin", 4, NULL);
	_tmp10_ = self->priv->icon;
	gtk_widget_set_margin_start ((GtkWidget*) _tmp10_, 12);
	_tmp11_ = self->priv->icon;
	gtk_widget_set_margin_end ((GtkWidget*) _tmp11_, 10);
	_tmp12_ = self->priv->widget;
	_tmp13_ = self->priv->icon;
	gtk_container_add ((GtkContainer*) _tmp12_, (GtkWidget*) _tmp13_);
	_tmp14_ = (GtkLabel*) gtk_label_new ("Wallpaper Workplace Switcher");
	g_object_ref_sink (_tmp14_);
	_g_object_unref0 (self->priv->label);
	self->priv->label = _tmp14_;
	_tmp15_ = self->priv->widget;
	_tmp16_ = self->priv->label;
	gtk_container_add ((GtkContainer*) _tmp15_, (GtkWidget*) _tmp16_);
	_tmp17_ = (GtkButton*) gtk_button_new ();
	g_object_ref_sink (_tmp17_);
	_g_object_unref0 (self->priv->action_button);
	self->priv->action_button = _tmp17_;
	_tmp18_ = self->priv->action_button;
	_tmp19_ = gtk_widget_get_style_context ((GtkWidget*) _tmp18_);
	gtk_style_context_add_class (_tmp19_, "flat");
	_tmp20_ = self->priv->action_button;
	_tmp21_ = gtk_widget_get_style_context ((GtkWidget*) _tmp20_);
	gtk_style_context_add_class (_tmp21_, "expander-button");
	_tmp22_ = self->priv->action_button;
	g_object_set ((GtkWidget*) _tmp22_, "margin", 4, NULL);
	_tmp23_ = self->priv->action_button;
	gtk_widget_set_valign ((GtkWidget*) _tmp23_, GTK_ALIGN_CENTER);
	_tmp24_ = self->priv->widget;
	_tmp25_ = self->priv->action_button;
	gtk_box_pack_end (_tmp24_, (GtkWidget*) _tmp25_, FALSE, FALSE, (guint) 0);
	_tmp26_ = self->priv->action_button;
	g_signal_connect_object (_tmp26_, "clicked", (GCallback) ___lambda5__gtk_button_clicked, self, 0);
	_tmp27_ = self->priv->switchersettings;
	wallpaper_switcher_widget_wallpaper_switcher_widget_set_action_button_image (self, g_settings_get_boolean (_tmp27_, "runwswitcher"));
	gtk_widget_show_all ((GtkWidget*) self);
	return self;
}

WallpaperSwitcherWidgetWallpaperSwitcherWidget*
wallpaper_switcher_widget_wallpaper_switcher_widget_new (const gchar* uuid,
                                                         GSettings* settings)
{
	return wallpaper_switcher_widget_wallpaper_switcher_widget_construct (WALLPAPER_SWITCHER_WIDGET_TYPE_WALLPAPER_SWITCHER_WIDGET, uuid, settings);
}

static void
wallpaper_switcher_widget_wallpaper_switcher_widget_set_action_button_image (WallpaperSwitcherWidgetWallpaperSwitcherWidget* self,
                                                                             gboolean running)
{
	g_return_if_fail (self != NULL);
	if (running) {
		GtkButton* _tmp0_;
		GtkImage* _tmp1_;
		GtkButton* _tmp2_;
		GtkImage* _tmp3_;
		GtkStyleContext* _tmp4_;
		_tmp0_ = self->priv->action_button;
		_tmp1_ = self->priv->stop_icon;
		gtk_button_set_image (_tmp0_, (GtkWidget*) _tmp1_);
		_tmp2_ = self->priv->action_button;
		gtk_widget_set_tooltip_text ((GtkWidget*) _tmp2_, WALLPAPER_SWITCHER_WIDGET_WALLPAPER_SWITCHER_WIDGET_SETTRUE);
		_tmp3_ = self->priv->icon;
		_tmp4_ = gtk_widget_get_style_context ((GtkWidget*) _tmp3_);
		gtk_style_context_remove_class (_tmp4_, "dim-label");
	} else {
		GtkButton* _tmp5_;
		GtkImage* _tmp6_;
		GtkButton* _tmp7_;
		GtkImage* _tmp8_;
		GtkStyleContext* _tmp9_;
		_tmp5_ = self->priv->action_button;
		_tmp6_ = self->priv->start_icon;
		gtk_button_set_image (_tmp5_, (GtkWidget*) _tmp6_);
		_tmp7_ = self->priv->action_button;
		gtk_widget_set_tooltip_text ((GtkWidget*) _tmp7_, WALLPAPER_SWITCHER_WIDGET_WALLPAPER_SWITCHER_WIDGET_SETFALSE);
		_tmp8_ = self->priv->icon;
		_tmp9_ = gtk_widget_get_style_context ((GtkWidget*) _tmp8_);
		gtk_style_context_add_class (_tmp9_, "dim-label");
	}
}

static void
wallpaper_switcher_widget_wallpaper_switcher_widget_class_init (WallpaperSwitcherWidgetWallpaperSwitcherWidgetClass * klass,
                                                                gpointer klass_data)
{
	wallpaper_switcher_widget_wallpaper_switcher_widget_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &WallpaperSwitcherWidgetWallpaperSwitcherWidget_private_offset);
	G_OBJECT_CLASS (klass)->finalize = wallpaper_switcher_widget_wallpaper_switcher_widget_finalize;
}

static void
wallpaper_switcher_widget_wallpaper_switcher_widget_instance_init (WallpaperSwitcherWidgetWallpaperSwitcherWidget * self,
                                                                   gpointer klass)
{
	self->priv = wallpaper_switcher_widget_wallpaper_switcher_widget_get_instance_private (self);
}

static void
wallpaper_switcher_widget_wallpaper_switcher_widget_finalize (GObject * obj)
{
	WallpaperSwitcherWidgetWallpaperSwitcherWidget * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, WALLPAPER_SWITCHER_WIDGET_TYPE_WALLPAPER_SWITCHER_WIDGET, WallpaperSwitcherWidgetWallpaperSwitcherWidget);
	_g_object_unref0 (self->priv->icon);
	_g_object_unref0 (self->priv->stop_icon);
	_g_object_unref0 (self->priv->start_icon);
	_g_object_unref0 (self->priv->widget);
	_g_object_unref0 (self->priv->label);
	_g_object_unref0 (self->priv->action_button);
	_g_object_unref0 (self->priv->switchersettings);
	G_OBJECT_CLASS (wallpaper_switcher_widget_wallpaper_switcher_widget_parent_class)->finalize (obj);
}

GType
wallpaper_switcher_widget_wallpaper_switcher_widget_get_type (void)
{
	return wallpaper_switcher_widget_wallpaper_switcher_widget_type_id;
}

GType
wallpaper_switcher_widget_wallpaper_switcher_widget_register_type (GTypeModule * module)
{
	static const GTypeInfo g_define_type_info = { sizeof (WallpaperSwitcherWidgetWallpaperSwitcherWidgetClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) wallpaper_switcher_widget_wallpaper_switcher_widget_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (WallpaperSwitcherWidgetWallpaperSwitcherWidget), 0, (GInstanceInitFunc) wallpaper_switcher_widget_wallpaper_switcher_widget_instance_init, NULL };
	wallpaper_switcher_widget_wallpaper_switcher_widget_type_id = g_type_module_register_type (module, budgie_raven_widget_get_type (), "WallpaperSwitcherWidgetWallpaperSwitcherWidget", &g_define_type_info, 0);
	WallpaperSwitcherWidgetWallpaperSwitcherWidget_private_offset = sizeof (WallpaperSwitcherWidgetWallpaperSwitcherWidgetPrivate);
	return wallpaper_switcher_widget_wallpaper_switcher_widget_type_id;
}

void
peas_register_types (GTypeModule* module)
{
	PeasObjectModule* objmodule = NULL;
	PeasObjectModule* _tmp0_;
	g_return_if_fail (module != NULL);
	wallpaper_switcher_widget_wallpaper_switcher_plugin_register_type (module);
	wallpaper_switcher_widget_wallpaper_switcher_widget_register_type (module);
	_tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (module, peas_object_module_get_type ()) ? ((PeasObjectModule*) module) : NULL);
	objmodule = _tmp0_;
	peas_object_module_register_extension_type (objmodule, budgie_raven_plugin_get_type (), WALLPAPER_SWITCHER_WIDGET_TYPE_WALLPAPER_SWITCHER_PLUGIN);
	_g_object_unref0 (objmodule);
}

