/* SettingsWindow.c generated by valac 0.56.18-dirty, the Vala compiler
 * generated from SettingsWindow.vala, do not modify */

/*
 * SettingsWindow.vala
 *
 * Copyright 2012-2018 Tony George <teejeetech@gmail.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 2 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, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA.
 *
 *
 */

#include <gtk/gtk.h>
#include <glib-object.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gdk/gdk.h>
#include <gee.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 TYPE_SETTINGS_WINDOW (settings_window_get_type ())
#define SETTINGS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SETTINGS_WINDOW, SettingsWindow))
#define SETTINGS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SETTINGS_WINDOW, SettingsWindowClass))
#define IS_SETTINGS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SETTINGS_WINDOW))
#define IS_SETTINGS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SETTINGS_WINDOW))
#define SETTINGS_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SETTINGS_WINDOW, SettingsWindowClass))

typedef struct _SettingsWindow SettingsWindow;
typedef struct _SettingsWindowClass SettingsWindowClass;
typedef struct _SettingsWindowPrivate SettingsWindowPrivate;

#define TYPE_SNAPSHOT_BACKEND_BOX (snapshot_backend_box_get_type ())
#define SNAPSHOT_BACKEND_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SNAPSHOT_BACKEND_BOX, SnapshotBackendBox))
#define SNAPSHOT_BACKEND_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SNAPSHOT_BACKEND_BOX, SnapshotBackendBoxClass))
#define IS_SNAPSHOT_BACKEND_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SNAPSHOT_BACKEND_BOX))
#define IS_SNAPSHOT_BACKEND_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SNAPSHOT_BACKEND_BOX))
#define SNAPSHOT_BACKEND_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SNAPSHOT_BACKEND_BOX, SnapshotBackendBoxClass))

typedef struct _SnapshotBackendBox SnapshotBackendBox;
typedef struct _SnapshotBackendBoxClass SnapshotBackendBoxClass;

#define TYPE_BACKUP_DEVICE_BOX (backup_device_box_get_type ())
#define BACKUP_DEVICE_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BACKUP_DEVICE_BOX, BackupDeviceBox))
#define BACKUP_DEVICE_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BACKUP_DEVICE_BOX, BackupDeviceBoxClass))
#define IS_BACKUP_DEVICE_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BACKUP_DEVICE_BOX))
#define IS_BACKUP_DEVICE_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BACKUP_DEVICE_BOX))
#define BACKUP_DEVICE_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BACKUP_DEVICE_BOX, BackupDeviceBoxClass))

typedef struct _BackupDeviceBox BackupDeviceBox;
typedef struct _BackupDeviceBoxClass BackupDeviceBoxClass;

#define TYPE_SCHEDULE_BOX (schedule_box_get_type ())
#define SCHEDULE_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SCHEDULE_BOX, ScheduleBox))
#define SCHEDULE_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SCHEDULE_BOX, ScheduleBoxClass))
#define IS_SCHEDULE_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SCHEDULE_BOX))
#define IS_SCHEDULE_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SCHEDULE_BOX))
#define SCHEDULE_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SCHEDULE_BOX, ScheduleBoxClass))

typedef struct _ScheduleBox ScheduleBox;
typedef struct _ScheduleBoxClass ScheduleBoxClass;

#define TYPE_EXCLUDE_BOX (exclude_box_get_type ())
#define EXCLUDE_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXCLUDE_BOX, ExcludeBox))
#define EXCLUDE_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXCLUDE_BOX, ExcludeBoxClass))
#define IS_EXCLUDE_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXCLUDE_BOX))
#define IS_EXCLUDE_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXCLUDE_BOX))
#define EXCLUDE_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXCLUDE_BOX, ExcludeBoxClass))

typedef struct _ExcludeBox ExcludeBox;
typedef struct _ExcludeBoxClass ExcludeBoxClass;

#define TYPE_USERS_BOX (users_box_get_type ())
#define USERS_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_USERS_BOX, UsersBox))
#define USERS_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_USERS_BOX, UsersBoxClass))
#define IS_USERS_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_USERS_BOX))
#define IS_USERS_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_USERS_BOX))
#define USERS_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_USERS_BOX, UsersBoxClass))

typedef struct _UsersBox UsersBox;
typedef struct _UsersBoxClass UsersBoxClass;

#define TYPE_MISC_BOX (misc_box_get_type ())
#define MISC_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MISC_BOX, MiscBox))
#define MISC_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MISC_BOX, MiscBoxClass))
#define IS_MISC_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MISC_BOX))
#define IS_MISC_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MISC_BOX))
#define MISC_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MISC_BOX, MiscBoxClass))

typedef struct _MiscBox MiscBox;
typedef struct _MiscBoxClass MiscBoxClass;
enum  {
	SETTINGS_WINDOW_0_PROPERTY,
	SETTINGS_WINDOW_NUM_PROPERTIES
};
static GParamSpec* settings_window_properties[SETTINGS_WINDOW_NUM_PROPERTIES];
typedef enum  {
	SETTINGS_WINDOW_TABS_BACKUP_TYPE = 0,
	SETTINGS_WINDOW_TABS_BACKUP_DEVICE = 1,
	SETTINGS_WINDOW_TABS_SCHEDULE = 2,
	SETTINGS_WINDOW_TABS_EXCLUDE = 3
} SettingsWindowTabs;

#define SETTINGS_WINDOW_TYPE_TABS (settings_window_tabs_get_type ())
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define TYPE_MAIN (main_get_type ())
#define MAIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MAIN, Main))
#define MAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MAIN, MainClass))
#define IS_MAIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MAIN))
#define IS_MAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MAIN))
#define MAIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MAIN, MainClass))

typedef struct _Main Main;
typedef struct _MainClass MainClass;
typedef struct _MainPrivate MainPrivate;

#define TYPE_DEVICE (device_get_type ())
#define DEVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DEVICE, Device))
#define DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DEVICE, DeviceClass))
#define IS_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DEVICE))
#define IS_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DEVICE))
#define DEVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DEVICE, DeviceClass))

typedef struct _Device Device;
typedef struct _DeviceClass DeviceClass;

#define TYPE_APP_EXCLUDE_ENTRY (app_exclude_entry_get_type ())
#define APP_EXCLUDE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_EXCLUDE_ENTRY, AppExcludeEntry))
#define APP_EXCLUDE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_EXCLUDE_ENTRY, AppExcludeEntryClass))
#define IS_APP_EXCLUDE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_EXCLUDE_ENTRY))
#define IS_APP_EXCLUDE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_EXCLUDE_ENTRY))
#define APP_EXCLUDE_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_EXCLUDE_ENTRY, AppExcludeEntryClass))

typedef struct _AppExcludeEntry AppExcludeEntry;
typedef struct _AppExcludeEntryClass AppExcludeEntryClass;

#define TYPE_MOUNT_ENTRY (mount_entry_get_type ())
#define MOUNT_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MOUNT_ENTRY, MountEntry))
#define MOUNT_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MOUNT_ENTRY, MountEntryClass))
#define IS_MOUNT_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MOUNT_ENTRY))
#define IS_MOUNT_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MOUNT_ENTRY))
#define MOUNT_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MOUNT_ENTRY, MountEntryClass))

typedef struct _MountEntry MountEntry;
typedef struct _MountEntryClass MountEntryClass;

#define TYPE_SNAPSHOT_REPO (snapshot_repo_get_type ())
#define SNAPSHOT_REPO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SNAPSHOT_REPO, SnapshotRepo))
#define SNAPSHOT_REPO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SNAPSHOT_REPO, SnapshotRepoClass))
#define IS_SNAPSHOT_REPO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SNAPSHOT_REPO))
#define IS_SNAPSHOT_REPO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SNAPSHOT_REPO))
#define SNAPSHOT_REPO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SNAPSHOT_REPO, SnapshotRepoClass))

typedef struct _SnapshotRepo SnapshotRepo;
typedef struct _SnapshotRepoClass SnapshotRepoClass;

#define TYPE_SUBVOLUME (subvolume_get_type ())
#define SUBVOLUME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SUBVOLUME, Subvolume))
#define SUBVOLUME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SUBVOLUME, SubvolumeClass))
#define IS_SUBVOLUME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SUBVOLUME))
#define IS_SUBVOLUME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SUBVOLUME))
#define SUBVOLUME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SUBVOLUME, SubvolumeClass))

typedef struct _Subvolume Subvolume;
typedef struct _SubvolumeClass SubvolumeClass;

#define TYPE_LINUX_DISTRO (linux_distro_get_type ())
#define LINUX_DISTRO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LINUX_DISTRO, LinuxDistro))
#define LINUX_DISTRO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LINUX_DISTRO, LinuxDistroClass))
#define IS_LINUX_DISTRO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LINUX_DISTRO))
#define IS_LINUX_DISTRO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LINUX_DISTRO))
#define LINUX_DISTRO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LINUX_DISTRO, LinuxDistroClass))

typedef struct _LinuxDistro LinuxDistro;
typedef struct _LinuxDistroClass LinuxDistroClass;

#define TYPE_APP_LOCK (app_lock_get_type ())
#define APP_LOCK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_APP_LOCK, AppLock))
#define APP_LOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_APP_LOCK, AppLockClass))
#define IS_APP_LOCK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_APP_LOCK))
#define IS_APP_LOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_APP_LOCK))
#define APP_LOCK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_APP_LOCK, AppLockClass))

typedef struct _AppLock AppLock;
typedef struct _AppLockClass AppLockClass;

#define TYPE_SNAPSHOT (snapshot_get_type ())
#define SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SNAPSHOT, Snapshot))
#define SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SNAPSHOT, SnapshotClass))
#define IS_SNAPSHOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SNAPSHOT))
#define IS_SNAPSHOT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SNAPSHOT))
#define SNAPSHOT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SNAPSHOT, SnapshotClass))

typedef struct _Snapshot Snapshot;
typedef struct _SnapshotClass SnapshotClass;

#define TYPE_ASYNC_TASK (async_task_get_type ())
#define ASYNC_TASK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ASYNC_TASK, AsyncTask))
#define ASYNC_TASK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ASYNC_TASK, AsyncTaskClass))
#define IS_ASYNC_TASK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ASYNC_TASK))
#define IS_ASYNC_TASK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ASYNC_TASK))
#define ASYNC_TASK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ASYNC_TASK, AsyncTaskClass))

typedef struct _AsyncTask AsyncTask;
typedef struct _AsyncTaskClass AsyncTaskClass;

#define TYPE_RSYNC_TASK (rsync_task_get_type ())
#define RSYNC_TASK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RSYNC_TASK, RsyncTask))
#define RSYNC_TASK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RSYNC_TASK, RsyncTaskClass))
#define IS_RSYNC_TASK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RSYNC_TASK))
#define IS_RSYNC_TASK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RSYNC_TASK))
#define RSYNC_TASK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RSYNC_TASK, RsyncTaskClass))

typedef struct _RsyncTask RsyncTask;
typedef struct _RsyncTaskClass RsyncTaskClass;

#define TYPE_DELETE_FILE_TASK (delete_file_task_get_type ())
#define DELETE_FILE_TASK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DELETE_FILE_TASK, DeleteFileTask))
#define DELETE_FILE_TASK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DELETE_FILE_TASK, DeleteFileTaskClass))
#define IS_DELETE_FILE_TASK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DELETE_FILE_TASK))
#define IS_DELETE_FILE_TASK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DELETE_FILE_TASK))
#define DELETE_FILE_TASK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DELETE_FILE_TASK, DeleteFileTaskClass))

typedef struct _DeleteFileTask DeleteFileTask;
typedef struct _DeleteFileTaskClass DeleteFileTaskClass;

#define TYPE_RSYNC_SPACE_CHECK_TASK (rsync_space_check_task_get_type ())
#define RSYNC_SPACE_CHECK_TASK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_RSYNC_SPACE_CHECK_TASK, RsyncSpaceCheckTask))
#define RSYNC_SPACE_CHECK_TASK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_RSYNC_SPACE_CHECK_TASK, RsyncSpaceCheckTaskClass))
#define IS_RSYNC_SPACE_CHECK_TASK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_RSYNC_SPACE_CHECK_TASK))
#define IS_RSYNC_SPACE_CHECK_TASK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_RSYNC_SPACE_CHECK_TASK))
#define RSYNC_SPACE_CHECK_TASK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_RSYNC_SPACE_CHECK_TASK, RsyncSpaceCheckTaskClass))

typedef struct _RsyncSpaceCheckTask RsyncSpaceCheckTask;
typedef struct _RsyncSpaceCheckTaskClass RsyncSpaceCheckTaskClass;

#define TYPE_SYSTEM_USER (system_user_get_type ())
#define SYSTEM_USER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SYSTEM_USER, SystemUser))
#define SYSTEM_USER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SYSTEM_USER, SystemUserClass))
#define IS_SYSTEM_USER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SYSTEM_USER))
#define IS_SYSTEM_USER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SYSTEM_USER))
#define SYSTEM_USER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SYSTEM_USER, SystemUserClass))

typedef struct _SystemUser SystemUser;
typedef struct _SystemUserClass SystemUserClass;

struct _SettingsWindow {
	GtkWindow parent_instance;
	SettingsWindowPrivate * priv;
};

struct _SettingsWindowClass {
	GtkWindowClass parent_class;
};

struct _SettingsWindowPrivate {
	GtkBox* vbox_main;
	GtkStackSwitcher* switcher;
	GtkStack* stack;
	SnapshotBackendBox* backend_box;
	BackupDeviceBox* backup_dev_box;
	ScheduleBox* schedule_box;
	ExcludeBox* exclude_box;
	UsersBox* users_box;
	MiscBox* misc_box;
	guint tmr_init;
	gint def_width;
	gint def_height;
};

struct _Main {
	GObject parent_instance;
	MainPrivate * priv;
	gchar* app_path;
	gchar* share_folder;
	gchar* rsnapshot_conf_path;
	gchar* app_conf_path;
	gchar* app_conf_path_old;
	gchar* app_conf_path_default;
	gboolean first_run;
	gchar* backup_uuid;
	gchar* backup_parent_uuid;
	gboolean btrfs_mode;
	gboolean include_btrfs_home_for_backup;
	gboolean include_btrfs_home_for_restore;
	gboolean stop_cron_emails;
	GeeArrayList* partitions;
	GeeArrayList* exclude_list_user;
	GeeArrayList* exclude_list_default;
	GeeArrayList* exclude_list_default_extra;
	GeeArrayList* exclude_list_home;
	GeeArrayList* exclude_list_restore;
	GeeArrayList* exclude_list_apps;
	GeeArrayList* mount_list;
	GeeArrayList* exclude_app_names;
	SnapshotRepo* repo;
	Device* sys_root;
	Device* sys_boot;
	Device* sys_efi;
	Device* sys_home;
	GeeHashMap* sys_subvolumes;
	gchar* mount_point_restore;
	gchar* mount_point_app;
	LinuxDistro* current_distro;
	gboolean mirror_system;
	gboolean schedule_monthly;
	gboolean schedule_weekly;
	gboolean schedule_daily;
	gboolean schedule_hourly;
	gboolean schedule_boot;
	gint count_monthly;
	gint count_weekly;
	gint count_daily;
	gint count_hourly;
	gint count_boot;
	gchar* app_mode;
	gboolean dry_run;
	gboolean thr_success;
	gboolean thread_restore_running;
	gboolean thread_restore_success;
	gboolean thread_delete_running;
	gboolean thread_delete_success;
	gboolean thread_subvol_info_running;
	gboolean thread_subvol_info_success;
	gint thr_retval;
	gchar* thr_arg1;
	gboolean thr_timeout_active;
	gchar* thr_timeout_cmd;
	gint startup_delay_interval_mins;
	gint retain_snapshots_max_days;
	gchar* log_dir;
	gchar* log_file;
	AppLock* app_lock;
	gchar* date_format;
	GeeArrayList* delete_list;
	Snapshot* snapshot_to_delete;
	Snapshot* snapshot_to_restore;
	gboolean reinstall_grub2;
	gboolean update_initramfs;
	gboolean update_grub;
	gchar* grub_device;
	gboolean use_option_raw;
	gboolean cmd_skip_grub;
	gchar* cmd_grub_device;
	gchar* cmd_target_device;
	gchar* cmd_backup_device;
	gchar* cmd_snapshot;
	gboolean cmd_confirm;
	gboolean cmd_verbose;
	gboolean cmd_scripted;
	gchar* cmd_comments;
	gchar* cmd_tags;
	gboolean* cmd_btrfs_mode;
	gchar* progress_text;
	GtkWindow* parent_window;
	RsyncTask* task;
	DeleteFileTask* delete_file_task;
	RsyncSpaceCheckTask* space_check_task;
	GeeHashMap* current_system_users;
	gchar* users_with_encrypted_home;
	gchar* encrypted_home_dirs;
	gboolean encrypted_home_warning_shown;
	gchar* encrypted_private_dirs;
	gboolean encrypted_private_warning_shown;
};

struct _MainClass {
	GObjectClass parent_class;
};

static gint SettingsWindow_private_offset;
static gpointer settings_window_parent_class = NULL;
VALA_EXTERN Main* App;

VALA_EXTERN GType settings_window_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SettingsWindow, g_object_unref)
VALA_EXTERN GType snapshot_backend_box_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SnapshotBackendBox, g_object_unref)
VALA_EXTERN GType backup_device_box_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (BackupDeviceBox, g_object_unref)
VALA_EXTERN GType schedule_box_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ScheduleBox, g_object_unref)
VALA_EXTERN GType exclude_box_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ExcludeBox, g_object_unref)
VALA_EXTERN GType users_box_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (UsersBox, g_object_unref)
VALA_EXTERN GType misc_box_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (MiscBox, g_object_unref)
VALA_EXTERN GType settings_window_tabs_get_type (void) G_GNUC_CONST ;
VALA_EXTERN SettingsWindow* settings_window_new (void);
VALA_EXTERN SettingsWindow* settings_window_construct (GType object_type);
VALA_EXTERN void tee_jee_logging_log_debug (const gchar* message);
VALA_EXTERN GdkPixbuf* icon_manager_lookup (const gchar* icon_name,
                                gint icon_size,
                                gboolean symbolic,
                                gboolean use_hardcoded,
                                gint scale);
static gboolean settings_window_on_delete_event (SettingsWindow* self,
                                          GdkEventAny* event);
static gboolean _settings_window_on_delete_event_gtk_widget_delete_event (GtkWidget* _sender,
                                                                   GdkEventAny* event,
                                                                   gpointer self);
VALA_EXTERN SnapshotBackendBox* snapshot_backend_box_new (GtkWindow* _parent_window);
VALA_EXTERN SnapshotBackendBox* snapshot_backend_box_construct (GType object_type,
                                                    GtkWindow* _parent_window);
VALA_EXTERN BackupDeviceBox* backup_device_box_new (GtkWindow* _parent_window);
VALA_EXTERN BackupDeviceBox* backup_device_box_construct (GType object_type,
                                              GtkWindow* _parent_window);
VALA_EXTERN ScheduleBox* schedule_box_new (GtkWindow* _parent_window);
VALA_EXTERN ScheduleBox* schedule_box_construct (GType object_type,
                                     GtkWindow* _parent_window);
VALA_EXTERN ExcludeBox* exclude_box_new (GtkWindow* _parent_window);
VALA_EXTERN ExcludeBox* exclude_box_construct (GType object_type,
                                   GtkWindow* _parent_window);
VALA_EXTERN UsersBox* users_box_new (GtkWindow* _parent_window,
                         ExcludeBox* _exclude_box,
                         gboolean _restore_mode);
VALA_EXTERN UsersBox* users_box_construct (GType object_type,
                               GtkWindow* _parent_window,
                               ExcludeBox* _exclude_box,
                               gboolean _restore_mode);
VALA_EXTERN void exclude_box_set_users_box (ExcludeBox* self,
                                UsersBox* _users_box);
VALA_EXTERN MiscBox* misc_box_new (GtkWindow* _parent_window,
                       gboolean _restore_mode);
VALA_EXTERN MiscBox* misc_box_construct (GType object_type,
                             GtkWindow* _parent_window,
                             gboolean _restore_mode);
static void __lambda139_ (SettingsWindow* self);
VALA_EXTERN GType main_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (Main, g_object_unref)
VALA_EXTERN GType device_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (Device, g_object_unref)
VALA_EXTERN GType app_exclude_entry_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (AppExcludeEntry, g_object_unref)
VALA_EXTERN GType mount_entry_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (MountEntry, g_object_unref)
VALA_EXTERN GType snapshot_repo_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SnapshotRepo, g_object_unref)
VALA_EXTERN GType subvolume_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (Subvolume, g_object_unref)
VALA_EXTERN GType linux_distro_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (LinuxDistro, g_object_unref)
VALA_EXTERN GType app_lock_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (AppLock, g_object_unref)
VALA_EXTERN GType snapshot_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (Snapshot, g_object_unref)
VALA_EXTERN GType async_task_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (AsyncTask, g_object_unref)
VALA_EXTERN GType rsync_task_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (RsyncTask, g_object_unref)
VALA_EXTERN GType delete_file_task_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (DeleteFileTask, g_object_unref)
VALA_EXTERN GType rsync_space_check_task_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (RsyncSpaceCheckTask, g_object_unref)
VALA_EXTERN GType system_user_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SystemUser, g_object_unref)
VALA_EXTERN void backup_device_box_refresh (BackupDeviceBox* self);
VALA_EXTERN void users_box_refresh (UsersBox* self);
static void ___lambda139__snapshot_backend_box_type_changed (SnapshotBackendBox* _sender,
                                                      gpointer self);
static void __lambda140_ (SettingsWindow* self);
static void settings_window_save_changes (SettingsWindow* self);
static void ___lambda140__gtk_button_clicked (GtkButton* _sender,
                                       gpointer self);
static gboolean settings_window_init_delayed (SettingsWindow* self);
static gboolean _settings_window_init_delayed_gsource_func (gpointer self);
VALA_EXTERN void snapshot_backend_box_refresh (SnapshotBackendBox* self);
VALA_EXTERN void exclude_box_save_changes (ExcludeBox* self);
VALA_EXTERN void main_cron_job_update (Main* self);
static void settings_window_finalize (GObject * obj);
static GType settings_window_get_type_once (void);

static inline gpointer
settings_window_get_instance_private (SettingsWindow* self)
{
	return G_STRUCT_MEMBER_P (self, SettingsWindow_private_offset);
}

static GType
settings_window_tabs_get_type_once (void)
{
	static const GEnumValue values[] = {{SETTINGS_WINDOW_TABS_BACKUP_TYPE, "SETTINGS_WINDOW_TABS_BACKUP_TYPE", "backup-type"}, {SETTINGS_WINDOW_TABS_BACKUP_DEVICE, "SETTINGS_WINDOW_TABS_BACKUP_DEVICE", "backup-device"}, {SETTINGS_WINDOW_TABS_SCHEDULE, "SETTINGS_WINDOW_TABS_SCHEDULE", "schedule"}, {SETTINGS_WINDOW_TABS_EXCLUDE, "SETTINGS_WINDOW_TABS_EXCLUDE", "exclude"}, {0, NULL, NULL}};
	GType settings_window_tabs_type_id;
	settings_window_tabs_type_id = g_enum_register_static ("SettingsWindowTabs", values);
	return settings_window_tabs_type_id;
}

GType
settings_window_tabs_get_type (void)
{
	static volatile gsize settings_window_tabs_type_id__once = 0;
	if (g_once_init_enter (&settings_window_tabs_type_id__once)) {
		GType settings_window_tabs_type_id;
		settings_window_tabs_type_id = settings_window_tabs_get_type_once ();
		g_once_init_leave (&settings_window_tabs_type_id__once, settings_window_tabs_type_id);
	}
	return settings_window_tabs_type_id__once;
}

static gboolean
_settings_window_on_delete_event_gtk_widget_delete_event (GtkWidget* _sender,
                                                          GdkEventAny* event,
                                                          gpointer self)
{
	gboolean result;
	result = settings_window_on_delete_event ((SettingsWindow*) self, event);
	return result;
}

static void
__lambda139_ (SettingsWindow* self)
{
	ExcludeBox* _tmp0_;
	Main* _tmp1_;
	BackupDeviceBox* _tmp2_;
	UsersBox* _tmp3_;
	_tmp0_ = self->priv->exclude_box;
	_tmp1_ = App;
	gtk_widget_set_visible ((GtkWidget*) _tmp0_, !_tmp1_->btrfs_mode);
	_tmp2_ = self->priv->backup_dev_box;
	backup_device_box_refresh (_tmp2_);
	_tmp3_ = self->priv->users_box;
	users_box_refresh (_tmp3_);
}

static void
___lambda139__snapshot_backend_box_type_changed (SnapshotBackendBox* _sender,
                                                 gpointer self)
{
	__lambda139_ ((SettingsWindow*) self);
}

static void
__lambda140_ (SettingsWindow* self)
{
	settings_window_save_changes (self);
	gtk_widget_destroy ((GtkWidget*) self);
}

static void
___lambda140__gtk_button_clicked (GtkButton* _sender,
                                  gpointer self)
{
	__lambda140_ ((SettingsWindow*) self);
}

static gboolean
_settings_window_init_delayed_gsource_func (gpointer self)
{
	gboolean result;
	result = settings_window_init_delayed ((SettingsWindow*) self);
	return result;
}

SettingsWindow*
settings_window_construct (GType object_type)
{
	SettingsWindow * self = NULL;
	GdkPixbuf* _tmp0_;
	GdkPixbuf* _tmp1_;
	GtkBox* _tmp2_;
	GtkBox* _tmp3_;
	GtkBox* _tmp4_;
	GtkButtonBox* hbox = NULL;
	GtkButtonBox* _tmp5_;
	GtkStyleContext* _tmp6_;
	GtkBox* _tmp7_;
	GtkStackSwitcher* _tmp8_;
	GtkStackSwitcher* _tmp9_;
	GtkStackSwitcher* _tmp10_;
	GtkStack* _tmp11_;
	GtkStack* _tmp12_;
	GtkStack* _tmp13_;
	GtkBox* _tmp14_;
	GtkStack* _tmp15_;
	GtkStackSwitcher* _tmp16_;
	GtkStack* _tmp17_;
	SnapshotBackendBox* _tmp18_;
	GtkStack* _tmp19_;
	SnapshotBackendBox* _tmp20_;
	BackupDeviceBox* _tmp21_;
	GtkStack* _tmp22_;
	BackupDeviceBox* _tmp23_;
	ScheduleBox* _tmp24_;
	GtkStack* _tmp25_;
	ScheduleBox* _tmp26_;
	ExcludeBox* _tmp27_;
	ExcludeBox* _tmp28_;
	UsersBox* _tmp29_;
	ExcludeBox* _tmp30_;
	UsersBox* _tmp31_;
	MiscBox* _tmp32_;
	GtkStack* _tmp33_;
	UsersBox* _tmp34_;
	GtkStack* _tmp35_;
	ExcludeBox* _tmp36_;
	GtkStack* _tmp37_;
	MiscBox* _tmp38_;
	SnapshotBackendBox* _tmp39_;
	GtkStack* _tmp40_;
	GtkButtonBox* bbox = NULL;
	GtkButtonBox* _tmp41_;
	GtkBox* _tmp42_;
	GtkButton* btn_ok = NULL;
	GtkButton* _tmp43_;
	self = (SettingsWindow*) g_object_new (object_type, NULL);
	tee_jee_logging_log_debug ("SettingsWindow: SettingsWindow()");
	gtk_window_set_title ((GtkWindow*) self, _ ("Settings"));
	g_object_set ((GtkWindow*) self, "window-position", GTK_WIN_POS_CENTER, NULL);
	gtk_window_set_modal ((GtkWindow*) self, TRUE);
	_tmp0_ = icon_manager_lookup ("timeshift", 16, FALSE, FALSE, 1);
	_tmp1_ = _tmp0_;
	gtk_window_set_icon ((GtkWindow*) self, _tmp1_);
	_g_object_unref0 (_tmp1_);
	g_signal_connect_object ((GtkWidget*) self, "delete-event", (GCallback) _settings_window_on_delete_event_gtk_widget_delete_event, self, 0);
	_tmp2_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
	g_object_ref_sink (_tmp2_);
	_g_object_unref0 (self->priv->vbox_main);
	self->priv->vbox_main = _tmp2_;
	_tmp3_ = self->priv->vbox_main;
	gtk_widget_set_size_request ((GtkWidget*) _tmp3_, self->priv->def_width, self->priv->def_height);
	_tmp4_ = self->priv->vbox_main;
	gtk_container_add ((GtkContainer*) self, (GtkWidget*) _tmp4_);
	gtk_window_resize ((GtkWindow*) self, self->priv->def_width, self->priv->def_height);
	_tmp5_ = (GtkButtonBox*) gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
	g_object_ref_sink (_tmp5_);
	hbox = _tmp5_;
	gtk_button_box_set_layout (hbox, GTK_BUTTONBOX_CENTER);
	_tmp6_ = gtk_widget_get_style_context ((GtkWidget*) hbox);
	gtk_style_context_add_class (_tmp6_, GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
	_tmp7_ = self->priv->vbox_main;
	gtk_container_add ((GtkContainer*) _tmp7_, (GtkWidget*) hbox);
	_tmp8_ = (GtkStackSwitcher*) gtk_stack_switcher_new ();
	g_object_ref_sink (_tmp8_);
	_g_object_unref0 (self->priv->switcher);
	self->priv->switcher = _tmp8_;
	_tmp9_ = self->priv->switcher;
	g_object_set ((GtkWidget*) _tmp9_, "margin", 6, NULL);
	_tmp10_ = self->priv->switcher;
	gtk_container_add ((GtkContainer*) hbox, (GtkWidget*) _tmp10_);
	_tmp11_ = (GtkStack*) gtk_stack_new ();
	g_object_ref_sink (_tmp11_);
	_g_object_unref0 (self->priv->stack);
	self->priv->stack = _tmp11_;
	_tmp12_ = self->priv->stack;
	gtk_stack_set_transition_duration (_tmp12_, (guint) 100);
	_tmp13_ = self->priv->stack;
	gtk_stack_set_transition_type (_tmp13_, GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT);
	_tmp14_ = self->priv->vbox_main;
	_tmp15_ = self->priv->stack;
	gtk_container_add ((GtkContainer*) _tmp14_, (GtkWidget*) _tmp15_);
	_tmp16_ = self->priv->switcher;
	_tmp17_ = self->priv->stack;
	gtk_stack_switcher_set_stack (_tmp16_, _tmp17_);
	_tmp18_ = snapshot_backend_box_new ((GtkWindow*) self);
	g_object_ref_sink (_tmp18_);
	_g_object_unref0 (self->priv->backend_box);
	self->priv->backend_box = _tmp18_;
	_tmp19_ = self->priv->stack;
	_tmp20_ = self->priv->backend_box;
	gtk_stack_add_titled (_tmp19_, (GtkWidget*) _tmp20_, "type", _ ("Type"));
	_tmp21_ = backup_device_box_new ((GtkWindow*) self);
	g_object_ref_sink (_tmp21_);
	_g_object_unref0 (self->priv->backup_dev_box);
	self->priv->backup_dev_box = _tmp21_;
	_tmp22_ = self->priv->stack;
	_tmp23_ = self->priv->backup_dev_box;
	gtk_stack_add_titled (_tmp22_, (GtkWidget*) _tmp23_, "location", _ ("Location"));
	_tmp24_ = schedule_box_new ((GtkWindow*) self);
	g_object_ref_sink (_tmp24_);
	_g_object_unref0 (self->priv->schedule_box);
	self->priv->schedule_box = _tmp24_;
	_tmp25_ = self->priv->stack;
	_tmp26_ = self->priv->schedule_box;
	gtk_stack_add_titled (_tmp25_, (GtkWidget*) _tmp26_, "schedule", _ ("Schedule"));
	_tmp27_ = exclude_box_new ((GtkWindow*) self);
	g_object_ref_sink (_tmp27_);
	_g_object_unref0 (self->priv->exclude_box);
	self->priv->exclude_box = _tmp27_;
	_tmp28_ = self->priv->exclude_box;
	_tmp29_ = users_box_new ((GtkWindow*) self, _tmp28_, FALSE);
	g_object_ref_sink (_tmp29_);
	_g_object_unref0 (self->priv->users_box);
	self->priv->users_box = _tmp29_;
	_tmp30_ = self->priv->exclude_box;
	_tmp31_ = self->priv->users_box;
	exclude_box_set_users_box (_tmp30_, _tmp31_);
	_tmp32_ = misc_box_new ((GtkWindow*) self, FALSE);
	g_object_ref_sink (_tmp32_);
	_g_object_unref0 (self->priv->misc_box);
	self->priv->misc_box = _tmp32_;
	_tmp33_ = self->priv->stack;
	_tmp34_ = self->priv->users_box;
	gtk_stack_add_titled (_tmp33_, (GtkWidget*) _tmp34_, "users", _ ("Users"));
	_tmp35_ = self->priv->stack;
	_tmp36_ = self->priv->exclude_box;
	gtk_stack_add_titled (_tmp35_, (GtkWidget*) _tmp36_, "filters", _ ("Filters"));
	_tmp37_ = self->priv->stack;
	_tmp38_ = self->priv->misc_box;
	gtk_stack_add_titled (_tmp37_, (GtkWidget*) _tmp38_, "misc", _ ("Misc"));
	_tmp39_ = self->priv->backend_box;
	g_signal_connect_object (_tmp39_, "type-changed", (GCallback) ___lambda139__snapshot_backend_box_type_changed, self, 0);
	_tmp40_ = self->priv->stack;
	gtk_stack_set_visible_child_name (_tmp40_, "type");
	_tmp41_ = (GtkButtonBox*) gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
	g_object_ref_sink (_tmp41_);
	bbox = _tmp41_;
	_tmp42_ = self->priv->vbox_main;
	gtk_container_add ((GtkContainer*) _tmp42_, (GtkWidget*) bbox);
	gtk_button_box_set_layout (bbox, GTK_BUTTONBOX_CENTER);
	_tmp43_ = (GtkButton*) gtk_button_new_with_label (_ ("OK"));
	g_object_ref_sink (_tmp43_);
	btn_ok = _tmp43_;
	g_object_set ((GtkWidget*) btn_ok, "margin", 12, NULL);
	gtk_widget_set_size_request ((GtkWidget*) btn_ok, 100, -1);
	gtk_container_add ((GtkContainer*) bbox, (GtkWidget*) btn_ok);
	g_signal_connect_object (btn_ok, "clicked", (GCallback) ___lambda140__gtk_button_clicked, self, 0);
	gtk_widget_show_all ((GtkWidget*) self);
	self->priv->tmr_init = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) 100, _settings_window_init_delayed_gsource_func, g_object_ref (self), g_object_unref);
	tee_jee_logging_log_debug ("SettingsWindow: SettingsWindow(): exit");
	_g_object_unref0 (btn_ok);
	_g_object_unref0 (bbox);
	_g_object_unref0 (hbox);
	return self;
}

SettingsWindow*
settings_window_new (void)
{
	return settings_window_construct (TYPE_SETTINGS_WINDOW);
}

static gboolean
settings_window_init_delayed (SettingsWindow* self)
{
	SnapshotBackendBox* _tmp0_;
	GtkStack* _tmp1_;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	if (self->priv->tmr_init > ((guint) 0)) {
		g_source_remove (self->priv->tmr_init);
		self->priv->tmr_init = (guint) 0;
	}
	_tmp0_ = self->priv->backend_box;
	snapshot_backend_box_refresh (_tmp0_);
	_tmp1_ = self->priv->stack;
	gtk_stack_set_visible_child_name (_tmp1_, "type");
	gtk_window_resize ((GtkWindow*) self, self->priv->def_width, self->priv->def_height);
	result = FALSE;
	return result;
}

static gboolean
settings_window_on_delete_event (SettingsWindow* self,
                                 GdkEventAny* event)
{
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (event != NULL, FALSE);
	settings_window_save_changes (self);
	result = FALSE;
	return result;
}

static void
settings_window_save_changes (SettingsWindow* self)
{
	ExcludeBox* _tmp0_;
	Main* _tmp1_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->exclude_box;
	exclude_box_save_changes (_tmp0_);
	_tmp1_ = App;
	main_cron_job_update (_tmp1_);
}

static void
settings_window_class_init (SettingsWindowClass * klass,
                            gpointer klass_data)
{
	settings_window_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &SettingsWindow_private_offset);
	G_OBJECT_CLASS (klass)->finalize = settings_window_finalize;
}

static void
settings_window_instance_init (SettingsWindow * self,
                               gpointer klass)
{
	self->priv = settings_window_get_instance_private (self);
	self->priv->def_width = 500;
	self->priv->def_height = 500;
}

static void
settings_window_finalize (GObject * obj)
{
	SettingsWindow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SETTINGS_WINDOW, SettingsWindow);
	_g_object_unref0 (self->priv->vbox_main);
	_g_object_unref0 (self->priv->switcher);
	_g_object_unref0 (self->priv->stack);
	_g_object_unref0 (self->priv->backend_box);
	_g_object_unref0 (self->priv->backup_dev_box);
	_g_object_unref0 (self->priv->schedule_box);
	_g_object_unref0 (self->priv->exclude_box);
	_g_object_unref0 (self->priv->users_box);
	_g_object_unref0 (self->priv->misc_box);
	G_OBJECT_CLASS (settings_window_parent_class)->finalize (obj);
}

static GType
settings_window_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SettingsWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) settings_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SettingsWindow), 0, (GInstanceInitFunc) settings_window_instance_init, NULL };
	GType settings_window_type_id;
	settings_window_type_id = g_type_register_static (gtk_window_get_type (), "SettingsWindow", &g_define_type_info, 0);
	SettingsWindow_private_offset = g_type_add_instance_private (settings_window_type_id, sizeof (SettingsWindowPrivate));
	return settings_window_type_id;
}

GType
settings_window_get_type (void)
{
	static volatile gsize settings_window_type_id__once = 0;
	if (g_once_init_enter (&settings_window_type_id__once)) {
		GType settings_window_type_id;
		settings_window_type_id = settings_window_get_type_once ();
		g_once_init_leave (&settings_window_type_id__once, settings_window_type_id);
	}
	return settings_window_type_id__once;
}

