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

/*
 * This file is part of budgie-desktop
 *
 * Copyright © 2018-2022 Budgie Desktop Developers
 *
 * 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.
 */

#include "raven.h"
#include <glib.h>
#include <gtk/gtk.h>
#include <glib-object.h>

enum  {
	RAVEN_WIDGET_0_PROPERTY,
	RAVEN_WIDGET_NUM_PROPERTIES
};
static GParamSpec* raven_widget_properties[RAVEN_WIDGET_NUM_PROPERTIES];

static gpointer raven_widget_parent_class = NULL;

static GType raven_widget_get_type_once (void);

/**
 * set_show will set our show / hide to specified state
 */
void
raven_widget_set_show (RavenWidget* self,
                       gboolean show)
{
	g_return_if_fail (self != NULL);
	if (show) {
		gtk_widget_show_all ((GtkWidget*) self);
	} else {
		gtk_widget_hide ((GtkWidget*) self);
	}
	gtk_widget_queue_draw ((GtkWidget*) self);
}

RavenWidget*
raven_widget_construct (GType object_type)
{
	RavenWidget * self = NULL;
	self = (RavenWidget*) g_object_new (object_type, NULL);
	return self;
}

RavenWidget*
raven_widget_new (void)
{
	return raven_widget_construct (TYPE_RAVEN_WIDGET);
}

static void
raven_widget_class_init (RavenWidgetClass * klass,
                         gpointer klass_data)
{
	raven_widget_parent_class = g_type_class_peek_parent (klass);
}

static void
raven_widget_instance_init (RavenWidget * self,
                            gpointer klass)
{
}

static GType
raven_widget_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (RavenWidgetClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) raven_widget_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RavenWidget), 0, (GInstanceInitFunc) raven_widget_instance_init, NULL };
	GType raven_widget_type_id;
	raven_widget_type_id = g_type_register_static (gtk_box_get_type (), "RavenWidget", &g_define_type_info, 0);
	return raven_widget_type_id;
}

GType
raven_widget_get_type (void)
{
	static volatile gsize raven_widget_type_id__once = 0;
	if (g_once_init_enter (&raven_widget_type_id__once)) {
		GType raven_widget_type_id;
		raven_widget_type_id = raven_widget_get_type_once ();
		g_once_init_leave (&raven_widget_type_id__once, raven_widget_type_id);
	}
	return raven_widget_type_id__once;
}

