/* Preferences.c generated by valac 0.30.0, the Vala compiler
 * generated from Preferences.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 "deja.h"
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <atk/atk.h>
#include <glib/gi18n-lib.h>
#include "widgets.h"
#include <gdk/gdk.h>
#include <pango/pango.h>


#define DEJA_DUP_TYPE_PREFERENCES_PERIODIC_SWITCH (deja_dup_preferences_periodic_switch_get_type ())
#define DEJA_DUP_PREFERENCES_PERIODIC_SWITCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEJA_DUP_TYPE_PREFERENCES_PERIODIC_SWITCH, DejaDupPreferencesPeriodicSwitch))
#define DEJA_DUP_PREFERENCES_PERIODIC_SWITCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DEJA_DUP_TYPE_PREFERENCES_PERIODIC_SWITCH, DejaDupPreferencesPeriodicSwitchClass))
#define DEJA_DUP_IS_PREFERENCES_PERIODIC_SWITCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEJA_DUP_TYPE_PREFERENCES_PERIODIC_SWITCH))
#define DEJA_DUP_IS_PREFERENCES_PERIODIC_SWITCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DEJA_DUP_TYPE_PREFERENCES_PERIODIC_SWITCH))
#define DEJA_DUP_PREFERENCES_PERIODIC_SWITCH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DEJA_DUP_TYPE_PREFERENCES_PERIODIC_SWITCH, DejaDupPreferencesPeriodicSwitchClass))

typedef struct _DejaDupPreferencesPeriodicSwitch DejaDupPreferencesPeriodicSwitch;
typedef struct _DejaDupPreferencesPeriodicSwitchClass DejaDupPreferencesPeriodicSwitchClass;
typedef struct _DejaDupPreferencesPeriodicSwitchPrivate DejaDupPreferencesPeriodicSwitchPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define DEJA_DUP_TYPE_PREFERENCES (deja_dup_preferences_get_type ())
#define DEJA_DUP_PREFERENCES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEJA_DUP_TYPE_PREFERENCES, DejaDupPreferences))
#define DEJA_DUP_PREFERENCES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DEJA_DUP_TYPE_PREFERENCES, DejaDupPreferencesClass))
#define DEJA_DUP_IS_PREFERENCES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEJA_DUP_TYPE_PREFERENCES))
#define DEJA_DUP_IS_PREFERENCES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DEJA_DUP_TYPE_PREFERENCES))
#define DEJA_DUP_PREFERENCES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DEJA_DUP_TYPE_PREFERENCES, DejaDupPreferencesClass))

typedef struct _DejaDupPreferences DejaDupPreferences;
typedef struct _DejaDupPreferencesClass DejaDupPreferencesClass;
typedef struct _DejaDupPreferencesPrivate DejaDupPreferencesPrivate;
typedef struct _Block1Data Block1Data;
#define _pango_attr_list_unref0(var) ((var == NULL) ? NULL : (var = (pango_attr_list_unref (var), NULL)))

struct _DejaDupPreferencesPeriodicSwitch {
	GtkSwitch parent_instance;
	DejaDupPreferencesPeriodicSwitchPrivate * priv;
};

struct _DejaDupPreferencesPeriodicSwitchClass {
	GtkSwitchClass parent_class;
};

struct _DejaDupPreferences {
	GtkGrid parent_instance;
	DejaDupPreferencesPrivate * priv;
};

struct _DejaDupPreferencesClass {
	GtkGridClass parent_class;
};

struct _DejaDupPreferencesPrivate {
	gboolean _show_auto_switch;
	GtkWidget* backup_button;
	GtkWidget* restore_button;
	guint bus_watch_id;
};

struct _Block1Data {
	int _ref_count_;
	DejaDupPreferences* self;
	GtkNotebook* notebook;
	GtkListStore* cat_model;
	GtkTreeView* tree;
};


static gpointer deja_dup_preferences_periodic_switch_parent_class = NULL;
static gpointer deja_dup_preferences_parent_class = NULL;

GType deja_dup_preferences_periodic_switch_get_type (void) G_GNUC_CONST;
enum  {
	DEJA_DUP_PREFERENCES_PERIODIC_SWITCH_DUMMY_PROPERTY
};
DejaDupPreferencesPeriodicSwitch* deja_dup_preferences_periodic_switch_new (void);
DejaDupPreferencesPeriodicSwitch* deja_dup_preferences_periodic_switch_construct (GType object_type);
static GObject * deja_dup_preferences_periodic_switch_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
GType deja_dup_preferences_get_type (void) G_GNUC_CONST;
#define DEJA_DUP_PREFERENCES_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DEJA_DUP_TYPE_PREFERENCES, DejaDupPreferencesPrivate))
enum  {
	DEJA_DUP_PREFERENCES_DUMMY_PROPERTY,
	DEJA_DUP_PREFERENCES_SHOW_AUTO_SWITCH
};
#define DEJA_DUP_PREFERENCES_PAGE_HMARGIN 24
#define DEJA_DUP_PREFERENCES_PAGE_VMARGIN 12
DejaDupPreferences* deja_dup_preferences_new (gboolean show_auto_switch);
DejaDupPreferences* deja_dup_preferences_construct (GType object_type, gboolean show_auto_switch);
static GtkWidget* deja_dup_preferences_make_settings_page (DejaDupPreferences* self);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
static void __lambda4_ (Block1Data* _data1_);
static void ___lambda4__gtk_tree_selection_changed (GtkTreeSelection* _sender, gpointer self);
static GtkGrid* deja_dup_preferences_new_panel (DejaDupPreferences* self);
static void __lambda5_ (DejaDupPreferences* self, GtkButton* b);
static void ___lambda5__gtk_button_clicked (GtkButton* _sender, gpointer self);
static void __lambda6_ (DejaDupPreferences* self, GtkButton* b);
static void ___lambda6__gtk_button_clicked (GtkButton* _sender, gpointer self);
static void __lambda7_ (DejaDupPreferences* self);
static void ___lambda7__gbus_name_appeared_callback (GDBusConnection* connection, const gchar* name, const gchar* name_owner, gpointer self);
static void __lambda8_ (DejaDupPreferences* self);
static void ___lambda8__gbus_name_vanished_callback (GDBusConnection* connection, const gchar* name, gpointer self);
gboolean deja_dup_preferences_get_show_auto_switch (DejaDupPreferences* self);
static void deja_dup_preferences_set_show_auto_switch (DejaDupPreferences* self, gboolean value);
static GObject * deja_dup_preferences_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static void deja_dup_preferences_finalize (GObject* obj);
static void _vala_deja_dup_preferences_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_deja_dup_preferences_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


DejaDupPreferencesPeriodicSwitch* deja_dup_preferences_periodic_switch_construct (GType object_type) {
	DejaDupPreferencesPeriodicSwitch * self = NULL;
	self = (DejaDupPreferencesPeriodicSwitch*) g_object_new (object_type, NULL);
	return self;
}


DejaDupPreferencesPeriodicSwitch* deja_dup_preferences_periodic_switch_new (void) {
	return deja_dup_preferences_periodic_switch_construct (DEJA_DUP_TYPE_PREFERENCES_PERIODIC_SWITCH);
}


static GObject * deja_dup_preferences_periodic_switch_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	DejaDupPreferencesPeriodicSwitch * self;
	DejaDupFilteredSettings* settings = NULL;
	DejaDupFilteredSettings* _tmp0_ = NULL;
	DejaDupFilteredSettings* _tmp1_ = NULL;
	parent_class = G_OBJECT_CLASS (deja_dup_preferences_periodic_switch_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, DEJA_DUP_TYPE_PREFERENCES_PERIODIC_SWITCH, DejaDupPreferencesPeriodicSwitch);
	_tmp0_ = deja_dup_get_settings (NULL);
	settings = _tmp0_;
	_tmp1_ = settings;
	g_settings_bind ((GSettings*) _tmp1_, DEJA_DUP_PERIODIC_KEY, (GObject*) self, "active", G_SETTINGS_BIND_DEFAULT);
	_g_object_unref0 (settings);
	return obj;
}


static void deja_dup_preferences_periodic_switch_class_init (DejaDupPreferencesPeriodicSwitchClass * klass) {
	deja_dup_preferences_periodic_switch_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->constructor = deja_dup_preferences_periodic_switch_constructor;
}


static void deja_dup_preferences_periodic_switch_instance_init (DejaDupPreferencesPeriodicSwitch * self) {
}


GType deja_dup_preferences_periodic_switch_get_type (void) {
	static volatile gsize deja_dup_preferences_periodic_switch_type_id__volatile = 0;
	if (g_once_init_enter (&deja_dup_preferences_periodic_switch_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (DejaDupPreferencesPeriodicSwitchClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) deja_dup_preferences_periodic_switch_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DejaDupPreferencesPeriodicSwitch), 0, (GInstanceInitFunc) deja_dup_preferences_periodic_switch_instance_init, NULL };
		GType deja_dup_preferences_periodic_switch_type_id;
		deja_dup_preferences_periodic_switch_type_id = g_type_register_static (gtk_switch_get_type (), "DejaDupPreferencesPeriodicSwitch", &g_define_type_info, 0);
		g_once_init_leave (&deja_dup_preferences_periodic_switch_type_id__volatile, deja_dup_preferences_periodic_switch_type_id);
	}
	return deja_dup_preferences_periodic_switch_type_id__volatile;
}


DejaDupPreferences* deja_dup_preferences_construct (GType object_type, gboolean show_auto_switch) {
	DejaDupPreferences * self = NULL;
	gboolean _tmp0_ = FALSE;
	_tmp0_ = show_auto_switch;
	self = (DejaDupPreferences*) g_object_new (object_type, "show-auto-switch", _tmp0_, NULL);
	return self;
}


DejaDupPreferences* deja_dup_preferences_new (gboolean show_auto_switch) {
	return deja_dup_preferences_construct (DEJA_DUP_TYPE_PREFERENCES, show_auto_switch);
}


static Block1Data* block1_data_ref (Block1Data* _data1_) {
	g_atomic_int_inc (&_data1_->_ref_count_);
	return _data1_;
}


static void block1_data_unref (void * _userdata_) {
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
		DejaDupPreferences* self;
		self = _data1_->self;
		_g_object_unref0 (_data1_->tree);
		_g_object_unref0 (_data1_->cat_model);
		_g_object_unref0 (_data1_->notebook);
		_g_object_unref0 (self);
		g_slice_free (Block1Data, _data1_);
	}
}


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


static void __lambda4_ (Block1Data* _data1_) {
	DejaDupPreferences* self;
	GtkTreeIter sel_iter = {0};
	gint page = 0;
	GtkTreeView* _tmp0_ = NULL;
	GtkTreeSelection* _tmp1_ = NULL;
	GtkTreeIter _tmp2_ = {0};
	gboolean _tmp3_ = FALSE;
	self = _data1_->self;
	_tmp0_ = _data1_->tree;
	_tmp1_ = gtk_tree_view_get_selection (_tmp0_);
	_tmp3_ = gtk_tree_selection_get_selected (_tmp1_, NULL, &_tmp2_);
	sel_iter = _tmp2_;
	if (_tmp3_) {
		GtkListStore* _tmp4_ = NULL;
		GtkTreeIter _tmp5_ = {0};
		GtkNotebook* _tmp6_ = NULL;
		gint _tmp7_ = 0;
		_tmp4_ = _data1_->cat_model;
		_tmp5_ = sel_iter;
		gtk_tree_model_get ((GtkTreeModel*) _tmp4_, &_tmp5_, 1, &page, -1);
		_tmp6_ = _data1_->notebook;
		_tmp7_ = page;
		g_object_set (_tmp6_, "page", _tmp7_, NULL);
	}
}


static void ___lambda4__gtk_tree_selection_changed (GtkTreeSelection* _sender, gpointer self) {
	__lambda4_ (self);
}


static void __lambda5_ (DejaDupPreferences* self, GtkButton* b) {
	GtkButton* _tmp0_ = NULL;
	GdkDisplay* _tmp1_ = NULL;
	GdkAppLaunchContext* _tmp2_ = NULL;
	GdkAppLaunchContext* _tmp3_ = NULL;
	g_return_if_fail (b != NULL);
	_tmp0_ = b;
	_tmp1_ = gtk_widget_get_display ((GtkWidget*) _tmp0_);
	_tmp2_ = gdk_display_get_app_launch_context (_tmp1_);
	_tmp3_ = _tmp2_;
	deja_dup_run_deja_dup ("--restore", (GAppLaunchContext*) _tmp3_, NULL);
	_g_object_unref0 (_tmp3_);
}


static void ___lambda5__gtk_button_clicked (GtkButton* _sender, gpointer self) {
	__lambda5_ ((DejaDupPreferences*) self, _sender);
}


static void __lambda6_ (DejaDupPreferences* self, GtkButton* b) {
	GtkButton* _tmp0_ = NULL;
	GdkDisplay* _tmp1_ = NULL;
	GdkAppLaunchContext* _tmp2_ = NULL;
	GdkAppLaunchContext* _tmp3_ = NULL;
	g_return_if_fail (b != NULL);
	_tmp0_ = b;
	_tmp1_ = gtk_widget_get_display ((GtkWidget*) _tmp0_);
	_tmp2_ = gdk_display_get_app_launch_context (_tmp1_);
	_tmp3_ = _tmp2_;
	deja_dup_run_deja_dup ("--backup", (GAppLaunchContext*) _tmp3_, NULL);
	_g_object_unref0 (_tmp3_);
}


static void ___lambda6__gtk_button_clicked (GtkButton* _sender, gpointer self) {
	__lambda6_ ((DejaDupPreferences*) self, _sender);
}


static void __lambda7_ (DejaDupPreferences* self) {
	GtkWidget* _tmp0_ = NULL;
	GtkWidget* _tmp1_ = NULL;
	_tmp0_ = self->priv->restore_button;
	gtk_widget_set_sensitive (_tmp0_, FALSE);
	_tmp1_ = self->priv->backup_button;
	gtk_widget_set_sensitive (_tmp1_, FALSE);
}


static void ___lambda7__gbus_name_appeared_callback (GDBusConnection* connection, const gchar* name, const gchar* name_owner, gpointer self) {
	__lambda7_ ((DejaDupPreferences*) self);
}


static void __lambda8_ (DejaDupPreferences* self) {
	GtkWidget* _tmp0_ = NULL;
	GtkWidget* _tmp1_ = NULL;
	_tmp0_ = self->priv->restore_button;
	gtk_widget_set_sensitive (_tmp0_, TRUE);
	_tmp1_ = self->priv->backup_button;
	gtk_widget_set_sensitive (_tmp1_, TRUE);
}


static void ___lambda8__gbus_name_vanished_callback (GDBusConnection* connection, const gchar* name, gpointer self) {
	__lambda8_ ((DejaDupPreferences*) self);
}


static GtkWidget* deja_dup_preferences_make_settings_page (DejaDupPreferences* self) {
	GtkWidget* result = NULL;
	Block1Data* _data1_;
	GtkGrid* settings_page = NULL;
	GtkGrid* _tmp0_ = NULL;
	GtkNotebook* _tmp1_ = NULL;
	GtkWidget* w = NULL;
	GtkLabel* label = NULL;
	GtkGrid* table = NULL;
	GtkTreeIter iter = {0};
	gint i = 0;
	gint row = 0;
	GtkSizeGroup* label_sizes = NULL;
	DejaDupFilteredSettings* settings = NULL;
	DejaDupFilteredSettings* _tmp2_ = NULL;
	GtkGrid* _tmp3_ = NULL;
	GtkListStore* _tmp4_ = NULL;
	GtkListStore* _tmp5_ = NULL;
	GtkTreeView* _tmp6_ = NULL;
	AtkObject* accessible = NULL;
	GtkTreeView* _tmp7_ = NULL;
	AtkObject* _tmp8_ = NULL;
	AtkObject* _tmp9_ = NULL;
	AtkObject* _tmp10_ = NULL;
	GtkTreeView* _tmp14_ = NULL;
	GtkTreeView* _tmp15_ = NULL;
	GtkCellRendererText* renderer = NULL;
	GtkCellRendererText* _tmp16_ = NULL;
	GtkCellRendererText* _tmp17_ = NULL;
	GtkCellRendererText* _tmp18_ = NULL;
	GtkTreeView* _tmp19_ = NULL;
	GtkCellRendererText* _tmp20_ = NULL;
	GtkTreeView* _tmp21_ = NULL;
	GtkTreeSelection* _tmp22_ = NULL;
	GtkTreeView* _tmp23_ = NULL;
	GtkTreeSelection* _tmp24_ = NULL;
	GtkScrolledWindow* scrollwin = NULL;
	GtkScrolledWindow* _tmp25_ = NULL;
	GtkScrolledWindow* _tmp26_ = NULL;
	GtkScrolledWindow* _tmp27_ = NULL;
	GtkScrolledWindow* _tmp28_ = NULL;
	GtkScrolledWindow* _tmp29_ = NULL;
	GtkTreeView* _tmp30_ = NULL;
	GtkGrid* _tmp31_ = NULL;
	GtkScrolledWindow* _tmp32_ = NULL;
	GtkGrid* _tmp33_ = NULL;
	GtkGrid* _tmp34_ = NULL;
	GtkGrid* _tmp35_ = NULL;
	GtkGrid* _tmp36_ = NULL;
	GtkGrid* _tmp37_ = NULL;
	GtkSizeGroup* _tmp38_ = NULL;
	GtkImage* _tmp39_ = NULL;
	GtkWidget* _tmp40_ = NULL;
	GtkWidget* _tmp41_ = NULL;
	GtkGrid* _tmp42_ = NULL;
	GtkWidget* _tmp43_ = NULL;
	gint _tmp44_ = 0;
	DejaDupConfigLabelBackupDate* _tmp45_ = NULL;
	GtkWidget* _tmp46_ = NULL;
	GtkWidget* _tmp47_ = NULL;
	GtkGrid* _tmp48_ = NULL;
	GtkWidget* _tmp49_ = NULL;
	gint _tmp50_ = 0;
	gint _tmp51_ = 0;
	DejaDupConfigLabelDescription* _tmp52_ = NULL;
	GtkWidget* _tmp53_ = NULL;
	GtkWidget* _tmp54_ = NULL;
	GtkGrid* _tmp55_ = NULL;
	GtkWidget* _tmp56_ = NULL;
	gint _tmp57_ = 0;
	gint _tmp58_ = 0;
	const gchar* _tmp59_ = NULL;
	GtkButton* _tmp60_ = NULL;
	GtkWidget* _tmp61_ = NULL;
	GtkWidget* _tmp62_ = NULL;
	GtkWidget* _tmp63_ = NULL;
	GtkWidget* _tmp64_ = NULL;
	GtkWidget* _tmp65_ = NULL;
	GtkSizeGroup* _tmp66_ = NULL;
	GtkWidget* _tmp67_ = NULL;
	GtkGrid* _tmp68_ = NULL;
	GtkWidget* _tmp69_ = NULL;
	gint _tmp70_ = 0;
	gint _tmp71_ = 0;
	GtkGrid* _tmp72_ = NULL;
	GtkWidget* _tmp73_ = NULL;
	GtkGrid* _tmp74_ = NULL;
	GtkWidget* _tmp75_ = NULL;
	gint _tmp76_ = 0;
	gint _tmp77_ = 0;
	GtkImage* _tmp78_ = NULL;
	GtkWidget* _tmp79_ = NULL;
	GtkWidget* _tmp80_ = NULL;
	GtkGrid* _tmp81_ = NULL;
	GtkWidget* _tmp82_ = NULL;
	gint _tmp83_ = 0;
	DejaDupConfigLabelBackupDate* _tmp84_ = NULL;
	GtkWidget* _tmp85_ = NULL;
	GtkWidget* _tmp86_ = NULL;
	GtkGrid* _tmp87_ = NULL;
	GtkWidget* _tmp88_ = NULL;
	gint _tmp89_ = 0;
	gint _tmp90_ = 0;
	DejaDupConfigLabelDescription* _tmp91_ = NULL;
	GtkWidget* _tmp92_ = NULL;
	GtkWidget* _tmp93_ = NULL;
	GtkGrid* _tmp94_ = NULL;
	GtkWidget* _tmp95_ = NULL;
	gint _tmp96_ = 0;
	gint _tmp97_ = 0;
	const gchar* _tmp98_ = NULL;
	GtkButton* _tmp99_ = NULL;
	GtkWidget* _tmp100_ = NULL;
	GtkWidget* _tmp101_ = NULL;
	GtkWidget* _tmp102_ = NULL;
	GtkWidget* _tmp103_ = NULL;
	GtkWidget* _tmp104_ = NULL;
	GtkSizeGroup* _tmp105_ = NULL;
	GtkWidget* _tmp106_ = NULL;
	GtkGrid* _tmp107_ = NULL;
	GtkWidget* _tmp108_ = NULL;
	gint _tmp109_ = 0;
	gint _tmp110_ = 0;
	guint _tmp111_ = 0U;
	GtkNotebook* _tmp112_ = NULL;
	GtkGrid* _tmp113_ = NULL;
	GtkListStore* _tmp114_ = NULL;
	gint _tmp115_ = 0;
	const gchar* _tmp116_ = NULL;
	gint _tmp117_ = 0;
	GtkTreeIter _tmp118_ = {0};
	gint _tmp119_ = 0;
	GtkGrid* _tmp120_ = NULL;
	DejaDupConfigList* _tmp121_ = NULL;
	GtkWidget* _tmp122_ = NULL;
	GtkGrid* _tmp123_ = NULL;
	GtkWidget* _tmp124_ = NULL;
	GtkNotebook* _tmp125_ = NULL;
	GtkGrid* _tmp126_ = NULL;
	GtkListStore* _tmp127_ = NULL;
	gint _tmp128_ = 0;
	const gchar* _tmp129_ = NULL;
	gint _tmp130_ = 0;
	GtkTreeIter _tmp131_ = {0};
	gint _tmp132_ = 0;
	GtkGrid* _tmp133_ = NULL;
	DejaDupConfigList* _tmp134_ = NULL;
	GtkWidget* _tmp135_ = NULL;
	GtkGrid* _tmp136_ = NULL;
	GtkWidget* _tmp137_ = NULL;
	GtkNotebook* _tmp138_ = NULL;
	GtkGrid* _tmp139_ = NULL;
	GtkListStore* _tmp140_ = NULL;
	gint _tmp141_ = 0;
	const gchar* _tmp142_ = NULL;
	gint _tmp143_ = 0;
	GtkTreeIter _tmp144_ = {0};
	gint _tmp145_ = 0;
	GtkGrid* _tmp146_ = NULL;
	GtkGrid* _tmp147_ = NULL;
	GtkGrid* _tmp148_ = NULL;
	GtkSizeGroup* _tmp149_ = NULL;
	DejaDupConfigLocation* location = NULL;
	GtkSizeGroup* _tmp150_ = NULL;
	DejaDupConfigLocation* _tmp151_ = NULL;
	const gchar* _tmp152_ = NULL;
	GtkLabel* _tmp153_ = NULL;
	GtkLabel* _tmp154_ = NULL;
	DejaDupConfigLocation* _tmp155_ = NULL;
	GtkSizeGroup* _tmp156_ = NULL;
	GtkLabel* _tmp157_ = NULL;
	GtkGrid* _tmp158_ = NULL;
	GtkLabel* _tmp159_ = NULL;
	gint _tmp160_ = 0;
	GtkGrid* _tmp161_ = NULL;
	DejaDupConfigLocation* _tmp162_ = NULL;
	gint _tmp163_ = 0;
	DejaDupConfigLocation* _tmp164_ = NULL;
	gint _tmp165_ = 0;
	DejaDupConfigLocation* _tmp166_ = NULL;
	GtkEventBox* _tmp167_ = NULL;
	GtkEventBox* _tmp168_ = NULL;
	GtkGrid* _tmp169_ = NULL;
	DejaDupConfigLocation* _tmp170_ = NULL;
	GtkEventBox* _tmp171_ = NULL;
	GtkEventBox* _tmp172_ = NULL;
	gint _tmp173_ = 0;
	gint _tmp174_ = 0;
	GtkNotebook* _tmp175_ = NULL;
	GtkGrid* _tmp176_ = NULL;
	GtkListStore* _tmp177_ = NULL;
	gint _tmp178_ = 0;
	const gchar* _tmp179_ = NULL;
	gint _tmp180_ = 0;
	GtkTreeIter _tmp181_ = {0};
	gint _tmp182_ = 0;
	GtkRequisition req = {0};
	GtkRequisition hidden = {0};
	GtkGrid* _tmp183_ = NULL;
	GtkGrid* _tmp184_ = NULL;
	GtkRequisition _tmp185_ = {0};
	DejaDupConfigLocation* _tmp186_ = NULL;
	GtkRequisition _tmp187_ = {0};
	GtkRequisition _tmp188_ = {0};
	gint _tmp189_ = 0;
	GtkRequisition _tmp190_ = {0};
	gint _tmp191_ = 0;
	GtkRequisition _tmp192_ = {0};
	gint _tmp193_ = 0;
	GtkRequisition _tmp194_ = {0};
	gint _tmp195_ = 0;
	GtkGrid* _tmp196_ = NULL;
	GtkRequisition _tmp197_ = {0};
	gint _tmp198_ = 0;
	GtkRequisition _tmp199_ = {0};
	gint _tmp200_ = 0;
	GtkGrid* _tmp201_ = NULL;
	GtkGrid* _tmp202_ = NULL;
	GtkGrid* _tmp203_ = NULL;
	GtkGrid* _tmp204_ = NULL;
	gboolean _tmp205_ = FALSE;
	DejaDupConfigPeriod* _tmp224_ = NULL;
	GtkWidget* _tmp225_ = NULL;
	DejaDupFilteredSettings* _tmp226_ = NULL;
	GtkWidget* _tmp227_ = NULL;
	const gchar* _tmp228_ = NULL;
	GtkLabel* _tmp229_ = NULL;
	GtkLabel* _tmp230_ = NULL;
	GtkWidget* _tmp231_ = NULL;
	GtkLabel* _tmp232_ = NULL;
	DejaDupFilteredSettings* _tmp233_ = NULL;
	GtkLabel* _tmp234_ = NULL;
	GtkGrid* _tmp235_ = NULL;
	GtkLabel* _tmp236_ = NULL;
	gint _tmp237_ = 0;
	GtkGrid* _tmp238_ = NULL;
	GtkWidget* _tmp239_ = NULL;
	gint _tmp240_ = 0;
	gint _tmp241_ = 0;
	DejaDupConfigDelete* _tmp242_ = NULL;
	GtkWidget* _tmp243_ = NULL;
	const gchar* _tmp244_ = NULL;
	GtkLabel* _tmp245_ = NULL;
	GtkLabel* _tmp246_ = NULL;
	GtkWidget* _tmp247_ = NULL;
	GtkLabel* _tmp248_ = NULL;
	GtkGrid* _tmp249_ = NULL;
	GtkLabel* _tmp250_ = NULL;
	gint _tmp251_ = 0;
	GtkGrid* _tmp252_ = NULL;
	GtkWidget* _tmp253_ = NULL;
	gint _tmp254_ = 0;
	gint _tmp255_ = 0;
	const gchar* _tmp256_ = NULL;
	GtkLabel* _tmp257_ = NULL;
	PangoAttrList* attrs = NULL;
	PangoAttrList* _tmp258_ = NULL;
	PangoAttribute* _tmp259_ = NULL;
	GtkLabel* _tmp260_ = NULL;
	GtkLabel* _tmp261_ = NULL;
	GtkLabel* _tmp262_ = NULL;
	GtkGrid* _tmp263_ = NULL;
	GtkLabel* _tmp264_ = NULL;
	gint _tmp265_ = 0;
	gint _tmp266_ = 0;
	GtkNotebook* _tmp267_ = NULL;
	GtkGrid* _tmp268_ = NULL;
	GtkListStore* _tmp269_ = NULL;
	gint _tmp270_ = 0;
	const gchar* _tmp271_ = NULL;
	gint _tmp272_ = 0;
	GtkTreeIter _tmp273_ = {0};
	gint _tmp274_ = 0;
	GtkListStore* _tmp275_ = NULL;
	GtkTreeIter _tmp276_ = {0};
	GtkTreeView* _tmp277_ = NULL;
	GtkTreeSelection* _tmp278_ = NULL;
	GtkTreeIter _tmp279_ = {0};
	GtkNotebook* _tmp280_ = NULL;
	GtkNotebook* _tmp281_ = NULL;
	GtkNotebook* _tmp282_ = NULL;
	GtkGrid* _tmp283_ = NULL;
	GtkNotebook* _tmp284_ = NULL;
	GtkGrid* _tmp285_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_data1_ = g_slice_new0 (Block1Data);
	_data1_->_ref_count_ = 1;
	_data1_->self = g_object_ref (self);
	_tmp0_ = (GtkGrid*) gtk_grid_new ();
	g_object_ref_sink (_tmp0_);
	settings_page = _tmp0_;
	_tmp1_ = (GtkNotebook*) gtk_notebook_new ();
	g_object_ref_sink (_tmp1_);
	_data1_->notebook = _tmp1_;
	i = 0;
	_tmp2_ = deja_dup_get_settings (NULL);
	settings = _tmp2_;
	_tmp3_ = settings_page;
	gtk_grid_set_column_spacing (_tmp3_, 12);
	_tmp4_ = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_INT, -1);
	_data1_->cat_model = _tmp4_;
	_tmp5_ = _data1_->cat_model;
	_tmp6_ = (GtkTreeView*) gtk_tree_view_new_with_model ((GtkTreeModel*) _tmp5_);
	g_object_ref_sink (_tmp6_);
	_data1_->tree = _tmp6_;
	_tmp7_ = _data1_->tree;
	_tmp8_ = gtk_widget_get_accessible ((GtkWidget*) _tmp7_);
	_tmp9_ = _g_object_ref0 (_tmp8_);
	accessible = _tmp9_;
	_tmp10_ = accessible;
	if (_tmp10_ != NULL) {
		AtkObject* _tmp11_ = NULL;
		AtkObject* _tmp12_ = NULL;
		const gchar* _tmp13_ = NULL;
		_tmp11_ = accessible;
		atk_object_set_name (_tmp11_, "Categories");
		_tmp12_ = accessible;
		_tmp13_ = _ ("Categories");
		atk_object_set_description (_tmp12_, _tmp13_);
	}
	_tmp14_ = _data1_->tree;
	gtk_tree_view_set_headers_visible (_tmp14_, FALSE);
	_tmp15_ = _data1_->tree;
	gtk_widget_set_size_request ((GtkWidget*) _tmp15_, 150, -1);
	_tmp16_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
	g_object_ref_sink (_tmp16_);
	renderer = _tmp16_;
	_tmp17_ = renderer;
	g_object_set ((GtkCellRenderer*) _tmp17_, "xpad", (guint) 6, NULL);
	_tmp18_ = renderer;
	g_object_set ((GtkCellRenderer*) _tmp18_, "ypad", (guint) 6, NULL);
	_tmp19_ = _data1_->tree;
	_tmp20_ = renderer;
	gtk_tree_view_insert_column_with_attributes (_tmp19_, -1, NULL, (GtkCellRenderer*) _tmp20_, "text", 0, NULL);
	_tmp21_ = _data1_->tree;
	_tmp22_ = gtk_tree_view_get_selection (_tmp21_);
	gtk_tree_selection_set_mode (_tmp22_, GTK_SELECTION_SINGLE);
	_tmp23_ = _data1_->tree;
	_tmp24_ = gtk_tree_view_get_selection (_tmp23_);
	g_signal_connect_data (_tmp24_, "changed", (GCallback) ___lambda4__gtk_tree_selection_changed, block1_data_ref (_data1_), (GClosureNotify) block1_data_unref, 0);
	_tmp25_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL);
	g_object_ref_sink (_tmp25_);
	scrollwin = _tmp25_;
	_tmp26_ = scrollwin;
	g_object_set (_tmp26_, "hscrollbar-policy", GTK_POLICY_NEVER, NULL);
	_tmp27_ = scrollwin;
	g_object_set (_tmp27_, "vscrollbar-policy", GTK_POLICY_NEVER, NULL);
	_tmp28_ = scrollwin;
	gtk_scrolled_window_set_shadow_type (_tmp28_, GTK_SHADOW_IN);
	_tmp29_ = scrollwin;
	_tmp30_ = _data1_->tree;
	gtk_container_add ((GtkContainer*) _tmp29_, (GtkWidget*) _tmp30_);
	_tmp31_ = settings_page;
	_tmp32_ = scrollwin;
	gtk_container_add ((GtkContainer*) _tmp31_, (GtkWidget*) _tmp32_);
	_tmp33_ = deja_dup_preferences_new_panel (self);
	_g_object_unref0 (table);
	table = _tmp33_;
	_tmp34_ = table;
	gtk_orientable_set_orientation ((GtkOrientable*) _tmp34_, GTK_ORIENTATION_VERTICAL);
	_tmp35_ = table;
	gtk_grid_set_row_spacing (_tmp35_, 6);
	_tmp36_ = table;
	gtk_grid_set_column_spacing (_tmp36_, 12);
	_tmp37_ = table;
	g_object_set ((GtkWidget*) _tmp37_, "expand", TRUE, NULL);
	row = 0;
	_tmp38_ = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
	_g_object_unref0 (label_sizes);
	label_sizes = _tmp38_;
	_tmp39_ = (GtkImage*) gtk_image_new_from_icon_name ("document-save-symbolic", GTK_ICON_SIZE_DIALOG);
	g_object_ref_sink (_tmp39_);
	_g_object_unref0 (w);
	w = (GtkWidget*) _tmp39_;
	_tmp40_ = w;
	gtk_widget_set_halign (_tmp40_, GTK_ALIGN_CENTER);
	_tmp41_ = w;
	gtk_widget_set_valign (_tmp41_, GTK_ALIGN_START);
	_tmp42_ = table;
	_tmp43_ = w;
	_tmp44_ = row;
	gtk_grid_attach (_tmp42_, _tmp43_, 0, _tmp44_, 1, 3);
	_tmp45_ = deja_dup_config_label_backup_date_new (DEJA_DUP_CONFIG_LABEL_BACKUP_DATE_KIND_LAST);
	g_object_ref_sink (_tmp45_);
	_g_object_unref0 (w);
	w = (GtkWidget*) _tmp45_;
	_tmp46_ = w;
	gtk_widget_set_halign (_tmp46_, GTK_ALIGN_START);
	_tmp47_ = w;
	gtk_widget_set_valign (_tmp47_, GTK_ALIGN_START);
	_tmp48_ = table;
	_tmp49_ = w;
	_tmp50_ = row;
	gtk_grid_attach (_tmp48_, _tmp49_, 1, _tmp50_, 1, 1);
	_tmp51_ = row;
	row = _tmp51_ + 1;
	_tmp52_ = deja_dup_config_label_description_new (DEJA_DUP_CONFIG_LABEL_DESCRIPTION_KIND_RESTORE);
	g_object_ref_sink (_tmp52_);
	_g_object_unref0 (w);
	w = (GtkWidget*) _tmp52_;
	_tmp53_ = w;
	gtk_widget_set_halign (_tmp53_, GTK_ALIGN_START);
	_tmp54_ = w;
	gtk_widget_set_valign (_tmp54_, GTK_ALIGN_START);
	_tmp55_ = table;
	_tmp56_ = w;
	_tmp57_ = row;
	gtk_grid_attach (_tmp55_, _tmp56_, 1, _tmp57_, 1, 1);
	_tmp58_ = row;
	row = _tmp58_ + 1;
	_tmp59_ = _ ("_Restore…");
	_tmp60_ = (GtkButton*) gtk_button_new_with_mnemonic (_tmp59_);
	g_object_ref_sink (_tmp60_);
	_g_object_unref0 (w);
	w = (GtkWidget*) _tmp60_;
	_tmp61_ = w;
	gtk_widget_set_margin_top (_tmp61_, 6);
	_tmp62_ = w;
	gtk_widget_set_halign (_tmp62_, GTK_ALIGN_START);
	_tmp63_ = w;
	g_signal_connect_object (G_TYPE_CHECK_INSTANCE_TYPE (_tmp63_, gtk_button_get_type ()) ? ((GtkButton*) _tmp63_) : NULL, "clicked", (GCallback) ___lambda5__gtk_button_clicked, self, 0);
	_tmp64_ = w;
	_tmp65_ = _g_object_ref0 (_tmp64_);
	_g_object_unref0 (self->priv->restore_button);
	self->priv->restore_button = _tmp65_;
	_tmp66_ = label_sizes;
	_tmp67_ = w;
	gtk_size_group_add_widget (_tmp66_, _tmp67_);
	_tmp68_ = table;
	_tmp69_ = w;
	_tmp70_ = row;
	gtk_grid_attach (_tmp68_, _tmp69_, 1, _tmp70_, 1, 1);
	_tmp71_ = row;
	row = _tmp71_ + 1;
	_tmp72_ = (GtkGrid*) gtk_grid_new ();
	g_object_ref_sink (_tmp72_);
	_g_object_unref0 (w);
	w = (GtkWidget*) _tmp72_;
	_tmp73_ = w;
	g_object_set (_tmp73_, "height-request", 24, NULL);
	_tmp74_ = table;
	_tmp75_ = w;
	_tmp76_ = row;
	gtk_grid_attach (_tmp74_, _tmp75_, 0, _tmp76_, 2, 1);
	_tmp77_ = row;
	row = _tmp77_ + 1;
	_tmp78_ = (GtkImage*) gtk_image_new_from_icon_name ("document-open-recent-symbolic", GTK_ICON_SIZE_DIALOG);
	g_object_ref_sink (_tmp78_);
	_g_object_unref0 (w);
	w = (GtkWidget*) _tmp78_;
	_tmp79_ = w;
	gtk_widget_set_halign (_tmp79_, GTK_ALIGN_CENTER);
	_tmp80_ = w;
	gtk_widget_set_valign (_tmp80_, GTK_ALIGN_START);
	_tmp81_ = table;
	_tmp82_ = w;
	_tmp83_ = row;
	gtk_grid_attach (_tmp81_, _tmp82_, 0, _tmp83_, 1, 3);
	_tmp84_ = deja_dup_config_label_backup_date_new (DEJA_DUP_CONFIG_LABEL_BACKUP_DATE_KIND_NEXT);
	g_object_ref_sink (_tmp84_);
	_g_object_unref0 (w);
	w = (GtkWidget*) _tmp84_;
	_tmp85_ = w;
	gtk_widget_set_halign (_tmp85_, GTK_ALIGN_START);
	_tmp86_ = w;
	gtk_widget_set_valign (_tmp86_, GTK_ALIGN_START);
	_tmp87_ = table;
	_tmp88_ = w;
	_tmp89_ = row;
	gtk_grid_attach (_tmp87_, _tmp88_, 1, _tmp89_, 1, 1);
	_tmp90_ = row;
	row = _tmp90_ + 1;
	_tmp91_ = deja_dup_config_label_description_new (DEJA_DUP_CONFIG_LABEL_DESCRIPTION_KIND_BACKUP);
	g_object_ref_sink (_tmp91_);
	_g_object_unref0 (w);
	w = (GtkWidget*) _tmp91_;
	_tmp92_ = w;
	gtk_widget_set_halign (_tmp92_, GTK_ALIGN_START);
	_tmp93_ = w;
	gtk_widget_set_valign (_tmp93_, GTK_ALIGN_START);
	_tmp94_ = table;
	_tmp95_ = w;
	_tmp96_ = row;
	gtk_grid_attach (_tmp94_, _tmp95_, 1, _tmp96_, 1, 1);
	_tmp97_ = row;
	row = _tmp97_ + 1;
	_tmp98_ = _ ("_Back Up Now…");
	_tmp99_ = (GtkButton*) gtk_button_new_with_mnemonic (_tmp98_);
	g_object_ref_sink (_tmp99_);
	_g_object_unref0 (w);
	w = (GtkWidget*) _tmp99_;
	_tmp100_ = w;
	gtk_widget_set_margin_top (_tmp100_, 6);
	_tmp101_ = w;
	gtk_widget_set_halign (_tmp101_, GTK_ALIGN_START);
	_tmp102_ = w;
	g_signal_connect_object (G_TYPE_CHECK_INSTANCE_TYPE (_tmp102_, gtk_button_get_type ()) ? ((GtkButton*) _tmp102_) : NULL, "clicked", (GCallback) ___lambda6__gtk_button_clicked, self, 0);
	_tmp103_ = w;
	_tmp104_ = _g_object_ref0 (_tmp103_);
	_g_object_unref0 (self->priv->backup_button);
	self->priv->backup_button = _tmp104_;
	_tmp105_ = label_sizes;
	_tmp106_ = w;
	gtk_size_group_add_widget (_tmp105_, _tmp106_);
	_tmp107_ = table;
	_tmp108_ = w;
	_tmp109_ = row;
	gtk_grid_attach (_tmp107_, _tmp108_, 1, _tmp109_, 1, 1);
	_tmp110_ = row;
	row = _tmp110_ + 1;
	_tmp111_ = g_bus_watch_name_with_closures (G_BUS_TYPE_SESSION, "org.gnome.DejaDup.Operation", G_BUS_NAME_WATCHER_FLAGS_NONE, (GClosure*) ((___lambda7__gbus_name_appeared_callback == NULL) ? NULL : g_cclosure_new ((GCallback) ___lambda7__gbus_name_appeared_callback, g_object_ref (self), g_object_unref)), (GClosure*) ((___lambda8__gbus_name_vanished_callback == NULL) ? NULL : g_cclosure_new ((GCallback) ___lambda8__gbus_name_vanished_callback, g_object_ref (self), g_object_unref)));
	self->priv->bus_watch_id = _tmp111_;
	_tmp112_ = _data1_->notebook;
	_tmp113_ = table;
	gtk_notebook_append_page (_tmp112_, (GtkWidget*) _tmp113_, NULL);
	_tmp114_ = _data1_->cat_model;
	_tmp115_ = i;
	_tmp116_ = _ ("Overview");
	_tmp117_ = i;
	gtk_list_store_insert_with_values (_tmp114_, &_tmp118_, _tmp115_, 0, _tmp116_, 1, _tmp117_, -1);
	iter = _tmp118_;
	_tmp119_ = i;
	i = _tmp119_ + 1;
	_tmp120_ = deja_dup_preferences_new_panel (self);
	_g_object_unref0 (table);
	table = _tmp120_;
	_tmp121_ = deja_dup_config_list_new (DEJA_DUP_INCLUDE_LIST_KEY, "");
	g_object_ref_sink (_tmp121_);
	_g_object_unref0 (w);
	w = (GtkWidget*) _tmp121_;
	_tmp122_ = w;
	g_object_set (_tmp122_, "expand", TRUE, NULL);
	_tmp123_ = table;
	_tmp124_ = w;
	gtk_container_add ((GtkContainer*) _tmp123_, _tmp124_);
	_tmp125_ = _data1_->notebook;
	_tmp126_ = table;
	gtk_notebook_append_page (_tmp125_, (GtkWidget*) _tmp126_, NULL);
	_tmp127_ = _data1_->cat_model;
	_tmp128_ = i;
	_tmp129_ = _ ("Folders to save");
	_tmp130_ = i;
	gtk_list_store_insert_with_values (_tmp127_, &_tmp131_, _tmp128_, 0, _tmp129_, 1, _tmp130_, -1);
	iter = _tmp131_;
	_tmp132_ = i;
	i = _tmp132_ + 1;
	_tmp133_ = deja_dup_preferences_new_panel (self);
	_g_object_unref0 (table);
	table = _tmp133_;
	_tmp134_ = deja_dup_config_list_new (DEJA_DUP_EXCLUDE_LIST_KEY, "");
	g_object_ref_sink (_tmp134_);
	_g_object_unref0 (w);
	w = (GtkWidget*) _tmp134_;
	_tmp135_ = w;
	g_object_set (_tmp135_, "expand", TRUE, NULL);
	_tmp136_ = table;
	_tmp137_ = w;
	gtk_container_add ((GtkContainer*) _tmp136_, _tmp137_);
	_tmp138_ = _data1_->notebook;
	_tmp139_ = table;
	gtk_notebook_append_page (_tmp138_, (GtkWidget*) _tmp139_, NULL);
	_tmp140_ = _data1_->cat_model;
	_tmp141_ = i;
	_tmp142_ = _ ("Folders to ignore");
	_tmp143_ = i;
	gtk_list_store_insert_with_values (_tmp140_, &_tmp144_, _tmp141_, 0, _tmp142_, 1, _tmp143_, -1);
	iter = _tmp144_;
	_tmp145_ = i;
	i = _tmp145_ + 1;
	_tmp146_ = deja_dup_preferences_new_panel (self);
	_g_object_unref0 (table);
	table = _tmp146_;
	_tmp147_ = table;
	gtk_grid_set_row_spacing (_tmp147_, 6);
	_tmp148_ = table;
	gtk_grid_set_column_spacing (_tmp148_, 12);
	row = 0;
	_tmp149_ = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
	_g_object_unref0 (label_sizes);
	label_sizes = _tmp149_;
	_tmp150_ = label_sizes;
	_tmp151_ = deja_dup_config_location_new (_tmp150_);
	g_object_ref_sink (_tmp151_);
	location = _tmp151_;
	_tmp152_ = _ ("_Storage location");
	_tmp153_ = (GtkLabel*) gtk_label_new (_tmp152_);
	g_object_ref_sink (_tmp153_);
	_g_object_unref0 (label);
	label = _tmp153_;
	_tmp154_ = label;
	_tmp155_ = location;
	g_object_set ((GObject*) _tmp154_, "mnemonic-widget", _tmp155_, "use-underline", TRUE, "xalign", 1.0f, NULL);
	_tmp156_ = label_sizes;
	_tmp157_ = label;
	gtk_size_group_add_widget (_tmp156_, (GtkWidget*) _tmp157_);
	_tmp158_ = table;
	_tmp159_ = label;
	_tmp160_ = row;
	gtk_grid_attach (_tmp158_, (GtkWidget*) _tmp159_, 0, _tmp160_, 1, 1);
	_tmp161_ = table;
	_tmp162_ = location;
	_tmp163_ = row;
	gtk_grid_attach (_tmp161_, (GtkWidget*) _tmp162_, 1, _tmp163_, 1, 1);
	_tmp164_ = location;
	g_object_set ((GObject*) _tmp164_, "hexpand", TRUE, NULL);
	_tmp165_ = row;
	row = _tmp165_ + 1;
	_tmp166_ = location;
	_tmp167_ = deja_dup_config_location_get_extras (_tmp166_);
	_tmp168_ = _tmp167_;
	g_object_set ((GObject*) _tmp168_, "hexpand", TRUE, NULL);
	_tmp169_ = table;
	_tmp170_ = location;
	_tmp171_ = deja_dup_config_location_get_extras (_tmp170_);
	_tmp172_ = _tmp171_;
	_tmp173_ = row;
	gtk_grid_attach (_tmp169_, (GtkWidget*) _tmp172_, 0, _tmp173_, 2, 1);
	_tmp174_ = row;
	row = _tmp174_ + 1;
	_tmp175_ = _data1_->notebook;
	_tmp176_ = table;
	gtk_notebook_append_page (_tmp175_, (GtkWidget*) _tmp176_, NULL);
	_tmp177_ = _data1_->cat_model;
	_tmp178_ = i;
	_tmp179_ = _ ("Storage location");
	_tmp180_ = i;
	gtk_list_store_insert_with_values (_tmp177_, &_tmp181_, _tmp178_, 0, _tmp179_, 1, _tmp180_, -1);
	iter = _tmp181_;
	_tmp182_ = i;
	i = _tmp182_ + 1;
	_tmp183_ = table;
	gtk_widget_show_all ((GtkWidget*) _tmp183_);
	_tmp184_ = table;
	gtk_widget_get_preferred_size ((GtkWidget*) _tmp184_, NULL, &_tmp185_);
	req = _tmp185_;
	_tmp186_ = location;
	deja_dup_config_location_hidden_size (_tmp186_, &_tmp187_);
	hidden = _tmp187_;
	_tmp188_ = req;
	_tmp189_ = _tmp188_.width;
	_tmp190_ = hidden;
	_tmp191_ = _tmp190_.width;
	req.width = _tmp189_ + _tmp191_;
	_tmp192_ = req;
	_tmp193_ = _tmp192_.height;
	_tmp194_ = hidden;
	_tmp195_ = _tmp194_.height;
	req.height = _tmp193_ + _tmp195_;
	_tmp196_ = table;
	_tmp197_ = req;
	_tmp198_ = _tmp197_.width;
	_tmp199_ = req;
	_tmp200_ = _tmp199_.height;
	gtk_widget_set_size_request ((GtkWidget*) _tmp196_, _tmp198_, _tmp200_);
	_tmp201_ = deja_dup_preferences_new_panel (self);
	_g_object_unref0 (table);
	table = _tmp201_;
	_tmp202_ = table;
	gtk_grid_set_row_spacing (_tmp202_, 6);
	_tmp203_ = table;
	gtk_grid_set_column_spacing (_tmp203_, 12);
	_tmp204_ = table;
	gtk_widget_set_halign ((GtkWidget*) _tmp204_, GTK_ALIGN_CENTER);
	row = 0;
	_tmp205_ = self->priv->_show_auto_switch;
	if (_tmp205_) {
		GtkAlignment* align = NULL;
		GtkAlignment* _tmp206_ = NULL;
		GtkSwitch* _switch_ = NULL;
		GtkSwitch* _tmp207_ = NULL;
		DejaDupFilteredSettings* _tmp208_ = NULL;
		GtkSwitch* _tmp209_ = NULL;
		GtkAlignment* _tmp210_ = NULL;
		GtkSwitch* _tmp211_ = NULL;
		const gchar* _tmp212_ = NULL;
		GtkLabel* _tmp213_ = NULL;
		GtkLabel* _tmp214_ = NULL;
		GtkSwitch* _tmp215_ = NULL;
		GtkLabel* _tmp216_ = NULL;
		GtkGrid* _tmp217_ = NULL;
		GtkLabel* _tmp218_ = NULL;
		gint _tmp219_ = 0;
		GtkGrid* _tmp220_ = NULL;
		GtkAlignment* _tmp221_ = NULL;
		gint _tmp222_ = 0;
		gint _tmp223_ = 0;
		_tmp206_ = (GtkAlignment*) gtk_alignment_new (0.0f, 0.5f, 0.0f, 0.0f);
		g_object_ref_sink (_tmp206_);
		align = _tmp206_;
		_tmp207_ = (GtkSwitch*) gtk_switch_new ();
		g_object_ref_sink (_tmp207_);
		_switch_ = _tmp207_;
		_tmp208_ = settings;
		_tmp209_ = _switch_;
		g_settings_bind ((GSettings*) _tmp208_, DEJA_DUP_PERIODIC_KEY, (GObject*) _tmp209_, "active", G_SETTINGS_BIND_DEFAULT);
		_tmp210_ = align;
		_tmp211_ = _switch_;
		gtk_container_add ((GtkContainer*) _tmp210_, (GtkWidget*) _tmp211_);
		_tmp212_ = _ ("_Automatic backup");
		_tmp213_ = (GtkLabel*) gtk_label_new_with_mnemonic (_tmp212_);
		g_object_ref_sink (_tmp213_);
		_g_object_unref0 (label);
		label = _tmp213_;
		_tmp214_ = label;
		_tmp215_ = _switch_;
		gtk_label_set_mnemonic_widget (_tmp214_, (GtkWidget*) _tmp215_);
		_tmp216_ = label;
		gtk_label_set_xalign (_tmp216_, 1.0f);
		_tmp217_ = table;
		_tmp218_ = label;
		_tmp219_ = row;
		gtk_grid_attach (_tmp217_, (GtkWidget*) _tmp218_, 0, _tmp219_, 1, 1);
		_tmp220_ = table;
		_tmp221_ = align;
		_tmp222_ = row;
		gtk_grid_attach (_tmp220_, (GtkWidget*) _tmp221_, 1, _tmp222_, 1, 1);
		_tmp223_ = row;
		row = _tmp223_ + 1;
		_g_object_unref0 (_switch_);
		_g_object_unref0 (align);
	}
	_tmp224_ = deja_dup_config_period_new (DEJA_DUP_PERIODIC_PERIOD_KEY, "");
	g_object_ref_sink (_tmp224_);
	_g_object_unref0 (w);
	w = (GtkWidget*) _tmp224_;
	_tmp225_ = w;
	gtk_widget_set_hexpand (_tmp225_, TRUE);
	_tmp226_ = settings;
	_tmp227_ = w;
	g_settings_bind ((GSettings*) _tmp226_, DEJA_DUP_PERIODIC_KEY, (GObject*) _tmp227_, "sensitive", G_SETTINGS_BIND_GET);
	_tmp228_ = _ ("_Every");
	_tmp229_ = (GtkLabel*) gtk_label_new_with_mnemonic (_tmp228_);
	g_object_ref_sink (_tmp229_);
	_g_object_unref0 (label);
	label = _tmp229_;
	_tmp230_ = label;
	_tmp231_ = w;
	gtk_label_set_mnemonic_widget (_tmp230_, _tmp231_);
	_tmp232_ = label;
	gtk_label_set_xalign (_tmp232_, 1.0f);
	_tmp233_ = settings;
	_tmp234_ = label;
	g_settings_bind ((GSettings*) _tmp233_, DEJA_DUP_PERIODIC_KEY, (GObject*) _tmp234_, "sensitive", G_SETTINGS_BIND_GET);
	_tmp235_ = table;
	_tmp236_ = label;
	_tmp237_ = row;
	gtk_grid_attach (_tmp235_, (GtkWidget*) _tmp236_, 0, _tmp237_, 1, 1);
	_tmp238_ = table;
	_tmp239_ = w;
	_tmp240_ = row;
	gtk_grid_attach (_tmp238_, _tmp239_, 1, _tmp240_, 1, 1);
	_tmp241_ = row;
	row = _tmp241_ + 1;
	_tmp242_ = deja_dup_config_delete_new (DEJA_DUP_DELETE_AFTER_KEY, "");
	g_object_ref_sink (_tmp242_);
	_g_object_unref0 (w);
	w = (GtkWidget*) _tmp242_;
	_tmp243_ = w;
	gtk_widget_set_hexpand (_tmp243_, TRUE);
	_tmp244_ = C_ ("verb", "_Keep");
	_tmp245_ = (GtkLabel*) gtk_label_new_with_mnemonic (_tmp244_);
	g_object_ref_sink (_tmp245_);
	_g_object_unref0 (label);
	label = _tmp245_;
	_tmp246_ = label;
	_tmp247_ = w;
	gtk_label_set_mnemonic_widget (_tmp246_, _tmp247_);
	_tmp248_ = label;
	gtk_label_set_xalign (_tmp248_, 1.0f);
	_tmp249_ = table;
	_tmp250_ = label;
	_tmp251_ = row;
	gtk_grid_attach (_tmp249_, (GtkWidget*) _tmp250_, 0, _tmp251_, 1, 1);
	_tmp252_ = table;
	_tmp253_ = w;
	_tmp254_ = row;
	gtk_grid_attach (_tmp252_, _tmp253_, 1, _tmp254_, 1, 1);
	_tmp255_ = row;
	row = _tmp255_ + 1;
	_tmp256_ = _ ("Old backups will be deleted earlier if the storage location is low on " \
"space.");
	_tmp257_ = (GtkLabel*) gtk_label_new (_tmp256_);
	g_object_ref_sink (_tmp257_);
	_g_object_unref0 (label);
	label = _tmp257_;
	_tmp258_ = pango_attr_list_new ();
	attrs = _tmp258_;
	_tmp259_ = pango_attr_style_new (PANGO_STYLE_ITALIC);
	pango_attr_list_insert (attrs, _tmp259_);
	_tmp260_ = label;
	gtk_label_set_attributes (_tmp260_, attrs);
	_tmp261_ = label;
	g_object_set (_tmp261_, "wrap", TRUE, NULL);
	_tmp262_ = label;
	gtk_label_set_max_width_chars (_tmp262_, 25);
	_tmp263_ = table;
	_tmp264_ = label;
	_tmp265_ = row;
	gtk_grid_attach (_tmp263_, (GtkWidget*) _tmp264_, 1, _tmp265_, 1, 1);
	_tmp266_ = row;
	row = _tmp266_ + 1;
	_tmp267_ = _data1_->notebook;
	_tmp268_ = table;
	gtk_notebook_append_page (_tmp267_, (GtkWidget*) _tmp268_, NULL);
	_tmp269_ = _data1_->cat_model;
	_tmp270_ = i;
	_tmp271_ = _ ("Scheduling");
	_tmp272_ = i;
	gtk_list_store_insert_with_values (_tmp269_, &_tmp273_, _tmp270_, 0, _tmp271_, 1, _tmp272_, -1);
	iter = _tmp273_;
	_tmp274_ = i;
	i = _tmp274_ + 1;
	_tmp275_ = _data1_->cat_model;
	gtk_tree_model_get_iter_first ((GtkTreeModel*) _tmp275_, &_tmp276_);
	iter = _tmp276_;
	_tmp277_ = _data1_->tree;
	_tmp278_ = gtk_tree_view_get_selection (_tmp277_);
	_tmp279_ = iter;
	gtk_tree_selection_select_iter (_tmp278_, &_tmp279_);
	_tmp280_ = _data1_->notebook;
	gtk_notebook_set_show_tabs (_tmp280_, FALSE);
	_tmp281_ = _data1_->notebook;
	gtk_notebook_set_show_border (_tmp281_, FALSE);
	_tmp282_ = _data1_->notebook;
	g_object_set ((GtkWidget*) _tmp282_, "expand", TRUE, NULL);
	_tmp283_ = settings_page;
	_tmp284_ = _data1_->notebook;
	gtk_container_add ((GtkContainer*) _tmp283_, (GtkWidget*) _tmp284_);
	_tmp285_ = settings_page;
	gtk_widget_show ((GtkWidget*) _tmp285_);
	result = (GtkWidget*) settings_page;
	_pango_attr_list_unref0 (attrs);
	_g_object_unref0 (location);
	_g_object_unref0 (scrollwin);
	_g_object_unref0 (renderer);
	_g_object_unref0 (accessible);
	_g_object_unref0 (settings);
	_g_object_unref0 (label_sizes);
	_g_object_unref0 (table);
	_g_object_unref0 (label);
	_g_object_unref0 (w);
	block1_data_unref (_data1_);
	_data1_ = NULL;
	return result;
}


static GtkGrid* deja_dup_preferences_new_panel (DejaDupPreferences* self) {
	GtkGrid* result = NULL;
	GtkGrid* table = NULL;
	GtkGrid* _tmp0_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = (GtkGrid*) gtk_grid_new ();
	g_object_ref_sink (_tmp0_);
	table = _tmp0_;
	gtk_widget_set_margin_left ((GtkWidget*) table, DEJA_DUP_PREFERENCES_PAGE_HMARGIN);
	gtk_widget_set_margin_right ((GtkWidget*) table, DEJA_DUP_PREFERENCES_PAGE_HMARGIN);
	gtk_widget_set_margin_top ((GtkWidget*) table, DEJA_DUP_PREFERENCES_PAGE_VMARGIN);
	gtk_widget_set_margin_bottom ((GtkWidget*) table, DEJA_DUP_PREFERENCES_PAGE_VMARGIN);
	result = table;
	return result;
}


gboolean deja_dup_preferences_get_show_auto_switch (DejaDupPreferences* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->_show_auto_switch;
	result = _tmp0_;
	return result;
}


static void deja_dup_preferences_set_show_auto_switch (DejaDupPreferences* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	self->priv->_show_auto_switch = _tmp0_;
	g_object_notify ((GObject *) self, "show-auto-switch");
}


static GObject * deja_dup_preferences_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	DejaDupPreferences * self;
	GtkWidget* _tmp0_ = NULL;
	GtkWidget* _tmp1_ = NULL;
	parent_class = G_OBJECT_CLASS (deja_dup_preferences_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, DEJA_DUP_TYPE_PREFERENCES, DejaDupPreferences);
	_tmp0_ = deja_dup_preferences_make_settings_page (self);
	_tmp1_ = _tmp0_;
	gtk_container_add ((GtkContainer*) self, _tmp1_);
	_g_object_unref0 (_tmp1_);
	gtk_widget_set_size_request ((GtkWidget*) self, -1, 400);
	return obj;
}


static void deja_dup_preferences_class_init (DejaDupPreferencesClass * klass) {
	deja_dup_preferences_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (DejaDupPreferencesPrivate));
	G_OBJECT_CLASS (klass)->get_property = _vala_deja_dup_preferences_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_deja_dup_preferences_set_property;
	G_OBJECT_CLASS (klass)->constructor = deja_dup_preferences_constructor;
	G_OBJECT_CLASS (klass)->finalize = deja_dup_preferences_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), DEJA_DUP_PREFERENCES_SHOW_AUTO_SWITCH, g_param_spec_boolean ("show-auto-switch", "show-auto-switch", "show-auto-switch", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
}


static void deja_dup_preferences_instance_init (DejaDupPreferences * self) {
	self->priv = DEJA_DUP_PREFERENCES_GET_PRIVATE (self);
	self->priv->bus_watch_id = (guint) 0;
}


static void deja_dup_preferences_finalize (GObject* obj) {
	DejaDupPreferences * self;
	guint _tmp0_ = 0U;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, DEJA_DUP_TYPE_PREFERENCES, DejaDupPreferences);
	_tmp0_ = self->priv->bus_watch_id;
	if (_tmp0_ > ((guint) 0)) {
		guint _tmp1_ = 0U;
		_tmp1_ = self->priv->bus_watch_id;
		g_bus_unwatch_name (_tmp1_);
		self->priv->bus_watch_id = (guint) 0;
	}
	_g_object_unref0 (self->priv->backup_button);
	_g_object_unref0 (self->priv->restore_button);
	G_OBJECT_CLASS (deja_dup_preferences_parent_class)->finalize (obj);
}


GType deja_dup_preferences_get_type (void) {
	static volatile gsize deja_dup_preferences_type_id__volatile = 0;
	if (g_once_init_enter (&deja_dup_preferences_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (DejaDupPreferencesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) deja_dup_preferences_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DejaDupPreferences), 0, (GInstanceInitFunc) deja_dup_preferences_instance_init, NULL };
		GType deja_dup_preferences_type_id;
		deja_dup_preferences_type_id = g_type_register_static (gtk_grid_get_type (), "DejaDupPreferences", &g_define_type_info, 0);
		g_once_init_leave (&deja_dup_preferences_type_id__volatile, deja_dup_preferences_type_id);
	}
	return deja_dup_preferences_type_id__volatile;
}


static void _vala_deja_dup_preferences_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	DejaDupPreferences * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, DEJA_DUP_TYPE_PREFERENCES, DejaDupPreferences);
	switch (property_id) {
		case DEJA_DUP_PREFERENCES_SHOW_AUTO_SWITCH:
		g_value_set_boolean (value, deja_dup_preferences_get_show_auto_switch (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static void _vala_deja_dup_preferences_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	DejaDupPreferences * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, DEJA_DUP_TYPE_PREFERENCES, DejaDupPreferences);
	switch (property_id) {
		case DEJA_DUP_PREFERENCES_SHOW_AUTO_SWITCH:
		deja_dup_preferences_set_show_auto_switch (self, g_value_get_boolean (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}



