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

/* -*- Mode: Vala; indent-tabs-mode: nil; tab-width: 2 -*- */
/*
    This file is part of Déjà Dup.
    For copyright information, see AUTHORS.

    Déjà Dup 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.

    Déjà Dup 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 Déjà Dup.  If not, see <http://www.gnu.org/licenses/>.
*/

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


#define DEJA_DUP_TYPE_CONFIG_LOCATION_TABLE (deja_dup_config_location_table_get_type ())
#define DEJA_DUP_CONFIG_LOCATION_TABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEJA_DUP_TYPE_CONFIG_LOCATION_TABLE, DejaDupConfigLocationTable))
#define DEJA_DUP_CONFIG_LOCATION_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DEJA_DUP_TYPE_CONFIG_LOCATION_TABLE, DejaDupConfigLocationTableClass))
#define DEJA_DUP_IS_CONFIG_LOCATION_TABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEJA_DUP_TYPE_CONFIG_LOCATION_TABLE))
#define DEJA_DUP_IS_CONFIG_LOCATION_TABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DEJA_DUP_TYPE_CONFIG_LOCATION_TABLE))
#define DEJA_DUP_CONFIG_LOCATION_TABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DEJA_DUP_TYPE_CONFIG_LOCATION_TABLE, DejaDupConfigLocationTableClass))

typedef struct _DejaDupConfigLocationTable DejaDupConfigLocationTable;
typedef struct _DejaDupConfigLocationTableClass DejaDupConfigLocationTableClass;
typedef struct _DejaDupConfigLocationTablePrivate DejaDupConfigLocationTablePrivate;

#define DEJA_DUP_TYPE_CONFIG_LOCATION_U1 (deja_dup_config_location_u1_get_type ())
#define DEJA_DUP_CONFIG_LOCATION_U1(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEJA_DUP_TYPE_CONFIG_LOCATION_U1, DejaDupConfigLocationU1))
#define DEJA_DUP_CONFIG_LOCATION_U1_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DEJA_DUP_TYPE_CONFIG_LOCATION_U1, DejaDupConfigLocationU1Class))
#define DEJA_DUP_IS_CONFIG_LOCATION_U1(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEJA_DUP_TYPE_CONFIG_LOCATION_U1))
#define DEJA_DUP_IS_CONFIG_LOCATION_U1_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DEJA_DUP_TYPE_CONFIG_LOCATION_U1))
#define DEJA_DUP_CONFIG_LOCATION_U1_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DEJA_DUP_TYPE_CONFIG_LOCATION_U1, DejaDupConfigLocationU1Class))

typedef struct _DejaDupConfigLocationU1 DejaDupConfigLocationU1;
typedef struct _DejaDupConfigLocationU1Class DejaDupConfigLocationU1Class;
typedef struct _DejaDupConfigLocationU1Private DejaDupConfigLocationU1Private;
#define _g_free0(var) (var = (g_free (var), NULL))

#define DEJA_DUP_TYPE_CONFIG_WIDGET (deja_dup_config_widget_get_type ())
#define DEJA_DUP_CONFIG_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEJA_DUP_TYPE_CONFIG_WIDGET, DejaDupConfigWidget))
#define DEJA_DUP_CONFIG_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DEJA_DUP_TYPE_CONFIG_WIDGET, DejaDupConfigWidgetClass))
#define DEJA_DUP_IS_CONFIG_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEJA_DUP_TYPE_CONFIG_WIDGET))
#define DEJA_DUP_IS_CONFIG_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DEJA_DUP_TYPE_CONFIG_WIDGET))
#define DEJA_DUP_CONFIG_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DEJA_DUP_TYPE_CONFIG_WIDGET, DejaDupConfigWidgetClass))

typedef struct _DejaDupConfigWidget DejaDupConfigWidget;
typedef struct _DejaDupConfigWidgetClass DejaDupConfigWidgetClass;

#define DEJA_DUP_TYPE_CONFIG_BOOL (deja_dup_config_bool_get_type ())
#define DEJA_DUP_CONFIG_BOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEJA_DUP_TYPE_CONFIG_BOOL, DejaDupConfigBool))
#define DEJA_DUP_CONFIG_BOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DEJA_DUP_TYPE_CONFIG_BOOL, DejaDupConfigBoolClass))
#define DEJA_DUP_IS_CONFIG_BOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEJA_DUP_TYPE_CONFIG_BOOL))
#define DEJA_DUP_IS_CONFIG_BOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DEJA_DUP_TYPE_CONFIG_BOOL))
#define DEJA_DUP_CONFIG_BOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DEJA_DUP_TYPE_CONFIG_BOOL, DejaDupConfigBoolClass))

typedef struct _DejaDupConfigBool DejaDupConfigBool;
typedef struct _DejaDupConfigBoolClass DejaDupConfigBoolClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

struct _DejaDupConfigLocationTable {
	GtkGrid parent_instance;
	DejaDupConfigLocationTablePrivate * priv;
	gint row;
};

struct _DejaDupConfigLocationTableClass {
	GtkGridClass parent_class;
};

struct _DejaDupConfigLocationU1 {
	DejaDupConfigLocationTable parent_instance;
	DejaDupConfigLocationU1Private * priv;
};

struct _DejaDupConfigLocationU1Class {
	DejaDupConfigLocationTableClass parent_class;
};


static gpointer deja_dup_config_location_u1_parent_class = NULL;

GType deja_dup_config_location_table_get_type (void) G_GNUC_CONST;
GType deja_dup_config_location_u1_get_type (void) G_GNUC_CONST;
enum  {
	DEJA_DUP_CONFIG_LOCATION_U1_DUMMY_PROPERTY
};
DejaDupConfigLocationU1* deja_dup_config_location_u1_new (GtkSizeGroup* sg);
DejaDupConfigLocationU1* deja_dup_config_location_u1_construct (GType object_type, GtkSizeGroup* sg);
static GObject * deja_dup_config_location_u1_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
GType deja_dup_config_widget_get_type (void) G_GNUC_CONST;
GType deja_dup_config_bool_get_type (void) G_GNUC_CONST;
void deja_dup_config_location_table_add_wide_widget (DejaDupConfigLocationTable* self, GtkWidget* w, DejaDupConfigBool* check);


DejaDupConfigLocationU1* deja_dup_config_location_u1_construct (GType object_type, GtkSizeGroup* sg) {
	DejaDupConfigLocationU1 * self = NULL;
	GtkSizeGroup* _tmp0_ = NULL;
	g_return_val_if_fail (sg != NULL, NULL);
	_tmp0_ = sg;
	self = (DejaDupConfigLocationU1*) g_object_new (object_type, "label-sizes", _tmp0_, NULL);
	return self;
}


DejaDupConfigLocationU1* deja_dup_config_location_u1_new (GtkSizeGroup* sg) {
	return deja_dup_config_location_u1_construct (DEJA_DUP_TYPE_CONFIG_LOCATION_U1, sg);
}


static GObject * deja_dup_config_location_u1_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	DejaDupConfigLocationU1 * self;
	GtkLabel* label = NULL;
	GtkLabel* _tmp0_ = NULL;
	GtkLabel* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	GtkLabel* _tmp5_ = NULL;
	GtkLabel* _tmp6_ = NULL;
	parent_class = G_OBJECT_CLASS (deja_dup_config_location_u1_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, DEJA_DUP_TYPE_CONFIG_LOCATION_U1, DejaDupConfigLocationU1);
	_tmp0_ = (GtkLabel*) gtk_label_new ("");
	g_object_ref_sink (_tmp0_);
	label = _tmp0_;
	_tmp1_ = label;
	_tmp2_ = _ ("Ubuntu One has shut down.  Please choose another storage location.");
	_tmp3_ = g_strdup_printf ("<b><big>%s</big></b>", _tmp2_);
	_tmp4_ = _tmp3_;
	gtk_label_set_markup (_tmp1_, _tmp4_);
	_g_free0 (_tmp4_);
	_tmp5_ = label;
	gtk_widget_set_margin_top ((GtkWidget*) _tmp5_, 20);
	_tmp6_ = label;
	deja_dup_config_location_table_add_wide_widget ((DejaDupConfigLocationTable*) self, (GtkWidget*) _tmp6_, NULL);
	_g_object_unref0 (label);
	return obj;
}


static void deja_dup_config_location_u1_class_init (DejaDupConfigLocationU1Class * klass) {
	deja_dup_config_location_u1_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->constructor = deja_dup_config_location_u1_constructor;
}


static void deja_dup_config_location_u1_instance_init (DejaDupConfigLocationU1 * self) {
}


GType deja_dup_config_location_u1_get_type (void) {
	static volatile gsize deja_dup_config_location_u1_type_id__volatile = 0;
	if (g_once_init_enter (&deja_dup_config_location_u1_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (DejaDupConfigLocationU1Class), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) deja_dup_config_location_u1_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DejaDupConfigLocationU1), 0, (GInstanceInitFunc) deja_dup_config_location_u1_instance_init, NULL };
		GType deja_dup_config_location_u1_type_id;
		deja_dup_config_location_u1_type_id = g_type_register_static (DEJA_DUP_TYPE_CONFIG_LOCATION_TABLE, "DejaDupConfigLocationU1", &g_define_type_info, 0);
		g_once_init_leave (&deja_dup_config_location_u1_type_id__volatile, deja_dup_config_location_u1_type_id);
	}
	return deja_dup_config_location_u1_type_id__volatile;
}



