Blame ui/gtk3/separator.c

Packit Service 1d8f1c
/* separator.c generated by valac 0.40.8, the Vala compiler
Packit Service 1d8f1c
 * generated from separator.vala, do not modify */
Packit Service 1d8f1c
Packit Service 1d8f1c
/* vim:set et sts=4 sw=4:
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * ibus - The Input Bus
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * Copyright(c) 2011-2014 Peng Huang <shawn.p.huang@gmail.com>
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * This library is free software; you can redistribute it and/or
Packit Service 1d8f1c
 * modify it under the terms of the GNU Lesser General Public
Packit Service 1d8f1c
 * License as published by the Free Software Foundation; either
Packit Service 1d8f1c
 * version 2.1 of the License, or (at your option) any later version.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * This library is distributed in the hope that it will be useful,
Packit Service 1d8f1c
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 1d8f1c
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 1d8f1c
 * Lesser General Public License for more details.
Packit Service 1d8f1c
 *
Packit Service 1d8f1c
 * You should have received a copy of the GNU Lesser General Public
Packit Service 1d8f1c
 * License along with this library; if not, write to the Free Software
Packit Service 1d8f1c
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301
Packit Service 1d8f1c
 * USA
Packit Service 1d8f1c
 */
Packit Service 1d8f1c
Packit Service 1d8f1c
Packit Service 1d8f1c
#include <glib.h>
Packit Service 1d8f1c
#include <glib-object.h>
Packit Service 1d8f1c
#include <gtk/gtk.h>
Packit Service 1d8f1c
Packit Service 1d8f1c
Packit Service 1d8f1c
#define TYPE_HSEPARATOR (hseparator_get_type ())
Packit Service 1d8f1c
#define HSEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HSEPARATOR, HSeparator))
Packit Service 1d8f1c
#define HSEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HSEPARATOR, HSeparatorClass))
Packit Service 1d8f1c
#define IS_HSEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HSEPARATOR))
Packit Service 1d8f1c
#define IS_HSEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HSEPARATOR))
Packit Service 1d8f1c
#define HSEPARATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HSEPARATOR, HSeparatorClass))
Packit Service 1d8f1c
Packit Service 1d8f1c
typedef struct _HSeparator HSeparator;
Packit Service 1d8f1c
typedef struct _HSeparatorClass HSeparatorClass;
Packit Service 1d8f1c
typedef struct _HSeparatorPrivate HSeparatorPrivate;
Packit Service 1d8f1c
enum  {
Packit Service 1d8f1c
	HSEPARATOR_0_PROPERTY,
Packit Service 1d8f1c
	HSEPARATOR_NUM_PROPERTIES
Packit Service 1d8f1c
};
Packit Service 1d8f1c
static GParamSpec* hseparator_properties[HSEPARATOR_NUM_PROPERTIES];
Packit Service 1d8f1c
Packit Service 1d8f1c
#define TYPE_VSEPARATOR (vseparator_get_type ())
Packit Service 1d8f1c
#define VSEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_VSEPARATOR, VSeparator))
Packit Service 1d8f1c
#define VSEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_VSEPARATOR, VSeparatorClass))
Packit Service 1d8f1c
#define IS_VSEPARATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_VSEPARATOR))
Packit Service 1d8f1c
#define IS_VSEPARATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_VSEPARATOR))
Packit Service 1d8f1c
#define VSEPARATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_VSEPARATOR, VSeparatorClass))
Packit Service 1d8f1c
Packit Service 1d8f1c
typedef struct _VSeparator VSeparator;
Packit Service 1d8f1c
typedef struct _VSeparatorClass VSeparatorClass;
Packit Service 1d8f1c
typedef struct _VSeparatorPrivate VSeparatorPrivate;
Packit Service 1d8f1c
enum  {
Packit Service 1d8f1c
	VSEPARATOR_0_PROPERTY,
Packit Service 1d8f1c
	VSEPARATOR_NUM_PROPERTIES
Packit Service 1d8f1c
};
Packit Service 1d8f1c
static GParamSpec* vseparator_properties[VSEPARATOR_NUM_PROPERTIES];
Packit Service 1d8f1c
Packit Service 1d8f1c
struct _HSeparator {
Packit Service 1d8f1c
	GtkSeparator parent_instance;
Packit Service 1d8f1c
	HSeparatorPrivate * priv;
Packit Service 1d8f1c
};
Packit Service 1d8f1c
Packit Service 1d8f1c
struct _HSeparatorClass {
Packit Service 1d8f1c
	GtkSeparatorClass parent_class;
Packit Service 1d8f1c
};
Packit Service 1d8f1c
Packit Service 1d8f1c
struct _VSeparator {
Packit Service 1d8f1c
	GtkSeparator parent_instance;
Packit Service 1d8f1c
	VSeparatorPrivate * priv;
Packit Service 1d8f1c
};
Packit Service 1d8f1c
Packit Service 1d8f1c
struct _VSeparatorClass {
Packit Service 1d8f1c
	GtkSeparatorClass parent_class;
Packit Service 1d8f1c
};
Packit Service 1d8f1c
Packit Service 1d8f1c
Packit Service 1d8f1c
static gpointer hseparator_parent_class = NULL;
Packit Service 1d8f1c
static gpointer vseparator_parent_class = NULL;
Packit Service 1d8f1c
Packit Service 1d8f1c
GType hseparator_get_type (void) G_GNUC_CONST;
Packit Service 1d8f1c
HSeparator* hseparator_new (void);
Packit Service 1d8f1c
HSeparator* hseparator_construct (GType object_type);
Packit Service 1d8f1c
GType vseparator_get_type (void) G_GNUC_CONST;
Packit Service 1d8f1c
VSeparator* vseparator_new (void);
Packit Service 1d8f1c
VSeparator* vseparator_construct (GType object_type);
Packit Service 1d8f1c
Packit Service 1d8f1c
Packit Service 1d8f1c
HSeparator*
Packit Service 1d8f1c
hseparator_construct (GType object_type)
Packit Service 1d8f1c
{
Packit Service 1d8f1c
	HSeparator * self = NULL;
Packit Service 1d8f1c
	self = (HSeparator*) g_object_new (object_type, "orientation", GTK_ORIENTATION_HORIZONTAL, "margin", 2, NULL);
Packit Service 1d8f1c
	return self;
Packit Service 1d8f1c
}
Packit Service 1d8f1c
Packit Service 1d8f1c
Packit Service 1d8f1c
HSeparator*
Packit Service 1d8f1c
hseparator_new (void)
Packit Service 1d8f1c
{
Packit Service 1d8f1c
	return hseparator_construct (TYPE_HSEPARATOR);
Packit Service 1d8f1c
}
Packit Service 1d8f1c
Packit Service 1d8f1c
Packit Service 1d8f1c
static void
Packit Service 1d8f1c
hseparator_class_init (HSeparatorClass * klass)
Packit Service 1d8f1c
{
Packit Service 1d8f1c
	hseparator_parent_class = g_type_class_peek_parent (klass);
Packit Service 1d8f1c
}
Packit Service 1d8f1c
Packit Service 1d8f1c
Packit Service 1d8f1c
static void
Packit Service 1d8f1c
hseparator_instance_init (HSeparator * self)
Packit Service 1d8f1c
{
Packit Service 1d8f1c
}
Packit Service 1d8f1c
Packit Service 1d8f1c
Packit Service 1d8f1c
GType
Packit Service 1d8f1c
hseparator_get_type (void)
Packit Service 1d8f1c
{
Packit Service 1d8f1c
	static volatile gsize hseparator_type_id__volatile = 0;
Packit Service 1d8f1c
	if (g_once_init_enter (&hseparator_type_id__volatile)) {
Packit Service 1d8f1c
		static const GTypeInfo g_define_type_info = { sizeof (HSeparatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) hseparator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (HSeparator), 0, (GInstanceInitFunc) hseparator_instance_init, NULL };
Packit Service 1d8f1c
		GType hseparator_type_id;
Packit Service 1d8f1c
		hseparator_type_id = g_type_register_static (gtk_separator_get_type (), "HSeparator", &g_define_type_info, 0);
Packit Service 1d8f1c
		g_once_init_leave (&hseparator_type_id__volatile, hseparator_type_id);
Packit Service 1d8f1c
	}
Packit Service 1d8f1c
	return hseparator_type_id__volatile;
Packit Service 1d8f1c
}
Packit Service 1d8f1c
Packit Service 1d8f1c
Packit Service 1d8f1c
VSeparator*
Packit Service 1d8f1c
vseparator_construct (GType object_type)
Packit Service 1d8f1c
{
Packit Service 1d8f1c
	VSeparator * self = NULL;
Packit Service 1d8f1c
	self = (VSeparator*) g_object_new (object_type, "orientation", GTK_ORIENTATION_VERTICAL, "margin", 2, NULL);
Packit Service 1d8f1c
	return self;
Packit Service 1d8f1c
}
Packit Service 1d8f1c
Packit Service 1d8f1c
Packit Service 1d8f1c
VSeparator*
Packit Service 1d8f1c
vseparator_new (void)
Packit Service 1d8f1c
{
Packit Service 1d8f1c
	return vseparator_construct (TYPE_VSEPARATOR);
Packit Service 1d8f1c
}
Packit Service 1d8f1c
Packit Service 1d8f1c
Packit Service 1d8f1c
static void
Packit Service 1d8f1c
vseparator_class_init (VSeparatorClass * klass)
Packit Service 1d8f1c
{
Packit Service 1d8f1c
	vseparator_parent_class = g_type_class_peek_parent (klass);
Packit Service 1d8f1c
}
Packit Service 1d8f1c
Packit Service 1d8f1c
Packit Service 1d8f1c
static void
Packit Service 1d8f1c
vseparator_instance_init (VSeparator * self)
Packit Service 1d8f1c
{
Packit Service 1d8f1c
}
Packit Service 1d8f1c
Packit Service 1d8f1c
Packit Service 1d8f1c
GType
Packit Service 1d8f1c
vseparator_get_type (void)
Packit Service 1d8f1c
{
Packit Service 1d8f1c
	static volatile gsize vseparator_type_id__volatile = 0;
Packit Service 1d8f1c
	if (g_once_init_enter (&vseparator_type_id__volatile)) {
Packit Service 1d8f1c
		static const GTypeInfo g_define_type_info = { sizeof (VSeparatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vseparator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (VSeparator), 0, (GInstanceInitFunc) vseparator_instance_init, NULL };
Packit Service 1d8f1c
		GType vseparator_type_id;
Packit Service 1d8f1c
		vseparator_type_id = g_type_register_static (gtk_separator_get_type (), "VSeparator", &g_define_type_info, 0);
Packit Service 1d8f1c
		g_once_init_leave (&vseparator_type_id__volatile, vseparator_type_id);
Packit Service 1d8f1c
	}
Packit Service 1d8f1c
	return vseparator_type_id__volatile;
Packit Service 1d8f1c
}
Packit Service 1d8f1c
Packit Service 1d8f1c
Packit Service 1d8f1c