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

/*
 * Copyright (c) 2026 focus-timer contributors
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

#include "ft_plugin_kde.h"
#include <glib-object.h>
#include <glib.h>
#include <libpeas.h>
#include "ft_core.h"
#include <stdlib.h>
#include <string.h>
#include "ft_ui.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

#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

GType kde_preferences_window_extension_register_type (GTypeModule * module);

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

void
kde_peas_register_types (GTypeModule* module)
{
	PeasObjectModule* object_module = NULL;
	PeasObjectModule* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gboolean _tmp3_;
	PeasObjectModule* _tmp4_;
	g_return_if_fail (module != NULL);
	kde_preferences_window_extension_register_type (module);
	_tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (module, peas_object_module_get_type ()) ? ((PeasObjectModule*) module) : NULL);
	object_module = _tmp0_;
	_tmp1_ = ft_get_desktop_name ();
	_tmp2_ = _tmp1_;
	_tmp3_ = g_strcmp0 (_tmp2_, "kde") != 0;
	_g_free0 (_tmp2_);
	if (_tmp3_) {
		_g_object_unref0 (object_module);
		return;
	}
	_tmp4_ = object_module;
	peas_object_module_register_extension_type (_tmp4_, FT_TYPE_PREFERENCES_WINDOW_EXTENSION, KDE_TYPE_PREFERENCES_WINDOW_EXTENSION);
	_g_object_unref0 (object_module);
}

