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

/*
 * ExcludeMessageWindow.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 <stdlib.h>
#include <string.h>
#include <glib.h>
#include <glib/gi18n-lib.h>
#include <float.h>
#include <math.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_EXCLUDE_MESSAGE_WINDOW (exclude_message_window_get_type ())
#define EXCLUDE_MESSAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXCLUDE_MESSAGE_WINDOW, ExcludeMessageWindow))
#define EXCLUDE_MESSAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXCLUDE_MESSAGE_WINDOW, ExcludeMessageWindowClass))
#define IS_EXCLUDE_MESSAGE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXCLUDE_MESSAGE_WINDOW))
#define IS_EXCLUDE_MESSAGE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXCLUDE_MESSAGE_WINDOW))
#define EXCLUDE_MESSAGE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXCLUDE_MESSAGE_WINDOW, ExcludeMessageWindowClass))

typedef struct _ExcludeMessageWindow ExcludeMessageWindow;
typedef struct _ExcludeMessageWindowClass ExcludeMessageWindowClass;
typedef struct _ExcludeMessageWindowPrivate ExcludeMessageWindowPrivate;
enum  {
	EXCLUDE_MESSAGE_WINDOW_0_PROPERTY,
	EXCLUDE_MESSAGE_WINDOW_NUM_PROPERTIES
};
static GParamSpec* exclude_message_window_properties[EXCLUDE_MESSAGE_WINDOW_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (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 _ExcludeMessageWindow {
	GtkDialog parent_instance;
	ExcludeMessageWindowPrivate * priv;
};

struct _ExcludeMessageWindowClass {
	GtkDialogClass parent_class;
};

struct _ExcludeMessageWindowPrivate {
	GtkBox* vbox_main;
	GtkBox* hbox_action;
	GtkTreeView* tv_exclude;
	GtkScrolledWindow* sw_exclude;
	GtkTreeViewColumn* col_exclude;
	GtkLabel* lbl_header_exclude;
	GtkLabel* lbl_exclude;
	GtkLabel* lbl_header_home;
	GtkLabel* lbl_home;
	GtkButton* btn_ok;
};

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 ExcludeMessageWindow_private_offset;
static gpointer exclude_message_window_parent_class = NULL;
VALA_EXTERN Main* App;

VALA_EXTERN GType exclude_message_window_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ExcludeMessageWindow, g_object_unref)
VALA_EXTERN ExcludeMessageWindow* exclude_message_window_new (void);
VALA_EXTERN ExcludeMessageWindow* exclude_message_window_construct (GType object_type);
VALA_EXTERN void tee_jee_logging_log_debug (const gchar* message);
static void exclude_message_window_cell_exclude_text_render (ExcludeMessageWindow* self,
                                                      GtkCellLayout* cell_layout,
                                                      GtkCellRenderer* cell,
                                                      GtkTreeModel* model,
                                                      GtkTreeIter* iter);
static void _exclude_message_window_cell_exclude_text_render_gtk_cell_layout_data_func (GtkCellLayout* cell_layout,
                                                                                 GtkCellRenderer* cell,
                                                                                 GtkTreeModel* tree_model,
                                                                                 GtkTreeIter* iter,
                                                                                 gpointer self);
static void exclude_message_window_btn_ok_clicked (ExcludeMessageWindow* self);
static void _exclude_message_window_btn_ok_clicked_gtk_button_clicked (GtkButton* _sender,
                                                                gpointer 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)
static void exclude_message_window_tv_exclude_add_item (ExcludeMessageWindow* self,
                                                 const gchar* path);
static void exclude_message_window_finalize (GObject * obj);
static GType exclude_message_window_get_type_once (void);

static inline gpointer
exclude_message_window_get_instance_private (ExcludeMessageWindow* self)
{
	return G_STRUCT_MEMBER_P (self, ExcludeMessageWindow_private_offset);
}

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

static void
_exclude_message_window_cell_exclude_text_render_gtk_cell_layout_data_func (GtkCellLayout* cell_layout,
                                                                            GtkCellRenderer* cell,
                                                                            GtkTreeModel* tree_model,
                                                                            GtkTreeIter* iter,
                                                                            gpointer self)
{
	exclude_message_window_cell_exclude_text_render ((ExcludeMessageWindow*) self, cell_layout, cell, tree_model, iter);
}

static void
_exclude_message_window_btn_ok_clicked_gtk_button_clicked (GtkButton* _sender,
                                                           gpointer self)
{
	exclude_message_window_btn_ok_clicked ((ExcludeMessageWindow*) self);
}

ExcludeMessageWindow*
exclude_message_window_construct (GType object_type)
{
	ExcludeMessageWindow * self = NULL;
	gchar* msg = NULL;
	GtkBox* _tmp0_;
	GtkBox* _tmp1_;
	GtkBox* _tmp2_;
	GtkBox* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	GtkLabel* _tmp8_;
	GtkLabel* _tmp9_;
	GtkLabel* _tmp10_;
	GtkBox* _tmp11_;
	GtkLabel* _tmp12_;
	gchar* _tmp13_;
	gchar* _tmp14_;
	GtkLabel* _tmp15_;
	GtkLabel* _tmp16_;
	GtkLabel* _tmp17_;
	GtkBox* _tmp18_;
	GtkLabel* _tmp19_;
	GtkTreeView* _tmp20_;
	GtkTreeView* _tmp21_;
	GtkTreeSelection* _tmp22_;
	GtkTreeView* _tmp23_;
	GtkScrolledWindow* _tmp24_;
	GtkScrolledWindow* _tmp25_;
	GtkScrolledWindow* _tmp26_;
	GtkTreeView* _tmp27_;
	GtkScrolledWindow* _tmp28_;
	GtkBox* _tmp29_;
	GtkScrolledWindow* _tmp30_;
	GtkTreeViewColumn* _tmp31_;
	GtkTreeViewColumn* _tmp32_;
	GtkTreeViewColumn* _tmp33_;
	GtkCellRendererText* cell_exclude_margin = NULL;
	GtkCellRendererText* _tmp34_;
	GtkCellRendererText* _tmp35_;
	GtkTreeViewColumn* _tmp36_;
	GtkCellRendererText* _tmp37_;
	GtkCellRendererPixbuf* cell_exclude_icon = NULL;
	GtkCellRendererPixbuf* _tmp38_;
	GtkTreeViewColumn* _tmp39_;
	GtkCellRendererPixbuf* _tmp40_;
	GtkTreeViewColumn* _tmp41_;
	GtkCellRendererPixbuf* _tmp42_;
	GtkCellRendererText* cell_exclude_text = NULL;
	GtkCellRendererText* _tmp43_;
	GtkTreeViewColumn* _tmp44_;
	GtkCellRendererText* _tmp45_;
	GtkTreeViewColumn* _tmp46_;
	GtkCellRendererText* _tmp47_;
	GtkCellRendererText* _tmp48_;
	GtkTreeView* _tmp49_;
	GtkTreeViewColumn* _tmp50_;
	gchar* _tmp51_;
	gchar* _tmp52_;
	gchar* _tmp53_;
	gchar* _tmp54_;
	GtkLabel* _tmp55_;
	GtkLabel* _tmp56_;
	GtkLabel* _tmp57_;
	GtkLabel* _tmp58_;
	GtkBox* _tmp59_;
	GtkLabel* _tmp60_;
	GtkLabel* _tmp61_;
	GtkLabel* _tmp62_;
	GtkLabel* _tmp63_;
	GtkLabel* _tmp64_;
	GtkBox* _tmp65_;
	GtkLabel* _tmp66_;
	gchar* _tmp67_;
	const gchar* _tmp68_;
	gchar* _tmp69_;
	gchar* _tmp70_;
	gchar* _tmp71_;
	GtkLabel* _tmp72_;
	const gchar* _tmp73_;
	GtkBox* _tmp74_;
	GtkBox* _tmp75_;
	GtkButton* _tmp76_;
	GtkBox* _tmp77_;
	GtkButton* _tmp78_;
	GtkButton* _tmp79_;
	GtkListStore* model = NULL;
	GtkListStore* _tmp80_;
	GtkTreeView* _tmp81_;
	GtkListStore* _tmp82_;
	self = (ExcludeMessageWindow*) g_object_new (object_type, NULL);
	tee_jee_logging_log_debug ("ExcludeMessageWindow: ExcludeMessageWindow()");
	gtk_window_set_title ((GtkWindow*) self, _ ("Excluded Directories"));
	g_object_set ((GtkWindow*) self, "window-position", GTK_WIN_POS_CENTER_ON_PARENT, NULL);
	gtk_window_set_destroy_with_parent ((GtkWindow*) self, TRUE);
	gtk_window_set_modal ((GtkWindow*) self, TRUE);
	gtk_window_set_default_size ((GtkWindow*) self, 400, 400);
	_tmp0_ = gtk_dialog_get_content_area ((GtkDialog*) self);
	_tmp1_ = _g_object_ref0 (_tmp0_);
	_g_object_unref0 (self->priv->vbox_main);
	self->priv->vbox_main = _tmp1_;
	_tmp2_ = self->priv->vbox_main;
	g_object_set ((GtkWidget*) _tmp2_, "margin", 6, NULL);
	_tmp3_ = self->priv->vbox_main;
	gtk_box_set_spacing (_tmp3_, 6);
	_tmp4_ = g_strconcat ("<b>", _ ("Exclude List"), NULL);
	_tmp5_ = _tmp4_;
	_tmp6_ = g_strconcat (_tmp5_, ":</b>", NULL);
	_tmp7_ = _tmp6_;
	_tmp8_ = (GtkLabel*) gtk_label_new (_tmp7_);
	g_object_ref_sink (_tmp8_);
	_g_object_unref0 (self->priv->lbl_header_exclude);
	self->priv->lbl_header_exclude = _tmp8_;
	_g_free0 (_tmp7_);
	_g_free0 (_tmp5_);
	_tmp9_ = self->priv->lbl_header_exclude;
	gtk_label_set_xalign (_tmp9_, (gfloat) 0.0);
	_tmp10_ = self->priv->lbl_header_exclude;
	gtk_label_set_use_markup (_tmp10_, TRUE);
	_tmp11_ = self->priv->vbox_main;
	_tmp12_ = self->priv->lbl_header_exclude;
	gtk_container_add ((GtkContainer*) _tmp11_, (GtkWidget*) _tmp12_);
	_tmp13_ = g_strconcat (_ ("Files matching the following patterns will be excluded"), ":", NULL);
	_tmp14_ = _tmp13_;
	_tmp15_ = (GtkLabel*) gtk_label_new (_tmp14_);
	g_object_ref_sink (_tmp15_);
	_g_object_unref0 (self->priv->lbl_exclude);
	self->priv->lbl_exclude = _tmp15_;
	_g_free0 (_tmp14_);
	_tmp16_ = self->priv->lbl_exclude;
	gtk_label_set_xalign (_tmp16_, (gfloat) 0.0);
	_tmp17_ = self->priv->lbl_exclude;
	gtk_label_set_use_markup (_tmp17_, TRUE);
	_tmp18_ = self->priv->vbox_main;
	_tmp19_ = self->priv->lbl_exclude;
	gtk_container_add ((GtkContainer*) _tmp18_, (GtkWidget*) _tmp19_);
	_tmp20_ = (GtkTreeView*) gtk_tree_view_new ();
	g_object_ref_sink (_tmp20_);
	_g_object_unref0 (self->priv->tv_exclude);
	self->priv->tv_exclude = _tmp20_;
	_tmp21_ = self->priv->tv_exclude;
	_tmp22_ = gtk_tree_view_get_selection (_tmp21_);
	gtk_tree_selection_set_mode (_tmp22_, GTK_SELECTION_MULTIPLE);
	_tmp23_ = self->priv->tv_exclude;
	gtk_tree_view_set_headers_visible (_tmp23_, FALSE);
	_tmp24_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL);
	g_object_ref_sink (_tmp24_);
	_g_object_unref0 (self->priv->sw_exclude);
	self->priv->sw_exclude = _tmp24_;
	_tmp25_ = self->priv->sw_exclude;
	gtk_scrolled_window_set_shadow_type (_tmp25_, GTK_SHADOW_ETCHED_IN);
	_tmp26_ = self->priv->sw_exclude;
	_tmp27_ = self->priv->tv_exclude;
	gtk_container_add ((GtkContainer*) _tmp26_, (GtkWidget*) _tmp27_);
	_tmp28_ = self->priv->sw_exclude;
	g_object_set ((GtkWidget*) _tmp28_, "expand", TRUE, NULL);
	_tmp29_ = self->priv->vbox_main;
	_tmp30_ = self->priv->sw_exclude;
	gtk_container_add ((GtkContainer*) _tmp29_, (GtkWidget*) _tmp30_);
	_tmp31_ = gtk_tree_view_column_new ();
	g_object_ref_sink (_tmp31_);
	_g_object_unref0 (self->priv->col_exclude);
	self->priv->col_exclude = _tmp31_;
	_tmp32_ = self->priv->col_exclude;
	gtk_tree_view_column_set_title (_tmp32_, _ ("File Pattern"));
	_tmp33_ = self->priv->col_exclude;
	gtk_tree_view_column_set_expand (_tmp33_, TRUE);
	_tmp34_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
	g_object_ref_sink (_tmp34_);
	cell_exclude_margin = _tmp34_;
	_tmp35_ = cell_exclude_margin;
	g_object_set (_tmp35_, "text", "", NULL);
	_tmp36_ = self->priv->col_exclude;
	_tmp37_ = cell_exclude_margin;
	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp36_, (GtkCellRenderer*) _tmp37_, FALSE);
	_tmp38_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new ();
	g_object_ref_sink (_tmp38_);
	cell_exclude_icon = _tmp38_;
	_tmp39_ = self->priv->col_exclude;
	_tmp40_ = cell_exclude_icon;
	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp39_, (GtkCellRenderer*) _tmp40_, FALSE);
	_tmp41_ = self->priv->col_exclude;
	_tmp42_ = cell_exclude_icon;
	gtk_tree_view_column_set_attributes (_tmp41_, (GtkCellRenderer*) _tmp42_, "icon-name", 1, NULL);
	_tmp43_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
	g_object_ref_sink (_tmp43_);
	cell_exclude_text = _tmp43_;
	_tmp44_ = self->priv->col_exclude;
	_tmp45_ = cell_exclude_text;
	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp44_, (GtkCellRenderer*) _tmp45_, FALSE);
	_tmp46_ = self->priv->col_exclude;
	_tmp47_ = cell_exclude_text;
	gtk_cell_layout_set_cell_data_func ((GtkCellLayout*) _tmp46_, (GtkCellRenderer*) _tmp47_, _exclude_message_window_cell_exclude_text_render_gtk_cell_layout_data_func, g_object_ref (self), g_object_unref);
	_tmp48_ = cell_exclude_text;
	g_object_set (_tmp48_, "foreground", "#222222", NULL);
	_tmp49_ = self->priv->tv_exclude;
	_tmp50_ = self->priv->col_exclude;
	gtk_tree_view_append_column (_tmp49_, _tmp50_);
	_tmp51_ = g_strconcat ("<b>", _ ("Home Directory"), NULL);
	_tmp52_ = _tmp51_;
	_tmp53_ = g_strconcat (_tmp52_, ":</b>", NULL);
	_tmp54_ = _tmp53_;
	_tmp55_ = (GtkLabel*) gtk_label_new (_tmp54_);
	g_object_ref_sink (_tmp55_);
	_g_object_unref0 (self->priv->lbl_header_home);
	self->priv->lbl_header_home = _tmp55_;
	_g_free0 (_tmp54_);
	_g_free0 (_tmp52_);
	_tmp56_ = self->priv->lbl_header_home;
	gtk_label_set_xalign (_tmp56_, (gfloat) 0.0);
	_tmp57_ = self->priv->lbl_header_home;
	gtk_label_set_use_markup (_tmp57_, TRUE);
	_tmp58_ = self->priv->lbl_header_home;
	gtk_widget_set_margin_top ((GtkWidget*) _tmp58_, 6);
	_tmp59_ = self->priv->vbox_main;
	_tmp60_ = self->priv->lbl_header_home;
	gtk_container_add ((GtkContainer*) _tmp59_, (GtkWidget*) _tmp60_);
	_tmp61_ = (GtkLabel*) gtk_label_new ("");
	g_object_ref_sink (_tmp61_);
	_g_object_unref0 (self->priv->lbl_home);
	self->priv->lbl_home = _tmp61_;
	_tmp62_ = self->priv->lbl_home;
	gtk_label_set_xalign (_tmp62_, (gfloat) 0.0);
	_tmp63_ = self->priv->lbl_home;
	gtk_label_set_use_markup (_tmp63_, TRUE);
	_tmp64_ = self->priv->lbl_home;
	g_object_set (_tmp64_, "wrap", TRUE, NULL);
	_tmp65_ = self->priv->vbox_main;
	_tmp66_ = self->priv->lbl_home;
	gtk_container_add ((GtkContainer*) _tmp65_, (GtkWidget*) _tmp66_);
	_tmp67_ = g_strconcat (_ ("Hidden files and folders are included by default since they contain us" \
"er-specific configuration files."), "\n", NULL);
	_g_free0 (msg);
	msg = _tmp67_;
	_tmp68_ = msg;
	_tmp69_ = g_strconcat (_ ("All other files and folders are excluded."), "\n", NULL);
	_tmp70_ = _tmp69_;
	_tmp71_ = g_strconcat (_tmp68_, _tmp70_, NULL);
	_g_free0 (msg);
	msg = _tmp71_;
	_g_free0 (_tmp70_);
	_tmp72_ = self->priv->lbl_home;
	_tmp73_ = msg;
	gtk_label_set_label (_tmp72_, _tmp73_);
	_tmp74_ = gtk_dialog_get_action_area ((GtkDialog*) self);
	_tmp75_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, gtk_box_get_type (), GtkBox));
	_g_object_unref0 (self->priv->hbox_action);
	self->priv->hbox_action = _tmp75_;
	_tmp76_ = (GtkButton*) gtk_button_new_from_stock ("gtk-ok");
	g_object_ref_sink (_tmp76_);
	_g_object_unref0 (self->priv->btn_ok);
	self->priv->btn_ok = _tmp76_;
	_tmp77_ = self->priv->hbox_action;
	_tmp78_ = self->priv->btn_ok;
	gtk_container_add ((GtkContainer*) _tmp77_, (GtkWidget*) _tmp78_);
	_tmp79_ = self->priv->btn_ok;
	g_signal_connect_object (_tmp79_, "clicked", (GCallback) _exclude_message_window_btn_ok_clicked_gtk_button_clicked, self, 0);
	_tmp80_ = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING, -1);
	model = _tmp80_;
	_tmp81_ = self->priv->tv_exclude;
	_tmp82_ = model;
	gtk_tree_view_set_model (_tmp81_, (GtkTreeModel*) _tmp82_);
	{
		GeeArrayList* _path_list = NULL;
		Main* _tmp83_;
		GeeArrayList* _tmp84_;
		gint _path_size = 0;
		GeeArrayList* _tmp85_;
		gint _tmp86_;
		gint _tmp87_;
		gint _path_index = 0;
		_tmp83_ = App;
		_tmp84_ = _tmp83_->exclude_list_default;
		_path_list = _tmp84_;
		_tmp85_ = _path_list;
		_tmp86_ = gee_abstract_collection_get_size ((GeeAbstractCollection*) _tmp85_);
		_tmp87_ = _tmp86_;
		_path_size = _tmp87_;
		_path_index = -1;
		while (TRUE) {
			gint _tmp88_;
			gint _tmp89_;
			gchar* path = NULL;
			GeeArrayList* _tmp90_;
			gpointer _tmp91_;
			const gchar* _tmp92_;
			_path_index = _path_index + 1;
			_tmp88_ = _path_index;
			_tmp89_ = _path_size;
			if (!(_tmp88_ < _tmp89_)) {
				break;
			}
			_tmp90_ = _path_list;
			_tmp91_ = gee_abstract_list_get ((GeeAbstractList*) _tmp90_, _path_index);
			path = (gchar*) _tmp91_;
			_tmp92_ = path;
			exclude_message_window_tv_exclude_add_item (self, _tmp92_);
			_g_free0 (path);
		}
	}
	tee_jee_logging_log_debug ("ExcludeMessageWindow: ExcludeMessageWindow(): exit");
	_g_object_unref0 (model);
	_g_object_unref0 (cell_exclude_text);
	_g_object_unref0 (cell_exclude_icon);
	_g_object_unref0 (cell_exclude_margin);
	_g_free0 (msg);
	return self;
}

ExcludeMessageWindow*
exclude_message_window_new (void)
{
	return exclude_message_window_construct (TYPE_EXCLUDE_MESSAGE_WINDOW);
}

static gchar*
string_slice (const gchar* self,
              glong start,
              glong end)
{
	glong string_length = 0L;
	gint _tmp0_;
	gint _tmp1_;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_ = FALSE;
	gchar* _tmp4_;
	gchar* result;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = strlen (self);
	_tmp1_ = _tmp0_;
	string_length = (glong) _tmp1_;
	if (start < ((glong) 0)) {
		start = string_length + start;
	}
	if (end < ((glong) 0)) {
		end = string_length + end;
	}
	if (start >= ((glong) 0)) {
		_tmp2_ = start <= string_length;
	} else {
		_tmp2_ = FALSE;
	}
	g_return_val_if_fail (_tmp2_, NULL);
	if (end >= ((glong) 0)) {
		_tmp3_ = end <= string_length;
	} else {
		_tmp3_ = FALSE;
	}
	g_return_val_if_fail (_tmp3_, NULL);
	g_return_val_if_fail (start <= end, NULL);
	_tmp4_ = g_strndup (((gchar*) self) + start, (gsize) (end - start));
	result = _tmp4_;
	return result;
}

static void
exclude_message_window_cell_exclude_text_render (ExcludeMessageWindow* self,
                                                 GtkCellLayout* cell_layout,
                                                 GtkCellRenderer* cell,
                                                 GtkTreeModel* model,
                                                 GtkTreeIter* iter)
{
	gchar* pattern = NULL;
	GtkTreeIter _tmp0_;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	const gchar* _tmp3_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (cell_layout != NULL);
	g_return_if_fail (cell != NULL);
	g_return_if_fail (model != NULL);
	g_return_if_fail (iter != NULL);
	_tmp0_ = *iter;
	gtk_tree_model_get (model, &_tmp0_, 0, &_tmp1_, -1, -1);
	_g_free0 (pattern);
	pattern = _tmp1_;
	_tmp3_ = pattern;
	if (g_str_has_prefix (_tmp3_, "+ ")) {
		const gchar* _tmp4_;
		const gchar* _tmp5_;
		gint _tmp6_;
		gint _tmp7_;
		gchar* _tmp8_;
		_tmp4_ = pattern;
		_tmp5_ = pattern;
		_tmp6_ = strlen (_tmp5_);
		_tmp7_ = _tmp6_;
		_tmp8_ = string_slice (_tmp4_, (glong) 2, (glong) _tmp7_);
		_g_free0 (_tmp2_);
		_tmp2_ = _tmp8_;
	} else {
		const gchar* _tmp9_;
		gchar* _tmp10_;
		_tmp9_ = pattern;
		_tmp10_ = g_strdup (_tmp9_);
		_g_free0 (_tmp2_);
		_tmp2_ = _tmp10_;
	}
	g_object_set (G_TYPE_CHECK_INSTANCE_CAST (cell, gtk_cell_renderer_text_get_type (), GtkCellRendererText), "text", _tmp2_, NULL);
	_g_free0 (_tmp2_);
	_g_free0 (pattern);
}

static void
exclude_message_window_tv_exclude_add_item (ExcludeMessageWindow* self,
                                            const gchar* path)
{
	gchar* icon_name = NULL;
	GtkTreeIter iter = {0};
	GtkListStore* model = NULL;
	GtkTreeView* _tmp0_;
	GtkTreeModel* _tmp1_;
	GtkTreeModel* _tmp2_;
	GtkListStore* _tmp3_;
	GtkListStore* _tmp4_;
	GtkTreeIter _tmp5_ = {0};
	GtkListStore* _tmp8_;
	GtkTreeIter _tmp9_;
	const gchar* _tmp10_;
	GtkAdjustment* adj = NULL;
	GtkTreeView* _tmp11_;
	GtkAdjustment* _tmp12_;
	GtkAdjustment* _tmp13_;
	gdouble _tmp14_;
	gdouble _tmp15_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (path != NULL);
	icon_name = NULL;
	_tmp0_ = self->priv->tv_exclude;
	_tmp1_ = gtk_tree_view_get_model (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, gtk_list_store_get_type (), GtkListStore));
	model = _tmp3_;
	_tmp4_ = model;
	gtk_list_store_append (_tmp4_, &_tmp5_);
	iter = _tmp5_;
	if (g_str_has_prefix (path, "+ ")) {
		gchar* _tmp6_;
		_tmp6_ = g_strdup ("item-blue");
		_g_free0 (icon_name);
		icon_name = _tmp6_;
	} else {
		gchar* _tmp7_;
		_tmp7_ = g_strdup ("item-gray");
		_g_free0 (icon_name);
		icon_name = _tmp7_;
	}
	_tmp8_ = model;
	_tmp9_ = iter;
	_tmp10_ = icon_name;
	gtk_list_store_set (_tmp8_, &_tmp9_, 0, path, 1, _tmp10_, -1);
	_tmp11_ = self->priv->tv_exclude;
	_tmp12_ = gtk_scrollable_get_hadjustment (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, gtk_scrollable_get_type (), GtkScrollable));
	_tmp13_ = _g_object_ref0 (_tmp12_);
	adj = _tmp13_;
	_tmp14_ = gtk_adjustment_get_upper (adj);
	_tmp15_ = _tmp14_;
	gtk_adjustment_set_value (adj, _tmp15_);
	_g_object_unref0 (adj);
	_g_object_unref0 (model);
	_g_free0 (icon_name);
}

static void
exclude_message_window_btn_ok_clicked (ExcludeMessageWindow* self)
{
	g_return_if_fail (self != NULL);
	gtk_dialog_response ((GtkDialog*) self, (gint) GTK_RESPONSE_OK);
	return;
}

static void
exclude_message_window_class_init (ExcludeMessageWindowClass * klass,
                                   gpointer klass_data)
{
	exclude_message_window_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &ExcludeMessageWindow_private_offset);
	G_OBJECT_CLASS (klass)->finalize = exclude_message_window_finalize;
}

static void
exclude_message_window_instance_init (ExcludeMessageWindow * self,
                                      gpointer klass)
{
	self->priv = exclude_message_window_get_instance_private (self);
}

static void
exclude_message_window_finalize (GObject * obj)
{
	ExcludeMessageWindow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_EXCLUDE_MESSAGE_WINDOW, ExcludeMessageWindow);
	_g_object_unref0 (self->priv->vbox_main);
	_g_object_unref0 (self->priv->hbox_action);
	_g_object_unref0 (self->priv->tv_exclude);
	_g_object_unref0 (self->priv->sw_exclude);
	_g_object_unref0 (self->priv->col_exclude);
	_g_object_unref0 (self->priv->lbl_header_exclude);
	_g_object_unref0 (self->priv->lbl_exclude);
	_g_object_unref0 (self->priv->lbl_header_home);
	_g_object_unref0 (self->priv->lbl_home);
	_g_object_unref0 (self->priv->btn_ok);
	G_OBJECT_CLASS (exclude_message_window_parent_class)->finalize (obj);
}

static GType
exclude_message_window_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ExcludeMessageWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) exclude_message_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ExcludeMessageWindow), 0, (GInstanceInitFunc) exclude_message_window_instance_init, NULL };
	GType exclude_message_window_type_id;
	exclude_message_window_type_id = g_type_register_static (gtk_dialog_get_type (), "ExcludeMessageWindow", &g_define_type_info, 0);
	ExcludeMessageWindow_private_offset = g_type_add_instance_private (exclude_message_window_type_id, sizeof (ExcludeMessageWindowPrivate));
	return exclude_message_window_type_id;
}

GType
exclude_message_window_get_type (void)
{
	static volatile gsize exclude_message_window_type_id__once = 0;
	if (g_once_init_enter (&exclude_message_window_type_id__once)) {
		GType exclude_message_window_type_id;
		exclude_message_window_type_id = exclude_message_window_get_type_once ();
		g_once_init_leave (&exclude_message_window_type_id__once, exclude_message_window_type_id);
	}
	return exclude_message_window_type_id__once;
}

