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

/*
  This file is part of Dconf Editor

  Dconf Editor 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.

  Dconf Editor 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 Dconf Editor.  If not, see <https://www.gnu.org/licenses/>.
*/

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

#define CONFIGURATION_EDITOR_PROGRAM_NAME _ ("dconf Editor")
#define MODEL_UTILS_undefined_context_id ((guint16) 0)
#define MODEL_UTILS_folder_context_id ((guint16) 1)
#define MODEL_UTILS_dconf_context_id ((guint16) 2)
#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

typedef enum  {
	RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_USER = 1 << 0,
	RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_BUILT_IN = 1 << 1,
	RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_INTERNAL = 1 << 2,
	RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_STARTUP = 1 << 3
} RelocatableSchemasEnabledMappings;

#define TYPE_RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS (relocatable_schemas_enabled_mappings_get_type ())

#define TYPE_ADAPTATIVE_WINDOW (adaptative_window_get_type ())
#define ADAPTATIVE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADAPTATIVE_WINDOW, AdaptativeWindow))
#define ADAPTATIVE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ADAPTATIVE_WINDOW, AdaptativeWindowClass))
#define IS_ADAPTATIVE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADAPTATIVE_WINDOW))
#define IS_ADAPTATIVE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ADAPTATIVE_WINDOW))
#define ADAPTATIVE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ADAPTATIVE_WINDOW, AdaptativeWindowClass))

typedef struct _AdaptativeWindow AdaptativeWindow;
typedef struct _AdaptativeWindowClass AdaptativeWindowClass;
typedef struct _AdaptativeWindowPrivate AdaptativeWindowPrivate;

#define TYPE_ADAPTATIVE_WIDGET (adaptative_widget_get_type ())
#define ADAPTATIVE_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ADAPTATIVE_WIDGET, AdaptativeWidget))
#define IS_ADAPTATIVE_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ADAPTATIVE_WIDGET))
#define ADAPTATIVE_WIDGET_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_ADAPTATIVE_WIDGET, AdaptativeWidgetIface))

typedef struct _AdaptativeWidget AdaptativeWidget;
typedef struct _AdaptativeWidgetIface AdaptativeWidgetIface;
typedef enum  {
	ADAPTATIVE_WIDGET_WINDOW_SIZE_START_SIZE,
	ADAPTATIVE_WIDGET_WINDOW_SIZE_USUAL_SIZE,
	ADAPTATIVE_WIDGET_WINDOW_SIZE_QUITE_THIN,
	ADAPTATIVE_WIDGET_WINDOW_SIZE_PHONE_VERT,
	ADAPTATIVE_WIDGET_WINDOW_SIZE_PHONE_HZTL,
	ADAPTATIVE_WIDGET_WINDOW_SIZE_PHONE_BOTH,
	ADAPTATIVE_WIDGET_WINDOW_SIZE_EXTRA_THIN,
	ADAPTATIVE_WIDGET_WINDOW_SIZE_EXTRA_FLAT
} AdaptativeWidgetWindowSize;

#define ADAPTATIVE_WIDGET_TYPE_WINDOW_SIZE (adaptative_widget_window_size_get_type ())

#define TYPE_BASE_WINDOW (base_window_get_type ())
#define BASE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BASE_WINDOW, BaseWindow))
#define BASE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BASE_WINDOW, BaseWindowClass))
#define IS_BASE_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BASE_WINDOW))
#define IS_BASE_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BASE_WINDOW))
#define BASE_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BASE_WINDOW, BaseWindowClass))

typedef struct _BaseWindow BaseWindow;
typedef struct _BaseWindowClass BaseWindowClass;
typedef struct _BaseWindowPrivate BaseWindowPrivate;

#define TYPE_BROWSER_WINDOW (browser_window_get_type ())
#define BROWSER_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BROWSER_WINDOW, BrowserWindow))
#define BROWSER_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BROWSER_WINDOW, BrowserWindowClass))
#define IS_BROWSER_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BROWSER_WINDOW))
#define IS_BROWSER_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BROWSER_WINDOW))
#define BROWSER_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BROWSER_WINDOW, BrowserWindowClass))

typedef struct _BrowserWindow BrowserWindow;
typedef struct _BrowserWindowClass BrowserWindowClass;
typedef struct _BrowserWindowPrivate BrowserWindowPrivate;
typedef enum  {
	VIEW_TYPE_OBJECT,
	VIEW_TYPE_FOLDER,
	VIEW_TYPE_SEARCH,
	VIEW_TYPE_CONFIG
} ViewType;

#define TYPE_VIEW_TYPE (view_type_get_type ())

#define TYPE_BOOKMARKS_WINDOW (bookmarks_window_get_type ())
#define BOOKMARKS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BOOKMARKS_WINDOW, BookmarksWindow))
#define BOOKMARKS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BOOKMARKS_WINDOW, BookmarksWindowClass))
#define IS_BOOKMARKS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BOOKMARKS_WINDOW))
#define IS_BOOKMARKS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BOOKMARKS_WINDOW))
#define BOOKMARKS_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BOOKMARKS_WINDOW, BookmarksWindowClass))

typedef struct _BookmarksWindow BookmarksWindow;
typedef struct _BookmarksWindowClass BookmarksWindowClass;
typedef struct _BookmarksWindowPrivate BookmarksWindowPrivate;
typedef enum  {
	BOOKMARK_ICON_VALID_FOLDER,
	BOOKMARK_ICON_SEARCH,
	BOOKMARK_ICON_DCONF_OBJECT,
	BOOKMARK_ICON_KEY_DEFAULTS,
	BOOKMARK_ICON_EDITED_VALUE,
	BOOKMARK_ICON_EMPTY_FOLDER,
	BOOKMARK_ICON_EMPTY_OBJECT
} BookmarkIcon;

#define TYPE_BOOKMARK_ICON (bookmark_icon_get_type ())

#define TYPE_DCONF_WINDOW (dconf_window_get_type ())
#define DCONF_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DCONF_WINDOW, DConfWindow))
#define DCONF_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DCONF_WINDOW, DConfWindowClass))
#define IS_DCONF_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DCONF_WINDOW))
#define IS_DCONF_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DCONF_WINDOW))
#define DCONF_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DCONF_WINDOW, DConfWindowClass))

typedef struct _DConfWindow DConfWindow;
typedef struct _DConfWindowClass DConfWindowClass;
typedef struct _DConfWindowPrivate DConfWindowPrivate;

#define TYPE_SETTINGS_MODEL_CORE (settings_model_core_get_type ())
#define SETTINGS_MODEL_CORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SETTINGS_MODEL_CORE, SettingsModelCore))
#define SETTINGS_MODEL_CORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SETTINGS_MODEL_CORE, SettingsModelCoreClass))
#define IS_SETTINGS_MODEL_CORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SETTINGS_MODEL_CORE))
#define IS_SETTINGS_MODEL_CORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SETTINGS_MODEL_CORE))
#define SETTINGS_MODEL_CORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SETTINGS_MODEL_CORE, SettingsModelCoreClass))

typedef struct _SettingsModelCore SettingsModelCore;
typedef struct _SettingsModelCoreClass SettingsModelCoreClass;

#define TYPE_SETTINGS_MODEL (settings_model_get_type ())
#define SETTINGS_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SETTINGS_MODEL, SettingsModel))
#define SETTINGS_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SETTINGS_MODEL, SettingsModelClass))
#define IS_SETTINGS_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SETTINGS_MODEL))
#define IS_SETTINGS_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SETTINGS_MODEL))
#define SETTINGS_MODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SETTINGS_MODEL, SettingsModelClass))

typedef struct _SettingsModel SettingsModel;
typedef struct _SettingsModelClass SettingsModelClass;

#define TYPE_MODIFICATIONS_HANDLER (modifications_handler_get_type ())
#define MODIFICATIONS_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MODIFICATIONS_HANDLER, ModificationsHandler))
#define MODIFICATIONS_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MODIFICATIONS_HANDLER, ModificationsHandlerClass))
#define IS_MODIFICATIONS_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MODIFICATIONS_HANDLER))
#define IS_MODIFICATIONS_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MODIFICATIONS_HANDLER))
#define MODIFICATIONS_HANDLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MODIFICATIONS_HANDLER, ModificationsHandlerClass))

typedef struct _ModificationsHandler ModificationsHandler;
typedef struct _ModificationsHandlerClass ModificationsHandlerClass;

#define TYPE_BASE_HEADER_BAR (base_header_bar_get_type ())
#define BASE_HEADER_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BASE_HEADER_BAR, BaseHeaderBar))
#define BASE_HEADER_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BASE_HEADER_BAR, BaseHeaderBarClass))
#define IS_BASE_HEADER_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BASE_HEADER_BAR))
#define IS_BASE_HEADER_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BASE_HEADER_BAR))
#define BASE_HEADER_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BASE_HEADER_BAR, BaseHeaderBarClass))

typedef struct _BaseHeaderBar BaseHeaderBar;
typedef struct _BaseHeaderBarClass BaseHeaderBarClass;

#define TYPE_BROWSER_HEADER_BAR (browser_header_bar_get_type ())
#define BROWSER_HEADER_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BROWSER_HEADER_BAR, BrowserHeaderBar))
#define BROWSER_HEADER_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BROWSER_HEADER_BAR, BrowserHeaderBarClass))
#define IS_BROWSER_HEADER_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BROWSER_HEADER_BAR))
#define IS_BROWSER_HEADER_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BROWSER_HEADER_BAR))
#define BROWSER_HEADER_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BROWSER_HEADER_BAR, BrowserHeaderBarClass))

typedef struct _BrowserHeaderBar BrowserHeaderBar;
typedef struct _BrowserHeaderBarClass BrowserHeaderBarClass;

#define TYPE_BOOKMARKS_HEADER_BAR (bookmarks_header_bar_get_type ())
#define BOOKMARKS_HEADER_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BOOKMARKS_HEADER_BAR, BookmarksHeaderBar))
#define BOOKMARKS_HEADER_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BOOKMARKS_HEADER_BAR, BookmarksHeaderBarClass))
#define IS_BOOKMARKS_HEADER_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BOOKMARKS_HEADER_BAR))
#define IS_BOOKMARKS_HEADER_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BOOKMARKS_HEADER_BAR))
#define BOOKMARKS_HEADER_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BOOKMARKS_HEADER_BAR, BookmarksHeaderBarClass))

typedef struct _BookmarksHeaderBar BookmarksHeaderBar;
typedef struct _BookmarksHeaderBarClass BookmarksHeaderBarClass;

#define TYPE_DCONF_HEADER_BAR (dconf_header_bar_get_type ())
#define DCONF_HEADER_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DCONF_HEADER_BAR, DConfHeaderBar))
#define DCONF_HEADER_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DCONF_HEADER_BAR, DConfHeaderBarClass))
#define IS_DCONF_HEADER_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DCONF_HEADER_BAR))
#define IS_DCONF_HEADER_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DCONF_HEADER_BAR))
#define DCONF_HEADER_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DCONF_HEADER_BAR, DConfHeaderBarClass))

typedef struct _DConfHeaderBar DConfHeaderBar;
typedef struct _DConfHeaderBarClass DConfHeaderBarClass;

#define TYPE_BASE_VIEW (base_view_get_type ())
#define BASE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BASE_VIEW, BaseView))
#define BASE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BASE_VIEW, BaseViewClass))
#define IS_BASE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BASE_VIEW))
#define IS_BASE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BASE_VIEW))
#define BASE_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BASE_VIEW, BaseViewClass))

typedef struct _BaseView BaseView;
typedef struct _BaseViewClass BaseViewClass;

#define TYPE_BROWSER_VIEW (browser_view_get_type ())
#define BROWSER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BROWSER_VIEW, BrowserView))
#define BROWSER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BROWSER_VIEW, BrowserViewClass))
#define IS_BROWSER_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BROWSER_VIEW))
#define IS_BROWSER_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BROWSER_VIEW))
#define BROWSER_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BROWSER_VIEW, BrowserViewClass))

typedef struct _BrowserView BrowserView;
typedef struct _BrowserViewClass BrowserViewClass;

#define TYPE_BOOKMARKS_VIEW (bookmarks_view_get_type ())
#define BOOKMARKS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BOOKMARKS_VIEW, BookmarksView))
#define BOOKMARKS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BOOKMARKS_VIEW, BookmarksViewClass))
#define IS_BOOKMARKS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BOOKMARKS_VIEW))
#define IS_BOOKMARKS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BOOKMARKS_VIEW))
#define BOOKMARKS_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BOOKMARKS_VIEW, BookmarksViewClass))

typedef struct _BookmarksView BookmarksView;
typedef struct _BookmarksViewClass BookmarksViewClass;

#define TYPE_DCONF_VIEW (dconf_view_get_type ())
#define DCONF_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DCONF_VIEW, DConfView))
#define DCONF_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DCONF_VIEW, DConfViewClass))
#define IS_DCONF_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DCONF_VIEW))
#define IS_DCONF_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DCONF_VIEW))
#define DCONF_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DCONF_VIEW, DConfViewClass))

typedef struct _DConfView DConfView;
typedef struct _DConfViewClass DConfViewClass;

#define TYPE_MODIFICATIONS_REVEALER (modifications_revealer_get_type ())
#define MODIFICATIONS_REVEALER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MODIFICATIONS_REVEALER, ModificationsRevealer))
#define MODIFICATIONS_REVEALER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MODIFICATIONS_REVEALER, ModificationsRevealerClass))
#define IS_MODIFICATIONS_REVEALER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MODIFICATIONS_REVEALER))
#define IS_MODIFICATIONS_REVEALER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MODIFICATIONS_REVEALER))
#define MODIFICATIONS_REVEALER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MODIFICATIONS_REVEALER, ModificationsRevealerClass))

typedef struct _ModificationsRevealer ModificationsRevealer;
typedef struct _ModificationsRevealerClass ModificationsRevealerClass;
enum  {
	DCONF_WINDOW_0_PROPERTY,
	DCONF_WINDOW_NUM_PROPERTIES
};
static GParamSpec* dconf_window_properties[DCONF_WINDOW_NUM_PROPERTIES];
typedef void (*GSimpleActionActivateCallback) (GSimpleAction* action, GVariant* parameter, gpointer user_data);
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef enum  {
	MODIFICATIONS_MODE_NONE,
	MODIFICATIONS_MODE_TEMPORARY,
	MODIFICATIONS_MODE_DELAYED
} ModificationsMode;

#define TYPE_MODIFICATIONS_MODE (modifications_mode_get_type ())
#define _g_free0(var) (var = (g_free (var), NULL))

#define TYPE_SCHEMAS_UTILITY (schemas_utility_get_type ())
#define SCHEMAS_UTILITY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SCHEMAS_UTILITY, SchemasUtility))
#define SCHEMAS_UTILITY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SCHEMAS_UTILITY, SchemasUtilityClass))
#define IS_SCHEMAS_UTILITY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SCHEMAS_UTILITY))
#define IS_SCHEMAS_UTILITY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SCHEMAS_UTILITY))
#define SCHEMAS_UTILITY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SCHEMAS_UTILITY, SchemasUtilityClass))

typedef struct _SchemasUtility SchemasUtility;
typedef struct _SchemasUtilityClass SchemasUtilityClass;
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
typedef struct _Block9Data Block9Data;

#define TYPE_CONFIGURATION_EDITOR (configuration_editor_get_type ())
#define CONFIGURATION_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CONFIGURATION_EDITOR, ConfigurationEditor))
#define CONFIGURATION_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CONFIGURATION_EDITOR, ConfigurationEditorClass))
#define IS_CONFIGURATION_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CONFIGURATION_EDITOR))
#define IS_CONFIGURATION_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CONFIGURATION_EDITOR))
#define CONFIGURATION_EDITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CONFIGURATION_EDITOR, ConfigurationEditorClass))

typedef struct _ConfigurationEditor ConfigurationEditor;
typedef struct _ConfigurationEditorClass ConfigurationEditorClass;

#define TYPE_REGISTRY_VARIANT_DICT (registry_variant_dict_get_type ())
#define REGISTRY_VARIANT_DICT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_REGISTRY_VARIANT_DICT, RegistryVariantDict))
#define REGISTRY_VARIANT_DICT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_REGISTRY_VARIANT_DICT, RegistryVariantDictClass))
#define IS_REGISTRY_VARIANT_DICT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_REGISTRY_VARIANT_DICT))
#define IS_REGISTRY_VARIANT_DICT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_REGISTRY_VARIANT_DICT))
#define REGISTRY_VARIANT_DICT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_REGISTRY_VARIANT_DICT, RegistryVariantDictClass))

typedef struct _RegistryVariantDict RegistryVariantDict;
typedef struct _RegistryVariantDictClass RegistryVariantDictClass;
typedef enum  {
	PROPERTY_QUERY_HASH = 1 << 0,
	PROPERTY_QUERY_HAS_SCHEMA = 1 << 1,
	PROPERTY_QUERY_KEY_NAME = 1 << 2,
	PROPERTY_QUERY_TYPE_CODE = 1 << 3,
	PROPERTY_QUERY_KEY_VALUE = 1 << 4,
	PROPERTY_QUERY_FIXED_SCHEMA = 1 << 5,
	PROPERTY_QUERY_SCHEMA_ID = 1 << 6,
	PROPERTY_QUERY_SUMMARY = 1 << 7,
	PROPERTY_QUERY_DESCRIPTION = 1 << 8,
	PROPERTY_QUERY_DEFAULT_VALUE = 1 << 9,
	PROPERTY_QUERY_RANGE_TYPE = 1 << 10,
	PROPERTY_QUERY_RANGE_CONTENT = 1 << 11,
	PROPERTY_QUERY_MAXIMUM = 1 << 12,
	PROPERTY_QUERY_MINIMUM = 1 << 13,
	PROPERTY_QUERY_KEY_CONFLICT = 1 << 14,
	PROPERTY_QUERY_IS_DEFAULT = 1 << 15
} PropertyQuery;

#define TYPE_PROPERTY_QUERY (property_query_get_type ())

#define TYPE_SIMPLE_SETTING_OBJECT (simple_setting_object_get_type ())
#define SIMPLE_SETTING_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SIMPLE_SETTING_OBJECT, SimpleSettingObject))
#define SIMPLE_SETTING_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SIMPLE_SETTING_OBJECT, SimpleSettingObjectClass))
#define IS_SIMPLE_SETTING_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SIMPLE_SETTING_OBJECT))
#define IS_SIMPLE_SETTING_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SIMPLE_SETTING_OBJECT))
#define SIMPLE_SETTING_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SIMPLE_SETTING_OBJECT, SimpleSettingObjectClass))

typedef struct _SimpleSettingObject SimpleSettingObject;
typedef struct _SimpleSettingObjectClass SimpleSettingObjectClass;
#define _g_variant_iter_free0(var) ((var == NULL) ? NULL : (var = (g_variant_iter_free (var), NULL)))
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

struct _AdaptativeWindow {
	GtkApplicationWindow parent_instance;
	AdaptativeWindowPrivate * priv;
};

struct _AdaptativeWindowClass {
	GtkApplicationWindowClass parent_class;
	void (*before_destroy) (AdaptativeWindow* self);
};

struct _AdaptativeWidgetIface {
	GTypeInterface parent_iface;
	void (*set_window_size) (AdaptativeWidget* self, AdaptativeWidgetWindowSize new_size);
};

struct _BaseWindow {
	AdaptativeWindow parent_instance;
	BaseWindowPrivate * priv;
};

struct _BaseWindowClass {
	AdaptativeWindowClass parent_class;
	gboolean (*handle_copy_text) (BaseWindow* self, gchar** copy_text);
	gboolean (*get_alt_copy_text) (BaseWindow* self, gchar** copy_text);
	void (*paste_text) (BaseWindow* self, const gchar* text);
	void (*menu_pressed) (BaseWindow* self);
	gboolean (*on_key_press_event) (BaseWindow* self, GtkWidget* widget, GdkEventKey* event);
	void (*set_window_size) (BaseWindow* self, AdaptativeWidgetWindowSize new_size);
	void (*close_in_window_panels) (BaseWindow* self);
	gboolean (*escape_pressed) (BaseWindow* self);
	void (*show_default_view) (BaseWindow* self);
};

struct _BrowserWindow {
	BaseWindow parent_instance;
	BrowserWindowPrivate * priv;
	gchar* current_path;
	ViewType current_type;
	ViewType saved_type;
	gchar* saved_view;
	gchar* saved_selection;
	GSimpleAction* reload_search_action;
};

struct _BrowserWindowClass {
	BaseWindowClass parent_class;
	void (*request_folder) (BrowserWindow* self, const gchar* full_name, const gchar* selected_or_empty, gboolean notify_missing);
	void (*request_object) (BrowserWindow* self, const gchar* full_name, guint16 context_id, gboolean notify_missing, const gchar* schema_id);
	void (*request_config) (BrowserWindow* self, const gchar* full_name);
	void (*reconfigure_search) (BrowserWindow* self, gboolean local_search);
	gboolean (*intercept_next_match) (BrowserWindow* self, gboolean* interception_result);
	gboolean (*intercept_previous_match) (BrowserWindow* self, gboolean* interception_result);
};

struct _BookmarksWindow {
	BrowserWindow parent_instance;
	BookmarksWindowPrivate * priv;
};

struct _BookmarksWindowClass {
	BrowserWindowClass parent_class;
	BookmarkIcon (*get_bookmark_icon) (BookmarksWindow* self, gchar** bookmark);
	void (*toggle_bookmark_called) (BookmarksWindow* self);
};

struct _DConfWindow {
	BookmarksWindow parent_instance;
	DConfWindowPrivate * priv;
};

struct _DConfWindowClass {
	BookmarksWindowClass parent_class;
};

struct _DConfWindowPrivate {
	SettingsModel* model;
	ModificationsHandler* modifications_handler;
	GSettings* settings;
	gulong use_shortpaths_changed_handler;
	gulong behaviour_changed_handler;
	gulong delayed_changes_changed_handler;
	DConfHeaderBar* headerbar;
	DConfView* main_view;
	gulong paths_changed_handler;
	gulong gkey_value_push_handler;
	gulong dkey_value_push_handler;
	gulong settings_user_paths_changed_handler;
	gulong settings_enabled_mappings_changed_handler;
	ModificationsRevealer* revealer;
	gboolean disable_action_bar;
};

struct _Block9Data {
	int _ref_count_;
	DConfWindow* self;
	GtkCheckButton* checkbutton;
};

static gint DConfWindow_private_offset;
static gpointer dconf_window_parent_class = NULL;
static AdaptativeWidgetIface * dconf_window_adaptative_widget_parent_iface = NULL;

VALA_EXTERN GType relocatable_schemas_enabled_mappings_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GType adaptative_window_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (AdaptativeWindow, g_object_unref)
VALA_EXTERN GType adaptative_widget_window_size_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GType adaptative_widget_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (AdaptativeWidget, g_object_unref)
VALA_EXTERN GType base_window_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (BaseWindow, g_object_unref)
VALA_EXTERN GType browser_window_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (BrowserWindow, g_object_unref)
VALA_EXTERN GType view_type_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GType bookmarks_window_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (BookmarksWindow, g_object_unref)
VALA_EXTERN GType bookmark_icon_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GType dconf_window_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (DConfWindow, g_object_unref)
VALA_EXTERN GType settings_model_core_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SettingsModelCore, g_object_unref)
VALA_EXTERN GType settings_model_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SettingsModel, g_object_unref)
VALA_EXTERN GType modifications_handler_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ModificationsHandler, g_object_unref)
VALA_EXTERN GType base_header_bar_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (BaseHeaderBar, g_object_unref)
VALA_EXTERN GType browser_header_bar_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (BrowserHeaderBar, g_object_unref)
VALA_EXTERN GType bookmarks_header_bar_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (BookmarksHeaderBar, g_object_unref)
VALA_EXTERN GType dconf_header_bar_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (DConfHeaderBar, g_object_unref)
VALA_EXTERN GType base_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (BaseView, g_object_unref)
VALA_EXTERN GType browser_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (BrowserView, g_object_unref)
VALA_EXTERN GType bookmarks_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (BookmarksView, g_object_unref)
VALA_EXTERN GType dconf_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (DConfView, g_object_unref)
VALA_EXTERN GType modifications_revealer_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ModificationsRevealer, g_object_unref)
VALA_EXTERN void adaptative_window_before_destroy (AdaptativeWindow* self);
VALA_EXTERN void base_window_show_default_view (BaseWindow* self);
VALA_EXTERN BookmarkIcon bookmarks_window_get_bookmark_icon (BookmarksWindow* self,
                                                 gchar** bookmark);
VALA_EXTERN void base_window_set_window_size (BaseWindow* self,
                                  AdaptativeWidgetWindowSize new_size);
VALA_EXTERN void bookmarks_window_toggle_bookmark_called (BookmarksWindow* self);
VALA_EXTERN gboolean base_window_escape_pressed (BaseWindow* self);
VALA_EXTERN gboolean browser_window_intercept_next_match (BrowserWindow* self,
                                              gboolean* interception_result);
VALA_EXTERN gboolean browser_window_intercept_previous_match (BrowserWindow* self,
                                                  gboolean* interception_result);
VALA_EXTERN void browser_window_reconfigure_search (BrowserWindow* self,
                                        gboolean local_search);
VALA_EXTERN void base_window_close_in_window_panels (BaseWindow* self);
VALA_EXTERN void browser_window_request_config (BrowserWindow* self,
                                    const gchar* full_name);
VALA_EXTERN void browser_window_request_folder (BrowserWindow* self,
                                    const gchar* full_name,
                                    const gchar* selected_or_empty,
                                    gboolean notify_missing);
VALA_EXTERN void browser_window_request_object (BrowserWindow* self,
                                    const gchar* full_name,
                                    guint16 context_id,
                                    gboolean notify_missing,
                                    const gchar* schema_id);
VALA_EXTERN gboolean base_window_handle_copy_text (BaseWindow* self,
                                       gchar** copy_text);
VALA_EXTERN gboolean base_window_get_alt_copy_text (BaseWindow* self,
                                        gchar** copy_text);
static void dconf_window_reset_recursively (DConfWindow* self,
                                     GSimpleAction* action,
                                     GVariant* path_variant);
static void _dconf_window_reset_recursively_gsimple_action_activate_callback (GSimpleAction* action,
                                                                       GVariant* parameter,
                                                                       gpointer self);
static void dconf_window_reset_current_recursively (DConfWindow* self);
static void _dconf_window_reset_current_recursively_gsimple_action_activate_callback (GSimpleAction* action,
                                                                               GVariant* parameter,
                                                                               gpointer self);
static void dconf_window_reset_current_non_recursively (DConfWindow* self);
static void _dconf_window_reset_current_non_recursively_gsimple_action_activate_callback (GSimpleAction* action,
                                                                                   GVariant* parameter,
                                                                                   gpointer self);
static void dconf_window_enter_delay_mode (DConfWindow* self);
static void _dconf_window_enter_delay_mode_gsimple_action_activate_callback (GSimpleAction* action,
                                                                      GVariant* parameter,
                                                                      gpointer self);
static void dconf_window_apply_delayed_settings (DConfWindow* self);
static void _dconf_window_apply_delayed_settings_gsimple_action_activate_callback (GSimpleAction* action,
                                                                            GVariant* parameter,
                                                                            gpointer self);
static void dconf_window_dismiss_delayed_settings (DConfWindow* self);
static void _dconf_window_dismiss_delayed_settings_gsimple_action_activate_callback (GSimpleAction* action,
                                                                              GVariant* parameter,
                                                                              gpointer self);
static void dconf_window_dismiss_change (DConfWindow* self,
                                  GSimpleAction* action,
                                  GVariant* path_variant);
static void _dconf_window_dismiss_change_gsimple_action_activate_callback (GSimpleAction* action,
                                                                    GVariant* parameter,
                                                                    gpointer self);
static void dconf_window_erase_dconf_key (DConfWindow* self,
                                   GSimpleAction* action,
                                   GVariant* path_variant);
static void _dconf_window_erase_dconf_key_gsimple_action_activate_callback (GSimpleAction* action,
                                                                     GVariant* parameter,
                                                                     gpointer self);
static void dconf_window_show_modifications_view (DConfWindow* self);
static void _dconf_window_show_modifications_view_gsimple_action_activate_callback (GSimpleAction* action,
                                                                             GVariant* parameter,
                                                                             gpointer self);
static void dconf_window_notify_folder_emptied (DConfWindow* self,
                                         GSimpleAction* action,
                                         GVariant* path_variant);
static void _dconf_window_notify_folder_emptied_gsimple_action_activate_callback (GSimpleAction* action,
                                                                           GVariant* parameter,
                                                                           gpointer self);
static void dconf_window_notify_object_deleted (DConfWindow* self,
                                         GSimpleAction* action,
                                         GVariant* path_variant);
static void _dconf_window_notify_object_deleted_gsimple_action_activate_callback (GSimpleAction* action,
                                                                           GVariant* parameter,
                                                                           gpointer self);
static void dconf_window_modifications_list (DConfWindow* self);
static void _dconf_window_modifications_list_gsimple_action_activate_callback (GSimpleAction* action,
                                                                        GVariant* parameter,
                                                                        gpointer self);
static void dconf_window_toggle_boolean (DConfWindow* self);
static void _dconf_window_toggle_boolean_gsimple_action_activate_callback (GSimpleAction* action,
                                                                    GVariant* parameter,
                                                                    gpointer self);
static void dconf_window_set_to_default (DConfWindow* self);
static void _dconf_window_set_to_default_gsimple_action_activate_callback (GSimpleAction* action,
                                                                    GVariant* parameter,
                                                                    gpointer self);
VALA_EXTERN DConfWindow* dconf_window_new (gboolean disable_warning,
                               const gchar* schema,
                               const gchar* path,
                               const gchar* key_name);
VALA_EXTERN DConfWindow* dconf_window_construct (GType object_type,
                                     gboolean disable_warning,
                                     const gchar* schema,
                                     const gchar* path,
                                     const gchar* key_name);
VALA_EXTERN SettingsModel* settings_model_new (void);
VALA_EXTERN SettingsModel* settings_model_construct (GType object_type);
VALA_EXTERN ModificationsHandler* modifications_handler_new (SettingsModel* model);
VALA_EXTERN ModificationsHandler* modifications_handler_construct (GType object_type,
                                                       SettingsModel* model);
VALA_EXTERN DConfHeaderBar* dconf_header_bar_new (void);
VALA_EXTERN DConfHeaderBar* dconf_header_bar_construct (GType object_type);
VALA_EXTERN DConfView* dconf_view_new (ModificationsHandler* modifications_handler);
VALA_EXTERN DConfView* dconf_view_construct (GType object_type,
                                 ModificationsHandler* modifications_handler);
static void dconf_window_create_modifications_revealer (DConfWindow* self);
static void dconf_window_install_ui_action_entries (DConfWindow* self);
static void dconf_window_install_kbd_action_entries (DConfWindow* self);
VALA_EXTERN void browser_window_reload_view (BrowserWindow* self);
static void _browser_window_reload_view_g_settings_changed (GSettings* _sender,
                                                     const gchar* key,
                                                     gpointer self);
VALA_EXTERN void modifications_revealer_set_modifications_handler (ModificationsRevealer* self,
                                                       ModificationsHandler* value);
static void __lambda92_ (DConfWindow* self);
VALA_EXTERN guint modifications_handler_get_dconf_changes_count (ModificationsHandler* self);
VALA_EXTERN guint modifications_handler_get_gsettings_changes_count (ModificationsHandler* self);
VALA_EXTERN void dconf_header_bar_set_has_pending_changes (DConfHeaderBar* self,
                                               gboolean new_value,
                                               gboolean mode_is_temporary);
VALA_EXTERN gboolean modifications_handler_get_current_delay_mode (ModificationsHandler* self);
VALA_EXTERN GType modifications_mode_get_type (void) G_GNUC_CONST ;
VALA_EXTERN ModificationsMode modifications_handler_get_mode (ModificationsHandler* self);
static void ___lambda92__modifications_handler_delayed_changes_changed (ModificationsHandler* _sender,
                                                                 gpointer self);
static void dconf_window_invalidate_popovers_with_ui_reload (DConfWindow* self);
static void _dconf_window_invalidate_popovers_with_ui_reload_g_settings_changed (GSettings* _sender,
                                                                          const gchar* key,
                                                                          gpointer self);
static void dconf_window_show_initial_warning (DConfWindow* self);
static void _dconf_window_show_initial_warning_gtk_widget_show (GtkWidget* _sender,
                                                         gpointer self);
VALA_EXTERN gchar* settings_model_get_fallback_path (SettingsModel* self,
                                         const gchar* path);
VALA_EXTERN gboolean model_utils_is_folder_path (const gchar* path);
VALA_EXTERN void browser_header_bar_set_path (BrowserHeaderBar* self,
                                  ViewType type,
                                  const gchar* path);
VALA_EXTERN GType schemas_utility_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SchemasUtility, g_object_unref)
VALA_EXTERN SchemasUtility* schemas_utility_new (void);
VALA_EXTERN SchemasUtility* schemas_utility_construct (GType object_type);
VALA_EXTERN gboolean schemas_utility_is_relocatable_schema (SchemasUtility* self,
                                                const gchar* id);
VALA_EXTERN void settings_model_add_mapping (SettingsModel* self,
                                 const gchar* schema,
                                 const gchar* folder_path);
VALA_EXTERN gboolean schemas_utility_is_non_relocatable_schema (SchemasUtility* self,
                                                    const gchar* id);
VALA_EXTERN gchar* schemas_utility_get_schema_path (SchemasUtility* self,
                                        const gchar* id);
static void dconf_window_prepare_model (DConfWindow* self);
VALA_EXTERN gchar* settings_model_get_startup_path_fallback (SettingsModel* self,
                                                 const gchar* path);
static void __lambda94_ (DConfWindow* self);
VALA_EXTERN void settings_model_refresh_relocatable_schema_paths (SettingsModel* self,
                                                      gboolean user_schemas,
                                                      gboolean built_in_schemas,
                                                      gboolean internal_schemas,
                                                      gboolean startup_schemas,
                                                      GVariant* user_paths_variant);
static void ___lambda94__g_settings_changed (GSettings* _sender,
                                      const gchar* key,
                                      gpointer self);
static void __lambda95_ (DConfWindow* self);
static void ___lambda95__g_settings_changed (GSettings* _sender,
                                      const gchar* key,
                                      gpointer self);
VALA_EXTERN void settings_model_finalize_model (SettingsModel* self);
static void dconf_window_on_paths_changed (DConfWindow* self,
                                    SettingsModelCore* _model,
                                    GHashTable* unused,
                                    gboolean internal_changes);
static void _dconf_window_on_paths_changed_settings_model_core_paths_changed (SettingsModelCore* _sender,
                                                                       GHashTable* modified_path_specs,
                                                                       gboolean internal_changes,
                                                                       gpointer self);
static void dconf_window_propagate_gkey_value_push (DConfWindow* self,
                                             const gchar* full_name,
                                             guint16 context_id,
                                             GVariant* key_value,
                                             gboolean is_key_default);
static void _dconf_window_propagate_gkey_value_push_settings_model_core_gkey_value_push (SettingsModelCore* _sender,
                                                                                  const gchar* full_name,
                                                                                  guint16 context_id,
                                                                                  GVariant* key_value,
                                                                                  gboolean is_key_default,
                                                                                  gpointer self);
static void dconf_window_propagate_dkey_value_push (DConfWindow* self,
                                             const gchar* full_name,
                                             GVariant* key_value_or_null);
static void _dconf_window_propagate_dkey_value_push_settings_model_core_dkey_value_push (SettingsModelCore* _sender,
                                                                                  const gchar* full_name,
                                                                                  GVariant* key_value_or_null,
                                                                                  gpointer self);
VALA_EXTERN gboolean dconf_view_check_reload (DConfView* self,
                                  ViewType type,
                                  const gchar* path,
                                  gboolean show_infobar);
VALA_EXTERN void browser_header_bar_get_complete_path (BrowserHeaderBar* self,
                                           gchar** complete_path);
VALA_EXTERN void browser_header_bar_update_ghosts (BrowserHeaderBar* self,
                                       const gchar* fallback_path);
VALA_EXTERN void dconf_view_gkey_value_push (DConfView* self,
                                 const gchar* full_name,
                                 guint16 context_id,
                                 GVariant* key_value,
                                 gboolean is_key_default);
VALA_EXTERN void modifications_revealer_gkey_value_push (ModificationsRevealer* self,
                                             const gchar* full_name,
                                             guint16 context_id,
                                             GVariant* key_value,
                                             gboolean is_key_default);
VALA_EXTERN void dconf_view_dkey_value_push (DConfView* self,
                                 const gchar* full_name,
                                 GVariant* key_value_or_null);
VALA_EXTERN void modifications_revealer_dkey_value_push (ModificationsRevealer* self,
                                             const gchar* full_name,
                                             GVariant* key_value_or_null);
VALA_EXTERN ModificationsRevealer* modifications_revealer_new (void);
VALA_EXTERN ModificationsRevealer* modifications_revealer_construct (GType object_type);
VALA_EXTERN void base_window_add_to_main_grid (BaseWindow* self,
                                   GtkWidget* widget);
VALA_EXTERN void adaptative_window_add_adaptative_child (AdaptativeWindow* self,
                                             AdaptativeWidget* child);
static Block9Data* block9_data_ref (Block9Data* _data9_);
static void block9_data_unref (void * _userdata_);
static void __lambda93_ (Block9Data* _data9_);
static void ___lambda93__gtk_dialog_response (GtkDialog* _sender,
                                       gint response_id,
                                       gpointer self);
VALA_EXTERN gboolean dconf_window_quit_if_no_pending_changes (DConfWindow* self);
VALA_EXTERN gboolean modifications_handler_has_pending_changes (ModificationsHandler* self);
VALA_EXTERN void base_window_show_notification (BaseWindow* self,
                                    const gchar* notification);
VALA_EXTERN void dconf_window_apply_pending_changes_and_quit (DConfWindow* self);
VALA_EXTERN void modifications_handler_apply_delayed_settings (ModificationsHandler* self);
static void dconf_window_real_before_destroy (AdaptativeWindow* base);
VALA_EXTERN GType configuration_editor_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ConfigurationEditor, g_object_unref)
VALA_EXTERN void configuration_editor_clean_copy_notification (ConfigurationEditor* self);
static void dconf_window_reset_path (DConfWindow* self,
                              const gchar* path,
                              gboolean recursively);
VALA_EXTERN void modifications_revealer_reset_objects (ModificationsRevealer* self,
                                           const gchar* base_path,
                                           GVariant* objects,
                                           gboolean recursively);
VALA_EXTERN GVariant* settings_model_get_children (SettingsModel* self,
                                       const gchar* folder_path,
                                       gboolean watch,
                                       gboolean clean_watched);
VALA_EXTERN void modifications_handler_enter_delay_mode (ModificationsHandler* self);
VALA_EXTERN gboolean dconf_view_get_in_window_modifications (DConfView* self);
VALA_EXTERN void modifications_handler_dismiss_delayed_settings (ModificationsHandler* self);
VALA_EXTERN void modifications_handler_dismiss_change (ModificationsHandler* self,
                                           const gchar* key_path);
VALA_EXTERN void browser_view_invalidate_popovers (BrowserView* self);
VALA_EXTERN void modifications_handler_erase_dconf_key (ModificationsHandler* self,
                                            const gchar* full_name);
VALA_EXTERN void dconf_view_hide_or_show_toggles (DConfView* self,
                                      gboolean show);
VALA_EXTERN void dconf_header_bar_set_delay_mode (DConfHeaderBar* self,
                                      gboolean value);
static void dconf_window_real_show_default_view (BaseWindow* base);
VALA_EXTERN void base_header_bar_show_default_view (BaseHeaderBar* self);
VALA_EXTERN void base_view_show_default_view (BaseView* self);
VALA_EXTERN void dconf_header_bar_show_modifications_view (DConfHeaderBar* self);
VALA_EXTERN void dconf_view_show_modifications_view (DConfView* self);
static BookmarkIcon dconf_window_real_get_bookmark_icon (BookmarksWindow* base,
                                                  gchar** bookmark);
VALA_EXTERN gboolean settings_model_get_object (SettingsModel* self,
                                    const gchar* path,
                                    guint16* context_id,
                                    gchar** name,
                                    gboolean watch);
VALA_EXTERN GType registry_variant_dict_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (RegistryVariantDict, g_object_unref)
VALA_EXTERN GVariant* settings_model_get_key_properties (SettingsModel* self,
                                             const gchar* key_path,
                                             guint16 key_context_id,
                                             guint16 query);
VALA_EXTERN GType property_query_get_type (void) G_GNUC_CONST ;
VALA_EXTERN RegistryVariantDict* registry_variant_dict_new_from_aqv (GVariant* variant);
VALA_EXTERN RegistryVariantDict* registry_variant_dict_construct_from_aqv (GType object_type,
                                                               GVariant* variant);
VALA_EXTERN gboolean registry_variant_dict_lookup (RegistryVariantDict* self,
                                       guint16 key,
                                       const gchar* format_string,
                                       ...);
static void dconf_window_real_set_window_size (AdaptativeWidget* base,
                                        AdaptativeWidgetWindowSize new_size);
VALA_EXTERN gboolean adaptative_widget_window_size_is_extra_thin (AdaptativeWidgetWindowSize window_size);
VALA_EXTERN gboolean adaptative_widget_window_size_is_extra_flat (AdaptativeWidgetWindowSize window_size);
VALA_EXTERN void modifications_revealer_toggle_modifications_list (ModificationsRevealer* self);
VALA_EXTERN gboolean browser_window_row_action_blocked (BrowserWindow* self);
VALA_EXTERN void base_view_close_popovers (BaseView* self);
VALA_EXTERN void dconf_view_toggle_boolean_key (DConfView* self);
VALA_EXTERN gboolean modifications_revealer_dismiss_selected_modification (ModificationsRevealer* self);
VALA_EXTERN gchar* browser_view_get_selected_row_name (BrowserView* self);
VALA_EXTERN void dconf_view_set_selected_to_default (DConfView* self);
static void dconf_window_real_toggle_bookmark_called (BookmarksWindow* base);
static gboolean dconf_window_real_escape_pressed (BaseWindow* base);
static gboolean dconf_window_real_intercept_next_match (BrowserWindow* base,
                                                 gboolean* interception_result);
VALA_EXTERN gboolean modifications_revealer_get_modifications_list_state (ModificationsRevealer* self);
VALA_EXTERN gboolean modifications_revealer_next_match (ModificationsRevealer* self);
static gboolean dconf_window_real_intercept_previous_match (BrowserWindow* base,
                                                     gboolean* interception_result);
VALA_EXTERN gboolean modifications_revealer_previous_match (ModificationsRevealer* self);
static void dconf_window_real_reconfigure_search (BrowserWindow* base,
                                           gboolean local_search);
VALA_EXTERN void dconf_view_set_search_parameters (DConfView* self,
                                       gboolean local_search,
                                       const gchar* current_path,
                                       gchar** bookmarks,
                                       gint bookmarks_length1);
VALA_EXTERN gchar** bookmarks_header_bar_get_bookmarks (BookmarksHeaderBar* self,
                                            gint* result_length1);
static void dconf_window_real_close_in_window_panels (BaseWindow* base);
VALA_EXTERN void base_window_hide_notification (BaseWindow* self);
VALA_EXTERN void base_header_bar_close_popovers (BaseHeaderBar* self);
VALA_EXTERN void modifications_revealer_hide_modifications_list (ModificationsRevealer* self);
VALA_EXTERN gboolean bookmarks_view_get_in_window_bookmarks (BookmarksView* self);
VALA_EXTERN gboolean base_window_get_in_window_about (BaseWindow* self);
static void dconf_window_real_request_config (BrowserWindow* base,
                                       const gchar* full_name);
VALA_EXTERN void browser_view_prepare_object_view (BrowserView* self,
                                       const gchar* full_name,
                                       guint16 context_id,
                                       GVariant* properties,
                                       gboolean is_parent);
VALA_EXTERN GVariant* settings_model_get_folder_properties (SettingsModel* self,
                                                const gchar* folder_path);
VALA_EXTERN void browser_window_update_current_path (BrowserWindow* self,
                                         ViewType type,
                                         const gchar* path);
VALA_EXTERN void browser_window_stop_search (BrowserWindow* self);
static void dconf_window_real_request_folder (BrowserWindow* base,
                                       const gchar* full_name,
                                       const gchar* selected_or_empty,
                                       gboolean notify_missing);
static void dconf_window_cannot_find_folder (DConfWindow* self,
                                      const gchar* full_name);
VALA_EXTERN void browser_view_prepare_folder_view (BrowserView* self,
                                       GListStore* _key_model,
                                       gboolean is_ancestor);
static GListStore* dconf_window_create_key_model (const gchar* base_path,
                                           GVariant* children);
VALA_EXTERN void browser_view_select_row (BrowserView* self,
                              const gchar* selected_or_empty);
VALA_EXTERN gchar* browser_header_bar_get_selected_child (BrowserHeaderBar* self,
                                              const gchar* fallback_path);
VALA_EXTERN GType simple_setting_object_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SimpleSettingObject, g_object_unref)
VALA_EXTERN gchar* model_utils_get_name (const gchar* path);
VALA_EXTERN SimpleSettingObject* simple_setting_object_new_from_full_name (guint16 _context_id,
                                                               const gchar* _name,
                                                               const gchar* _full_name,
                                                               gboolean _is_search,
                                                               gboolean _is_pinned);
VALA_EXTERN SimpleSettingObject* simple_setting_object_construct_from_full_name (GType object_type,
                                                                     guint16 _context_id,
                                                                     const gchar* _name,
                                                                     const gchar* _full_name,
                                                                     gboolean _is_search,
                                                                     gboolean _is_pinned);
VALA_EXTERN gboolean model_utils_is_undefined_context_id (guint16 context_id);
VALA_EXTERN SimpleSettingObject* simple_setting_object_new_from_base_path (guint16 _context_id,
                                                               const gchar* _name,
                                                               const gchar* _base_path,
                                                               gboolean _is_search,
                                                               gboolean _is_pinned);
VALA_EXTERN SimpleSettingObject* simple_setting_object_construct_from_base_path (GType object_type,
                                                                     guint16 _context_id,
                                                                     const gchar* _name,
                                                                     const gchar* _base_path,
                                                                     gboolean _is_search,
                                                                     gboolean _is_pinned);
static void dconf_window_real_request_object (BrowserWindow* base,
                                       const gchar* full_name,
                                       guint16 context_id,
                                       gboolean notify_missing,
                                       const gchar* schema_id);
VALA_EXTERN guint16 settings_model_get_fallback_context (SettingsModel* self,
                                             const gchar* key_path,
                                             guint16 context_id,
                                             const gchar* schema_id);
VALA_EXTERN gboolean model_utils_is_key_path (const gchar* path);
static void dconf_window_cannot_find_key (DConfWindow* self,
                                   const gchar* full_name);
VALA_EXTERN gchar* model_utils_get_parent_path (const gchar* path);
static gboolean dconf_window_real_handle_copy_text (BaseWindow* base,
                                             gchar** copy_text);
VALA_EXTERN void settings_model_copy_action_called (SettingsModel* self);
VALA_EXTERN gboolean bookmarks_header_bar_handle_copy_text (BookmarksHeaderBar* self,
                                                gchar** copy_text);
VALA_EXTERN gboolean modifications_revealer_handle_copy_text (ModificationsRevealer* self,
                                                  gchar** copy_text);
VALA_EXTERN gboolean base_view_handle_copy_text (BaseView* self,
                                     gchar** copy_text);
VALA_EXTERN gchar* settings_model_get_suggested_key_copy_text (SettingsModel* self,
                                                   const gchar* key_path,
                                                   guint16 key_context_id);
VALA_EXTERN guint16 browser_view_get_last_context_id (BrowserView* self);
VALA_EXTERN gboolean base_window_is_empty_text (const gchar* text);
static gboolean dconf_window_real_get_alt_copy_text (BaseWindow* base,
                                              gchar** copy_text);
VALA_EXTERN gboolean browser_header_bar_get_search_mode_enabled (BrowserHeaderBar* self);
VALA_EXTERN gboolean browser_view_handle_alt_copy_text (BrowserView* self,
                                            gchar** copy_text);
VALA_EXTERN void adaptative_widget_set_window_size (AdaptativeWidget* self,
                                        AdaptativeWidgetWindowSize new_size);
static void dconf_window_finalize (GObject * obj);
static GType dconf_window_get_type_once (void);
static void _vala_array_destroy (gpointer array,
                          gssize array_length,
                          GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array,
                       gssize array_length,
                       GDestroyNotify destroy_func);
static inline gpointer _vala_memdup2 (gconstpointer mem,
                        gsize byte_size);

static const GActionEntry DCONF_WINDOW_ui_action_entries[11] = {{"reset-recursive", _dconf_window_reset_recursively_gsimple_action_activate_callback, "s"}, {"reset-current-recursively", _dconf_window_reset_current_recursively_gsimple_action_activate_callback}, {"reset-current-non-recursively", _dconf_window_reset_current_non_recursively_gsimple_action_activate_callback}, {"enter-delay-mode", _dconf_window_enter_delay_mode_gsimple_action_activate_callback}, {"apply-delayed-settings", _dconf_window_apply_delayed_settings_gsimple_action_activate_callback}, {"dismiss-delayed-settings", _dconf_window_dismiss_delayed_settings_gsimple_action_activate_callback}, {"dismiss-change", _dconf_window_dismiss_change_gsimple_action_activate_callback, "s"}, {"erase", _dconf_window_erase_dconf_key_gsimple_action_activate_callback, "s"}, {"show-in-window-modifications", _dconf_window_show_modifications_view_gsimple_action_activate_callback}, {"notify-folder-emptied", _dconf_window_notify_folder_emptied_gsimple_action_activate_callback, "s"}, {"notify-object-deleted", _dconf_window_notify_object_deleted_gsimple_action_activate_callback, "(sq)"}};
static const GActionEntry DCONF_WINDOW_kbd_action_entries[3] = {{"modifications", _dconf_window_modifications_list_gsimple_action_activate_callback}, {"toggle-boolean", _dconf_window_toggle_boolean_gsimple_action_activate_callback}, {"set-to-default", _dconf_window_set_to_default_gsimple_action_activate_callback}};

static GType
relocatable_schemas_enabled_mappings_get_type_once (void)
{
	static const GFlagsValue values[] = {{RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_USER, "RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_USER", "user"}, {RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_BUILT_IN, "RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_BUILT_IN", "built-in"}, {RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_INTERNAL, "RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_INTERNAL", "internal"}, {RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_STARTUP, "RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_STARTUP", "startup"}, {0, NULL, NULL}};
	GType relocatable_schemas_enabled_mappings_type_id;
	relocatable_schemas_enabled_mappings_type_id = g_flags_register_static ("RelocatableSchemasEnabledMappings", values);
	return relocatable_schemas_enabled_mappings_type_id;
}

GType
relocatable_schemas_enabled_mappings_get_type (void)
{
	static volatile gsize relocatable_schemas_enabled_mappings_type_id__once = 0;
	if (g_once_init_enter (&relocatable_schemas_enabled_mappings_type_id__once)) {
		GType relocatable_schemas_enabled_mappings_type_id;
		relocatable_schemas_enabled_mappings_type_id = relocatable_schemas_enabled_mappings_get_type_once ();
		g_once_init_leave (&relocatable_schemas_enabled_mappings_type_id__once, relocatable_schemas_enabled_mappings_type_id);
	}
	return relocatable_schemas_enabled_mappings_type_id__once;
}

static inline gpointer
dconf_window_get_instance_private (DConfWindow* self)
{
	return G_STRUCT_MEMBER_P (self, DConfWindow_private_offset);
}

static void
_dconf_window_reset_recursively_gsimple_action_activate_callback (GSimpleAction* action,
                                                                  GVariant* parameter,
                                                                  gpointer self)
{
	dconf_window_reset_recursively ((DConfWindow*) self, action, parameter);
}

static void
_dconf_window_reset_current_recursively_gsimple_action_activate_callback (GSimpleAction* action,
                                                                          GVariant* parameter,
                                                                          gpointer self)
{
	dconf_window_reset_current_recursively ((DConfWindow*) self);
}

static void
_dconf_window_reset_current_non_recursively_gsimple_action_activate_callback (GSimpleAction* action,
                                                                              GVariant* parameter,
                                                                              gpointer self)
{
	dconf_window_reset_current_non_recursively ((DConfWindow*) self);
}

static void
_dconf_window_enter_delay_mode_gsimple_action_activate_callback (GSimpleAction* action,
                                                                 GVariant* parameter,
                                                                 gpointer self)
{
	dconf_window_enter_delay_mode ((DConfWindow*) self);
}

static void
_dconf_window_apply_delayed_settings_gsimple_action_activate_callback (GSimpleAction* action,
                                                                       GVariant* parameter,
                                                                       gpointer self)
{
	dconf_window_apply_delayed_settings ((DConfWindow*) self);
}

static void
_dconf_window_dismiss_delayed_settings_gsimple_action_activate_callback (GSimpleAction* action,
                                                                         GVariant* parameter,
                                                                         gpointer self)
{
	dconf_window_dismiss_delayed_settings ((DConfWindow*) self);
}

static void
_dconf_window_dismiss_change_gsimple_action_activate_callback (GSimpleAction* action,
                                                               GVariant* parameter,
                                                               gpointer self)
{
	dconf_window_dismiss_change ((DConfWindow*) self, action, parameter);
}

static void
_dconf_window_erase_dconf_key_gsimple_action_activate_callback (GSimpleAction* action,
                                                                GVariant* parameter,
                                                                gpointer self)
{
	dconf_window_erase_dconf_key ((DConfWindow*) self, action, parameter);
}

static void
_dconf_window_show_modifications_view_gsimple_action_activate_callback (GSimpleAction* action,
                                                                        GVariant* parameter,
                                                                        gpointer self)
{
	dconf_window_show_modifications_view ((DConfWindow*) self);
}

static void
_dconf_window_notify_folder_emptied_gsimple_action_activate_callback (GSimpleAction* action,
                                                                      GVariant* parameter,
                                                                      gpointer self)
{
	dconf_window_notify_folder_emptied ((DConfWindow*) self, action, parameter);
}

static void
_dconf_window_notify_object_deleted_gsimple_action_activate_callback (GSimpleAction* action,
                                                                      GVariant* parameter,
                                                                      gpointer self)
{
	dconf_window_notify_object_deleted ((DConfWindow*) self, action, parameter);
}

static void
_dconf_window_modifications_list_gsimple_action_activate_callback (GSimpleAction* action,
                                                                   GVariant* parameter,
                                                                   gpointer self)
{
	dconf_window_modifications_list ((DConfWindow*) self);
}

static void
_dconf_window_toggle_boolean_gsimple_action_activate_callback (GSimpleAction* action,
                                                               GVariant* parameter,
                                                               gpointer self)
{
	dconf_window_toggle_boolean ((DConfWindow*) self);
}

static void
_dconf_window_set_to_default_gsimple_action_activate_callback (GSimpleAction* action,
                                                               GVariant* parameter,
                                                               gpointer self)
{
	dconf_window_set_to_default ((DConfWindow*) self);
}

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

static void
_browser_window_reload_view_g_settings_changed (GSettings* _sender,
                                                const gchar* key,
                                                gpointer self)
{
	browser_window_reload_view ((BrowserWindow*) self);
}

static void
__lambda92_ (DConfWindow* self)
{
	guint total_changes_count = 0U;
	ModificationsHandler* _tmp0_;
	guint _tmp1_;
	guint _tmp2_;
	ModificationsHandler* _tmp3_;
	guint _tmp4_;
	guint _tmp5_;
	_tmp0_ = self->priv->modifications_handler;
	_tmp1_ = modifications_handler_get_dconf_changes_count (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = self->priv->modifications_handler;
	_tmp4_ = modifications_handler_get_gsettings_changes_count (_tmp3_);
	_tmp5_ = _tmp4_;
	total_changes_count = _tmp2_ + _tmp5_;
	if (total_changes_count == ((guint) 0)) {
		DConfHeaderBar* _tmp6_;
		ModificationsHandler* _tmp7_;
		_tmp6_ = self->priv->headerbar;
		_tmp7_ = self->priv->modifications_handler;
		dconf_header_bar_set_has_pending_changes (_tmp6_, FALSE, !modifications_handler_get_current_delay_mode (_tmp7_));
	} else {
		gboolean _tmp8_ = FALSE;
		ModificationsHandler* _tmp9_;
		ModificationsMode _tmp10_;
		ModificationsMode _tmp11_;
		DConfHeaderBar* _tmp12_;
		ModificationsHandler* _tmp13_;
		_tmp9_ = self->priv->modifications_handler;
		_tmp10_ = modifications_handler_get_mode (_tmp9_);
		_tmp11_ = _tmp10_;
		if (_tmp11_ == MODIFICATIONS_MODE_TEMPORARY) {
			_tmp8_ = total_changes_count != ((guint) 1);
		} else {
			_tmp8_ = FALSE;
		}
		if (_tmp8_) {
			g_assert_not_reached ();
		}
		_tmp12_ = self->priv->headerbar;
		_tmp13_ = self->priv->modifications_handler;
		dconf_header_bar_set_has_pending_changes (_tmp12_, TRUE, !modifications_handler_get_current_delay_mode (_tmp13_));
	}
}

static void
___lambda92__modifications_handler_delayed_changes_changed (ModificationsHandler* _sender,
                                                            gpointer self)
{
	__lambda92_ ((DConfWindow*) self);
}

static void
_dconf_window_invalidate_popovers_with_ui_reload_g_settings_changed (GSettings* _sender,
                                                                     const gchar* key,
                                                                     gpointer self)
{
	dconf_window_invalidate_popovers_with_ui_reload ((DConfWindow*) self);
}

static void
_dconf_window_show_initial_warning_gtk_widget_show (GtkWidget* _sender,
                                                    gpointer self)
{
	dconf_window_show_initial_warning ((DConfWindow*) self);
}

static gboolean
string_contains (const gchar* self,
                 const gchar* needle)
{
	gchar* _tmp0_;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (needle != NULL, FALSE);
	_tmp0_ = strstr ((gchar*) self, (gchar*) needle);
	result = _tmp0_ != NULL;
	return result;
}

DConfWindow*
dconf_window_construct (GType object_type,
                        gboolean disable_warning,
                        const gchar* schema,
                        const gchar* path,
                        const gchar* key_name)
{
	DConfWindow * self = NULL;
	SettingsModel* _model = NULL;
	SettingsModel* _tmp0_;
	ModificationsHandler* _modifications_handler = NULL;
	SettingsModel* _tmp1_;
	ModificationsHandler* _tmp2_;
	DConfHeaderBar* _headerbar = NULL;
	DConfHeaderBar* _tmp3_;
	DConfView* _main_view = NULL;
	ModificationsHandler* _tmp4_;
	DConfView* _tmp5_;
	DConfHeaderBar* _tmp6_;
	DConfView* _tmp7_;
	SettingsModel* _tmp8_;
	SettingsModel* _tmp9_;
	ModificationsHandler* _tmp10_;
	ModificationsHandler* _tmp11_;
	DConfHeaderBar* _tmp12_;
	DConfHeaderBar* _tmp13_;
	DConfView* _tmp14_;
	DConfView* _tmp15_;
	GSettings* _tmp16_;
	gulong _tmp17_;
	GSettings* _tmp18_;
	SettingsModel* _tmp19_;
	ModificationsRevealer* _tmp20_;
	ModificationsHandler* _tmp21_;
	ModificationsHandler* _tmp22_;
	gulong _tmp23_;
	GSettings* _tmp24_;
	gulong _tmp25_;
	GSettings* _tmp26_;
	ModificationsHandler* _tmp27_;
	gboolean _tmp28_ = FALSE;
	gboolean restore_view = FALSE;
	GSettings* _tmp30_;
	gchar* settings_saved_view = NULL;
	SchemasUtility* schemas_utility = NULL;
	SchemasUtility* _tmp45_;
	gboolean strict = FALSE;
	gchar* first_path = NULL;
	gchar* _tmp46_;
	const gchar* _tmp79_;
	gchar* startup_path = NULL;
	SettingsModel* _tmp81_;
	const gchar* _tmp82_;
	gchar* _tmp83_;
	const gchar* _tmp84_;
	_tmp0_ = settings_model_new ();
	_model = _tmp0_;
	_tmp1_ = _model;
	_tmp2_ = modifications_handler_new (_tmp1_);
	_modifications_handler = _tmp2_;
	_tmp3_ = dconf_header_bar_new ();
	g_object_ref_sink (_tmp3_);
	_headerbar = _tmp3_;
	_tmp4_ = _modifications_handler;
	_tmp5_ = dconf_view_new (_tmp4_);
	g_object_ref_sink (_tmp5_);
	_main_view = _tmp5_;
	_tmp6_ = _headerbar;
	_tmp7_ = _main_view;
	self = (DConfWindow*) g_object_new (object_type, "nta-headerbar", G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, TYPE_BASE_HEADER_BAR, BaseHeaderBar), "base-view", G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, TYPE_BASE_VIEW, BaseView), "window-title", CONFIGURATION_EDITOR_PROGRAM_NAME, "specific-css-class-or-empty", "dconf-editor", "help-string-or-empty", "", "schema-path", "/ca/desrt/dconf-editor/", NULL);
	_tmp8_ = _model;
	_tmp9_ = _g_object_ref0 (_tmp8_);
	_g_object_unref0 (self->priv->model);
	self->priv->model = _tmp9_;
	_tmp10_ = _modifications_handler;
	_tmp11_ = _g_object_ref0 (_tmp10_);
	_g_object_unref0 (self->priv->modifications_handler);
	self->priv->modifications_handler = _tmp11_;
	_tmp12_ = _headerbar;
	_tmp13_ = _g_object_ref0 (_tmp12_);
	_g_object_unref0 (self->priv->headerbar);
	self->priv->headerbar = _tmp13_;
	_tmp14_ = _main_view;
	_tmp15_ = _g_object_ref0 (_tmp14_);
	_g_object_unref0 (self->priv->main_view);
	self->priv->main_view = _tmp15_;
	dconf_window_create_modifications_revealer (self);
	dconf_window_install_ui_action_entries (self);
	dconf_window_install_kbd_action_entries (self);
	_tmp16_ = self->priv->settings;
	_tmp17_ = g_signal_connect_object (_tmp16_, "changed::use-shortpaths", (GCallback) _browser_window_reload_view_g_settings_changed, (BrowserWindow*) self, G_CONNECT_AFTER);
	self->priv->use_shortpaths_changed_handler = _tmp17_;
	_tmp18_ = self->priv->settings;
	_tmp19_ = self->priv->model;
	g_settings_bind (_tmp18_, "use-shortpaths", (GObject*) _tmp19_, "use-shortpaths", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_NO_SENSITIVITY);
	_tmp20_ = self->priv->revealer;
	_tmp21_ = self->priv->modifications_handler;
	modifications_revealer_set_modifications_handler (_tmp20_, _tmp21_);
	_tmp22_ = self->priv->modifications_handler;
	_tmp23_ = g_signal_connect_object (_tmp22_, "delayed-changes-changed", (GCallback) ___lambda92__modifications_handler_delayed_changes_changed, self, 0);
	self->priv->delayed_changes_changed_handler = _tmp23_;
	_tmp24_ = self->priv->settings;
	_tmp25_ = g_signal_connect_object (_tmp24_, "changed::behaviour", (GCallback) _dconf_window_invalidate_popovers_with_ui_reload_g_settings_changed, self, G_CONNECT_AFTER);
	self->priv->behaviour_changed_handler = _tmp25_;
	_tmp26_ = self->priv->settings;
	_tmp27_ = self->priv->modifications_handler;
	g_settings_bind (_tmp26_, "behaviour", (GObject*) _tmp27_, "behaviour", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_NO_SENSITIVITY);
	if (!disable_warning) {
		GSettings* _tmp29_;
		_tmp29_ = self->priv->settings;
		_tmp28_ = g_settings_get_boolean (_tmp29_, "show-warning");
	} else {
		_tmp28_ = FALSE;
	}
	if (_tmp28_) {
		g_signal_connect_object ((GtkWidget*) self, "show", (GCallback) _dconf_window_show_initial_warning_gtk_widget_show, self, 0);
	}
	_tmp30_ = self->priv->settings;
	restore_view = g_settings_get_boolean (_tmp30_, "restore-view");
	settings_saved_view = NULL;
	if (restore_view) {
		GSettings* _tmp31_;
		gchar* _tmp32_;
		const gchar* _tmp33_;
		gchar* fallback_path = NULL;
		SettingsModel* _tmp35_;
		GSettings* _tmp36_;
		gchar* _tmp37_;
		gchar* _tmp38_;
		gchar* _tmp39_;
		gchar* _tmp40_;
		ViewType _tmp41_ = 0;
		const gchar* _tmp42_;
		DConfHeaderBar* _tmp43_;
		const gchar* _tmp44_;
		_tmp31_ = self->priv->settings;
		_tmp32_ = g_settings_get_string (_tmp31_, "saved-view");
		_g_free0 (settings_saved_view);
		settings_saved_view = _tmp32_;
		_tmp33_ = settings_saved_view;
		if (string_contains ((const gchar*) _tmp33_, "//")) {
			gchar* _tmp34_;
			_tmp34_ = g_strdup ("/");
			_g_free0 (settings_saved_view);
			settings_saved_view = _tmp34_;
		}
		_tmp35_ = self->priv->model;
		_tmp36_ = self->priv->settings;
		_tmp37_ = g_settings_get_string (_tmp36_, "saved-pathbar-path");
		_tmp38_ = _tmp37_;
		_tmp39_ = settings_model_get_fallback_path (_tmp35_, _tmp38_);
		_tmp40_ = _tmp39_;
		_g_free0 (_tmp38_);
		fallback_path = _tmp40_;
		_tmp42_ = fallback_path;
		if (model_utils_is_folder_path (_tmp42_)) {
			_tmp41_ = VIEW_TYPE_FOLDER;
		} else {
			_tmp41_ = VIEW_TYPE_OBJECT;
		}
		_tmp43_ = self->priv->headerbar;
		_tmp44_ = fallback_path;
		browser_header_bar_set_path ((BrowserHeaderBar*) _tmp43_, _tmp41_, _tmp44_);
		_g_free0 (fallback_path);
	}
	_tmp45_ = schemas_utility_new ();
	schemas_utility = _tmp45_;
	strict = FALSE;
	_tmp46_ = g_strdup (path);
	first_path = _tmp46_;
	if (schema == NULL) {
		gboolean _tmp47_ = FALSE;
		const gchar* _tmp48_;
		if (key_name != NULL) {
			g_assert_not_reached ();
		}
		_tmp48_ = first_path;
		if (_tmp48_ == NULL) {
			_tmp47_ = restore_view;
		} else {
			_tmp47_ = FALSE;
		}
		if (_tmp47_) {
			const gchar* _tmp49_;
			gchar* _tmp50_;
			_tmp49_ = settings_saved_view;
			_tmp50_ = g_strdup (_tmp49_);
			_g_free0 (first_path);
			first_path = _tmp50_;
		}
	} else {
		SchemasUtility* _tmp51_;
		_tmp51_ = schemas_utility;
		if (schemas_utility_is_relocatable_schema (_tmp51_, (const gchar*) schema)) {
			const gchar* _tmp52_;
			_tmp52_ = first_path;
			if (_tmp52_ == NULL) {
				g_warning ("dconf-window.vala:124: %s", _ ("Schema is relocatable, a path is needed."));
				if (restore_view) {
					const gchar* _tmp53_;
					gchar* _tmp54_;
					_tmp53_ = settings_saved_view;
					_tmp54_ = g_strdup (_tmp53_);
					_g_free0 (first_path);
					first_path = _tmp54_;
				}
			} else {
				SettingsModel* _tmp55_;
				const gchar* _tmp56_;
				RelocatableSchemasEnabledMappings enabled_mappings_flags = 0U;
				GSettings* _tmp57_;
				strict = TRUE;
				_tmp55_ = self->priv->model;
				_tmp56_ = first_path;
				settings_model_add_mapping (_tmp55_, (const gchar*) schema, (const gchar*) _tmp56_);
				_tmp57_ = self->priv->settings;
				enabled_mappings_flags = (RelocatableSchemasEnabledMappings) g_settings_get_flags (_tmp57_, "relocatable-schemas-enabled-mappings");
				if (!((enabled_mappings_flags & RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_STARTUP) == RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_STARTUP)) {
					gchar* _tmp58_;
					g_warning ("dconf-window.vala:137: %s", _ ("Startup mappings are disabled."));
					_tmp58_ = g_strdup ("/");
					_g_free0 (first_path);
					first_path = _tmp58_;
				} else {
					if (key_name != NULL) {
						const gchar* _tmp59_;
						gchar* _tmp60_;
						_tmp59_ = first_path;
						_tmp60_ = g_strconcat ((const gchar*) _tmp59_, (const gchar*) key_name, NULL);
						_g_free0 (first_path);
						first_path = _tmp60_;
					}
				}
			}
		} else {
			SchemasUtility* _tmp61_;
			_tmp61_ = schemas_utility;
			if (schemas_utility_is_non_relocatable_schema (_tmp61_, (const gchar*) schema)) {
				gchar* schema_path = NULL;
				SchemasUtility* _tmp62_;
				gchar* _tmp63_;
				const gchar* _tmp64_;
				_tmp62_ = schemas_utility;
				_tmp63_ = schemas_utility_get_schema_path (_tmp62_, (const gchar*) schema);
				schema_path = _tmp63_;
				_tmp64_ = schema_path;
				if (_tmp64_ == NULL) {
					g_assert_not_reached ();
				} else {
					gboolean _tmp65_ = FALSE;
					const gchar* _tmp66_;
					_tmp66_ = first_path;
					if (_tmp66_ != NULL) {
						const gchar* _tmp67_;
						const gchar* _tmp68_;
						_tmp67_ = first_path;
						_tmp68_ = schema_path;
						_tmp65_ = _tmp67_ != _tmp68_;
					} else {
						_tmp65_ = FALSE;
					}
					if (_tmp65_) {
						g_warning ("dconf-window.vala:152: %s", _ ("Schema is not installed on given path."));
						if (restore_view) {
							const gchar* _tmp69_;
							gchar* _tmp70_;
							_tmp69_ = settings_saved_view;
							_tmp70_ = g_strdup (_tmp69_);
							_g_free0 (first_path);
							first_path = _tmp70_;
						}
					} else {
						if (key_name == NULL) {
							const gchar* _tmp71_;
							gchar* _tmp72_;
							_tmp71_ = schema_path;
							_tmp72_ = g_strdup (_tmp71_);
							_g_free0 (first_path);
							first_path = _tmp72_;
						} else {
							const gchar* _tmp73_;
							gchar* _tmp74_;
							strict = TRUE;
							_tmp73_ = schema_path;
							_tmp74_ = g_strconcat ((const gchar*) _tmp73_, (const gchar*) key_name, NULL);
							_g_free0 (first_path);
							first_path = _tmp74_;
						}
					}
				}
				_g_free0 (schema_path);
			} else {
				if (g_strcmp0 ((const gchar*) schema, "") != 0) {
					gchar* _tmp75_;
					gchar* _tmp76_;
					_tmp75_ = g_strdup_printf (_ ("Unknown schema “%s”."), (const gchar*) schema);
					_tmp76_ = _tmp75_;
					g_warning ("dconf-window.vala:168: %s", _tmp76_);
					_g_free0 (_tmp76_);
				}
				if (restore_view) {
					const gchar* _tmp77_;
					gchar* _tmp78_;
					_tmp77_ = settings_saved_view;
					_tmp78_ = g_strdup (_tmp77_);
					_g_free0 (first_path);
					first_path = _tmp78_;
				}
			}
		}
	}
	dconf_window_prepare_model (self);
	_tmp79_ = first_path;
	if (_tmp79_ == NULL) {
		gchar* _tmp80_;
		_tmp80_ = g_strdup ("/");
		_g_free0 (first_path);
		first_path = _tmp80_;
	}
	_tmp81_ = self->priv->model;
	_tmp82_ = first_path;
	_tmp83_ = settings_model_get_startup_path_fallback (_tmp81_, (const gchar*) _tmp82_);
	startup_path = _tmp83_;
	_tmp84_ = startup_path;
	if (model_utils_is_folder_path (_tmp84_)) {
		const gchar* _tmp85_;
		_tmp85_ = startup_path;
		browser_window_request_folder ((BrowserWindow*) self, _tmp85_, "", TRUE);
	} else {
		if (schema != NULL) {
			const gchar* _tmp86_;
			_tmp86_ = startup_path;
			browser_window_request_object ((BrowserWindow*) self, _tmp86_, MODEL_UTILS_undefined_context_id, TRUE, (const gchar*) schema);
		} else {
			const gchar* _tmp87_;
			_tmp87_ = startup_path;
			browser_window_request_object ((BrowserWindow*) self, _tmp87_, MODEL_UTILS_undefined_context_id, TRUE, "");
		}
	}
	_g_free0 (startup_path);
	_g_free0 (first_path);
	_g_object_unref0 (schemas_utility);
	_g_free0 (settings_saved_view);
	_g_object_unref0 (_main_view);
	_g_object_unref0 (_headerbar);
	_g_object_unref0 (_modifications_handler);
	_g_object_unref0 (_model);
	return self;
}

DConfWindow*
dconf_window_new (gboolean disable_warning,
                  const gchar* schema,
                  const gchar* path,
                  const gchar* key_name)
{
	return dconf_window_construct (TYPE_DCONF_WINDOW, disable_warning, schema, path, key_name);
}

static void
__lambda94_ (DConfWindow* self)
{
	RelocatableSchemasEnabledMappings enabled_mappings_flags = 0U;
	GSettings* _tmp0_;
	SettingsModel* _tmp1_;
	GSettings* _tmp2_;
	GVariant* _tmp3_;
	GVariant* _tmp4_;
	_tmp0_ = self->priv->settings;
	enabled_mappings_flags = (RelocatableSchemasEnabledMappings) g_settings_get_flags (_tmp0_, "relocatable-schemas-enabled-mappings");
	if (!((enabled_mappings_flags & RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_USER) == RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_USER)) {
		return;
	}
	_tmp1_ = self->priv->model;
	_tmp2_ = self->priv->settings;
	_tmp3_ = g_settings_get_value (_tmp2_, "relocatable-schemas-user-paths");
	_tmp4_ = _tmp3_;
	settings_model_refresh_relocatable_schema_paths (_tmp1_, TRUE, (enabled_mappings_flags & RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_BUILT_IN) == RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_BUILT_IN, (enabled_mappings_flags & RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_INTERNAL) == RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_INTERNAL, (enabled_mappings_flags & RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_STARTUP) == RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_STARTUP, _tmp4_);
	_g_variant_unref0 (_tmp4_);
}

static void
___lambda94__g_settings_changed (GSettings* _sender,
                                 const gchar* key,
                                 gpointer self)
{
	__lambda94_ ((DConfWindow*) self);
}

static void
__lambda95_ (DConfWindow* self)
{
	RelocatableSchemasEnabledMappings enabled_mappings_flags = 0U;
	GSettings* _tmp0_;
	SettingsModel* _tmp1_;
	GSettings* _tmp2_;
	GVariant* _tmp3_;
	GVariant* _tmp4_;
	_tmp0_ = self->priv->settings;
	enabled_mappings_flags = (RelocatableSchemasEnabledMappings) g_settings_get_flags (_tmp0_, "relocatable-schemas-enabled-mappings");
	_tmp1_ = self->priv->model;
	_tmp2_ = self->priv->settings;
	_tmp3_ = g_settings_get_value (_tmp2_, "relocatable-schemas-user-paths");
	_tmp4_ = _tmp3_;
	settings_model_refresh_relocatable_schema_paths (_tmp1_, (enabled_mappings_flags & RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_USER) == RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_USER, (enabled_mappings_flags & RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_BUILT_IN) == RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_BUILT_IN, (enabled_mappings_flags & RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_INTERNAL) == RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_INTERNAL, (enabled_mappings_flags & RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_STARTUP) == RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_STARTUP, _tmp4_);
	_g_variant_unref0 (_tmp4_);
}

static void
___lambda95__g_settings_changed (GSettings* _sender,
                                 const gchar* key,
                                 gpointer self)
{
	__lambda95_ ((DConfWindow*) self);
}

static void
_dconf_window_on_paths_changed_settings_model_core_paths_changed (SettingsModelCore* _sender,
                                                                  GHashTable* modified_path_specs,
                                                                  gboolean internal_changes,
                                                                  gpointer self)
{
	dconf_window_on_paths_changed ((DConfWindow*) self, _sender, modified_path_specs, internal_changes);
}

static void
_dconf_window_propagate_gkey_value_push_settings_model_core_gkey_value_push (SettingsModelCore* _sender,
                                                                             const gchar* full_name,
                                                                             guint16 context_id,
                                                                             GVariant* key_value,
                                                                             gboolean is_key_default,
                                                                             gpointer self)
{
	dconf_window_propagate_gkey_value_push ((DConfWindow*) self, full_name, context_id, key_value, is_key_default);
}

static void
_dconf_window_propagate_dkey_value_push_settings_model_core_dkey_value_push (SettingsModelCore* _sender,
                                                                             const gchar* full_name,
                                                                             GVariant* key_value_or_null,
                                                                             gpointer self)
{
	dconf_window_propagate_dkey_value_push ((DConfWindow*) self, full_name, key_value_or_null);
}

static void
dconf_window_prepare_model (DConfWindow* self)
{
	GSettings* _tmp0_;
	gulong _tmp1_;
	GSettings* _tmp2_;
	gulong _tmp3_;
	RelocatableSchemasEnabledMappings enabled_mappings_flags = 0U;
	GSettings* _tmp4_;
	SettingsModel* _tmp5_;
	GSettings* _tmp6_;
	GVariant* _tmp7_;
	GVariant* _tmp8_;
	GSettings* _tmp9_;
	SettingsModel* _tmp10_;
	SettingsModel* _tmp11_;
	SettingsModel* _tmp12_;
	gulong _tmp13_;
	SettingsModel* _tmp14_;
	gulong _tmp15_;
	SettingsModel* _tmp16_;
	gulong _tmp17_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->settings;
	_tmp1_ = g_signal_connect_object (_tmp0_, "changed::relocatable-schemas-user-paths", (GCallback) ___lambda94__g_settings_changed, self, 0);
	self->priv->settings_user_paths_changed_handler = _tmp1_;
	_tmp2_ = self->priv->settings;
	_tmp3_ = g_signal_connect_object (_tmp2_, "changed::relocatable-schemas-enabled-mappings", (GCallback) ___lambda95__g_settings_changed, self, 0);
	self->priv->settings_enabled_mappings_changed_handler = _tmp3_;
	_tmp4_ = self->priv->settings;
	enabled_mappings_flags = (RelocatableSchemasEnabledMappings) g_settings_get_flags (_tmp4_, "relocatable-schemas-enabled-mappings");
	_tmp5_ = self->priv->model;
	_tmp6_ = self->priv->settings;
	_tmp7_ = g_settings_get_value (_tmp6_, "relocatable-schemas-user-paths");
	_tmp8_ = _tmp7_;
	settings_model_refresh_relocatable_schema_paths (_tmp5_, (enabled_mappings_flags & RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_USER) == RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_USER, (enabled_mappings_flags & RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_BUILT_IN) == RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_BUILT_IN, (enabled_mappings_flags & RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_INTERNAL) == RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_INTERNAL, (enabled_mappings_flags & RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_STARTUP) == RELOCATABLE_SCHEMAS_ENABLED_MAPPINGS_STARTUP, _tmp8_);
	_g_variant_unref0 (_tmp8_);
	_tmp9_ = self->priv->settings;
	_tmp10_ = self->priv->model;
	g_settings_bind (_tmp9_, "refresh-settings-schema-source", (GObject*) _tmp10_, "refresh-source", G_SETTINGS_BIND_GET | G_SETTINGS_BIND_NO_SENSITIVITY);
	_tmp11_ = self->priv->model;
	settings_model_finalize_model (_tmp11_);
	_tmp12_ = self->priv->model;
	_tmp13_ = g_signal_connect_object ((SettingsModelCore*) _tmp12_, "paths-changed", (GCallback) _dconf_window_on_paths_changed_settings_model_core_paths_changed, self, 0);
	self->priv->paths_changed_handler = _tmp13_;
	_tmp14_ = self->priv->model;
	_tmp15_ = g_signal_connect_object ((SettingsModelCore*) _tmp14_, "gkey-value-push", (GCallback) _dconf_window_propagate_gkey_value_push_settings_model_core_gkey_value_push, self, 0);
	self->priv->gkey_value_push_handler = _tmp15_;
	_tmp16_ = self->priv->model;
	_tmp17_ = g_signal_connect_object ((SettingsModelCore*) _tmp16_, "dkey-value-push", (GCallback) _dconf_window_propagate_dkey_value_push_settings_model_core_dkey_value_push, self, 0);
	self->priv->dkey_value_push_handler = _tmp17_;
}

static void
dconf_window_on_paths_changed (DConfWindow* self,
                               SettingsModelCore* _model,
                               GHashTable* unused,
                               gboolean internal_changes)
{
	gchar* complete_path = NULL;
	DConfHeaderBar* _tmp3_;
	gchar* _tmp4_ = NULL;
	DConfHeaderBar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (_model != NULL);
	g_return_if_fail (unused != NULL);
	if (((BrowserWindow*) self)->current_type == VIEW_TYPE_SEARCH) {
		if (!internal_changes) {
			GSimpleAction* _tmp0_;
			_tmp0_ = ((BrowserWindow*) self)->reload_search_action;
			g_simple_action_set_enabled (_tmp0_, TRUE);
		}
	} else {
		DConfView* _tmp1_;
		const gchar* _tmp2_;
		_tmp1_ = self->priv->main_view;
		_tmp2_ = ((BrowserWindow*) self)->current_path;
		if (dconf_view_check_reload (_tmp1_, ((BrowserWindow*) self)->current_type, _tmp2_, !internal_changes)) {
			browser_window_reload_view ((BrowserWindow*) self);
		}
	}
	_tmp3_ = self->priv->headerbar;
	browser_header_bar_get_complete_path ((BrowserHeaderBar*) _tmp3_, &_tmp4_);
	_g_free0 (complete_path);
	complete_path = _tmp4_;
	_tmp5_ = self->priv->headerbar;
	_tmp6_ = settings_model_get_fallback_path (G_TYPE_CHECK_INSTANCE_CAST (_model, TYPE_SETTINGS_MODEL, SettingsModel), complete_path);
	_tmp7_ = _tmp6_;
	browser_header_bar_update_ghosts ((BrowserHeaderBar*) _tmp5_, _tmp7_);
	_g_free0 (_tmp7_);
	_g_free0 (complete_path);
}

static void
dconf_window_propagate_gkey_value_push (DConfWindow* self,
                                        const gchar* full_name,
                                        guint16 context_id,
                                        GVariant* key_value,
                                        gboolean is_key_default)
{
	DConfView* _tmp0_;
	ModificationsRevealer* _tmp1_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (full_name != NULL);
	g_return_if_fail (key_value != NULL);
	_tmp0_ = self->priv->main_view;
	dconf_view_gkey_value_push (_tmp0_, full_name, context_id, key_value, is_key_default);
	_tmp1_ = self->priv->revealer;
	modifications_revealer_gkey_value_push (_tmp1_, full_name, context_id, key_value, is_key_default);
}

static void
dconf_window_propagate_dkey_value_push (DConfWindow* self,
                                        const gchar* full_name,
                                        GVariant* key_value_or_null)
{
	DConfView* _tmp0_;
	ModificationsRevealer* _tmp1_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (full_name != NULL);
	_tmp0_ = self->priv->main_view;
	dconf_view_dkey_value_push (_tmp0_, full_name, key_value_or_null);
	_tmp1_ = self->priv->revealer;
	modifications_revealer_dkey_value_push (_tmp1_, full_name, key_value_or_null);
}

static void
dconf_window_create_modifications_revealer (DConfWindow* self)
{
	ModificationsRevealer* _tmp0_;
	ModificationsRevealer* _tmp1_;
	ModificationsRevealer* _tmp2_;
	ModificationsRevealer* _tmp3_;
	g_return_if_fail (self != NULL);
	_tmp0_ = modifications_revealer_new ();
	g_object_ref_sink (_tmp0_);
	_g_object_unref0 (self->priv->revealer);
	self->priv->revealer = _tmp0_;
	_tmp1_ = self->priv->revealer;
	gtk_widget_set_visible ((GtkWidget*) _tmp1_, TRUE);
	_tmp2_ = self->priv->revealer;
	base_window_add_to_main_grid ((BaseWindow*) self, (GtkWidget*) _tmp2_);
	_tmp3_ = self->priv->revealer;
	adaptative_window_add_adaptative_child ((AdaptativeWindow*) self, (AdaptativeWidget*) _tmp3_);
}

static Block9Data*
block9_data_ref (Block9Data* _data9_)
{
	g_atomic_int_inc (&_data9_->_ref_count_);
	return _data9_;
}

static void
block9_data_unref (void * _userdata_)
{
	Block9Data* _data9_;
	_data9_ = (Block9Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data9_->_ref_count_)) {
		DConfWindow* self;
		self = _data9_->self;
		_g_object_unref0 (_data9_->checkbutton);
		_g_object_unref0 (self);
		g_slice_free (Block9Data, _data9_);
	}
}

static void
__lambda93_ (Block9Data* _data9_)
{
	DConfWindow* self;
	gboolean _tmp0_;
	gboolean _tmp1_;
	self = _data9_->self;
	_tmp0_ = gtk_toggle_button_get_active ((GtkToggleButton*) _data9_->checkbutton);
	_tmp1_ = _tmp0_;
	if (!_tmp1_) {
		GSettings* _tmp2_;
		_tmp2_ = self->priv->settings;
		g_settings_set_boolean (_tmp2_, "show-warning", FALSE);
	}
}

static void
___lambda93__gtk_dialog_response (GtkDialog* _sender,
                                  gint response_id,
                                  gpointer self)
{
	__lambda93_ (self);
}

static void
dconf_window_show_initial_warning (DConfWindow* self)
{
	Block9Data* _data9_;
	GtkMessageDialog* dialog = NULL;
	GtkMessageDialog* _tmp0_;
	GtkBox* box = NULL;
	GtkWidget* _tmp1_;
	GtkBox* _tmp2_;
	GtkCheckButton* _tmp3_;
	gulong dialog_response_handler = 0UL;
	gulong _tmp4_;
	g_return_if_fail (self != NULL);
	_data9_ = g_slice_new0 (Block9Data);
	_data9_->_ref_count_ = 1;
	_data9_->self = g_object_ref (self);
	_tmp0_ = (GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) self, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_NONE, "%s", _ ("Thanks for using Dconf Editor for editing your settings!"));
	g_object_ref_sink (_tmp0_);
	dialog = _tmp0_;
	gtk_message_dialog_format_secondary_text (dialog, "%s", _ ("Don’t forget that some options may break applications, so be careful."));
	gtk_dialog_add_buttons ((GtkDialog*) dialog, _ ("I’ll be careful."), GTK_RESPONSE_ACCEPT, NULL);
	_tmp1_ = gtk_message_dialog_get_message_area (dialog);
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, gtk_box_get_type (), GtkBox));
	box = _tmp2_;
	_tmp3_ = (GtkCheckButton*) gtk_check_button_new_with_label (_ ("Show this dialog next time."));
	g_object_ref_sink (_tmp3_);
	_data9_->checkbutton = _tmp3_;
	gtk_widget_set_visible ((GtkWidget*) _data9_->checkbutton, TRUE);
	gtk_toggle_button_set_active ((GtkToggleButton*) _data9_->checkbutton, TRUE);
	gtk_widget_set_margin_top ((GtkWidget*) _data9_->checkbutton, 5);
	gtk_container_add ((GtkContainer*) box, (GtkWidget*) _data9_->checkbutton);
	_tmp4_ = g_signal_connect_data ((GtkDialog*) dialog, "response", (GCallback) ___lambda93__gtk_dialog_response, block9_data_ref (_data9_), (GClosureNotify) block9_data_unref, 0);
	dialog_response_handler = _tmp4_;
	gtk_dialog_run ((GtkDialog*) dialog);
	g_signal_handler_disconnect ((GObject*) dialog, dialog_response_handler);
	gtk_widget_destroy ((GtkWidget*) dialog);
	_g_object_unref0 (box);
	_g_object_unref0 (dialog);
	block9_data_unref (_data9_);
	_data9_ = NULL;
}

gboolean
dconf_window_quit_if_no_pending_changes (DConfWindow* self)
{
	ModificationsHandler* _tmp0_;
	gboolean result;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->modifications_handler;
	if (modifications_handler_has_pending_changes (_tmp0_)) {
		base_window_show_notification ((BaseWindow*) self, _ ("There are pending changes. Use Shift+Ctrl+Q to apply changes and quit," \
" or Alt+F4 to dismiss changes and quit."));
		result = FALSE;
		return result;
	}
	gtk_widget_destroy ((GtkWidget*) self);
	result = TRUE;
	return result;
}

void
dconf_window_apply_pending_changes_and_quit (DConfWindow* self)
{
	ModificationsHandler* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->modifications_handler;
	modifications_handler_apply_delayed_settings (_tmp0_);
	gtk_widget_destroy ((GtkWidget*) self);
}

static void
dconf_window_real_before_destroy (AdaptativeWindow* base)
{
	DConfWindow * self;
	GtkApplication* _tmp0_;
	ModificationsHandler* _tmp1_;
	GSettings* _tmp2_;
	GSettings* _tmp3_;
	SettingsModel* _tmp4_;
	SettingsModel* _tmp5_;
	SettingsModel* _tmp6_;
	GSettings* _tmp7_;
	GSettings* _tmp8_;
	GSettings* _tmp9_;
	GSettings* _tmp10_;
	const gchar* _tmp11_;
	gchar* complete_path = NULL;
	DConfHeaderBar* _tmp12_;
	gchar* _tmp13_ = NULL;
	GSettings* _tmp14_;
	GSettings* _tmp15_;
	self = (DConfWindow*) base;
	ADAPTATIVE_WINDOW_CLASS (dconf_window_parent_class)->before_destroy ((AdaptativeWindow*) G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BOOKMARKS_WINDOW, BookmarksWindow));
	_tmp0_ = gtk_window_get_application ((GtkWindow*) self);
	configuration_editor_clean_copy_notification (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, TYPE_CONFIGURATION_EDITOR, ConfigurationEditor));
	_tmp1_ = self->priv->modifications_handler;
	g_signal_handler_disconnect ((GObject*) _tmp1_, self->priv->delayed_changes_changed_handler);
	_tmp2_ = self->priv->settings;
	g_signal_handler_disconnect ((GObject*) _tmp2_, self->priv->settings_user_paths_changed_handler);
	_tmp3_ = self->priv->settings;
	g_signal_handler_disconnect ((GObject*) _tmp3_, self->priv->settings_enabled_mappings_changed_handler);
	_tmp4_ = self->priv->model;
	g_signal_handler_disconnect ((GObject*) _tmp4_, self->priv->paths_changed_handler);
	_tmp5_ = self->priv->model;
	g_signal_handler_disconnect ((GObject*) _tmp5_, self->priv->gkey_value_push_handler);
	_tmp6_ = self->priv->model;
	g_signal_handler_disconnect ((GObject*) _tmp6_, self->priv->dkey_value_push_handler);
	_tmp7_ = self->priv->settings;
	g_signal_handler_disconnect ((GObject*) _tmp7_, self->priv->behaviour_changed_handler);
	_tmp8_ = self->priv->settings;
	g_signal_handler_disconnect ((GObject*) _tmp8_, self->priv->use_shortpaths_changed_handler);
	_tmp9_ = self->priv->settings;
	g_settings_delay (_tmp9_);
	_tmp10_ = self->priv->settings;
	_tmp11_ = ((BrowserWindow*) self)->saved_view;
	g_settings_set_string (_tmp10_, "saved-view", _tmp11_);
	_tmp12_ = self->priv->headerbar;
	browser_header_bar_get_complete_path ((BrowserHeaderBar*) _tmp12_, &_tmp13_);
	_g_free0 (complete_path);
	complete_path = _tmp13_;
	_tmp14_ = self->priv->settings;
	g_settings_set_string (_tmp14_, "saved-pathbar-path", complete_path);
	_tmp15_ = self->priv->settings;
	g_settings_apply (_tmp15_);
	_g_free0 (complete_path);
}

static void
dconf_window_install_ui_action_entries (DConfWindow* self)
{
	GSimpleActionGroup* action_group = NULL;
	GSimpleActionGroup* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_simple_action_group_new ();
	action_group = _tmp0_;
	g_action_map_add_action_entries ((GActionMap*) action_group, DCONF_WINDOW_ui_action_entries, (gint) G_N_ELEMENTS (DCONF_WINDOW_ui_action_entries), self);
	gtk_widget_insert_action_group ((GtkWidget*) self, "ui", (GActionGroup*) action_group);
	_g_object_unref0 (action_group);
}

static void
dconf_window_reset_recursively (DConfWindow* self,
                                GSimpleAction* action,
                                GVariant* path_variant)
{
	const gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (action != NULL);
	_vala_return_if_fail (path_variant != NULL, "path_variant != null");
	_tmp0_ = g_variant_get_string ((GVariant*) path_variant, NULL);
	dconf_window_reset_path (self, _tmp0_, TRUE);
}

static void
dconf_window_reset_current_recursively (DConfWindow* self)
{
	const gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = ((BrowserWindow*) self)->current_path;
	dconf_window_reset_path (self, _tmp0_, TRUE);
}

static void
dconf_window_reset_current_non_recursively (DConfWindow* self)
{
	const gchar* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = ((BrowserWindow*) self)->current_path;
	dconf_window_reset_path (self, _tmp0_, FALSE);
}

static void
dconf_window_reset_path (DConfWindow* self,
                         const gchar* path,
                         gboolean recursively)
{
	ModificationsRevealer* _tmp0_;
	SettingsModel* _tmp1_;
	GVariant* _tmp2_;
	GVariant* _tmp3_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (path != NULL);
	dconf_window_enter_delay_mode (self);
	_tmp0_ = self->priv->revealer;
	_tmp1_ = self->priv->model;
	_tmp2_ = settings_model_get_children (_tmp1_, path, FALSE, FALSE);
	_tmp3_ = _tmp2_;
	modifications_revealer_reset_objects (_tmp0_, path, _tmp3_, recursively);
	_g_variant_unref0 (_tmp3_);
}

static void
dconf_window_enter_delay_mode (DConfWindow* self)
{
	ModificationsHandler* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->modifications_handler;
	modifications_handler_enter_delay_mode (_tmp0_);
	dconf_window_invalidate_popovers_with_ui_reload (self);
}

static void
dconf_window_apply_delayed_settings (DConfWindow* self)
{
	DConfView* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	ModificationsHandler* _tmp3_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->main_view;
	_tmp1_ = dconf_view_get_in_window_modifications (_tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_) {
		base_window_show_default_view ((BaseWindow*) self);
	}
	_tmp3_ = self->priv->modifications_handler;
	modifications_handler_apply_delayed_settings (_tmp3_);
	dconf_window_invalidate_popovers_with_ui_reload (self);
}

static void
dconf_window_dismiss_delayed_settings (DConfWindow* self)
{
	DConfView* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	ModificationsHandler* _tmp3_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->main_view;
	_tmp1_ = dconf_view_get_in_window_modifications (_tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_) {
		base_window_show_default_view ((BaseWindow*) self);
	}
	_tmp3_ = self->priv->modifications_handler;
	modifications_handler_dismiss_delayed_settings (_tmp3_);
	dconf_window_invalidate_popovers_with_ui_reload (self);
}

static void
dconf_window_dismiss_change (DConfWindow* self,
                             GSimpleAction* action,
                             GVariant* path_variant)
{
	ModificationsHandler* _tmp0_;
	const gchar* _tmp1_;
	DConfView* _tmp2_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (action != NULL);
	_vala_return_if_fail (path_variant != NULL, "path_variant != null");
	_tmp0_ = self->priv->modifications_handler;
	_tmp1_ = g_variant_get_string ((GVariant*) path_variant, NULL);
	modifications_handler_dismiss_change (_tmp0_, _tmp1_);
	_tmp2_ = self->priv->main_view;
	browser_view_invalidate_popovers ((BrowserView*) _tmp2_);
	browser_window_reload_view ((BrowserWindow*) self);
}

static void
dconf_window_erase_dconf_key (DConfWindow* self,
                              GSimpleAction* action,
                              GVariant* path_variant)
{
	ModificationsHandler* _tmp0_;
	const gchar* _tmp1_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (action != NULL);
	_vala_return_if_fail (path_variant != NULL, "path_variant != null");
	_tmp0_ = self->priv->modifications_handler;
	_tmp1_ = g_variant_get_string ((GVariant*) path_variant, NULL);
	modifications_handler_erase_dconf_key (_tmp0_, _tmp1_);
	dconf_window_invalidate_popovers_with_ui_reload (self);
}

static void
dconf_window_invalidate_popovers_with_ui_reload (DConfWindow* self)
{
	gboolean delay_mode = FALSE;
	ModificationsHandler* _tmp0_;
	DConfView* _tmp1_;
	DConfView* _tmp2_;
	DConfHeaderBar* _tmp3_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->modifications_handler;
	delay_mode = modifications_handler_get_current_delay_mode (_tmp0_);
	_tmp1_ = self->priv->main_view;
	dconf_view_hide_or_show_toggles (_tmp1_, !delay_mode);
	_tmp2_ = self->priv->main_view;
	browser_view_invalidate_popovers ((BrowserView*) _tmp2_);
	_tmp3_ = self->priv->headerbar;
	dconf_header_bar_set_delay_mode (_tmp3_, delay_mode);
}

static void
dconf_window_real_show_default_view (BaseWindow* base)
{
	DConfWindow * self;
	DConfView* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	self = (DConfWindow*) base;
	_tmp0_ = self->priv->main_view;
	_tmp1_ = dconf_view_get_in_window_modifications (_tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_) {
		DConfHeaderBar* _tmp3_;
		DConfView* _tmp4_;
		_tmp3_ = self->priv->headerbar;
		base_header_bar_show_default_view ((BaseHeaderBar*) _tmp3_);
		_tmp4_ = self->priv->main_view;
		base_view_show_default_view ((BaseView*) _tmp4_);
		if (((BrowserWindow*) self)->current_type == VIEW_TYPE_CONFIG) {
			const gchar* _tmp5_;
			_tmp5_ = ((BrowserWindow*) self)->current_path;
			browser_window_request_folder ((BrowserWindow*) self, _tmp5_, "", TRUE);
		}
	} else {
		BASE_WINDOW_CLASS (dconf_window_parent_class)->show_default_view ((BaseWindow*) G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BOOKMARKS_WINDOW, BookmarksWindow));
	}
}

static void
dconf_window_show_modifications_view (DConfWindow* self)
{
	DConfHeaderBar* _tmp0_;
	DConfView* _tmp1_;
	g_return_if_fail (self != NULL);
	base_window_close_in_window_panels ((BaseWindow*) self);
	_tmp0_ = self->priv->headerbar;
	dconf_header_bar_show_modifications_view (_tmp0_);
	_tmp1_ = self->priv->main_view;
	dconf_view_show_modifications_view (_tmp1_);
}

static BookmarkIcon
dconf_window_real_get_bookmark_icon (BookmarksWindow* base,
                                     gchar** bookmark)
{
	DConfWindow * self;
	guint16 context_id = 0U;
	gchar* name = NULL;
	gboolean bookmark_exists = FALSE;
	SettingsModel* _tmp0_;
	guint16 _tmp1_ = 0U;
	gchar* _tmp2_ = NULL;
	gboolean _tmp3_;
	RegistryVariantDict* bookmark_properties = NULL;
	SettingsModel* _tmp4_;
	GVariant* _tmp5_;
	GVariant* _tmp6_;
	RegistryVariantDict* _tmp7_;
	RegistryVariantDict* _tmp8_;
	gboolean is_default = FALSE;
	RegistryVariantDict* _tmp9_;
	gboolean _tmp10_ = FALSE;
	gboolean _tmp11_;
	BookmarkIcon result;
	self = (DConfWindow*) base;
	g_return_val_if_fail (*bookmark != NULL, 0);
	_tmp0_ = self->priv->model;
	_tmp3_ = settings_model_get_object (_tmp0_, *bookmark, &_tmp1_, &_tmp2_, FALSE);
	context_id = _tmp1_;
	_g_free0 (name);
	name = _tmp2_;
	bookmark_exists = _tmp3_;
	if (context_id == MODEL_UTILS_folder_context_id) {
		if (bookmark_exists) {
			result = BOOKMARK_ICON_VALID_FOLDER;
			_g_free0 (name);
			return result;
		} else {
			result = BOOKMARK_ICON_EMPTY_FOLDER;
			_g_free0 (name);
			return result;
		}
	}
	if (!bookmark_exists) {
		result = BOOKMARK_ICON_EMPTY_OBJECT;
		_g_free0 (name);
		return result;
	}
	if (context_id == MODEL_UTILS_dconf_context_id) {
		result = BOOKMARK_ICON_DCONF_OBJECT;
		_g_free0 (name);
		return result;
	}
	_tmp4_ = self->priv->model;
	_tmp5_ = settings_model_get_key_properties (_tmp4_, *bookmark, context_id, (guint16) PROPERTY_QUERY_IS_DEFAULT);
	_tmp6_ = _tmp5_;
	_tmp7_ = registry_variant_dict_new_from_aqv (_tmp6_);
	_tmp8_ = _tmp7_;
	_g_variant_unref0 (_tmp6_);
	bookmark_properties = _tmp8_;
	_tmp9_ = bookmark_properties;
	_tmp11_ = registry_variant_dict_lookup (_tmp9_, (guint16) PROPERTY_QUERY_IS_DEFAULT, "b", &_tmp10_, NULL);
	is_default = _tmp10_;
	if (!_tmp11_) {
		g_assert_not_reached ();
	}
	if (is_default) {
		result = BOOKMARK_ICON_KEY_DEFAULTS;
		_g_object_unref0 (bookmark_properties);
		_g_free0 (name);
		return result;
	} else {
		result = BOOKMARK_ICON_EDITED_VALUE;
		_g_object_unref0 (bookmark_properties);
		_g_free0 (name);
		return result;
	}
}

static void
dconf_window_real_set_window_size (AdaptativeWidget* base,
                                   AdaptativeWidgetWindowSize new_size)
{
	DConfWindow * self;
	gboolean _tmp0_ = FALSE;
	gboolean _disable_action_bar = FALSE;
	self = (DConfWindow*) base;
	BASE_WINDOW_CLASS (dconf_window_parent_class)->set_window_size ((BaseWindow*) G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BOOKMARKS_WINDOW, BookmarksWindow), new_size);
	if (adaptative_widget_window_size_is_extra_thin (new_size)) {
		_tmp0_ = TRUE;
	} else {
		_tmp0_ = adaptative_widget_window_size_is_extra_flat (new_size);
	}
	_disable_action_bar = _tmp0_;
	if (self->priv->disable_action_bar != _disable_action_bar) {
		DConfView* _tmp1_;
		gboolean _tmp2_;
		gboolean _tmp3_;
		self->priv->disable_action_bar = _disable_action_bar;
		_tmp1_ = self->priv->main_view;
		_tmp2_ = dconf_view_get_in_window_modifications (_tmp1_);
		_tmp3_ = _tmp2_;
		if (_tmp3_) {
			base_window_show_default_view ((BaseWindow*) self);
		}
	}
}

static void
dconf_window_install_kbd_action_entries (DConfWindow* self)
{
	GSimpleActionGroup* action_group = NULL;
	GSimpleActionGroup* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = g_simple_action_group_new ();
	action_group = _tmp0_;
	g_action_map_add_action_entries ((GActionMap*) action_group, DCONF_WINDOW_kbd_action_entries, (gint) G_N_ELEMENTS (DCONF_WINDOW_kbd_action_entries), self);
	gtk_widget_insert_action_group ((GtkWidget*) self, "kbd", (GActionGroup*) action_group);
	_g_object_unref0 (action_group);
}

static void
dconf_window_modifications_list (DConfWindow* self)
{
	ModificationsHandler* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->modifications_handler;
	if (!modifications_handler_get_current_delay_mode (_tmp0_)) {
		return;
	}
	if (!self->priv->disable_action_bar) {
		ModificationsRevealer* _tmp1_;
		_tmp1_ = self->priv->revealer;
		modifications_revealer_toggle_modifications_list (_tmp1_);
	} else {
		DConfView* _tmp2_;
		gboolean _tmp3_;
		gboolean _tmp4_;
		_tmp2_ = self->priv->main_view;
		_tmp3_ = dconf_view_get_in_window_modifications (_tmp2_);
		_tmp4_ = _tmp3_;
		if (_tmp4_) {
			base_window_show_default_view ((BaseWindow*) self);
		} else {
			dconf_window_show_modifications_view (self);
		}
	}
}

static void
dconf_window_toggle_boolean (DConfWindow* self)
{
	ModificationsHandler* _tmp0_;
	DConfView* _tmp1_;
	DConfView* _tmp2_;
	g_return_if_fail (self != NULL);
	if (browser_window_row_action_blocked ((BrowserWindow*) self)) {
		return;
	}
	_tmp0_ = self->priv->modifications_handler;
	if (modifications_handler_get_current_delay_mode (_tmp0_)) {
		return;
	}
	_tmp1_ = self->priv->main_view;
	base_view_close_popovers ((BaseView*) _tmp1_);
	_tmp2_ = self->priv->main_view;
	dconf_view_toggle_boolean_key (_tmp2_);
}

static void
dconf_window_set_to_default (DConfWindow* self)
{
	ModificationsRevealer* _tmp0_;
	DConfView* _tmp1_;
	gchar* selected_row = NULL;
	DConfView* _tmp2_;
	gchar* _tmp3_;
	const gchar* _tmp4_;
	g_return_if_fail (self != NULL);
	if (browser_window_row_action_blocked ((BrowserWindow*) self)) {
		return;
	}
	_tmp0_ = self->priv->revealer;
	if (modifications_revealer_dismiss_selected_modification (_tmp0_)) {
		browser_window_reload_view ((BrowserWindow*) self);
		return;
	}
	_tmp1_ = self->priv->main_view;
	base_view_close_popovers ((BaseView*) _tmp1_);
	_tmp2_ = self->priv->main_view;
	_tmp3_ = browser_view_get_selected_row_name ((BrowserView*) _tmp2_);
	selected_row = _tmp3_;
	_tmp4_ = selected_row;
	if (g_str_has_suffix (_tmp4_, "/")) {
		const gchar* _tmp5_;
		_tmp5_ = selected_row;
		dconf_window_reset_path (self, (const gchar*) _tmp5_, TRUE);
	} else {
		DConfView* _tmp6_;
		_tmp6_ = self->priv->main_view;
		dconf_view_set_selected_to_default (_tmp6_);
	}
	_g_free0 (selected_row);
}

static void
dconf_window_real_toggle_bookmark_called (BookmarksWindow* base)
{
	DConfWindow * self;
	DConfView* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	self = (DConfWindow*) base;
	_tmp0_ = self->priv->main_view;
	_tmp1_ = dconf_view_get_in_window_modifications (_tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_) {
		base_window_show_default_view ((BaseWindow*) self);
	}
}

static gboolean
dconf_window_real_escape_pressed (BaseWindow* base)
{
	DConfWindow * self;
	DConfView* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	gboolean result;
	self = (DConfWindow*) base;
	_tmp0_ = self->priv->main_view;
	_tmp1_ = dconf_view_get_in_window_modifications (_tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_) {
		base_window_show_default_view ((BaseWindow*) self);
		result = TRUE;
		return result;
	}
	result = BASE_WINDOW_CLASS (dconf_window_parent_class)->escape_pressed ((BaseWindow*) G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BOOKMARKS_WINDOW, BookmarksWindow));
	return result;
}

static gboolean
dconf_window_real_intercept_next_match (BrowserWindow* base,
                                        gboolean* interception_result)
{
	DConfWindow * self;
	gboolean _vala_interception_result = FALSE;
	ModificationsRevealer* _tmp0_;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_;
	gboolean result;
	self = (DConfWindow*) base;
	_tmp0_ = self->priv->revealer;
	if (modifications_revealer_get_modifications_list_state (_tmp0_)) {
		ModificationsRevealer* _tmp1_;
		_tmp1_ = self->priv->revealer;
		_vala_interception_result = modifications_revealer_next_match (_tmp1_);
		result = TRUE;
		if (interception_result) {
			*interception_result = _vala_interception_result;
		}
		return result;
	}
	_tmp3_ = BROWSER_WINDOW_CLASS (dconf_window_parent_class)->intercept_next_match ((BrowserWindow*) G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BOOKMARKS_WINDOW, BookmarksWindow), &_tmp2_);
	_vala_interception_result = _tmp2_;
	result = _tmp3_;
	if (interception_result) {
		*interception_result = _vala_interception_result;
	}
	return result;
}

static gboolean
dconf_window_real_intercept_previous_match (BrowserWindow* base,
                                            gboolean* interception_result)
{
	DConfWindow * self;
	gboolean _vala_interception_result = FALSE;
	ModificationsRevealer* _tmp0_;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_;
	gboolean result;
	self = (DConfWindow*) base;
	_tmp0_ = self->priv->revealer;
	if (modifications_revealer_get_modifications_list_state (_tmp0_)) {
		ModificationsRevealer* _tmp1_;
		_tmp1_ = self->priv->revealer;
		_vala_interception_result = modifications_revealer_previous_match (_tmp1_);
		result = TRUE;
		if (interception_result) {
			*interception_result = _vala_interception_result;
		}
		return result;
	}
	_tmp3_ = BROWSER_WINDOW_CLASS (dconf_window_parent_class)->intercept_previous_match ((BrowserWindow*) G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_BOOKMARKS_WINDOW, BookmarksWindow), &_tmp2_);
	_vala_interception_result = _tmp2_;
	result = _tmp3_;
	if (interception_result) {
		*interception_result = _vala_interception_result;
	}
	return result;
}

static void
dconf_window_real_reconfigure_search (BrowserWindow* base,
                                      gboolean local_search)
{
	DConfWindow * self;
	DConfView* _tmp0_;
	const gchar* _tmp1_;
	DConfHeaderBar* _tmp2_;
	gint _tmp3_ = 0;
	gchar** _tmp4_;
	gchar** _tmp5_;
	gint _tmp5__length1;
	self = (DConfWindow*) base;
	_tmp0_ = self->priv->main_view;
	_tmp1_ = ((BrowserWindow*) self)->saved_view;
	_tmp2_ = self->priv->headerbar;
	_tmp4_ = bookmarks_header_bar_get_bookmarks ((BookmarksHeaderBar*) G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, TYPE_DCONF_HEADER_BAR, DConfHeaderBar), &_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp5__length1 = _tmp3_;
	dconf_view_set_search_parameters (_tmp0_, local_search, _tmp1_, _tmp5_, (gint) _tmp3_);
	_tmp5_ = (_vala_array_free (_tmp5_, _tmp5__length1, (GDestroyNotify) g_free), NULL);
}

static void
dconf_window_real_close_in_window_panels (BaseWindow* base)
{
	DConfWindow * self;
	DConfHeaderBar* _tmp0_;
	ModificationsRevealer* _tmp1_;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_ = FALSE;
	DConfView* _tmp4_;
	gboolean _tmp5_;
	gboolean _tmp6_;
	self = (DConfWindow*) base;
	base_window_hide_notification ((BaseWindow*) self);
	_tmp0_ = self->priv->headerbar;
	base_header_bar_close_popovers ((BaseHeaderBar*) _tmp0_);
	_tmp1_ = self->priv->revealer;
	modifications_revealer_hide_modifications_list (_tmp1_);
	_tmp4_ = self->priv->main_view;
	_tmp5_ = bookmarks_view_get_in_window_bookmarks ((BookmarksView*) _tmp4_);
	_tmp6_ = _tmp5_;
	if (_tmp6_) {
		_tmp3_ = TRUE;
	} else {
		DConfView* _tmp7_;
		gboolean _tmp8_;
		gboolean _tmp9_;
		_tmp7_ = self->priv->main_view;
		_tmp8_ = dconf_view_get_in_window_modifications (_tmp7_);
		_tmp9_ = _tmp8_;
		_tmp3_ = _tmp9_;
	}
	if (_tmp3_) {
		_tmp2_ = TRUE;
	} else {
		gboolean _tmp10_;
		gboolean _tmp11_;
		_tmp10_ = base_window_get_in_window_about ((BaseWindow*) self);
		_tmp11_ = _tmp10_;
		_tmp2_ = _tmp11_;
	}
	if (_tmp2_) {
		base_window_show_default_view ((BaseWindow*) self);
	}
}

static void
dconf_window_real_request_config (BrowserWindow* base,
                                  const gchar* full_name)
{
	DConfWindow * self;
	DConfView* _tmp0_;
	SettingsModel* _tmp1_;
	GVariant* _tmp2_;
	GVariant* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	self = (DConfWindow*) base;
	g_return_if_fail (full_name != NULL);
	_tmp0_ = self->priv->main_view;
	_tmp1_ = self->priv->model;
	_tmp2_ = settings_model_get_folder_properties (_tmp1_, full_name);
	_tmp3_ = _tmp2_;
	browser_view_prepare_object_view ((BrowserView*) _tmp0_, full_name, MODEL_UTILS_folder_context_id, _tmp3_, TRUE);
	_g_variant_unref0 (_tmp3_);
	_tmp4_ = g_strdup (full_name);
	_tmp5_ = _tmp4_;
	browser_window_update_current_path ((BrowserWindow*) self, VIEW_TYPE_CONFIG, _tmp5_);
	_g_free0 (_tmp5_);
	browser_window_stop_search ((BrowserWindow*) self);
}

static void
dconf_window_real_request_folder (BrowserWindow* base,
                                  const gchar* full_name,
                                  const gchar* selected_or_empty,
                                  gboolean notify_missing)
{
	DConfWindow * self;
	gchar* fallback_path = NULL;
	SettingsModel* _tmp0_;
	gchar* _tmp1_;
	gboolean _tmp2_ = FALSE;
	DConfView* _tmp4_;
	const gchar* _tmp5_;
	SettingsModel* _tmp6_;
	const gchar* _tmp7_;
	GVariant* _tmp8_;
	GVariant* _tmp9_;
	GListStore* _tmp10_;
	GListStore* _tmp11_;
	const gchar* _tmp12_;
	const gchar* _tmp13_;
	const gchar* _tmp14_;
	self = (DConfWindow*) base;
	g_return_if_fail (full_name != NULL);
	g_return_if_fail (selected_or_empty != NULL);
	_tmp0_ = self->priv->model;
	_tmp1_ = settings_model_get_fallback_path (_tmp0_, full_name);
	fallback_path = _tmp1_;
	if (notify_missing) {
		const gchar* _tmp3_;
		_tmp3_ = fallback_path;
		_tmp2_ = g_strcmp0 (_tmp3_, full_name) != 0;
	} else {
		_tmp2_ = FALSE;
	}
	if (_tmp2_) {
		dconf_window_cannot_find_folder (self, full_name);
	}
	_tmp4_ = self->priv->main_view;
	_tmp5_ = fallback_path;
	_tmp6_ = self->priv->model;
	_tmp7_ = fallback_path;
	_tmp8_ = settings_model_get_children (_tmp6_, _tmp7_, TRUE, TRUE);
	_tmp9_ = _tmp8_;
	_tmp10_ = dconf_window_create_key_model (_tmp5_, _tmp9_);
	_tmp11_ = _tmp10_;
	_tmp12_ = ((BrowserWindow*) self)->current_path;
	_tmp13_ = fallback_path;
	browser_view_prepare_folder_view ((BrowserView*) _tmp4_, _tmp11_, g_str_has_prefix (_tmp12_, _tmp13_));
	_g_object_unref0 (_tmp11_);
	_g_variant_unref0 (_tmp9_);
	_tmp14_ = fallback_path;
	browser_window_update_current_path ((BrowserWindow*) self, VIEW_TYPE_FOLDER, _tmp14_);
	if (g_strcmp0 (selected_or_empty, "") == 0) {
		DConfView* _tmp15_;
		DConfHeaderBar* _tmp16_;
		const gchar* _tmp17_;
		gchar* _tmp18_;
		gchar* _tmp19_;
		_tmp15_ = self->priv->main_view;
		_tmp16_ = self->priv->headerbar;
		_tmp17_ = fallback_path;
		_tmp18_ = browser_header_bar_get_selected_child ((BrowserHeaderBar*) _tmp16_, _tmp17_);
		_tmp19_ = _tmp18_;
		browser_view_select_row ((BrowserView*) _tmp15_, _tmp19_);
		_g_free0 (_tmp19_);
	} else {
		DConfView* _tmp20_;
		_tmp20_ = self->priv->main_view;
		browser_view_select_row ((BrowserView*) _tmp20_, selected_or_empty);
	}
	browser_window_stop_search ((BrowserWindow*) self);
	_g_free0 (fallback_path);
}

static GListStore*
dconf_window_create_key_model (const gchar* base_path,
                               GVariant* children)
{
	GListStore* key_model = NULL;
	GListStore* _tmp0_;
	gchar* name = NULL;
	gchar* _tmp1_;
	SimpleSettingObject* sso = NULL;
	const gchar* _tmp2_;
	SimpleSettingObject* _tmp3_;
	GListStore* _tmp4_;
	SimpleSettingObject* _tmp5_;
	GListStore* result;
	g_return_val_if_fail (base_path != NULL, NULL);
	_tmp0_ = g_list_store_new (TYPE_SIMPLE_SETTING_OBJECT);
	key_model = _tmp0_;
	_tmp1_ = model_utils_get_name (base_path);
	name = _tmp1_;
	_tmp2_ = name;
	_tmp3_ = simple_setting_object_new_from_full_name (MODEL_UTILS_folder_context_id, _tmp2_, base_path, TRUE, TRUE);
	sso = _tmp3_;
	_tmp4_ = key_model;
	_tmp5_ = sso;
	g_list_store_append (_tmp4_, (GObject*) _tmp5_);
	if (children != NULL) {
		GVariantIter* iter = NULL;
		GVariantIter* _tmp6_;
		guint16 context_id = 0U;
		_tmp6_ = g_variant_iter_new ((GVariant*) children);
		iter = _tmp6_;
		while (TRUE) {
			GVariantIter* _tmp7_;
			guint16 _tmp8_ = 0U;
			gchar* _tmp9_ = NULL;
			gboolean _tmp10_;
			const gchar* _tmp11_;
			SimpleSettingObject* _tmp12_;
			GListStore* _tmp13_;
			SimpleSettingObject* _tmp14_;
			_tmp7_ = iter;
			_tmp10_ = g_variant_iter_next (_tmp7_, "(qs)", &_tmp8_, &_tmp9_, NULL);
			context_id = _tmp8_;
			_g_free0 (name);
			name = _tmp9_;
			if (!_tmp10_) {
				break;
			}
			if (model_utils_is_undefined_context_id (context_id)) {
				g_assert_not_reached ();
			}
			_tmp11_ = name;
			_tmp12_ = simple_setting_object_new_from_base_path (context_id, _tmp11_, base_path, FALSE, FALSE);
			_g_object_unref0 (sso);
			sso = _tmp12_;
			_tmp13_ = key_model;
			_tmp14_ = sso;
			g_list_store_append (_tmp13_, (GObject*) _tmp14_);
		}
		_g_variant_iter_free0 (iter);
	}
	result = key_model;
	_g_object_unref0 (sso);
	_g_free0 (name);
	return result;
}

static void
dconf_window_real_request_object (BrowserWindow* base,
                                  const gchar* full_name,
                                  guint16 context_id,
                                  gboolean notify_missing,
                                  const gchar* schema_id)
{
	DConfWindow * self;
	SettingsModel* _tmp0_;
	self = (DConfWindow*) base;
	g_return_if_fail (full_name != NULL);
	g_return_if_fail (schema_id != NULL);
	_tmp0_ = self->priv->model;
	context_id = settings_model_get_fallback_context (_tmp0_, full_name, context_id, schema_id);
	if (model_utils_is_undefined_context_id (context_id)) {
		gchar* _tmp1_;
		gchar* _tmp2_;
		gchar* complete_path = NULL;
		DConfHeaderBar* _tmp3_;
		gchar* _tmp4_ = NULL;
		DConfHeaderBar* _tmp5_;
		SettingsModel* _tmp6_;
		const gchar* _tmp7_;
		gchar* _tmp8_;
		gchar* _tmp9_;
		if (notify_missing) {
			if (model_utils_is_key_path (full_name)) {
				dconf_window_cannot_find_key (self, full_name);
			} else {
				dconf_window_cannot_find_folder (self, full_name);
			}
		}
		_tmp1_ = model_utils_get_parent_path (full_name);
		_tmp2_ = _tmp1_;
		browser_window_request_folder ((BrowserWindow*) self, _tmp2_, full_name, FALSE);
		_g_free0 (_tmp2_);
		_tmp3_ = self->priv->headerbar;
		browser_header_bar_get_complete_path ((BrowserHeaderBar*) _tmp3_, &_tmp4_);
		_g_free0 (complete_path);
		complete_path = _tmp4_;
		_tmp5_ = self->priv->headerbar;
		_tmp6_ = self->priv->model;
		_tmp7_ = complete_path;
		_tmp8_ = settings_model_get_fallback_path (_tmp6_, _tmp7_);
		_tmp9_ = _tmp8_;
		browser_header_bar_update_ghosts ((BrowserHeaderBar*) _tmp5_, _tmp9_);
		_g_free0 (_tmp9_);
		_g_free0 (complete_path);
	} else {
		DConfView* _tmp10_;
		SettingsModel* _tmp11_;
		GVariant* _tmp12_;
		GVariant* _tmp13_;
		const gchar* _tmp14_;
		gchar* _tmp15_;
		gchar* _tmp16_;
		gchar* _tmp17_;
		gchar* _tmp18_;
		_tmp10_ = self->priv->main_view;
		_tmp11_ = self->priv->model;
		_tmp12_ = settings_model_get_key_properties (_tmp11_, full_name, context_id, (guint16) 0);
		_tmp13_ = _tmp12_;
		_tmp14_ = ((BrowserWindow*) self)->current_path;
		_tmp15_ = model_utils_get_parent_path (full_name);
		_tmp16_ = _tmp15_;
		browser_view_prepare_object_view ((BrowserView*) _tmp10_, full_name, context_id, _tmp13_, g_strcmp0 (_tmp14_, _tmp16_) == 0);
		_g_free0 (_tmp16_);
		_g_variant_unref0 (_tmp13_);
		_tmp17_ = g_strdup (full_name);
		_tmp18_ = _tmp17_;
		browser_window_update_current_path ((BrowserWindow*) self, VIEW_TYPE_OBJECT, _tmp18_);
		_g_free0 (_tmp18_);
	}
	browser_window_stop_search ((BrowserWindow*) self);
}

static gboolean
dconf_window_real_handle_copy_text (BaseWindow* base,
                                    gchar** copy_text)
{
	DConfWindow * self;
	gchar* _vala_copy_text = NULL;
	SettingsModel* _tmp0_;
	DConfHeaderBar* _tmp1_;
	gchar* _tmp2_ = NULL;
	gboolean _tmp3_;
	ModificationsRevealer* _tmp4_;
	gchar* _tmp5_ = NULL;
	gboolean _tmp6_;
	DConfView* _tmp7_;
	gchar* _tmp8_ = NULL;
	gboolean _tmp9_;
	const gchar* _tmp16_;
	gboolean result;
	self = (DConfWindow*) base;
	_tmp0_ = self->priv->model;
	settings_model_copy_action_called (_tmp0_);
	_tmp1_ = self->priv->headerbar;
	_tmp3_ = bookmarks_header_bar_handle_copy_text ((BookmarksHeaderBar*) _tmp1_, &_tmp2_);
	_g_free0 (_vala_copy_text);
	_vala_copy_text = _tmp2_;
	if (_tmp3_) {
		result = TRUE;
		if (copy_text) {
			*copy_text = _vala_copy_text;
		} else {
			_g_free0 (_vala_copy_text);
		}
		return result;
	}
	_tmp4_ = self->priv->revealer;
	_tmp6_ = modifications_revealer_handle_copy_text (_tmp4_, &_tmp5_);
	_g_free0 (_vala_copy_text);
	_vala_copy_text = _tmp5_;
	if (_tmp6_) {
		result = TRUE;
		if (copy_text) {
			*copy_text = _vala_copy_text;
		} else {
			_g_free0 (_vala_copy_text);
		}
		return result;
	}
	_tmp7_ = self->priv->main_view;
	_tmp9_ = base_view_handle_copy_text ((BaseView*) _tmp7_, &_tmp8_);
	_g_free0 (_vala_copy_text);
	_vala_copy_text = _tmp8_;
	if (_tmp9_) {
		result = TRUE;
		if (copy_text) {
			*copy_text = _vala_copy_text;
		} else {
			_g_free0 (_vala_copy_text);
		}
		return result;
	}
	if (((BrowserWindow*) self)->current_type == VIEW_TYPE_OBJECT) {
		SettingsModel* _tmp10_;
		const gchar* _tmp11_;
		DConfView* _tmp12_;
		guint16 _tmp13_;
		guint16 _tmp14_;
		gchar* _tmp15_;
		_tmp10_ = self->priv->model;
		_tmp11_ = ((BrowserWindow*) self)->current_path;
		_tmp12_ = self->priv->main_view;
		_tmp13_ = browser_view_get_last_context_id ((BrowserView*) _tmp12_);
		_tmp14_ = _tmp13_;
		_tmp15_ = settings_model_get_suggested_key_copy_text (_tmp10_, _tmp11_, _tmp14_);
		_g_free0 (_vala_copy_text);
		_vala_copy_text = _tmp15_;
	}
	_tmp16_ = _vala_copy_text;
	if (base_window_is_empty_text (_tmp16_)) {
		const gchar* _tmp17_;
		gchar* _tmp18_;
		_tmp17_ = ((BrowserWindow*) self)->current_path;
		_tmp18_ = g_strdup (_tmp17_);
		_g_free0 (_vala_copy_text);
		_vala_copy_text = _tmp18_;
	}
	result = TRUE;
	if (copy_text) {
		*copy_text = _vala_copy_text;
	} else {
		_g_free0 (_vala_copy_text);
	}
	return result;
}

static gboolean
dconf_window_real_get_alt_copy_text (BaseWindow* base,
                                     gchar** copy_text)
{
	DConfWindow * self;
	gchar* _vala_copy_text = NULL;
	SettingsModel* _tmp0_;
	DConfHeaderBar* _tmp1_;
	gboolean _tmp2_;
	gboolean _tmp3_;
	gboolean result;
	self = (DConfWindow*) base;
	_tmp0_ = self->priv->model;
	settings_model_copy_action_called (_tmp0_);
	_tmp1_ = self->priv->headerbar;
	_tmp2_ = browser_header_bar_get_search_mode_enabled ((BrowserHeaderBar*) _tmp1_);
	_tmp3_ = _tmp2_;
	if (_tmp3_) {
		DConfView* _tmp4_;
		gchar* _tmp5_ = NULL;
		gboolean _tmp6_;
		_tmp4_ = self->priv->main_view;
		_tmp6_ = browser_view_handle_alt_copy_text ((BrowserView*) _tmp4_, &_tmp5_);
		_g_free0 (_vala_copy_text);
		_vala_copy_text = _tmp5_;
		if (!_tmp6_) {
			const gchar* _tmp7_;
			gchar* _tmp8_;
			_tmp7_ = ((BrowserWindow*) self)->saved_view;
			_tmp8_ = g_strdup (_tmp7_);
			_g_free0 (_vala_copy_text);
			_vala_copy_text = _tmp8_;
		}
	} else {
		const gchar* _tmp9_;
		gchar* _tmp10_;
		_tmp9_ = ((BrowserWindow*) self)->current_path;
		_tmp10_ = g_strdup (_tmp9_);
		_g_free0 (_vala_copy_text);
		_vala_copy_text = _tmp10_;
	}
	result = TRUE;
	if (copy_text) {
		*copy_text = _vala_copy_text;
	} else {
		_g_free0 (_vala_copy_text);
	}
	return result;
}

static void
dconf_window_notify_folder_emptied (DConfWindow* self,
                                    GSimpleAction* action,
                                    GVariant* path_variant)
{
	gchar* full_name = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (action != NULL);
	_vala_return_if_fail (path_variant != NULL, "path_variant != null");
	_tmp0_ = g_variant_get_string ((GVariant*) path_variant, NULL);
	_tmp1_ = g_strdup (_tmp0_);
	full_name = _tmp1_;
	_tmp2_ = g_strdup_printf (_ ("Folder “%s” is now empty."), full_name);
	_tmp3_ = _tmp2_;
	base_window_show_notification ((BaseWindow*) self, _tmp3_);
	_g_free0 (_tmp3_);
	_g_free0 (full_name);
}

static void
dconf_window_notify_object_deleted (DConfWindow* self,
                                    GSimpleAction* action,
                                    GVariant* path_variant)
{
	guint16 unused = 0U;
	gchar* full_name = NULL;
	gchar* _tmp0_ = NULL;
	guint16 _tmp1_ = 0U;
	gchar* _tmp2_;
	gchar* _tmp3_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (action != NULL);
	_vala_return_if_fail (path_variant != NULL, "path_variant != null");
	g_variant_get ((GVariant*) path_variant, "(sq)", &_tmp0_, &_tmp1_, NULL);
	_g_free0 (full_name);
	full_name = _tmp0_;
	unused = _tmp1_;
	_tmp2_ = g_strdup_printf (_ ("Key “%s” has been deleted."), full_name);
	_tmp3_ = _tmp2_;
	base_window_show_notification ((BaseWindow*) self, _tmp3_);
	_g_free0 (_tmp3_);
	_g_free0 (full_name);
}

static void
dconf_window_cannot_find_key (DConfWindow* self,
                              const gchar* full_name)
{
	gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (full_name != NULL);
	_tmp0_ = g_strdup_printf (_ ("Cannot find key “%s”."), full_name);
	_tmp1_ = _tmp0_;
	base_window_show_notification ((BaseWindow*) self, _tmp1_);
	_g_free0 (_tmp1_);
}

static void
dconf_window_cannot_find_folder (DConfWindow* self,
                                 const gchar* full_name)
{
	gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (full_name != NULL);
	_tmp0_ = g_strdup_printf (_ ("There’s nothing in requested folder “%s”."), full_name);
	_tmp1_ = _tmp0_;
	base_window_show_notification ((BaseWindow*) self, _tmp1_);
	_g_free0 (_tmp1_);
}

static void
dconf_window_class_init (DConfWindowClass * klass,
                         gpointer klass_data)
{
	dconf_window_parent_class = g_type_class_peek_parent (klass);
	g_type_class_adjust_private_offset (klass, &DConfWindow_private_offset);
	((AdaptativeWindowClass *) klass)->before_destroy = (void (*) (AdaptativeWindow*)) dconf_window_real_before_destroy;
	((BaseWindowClass *) klass)->show_default_view = (void (*) (BaseWindow*)) dconf_window_real_show_default_view;
	((BookmarksWindowClass *) klass)->get_bookmark_icon = (BookmarkIcon (*) (BookmarksWindow*, gchar**)) dconf_window_real_get_bookmark_icon;
	((BaseWindowClass *) klass)->set_window_size = (void (*) (BaseWindow*, AdaptativeWidgetWindowSize)) dconf_window_real_set_window_size;
	((BookmarksWindowClass *) klass)->toggle_bookmark_called = (void (*) (BookmarksWindow*)) dconf_window_real_toggle_bookmark_called;
	((BaseWindowClass *) klass)->escape_pressed = (gboolean (*) (BaseWindow*)) dconf_window_real_escape_pressed;
	((BrowserWindowClass *) klass)->intercept_next_match = (gboolean (*) (BrowserWindow*, gboolean*)) dconf_window_real_intercept_next_match;
	((BrowserWindowClass *) klass)->intercept_previous_match = (gboolean (*) (BrowserWindow*, gboolean*)) dconf_window_real_intercept_previous_match;
	((BrowserWindowClass *) klass)->reconfigure_search = (void (*) (BrowserWindow*, gboolean)) dconf_window_real_reconfigure_search;
	((BaseWindowClass *) klass)->close_in_window_panels = (void (*) (BaseWindow*)) dconf_window_real_close_in_window_panels;
	((BrowserWindowClass *) klass)->request_config = (void (*) (BrowserWindow*, const gchar*)) dconf_window_real_request_config;
	((BrowserWindowClass *) klass)->request_folder = (void (*) (BrowserWindow*, const gchar*, const gchar*, gboolean)) dconf_window_real_request_folder;
	((BrowserWindowClass *) klass)->request_object = (void (*) (BrowserWindow*, const gchar*, guint16, gboolean, const gchar*)) dconf_window_real_request_object;
	((BaseWindowClass *) klass)->handle_copy_text = (gboolean (*) (BaseWindow*, gchar**)) dconf_window_real_handle_copy_text;
	((BaseWindowClass *) klass)->get_alt_copy_text = (gboolean (*) (BaseWindow*, gchar**)) dconf_window_real_get_alt_copy_text;
	G_OBJECT_CLASS (klass)->finalize = dconf_window_finalize;
}

static void
dconf_window_adaptative_widget_interface_init (AdaptativeWidgetIface * iface,
                                               gpointer iface_data)
{
	dconf_window_adaptative_widget_parent_iface = g_type_interface_peek_parent (iface);
	iface->set_window_size = (void (*) (AdaptativeWidget*, AdaptativeWidgetWindowSize)) dconf_window_real_set_window_size;
}

static void
dconf_window_instance_init (DConfWindow * self,
                            gpointer klass)
{
	GSettings* _tmp0_;
	self->priv = dconf_window_get_instance_private (self);
	_tmp0_ = g_settings_new ("ca.desrt.dconf-editor.Settings");
	self->priv->settings = _tmp0_;
	self->priv->use_shortpaths_changed_handler = (gulong) 0;
	self->priv->behaviour_changed_handler = (gulong) 0;
	self->priv->delayed_changes_changed_handler = (gulong) 0;
	self->priv->paths_changed_handler = (gulong) 0;
	self->priv->gkey_value_push_handler = (gulong) 0;
	self->priv->dkey_value_push_handler = (gulong) 0;
	self->priv->settings_user_paths_changed_handler = (gulong) 0;
	self->priv->settings_enabled_mappings_changed_handler = (gulong) 0;
	self->priv->disable_action_bar = FALSE;
}

static void
dconf_window_finalize (GObject * obj)
{
	DConfWindow * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_DCONF_WINDOW, DConfWindow);
	_g_object_unref0 (self->priv->model);
	_g_object_unref0 (self->priv->modifications_handler);
	_g_object_unref0 (self->priv->settings);
	_g_object_unref0 (self->priv->headerbar);
	_g_object_unref0 (self->priv->main_view);
	_g_object_unref0 (self->priv->revealer);
	G_OBJECT_CLASS (dconf_window_parent_class)->finalize (obj);
}

static GType
dconf_window_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (DConfWindowClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) dconf_window_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DConfWindow), 0, (GInstanceInitFunc) dconf_window_instance_init, NULL };
	static const GInterfaceInfo adaptative_widget_info = { (GInterfaceInitFunc) dconf_window_adaptative_widget_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
	GType dconf_window_type_id;
	dconf_window_type_id = g_type_register_static (TYPE_BOOKMARKS_WINDOW, "DConfWindow", &g_define_type_info, 0);
	g_type_add_interface_static (dconf_window_type_id, TYPE_ADAPTATIVE_WIDGET, &adaptative_widget_info);
	DConfWindow_private_offset = g_type_add_instance_private (dconf_window_type_id, sizeof (DConfWindowPrivate));
	return dconf_window_type_id;
}

GType
dconf_window_get_type (void)
{
	static volatile gsize dconf_window_type_id__once = 0;
	if (g_once_init_enter (&dconf_window_type_id__once)) {
		GType dconf_window_type_id;
		dconf_window_type_id = dconf_window_get_type_once ();
		g_once_init_leave (&dconf_window_type_id__once, dconf_window_type_id);
	}
	return dconf_window_type_id__once;
}

static void
_vala_array_destroy (gpointer array,
                     gssize array_length,
                     GDestroyNotify destroy_func)
{
	if ((array != NULL) && (destroy_func != NULL)) {
		gssize i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}

static void
_vala_array_free (gpointer array,
                  gssize array_length,
                  GDestroyNotify destroy_func)
{
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}

static inline gpointer
_vala_memdup2 (gconstpointer mem,
               gsize byte_size)
{
	gpointer new_mem;
	if (mem && byte_size != 0) {
		new_mem = g_malloc (byte_size);
		memcpy (new_mem, mem, byte_size);
	} else {
		new_mem = NULL;
	}
	return new_mem;
}

