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

/*
    IIndicatorService.vala
    Copyright (C) 2010 Maia Kozheva <sikon@ubuntu.com>

    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 3 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.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#include <glib-object.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>

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

#define STEADYFLOW_UI_TYPE_IINDICATOR_SERVICE (steadyflow_ui_iindicator_service_get_type ())
#define STEADYFLOW_UI_IINDICATOR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), STEADYFLOW_UI_TYPE_IINDICATOR_SERVICE, SteadyflowUIIIndicatorService))
#define STEADYFLOW_UI_IS_IINDICATOR_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), STEADYFLOW_UI_TYPE_IINDICATOR_SERVICE))
#define STEADYFLOW_UI_IINDICATOR_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), STEADYFLOW_UI_TYPE_IINDICATOR_SERVICE, SteadyflowUIIIndicatorServiceIface))

typedef struct _SteadyflowUIIIndicatorService SteadyflowUIIIndicatorService;
typedef struct _SteadyflowUIIIndicatorServiceIface SteadyflowUIIIndicatorServiceIface;
enum  {
	STEADYFLOW_UI_IINDICATOR_SERVICE_CLICKED_SIGNAL,
	STEADYFLOW_UI_IINDICATOR_SERVICE_NUM_SIGNALS
};
static guint steadyflow_ui_iindicator_service_signals[STEADYFLOW_UI_IINDICATOR_SERVICE_NUM_SIGNALS] = {0};

struct _SteadyflowUIIIndicatorServiceIface {
	GTypeInterface parent_iface;
	void (*set_menu) (SteadyflowUIIIndicatorService* self, GtkMenu* menu);
	gchar* (*get_icon_name) (SteadyflowUIIIndicatorService* self);
	void (*set_icon_name) (SteadyflowUIIIndicatorService* self, const gchar* value);
	gboolean (*get_visible) (SteadyflowUIIIndicatorService* self);
	void (*set_visible) (SteadyflowUIIIndicatorService* self, gboolean value);
};

VALA_EXTERN GType steadyflow_ui_iindicator_service_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SteadyflowUIIIndicatorService, g_object_unref)
VALA_EXTERN void steadyflow_ui_iindicator_service_set_menu (SteadyflowUIIIndicatorService* self,
                                                GtkMenu* menu);
VALA_EXTERN gchar* steadyflow_ui_iindicator_service_get_icon_name (SteadyflowUIIIndicatorService* self);
VALA_EXTERN void steadyflow_ui_iindicator_service_set_icon_name (SteadyflowUIIIndicatorService* self,
                                                     const gchar* value);
VALA_EXTERN gboolean steadyflow_ui_iindicator_service_get_visible (SteadyflowUIIIndicatorService* self);
VALA_EXTERN void steadyflow_ui_iindicator_service_set_visible (SteadyflowUIIIndicatorService* self,
                                                   gboolean value);
static GType steadyflow_ui_iindicator_service_get_type_once (void);

void
steadyflow_ui_iindicator_service_set_menu (SteadyflowUIIIndicatorService* self,
                                           GtkMenu* menu)
{
	SteadyflowUIIIndicatorServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = STEADYFLOW_UI_IINDICATOR_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_menu) {
		_iface_->set_menu (self, menu);
	}
}

gchar*
steadyflow_ui_iindicator_service_get_icon_name (SteadyflowUIIIndicatorService* self)
{
	SteadyflowUIIIndicatorServiceIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = STEADYFLOW_UI_IINDICATOR_SERVICE_GET_INTERFACE (self);
	if (_iface_->get_icon_name) {
		return _iface_->get_icon_name (self);
	}
	return NULL;
}

void
steadyflow_ui_iindicator_service_set_icon_name (SteadyflowUIIIndicatorService* self,
                                                const gchar* value)
{
	SteadyflowUIIIndicatorServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = STEADYFLOW_UI_IINDICATOR_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_icon_name) {
		_iface_->set_icon_name (self, value);
	}
}

gboolean
steadyflow_ui_iindicator_service_get_visible (SteadyflowUIIIndicatorService* self)
{
	SteadyflowUIIIndicatorServiceIface* _iface_;
	g_return_val_if_fail (self != NULL, FALSE);
	_iface_ = STEADYFLOW_UI_IINDICATOR_SERVICE_GET_INTERFACE (self);
	if (_iface_->get_visible) {
		return _iface_->get_visible (self);
	}
	return FALSE;
}

void
steadyflow_ui_iindicator_service_set_visible (SteadyflowUIIIndicatorService* self,
                                              gboolean value)
{
	SteadyflowUIIIndicatorServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = STEADYFLOW_UI_IINDICATOR_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_visible) {
		_iface_->set_visible (self, value);
	}
}

static void
steadyflow_ui_iindicator_service_default_init (SteadyflowUIIIndicatorServiceIface * iface,
                                               gpointer iface_data)
{
	g_object_interface_install_property (iface, g_param_spec_string ("icon-name", "icon-name", "icon-name", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_interface_install_property (iface, g_param_spec_boolean ("visible", "visible", "visible", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
	steadyflow_ui_iindicator_service_signals[STEADYFLOW_UI_IINDICATOR_SERVICE_CLICKED_SIGNAL] = g_signal_new ("clicked", STEADYFLOW_UI_TYPE_IINDICATOR_SERVICE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
}

static GType
steadyflow_ui_iindicator_service_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SteadyflowUIIIndicatorServiceIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) steadyflow_ui_iindicator_service_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType steadyflow_ui_iindicator_service_type_id;
	steadyflow_ui_iindicator_service_type_id = g_type_register_static (G_TYPE_INTERFACE, "SteadyflowUIIIndicatorService", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (steadyflow_ui_iindicator_service_type_id, G_TYPE_OBJECT);
	return steadyflow_ui_iindicator_service_type_id;
}

GType
steadyflow_ui_iindicator_service_get_type (void)
{
	static volatile gsize steadyflow_ui_iindicator_service_type_id__once = 0;
	if (g_once_init_enter (&steadyflow_ui_iindicator_service_type_id__once)) {
		GType steadyflow_ui_iindicator_service_type_id;
		steadyflow_ui_iindicator_service_type_id = steadyflow_ui_iindicator_service_get_type_once ();
		g_once_init_leave (&steadyflow_ui_iindicator_service_type_id__once, steadyflow_ui_iindicator_service_type_id);
	}
	return steadyflow_ui_iindicator_service_type_id__once;
}

