/* view-essential.c generated by valac 0.56.17, the Vala compiler
 * generated from view-essential.vala, do not modify */

/*
 * Copyright (C) 2010 Michal Hruby <michal.mhr@gmail.com>
 * Copyright (C) 2010 Alberto Aldegheri <albyrock87+dev@gmail.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Authored by Alberto Aldegheri <albyrock87+dev@gmail.com>
 *
 */

#include <gtk/gtk.h>
#include <glib-object.h>
#include <glib.h>
#include <synapse-core.h>
#include <gee.h>
#include <gdk/gdk.h>
#include <cairo-gobject.h>
#include <stdlib.h>
#include <string.h>
#include <pango/pango.h>
#include <float.h>
#include <math.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif
#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif

#define SYNAPSE_GUI_TYPE_IVIEW (synapse_gui_iview_get_type ())
#define SYNAPSE_GUI_IVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_TYPE_IVIEW, SynapseGuiIView))
#define SYNAPSE_GUI_IS_IVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_TYPE_IVIEW))
#define SYNAPSE_GUI_IVIEW_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SYNAPSE_GUI_TYPE_IVIEW, SynapseGuiIViewIface))

typedef struct _SynapseGuiIView SynapseGuiIView;
typedef struct _SynapseGuiIViewIface SynapseGuiIViewIface;

#define SYNAPSE_GUI_TYPE_ENTRY (synapse_gui_entry_get_type ())
#define SYNAPSE_GUI_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_TYPE_ENTRY, SynapseGuiEntry))
#define SYNAPSE_GUI_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_GUI_TYPE_ENTRY, SynapseGuiEntryClass))
#define SYNAPSE_GUI_IS_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_TYPE_ENTRY))
#define SYNAPSE_GUI_IS_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_GUI_TYPE_ENTRY))
#define SYNAPSE_GUI_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_GUI_TYPE_ENTRY, SynapseGuiEntryClass))

typedef struct _SynapseGuiEntry SynapseGuiEntry;
typedef struct _SynapseGuiEntryClass SynapseGuiEntryClass;

#define SYNAPSE_GUI_TYPE_MODEL (synapse_gui_model_get_type ())
#define SYNAPSE_GUI_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_TYPE_MODEL, SynapseGuiModel))
#define SYNAPSE_GUI_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_GUI_TYPE_MODEL, SynapseGuiModelClass))
#define SYNAPSE_GUI_IS_MODEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_TYPE_MODEL))
#define SYNAPSE_GUI_IS_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_GUI_TYPE_MODEL))
#define SYNAPSE_GUI_MODEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_GUI_TYPE_MODEL, SynapseGuiModelClass))

typedef struct _SynapseGuiModel SynapseGuiModel;
typedef struct _SynapseGuiModelClass SynapseGuiModelClass;

#define SYNAPSE_GUI_TYPE_ICONTROLLER (synapse_gui_icontroller_get_type ())
#define SYNAPSE_GUI_ICONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_TYPE_ICONTROLLER, SynapseGuiIController))
#define SYNAPSE_GUI_IS_ICONTROLLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_TYPE_ICONTROLLER))
#define SYNAPSE_GUI_ICONTROLLER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), SYNAPSE_GUI_TYPE_ICONTROLLER, SynapseGuiIControllerIface))

typedef struct _SynapseGuiIController SynapseGuiIController;
typedef struct _SynapseGuiIControllerIface SynapseGuiIControllerIface;

#define SYNAPSE_GUI_TYPE_KEY_COMBO_CONFIG (synapse_gui_key_combo_config_get_type ())
#define SYNAPSE_GUI_KEY_COMBO_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_TYPE_KEY_COMBO_CONFIG, SynapseGuiKeyComboConfig))
#define SYNAPSE_GUI_KEY_COMBO_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_GUI_TYPE_KEY_COMBO_CONFIG, SynapseGuiKeyComboConfigClass))
#define SYNAPSE_GUI_IS_KEY_COMBO_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_TYPE_KEY_COMBO_CONFIG))
#define SYNAPSE_GUI_IS_KEY_COMBO_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_GUI_TYPE_KEY_COMBO_CONFIG))
#define SYNAPSE_GUI_KEY_COMBO_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_GUI_TYPE_KEY_COMBO_CONFIG, SynapseGuiKeyComboConfigClass))

typedef struct _SynapseGuiKeyComboConfig SynapseGuiKeyComboConfig;
typedef struct _SynapseGuiKeyComboConfigClass SynapseGuiKeyComboConfigClass;

#define SYNAPSE_GUI_TYPE_CATEGORY_CONFIG (synapse_gui_category_config_get_type ())
#define SYNAPSE_GUI_CATEGORY_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_TYPE_CATEGORY_CONFIG, SynapseGuiCategoryConfig))
#define SYNAPSE_GUI_CATEGORY_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_GUI_TYPE_CATEGORY_CONFIG, SynapseGuiCategoryConfigClass))
#define SYNAPSE_GUI_IS_CATEGORY_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_TYPE_CATEGORY_CONFIG))
#define SYNAPSE_GUI_IS_CATEGORY_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_GUI_TYPE_CATEGORY_CONFIG))
#define SYNAPSE_GUI_CATEGORY_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_GUI_TYPE_CATEGORY_CONFIG, SynapseGuiCategoryConfigClass))

typedef struct _SynapseGuiCategoryConfig SynapseGuiCategoryConfig;
typedef struct _SynapseGuiCategoryConfigClass SynapseGuiCategoryConfigClass;

#define SYNAPSE_GUI_TYPE_VIEW (synapse_gui_view_get_type ())
#define SYNAPSE_GUI_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_TYPE_VIEW, SynapseGuiView))
#define SYNAPSE_GUI_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_GUI_TYPE_VIEW, SynapseGuiViewClass))
#define SYNAPSE_GUI_IS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_TYPE_VIEW))
#define SYNAPSE_GUI_IS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_GUI_TYPE_VIEW))
#define SYNAPSE_GUI_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_GUI_TYPE_VIEW, SynapseGuiViewClass))

typedef struct _SynapseGuiView SynapseGuiView;
typedef struct _SynapseGuiViewClass SynapseGuiViewClass;
typedef struct _SynapseGuiViewPrivate SynapseGuiViewPrivate;

#define SYNAPSE_GUI_UTILS_TYPE_COLOR_HELPER (synapse_gui_utils_color_helper_get_type ())
#define SYNAPSE_GUI_UTILS_COLOR_HELPER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_UTILS_TYPE_COLOR_HELPER, SynapseGuiUtilsColorHelper))
#define SYNAPSE_GUI_UTILS_COLOR_HELPER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_GUI_UTILS_TYPE_COLOR_HELPER, SynapseGuiUtilsColorHelperClass))
#define SYNAPSE_GUI_UTILS_IS_COLOR_HELPER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_UTILS_TYPE_COLOR_HELPER))
#define SYNAPSE_GUI_UTILS_IS_COLOR_HELPER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_GUI_UTILS_TYPE_COLOR_HELPER))
#define SYNAPSE_GUI_UTILS_COLOR_HELPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_GUI_UTILS_TYPE_COLOR_HELPER, SynapseGuiUtilsColorHelperClass))

typedef struct _SynapseGuiUtilsColorHelper SynapseGuiUtilsColorHelper;
typedef struct _SynapseGuiUtilsColorHelperClass SynapseGuiUtilsColorHelperClass;

#define SYNAPSE_GUI_TYPE_HTEXT_SELECTOR (synapse_gui_htext_selector_get_type ())
#define SYNAPSE_GUI_HTEXT_SELECTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_TYPE_HTEXT_SELECTOR, SynapseGuiHTextSelector))
#define SYNAPSE_GUI_HTEXT_SELECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_GUI_TYPE_HTEXT_SELECTOR, SynapseGuiHTextSelectorClass))
#define SYNAPSE_GUI_IS_HTEXT_SELECTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_TYPE_HTEXT_SELECTOR))
#define SYNAPSE_GUI_IS_HTEXT_SELECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_GUI_TYPE_HTEXT_SELECTOR))
#define SYNAPSE_GUI_HTEXT_SELECTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_GUI_TYPE_HTEXT_SELECTOR, SynapseGuiHTextSelectorClass))

typedef struct _SynapseGuiHTextSelector SynapseGuiHTextSelector;
typedef struct _SynapseGuiHTextSelectorClass SynapseGuiHTextSelectorClass;

#define SYNAPSE_GUI_TYPE_FAKE_BUTTON (synapse_gui_fake_button_get_type ())
#define SYNAPSE_GUI_FAKE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_TYPE_FAKE_BUTTON, SynapseGuiFakeButton))
#define SYNAPSE_GUI_FAKE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_GUI_TYPE_FAKE_BUTTON, SynapseGuiFakeButtonClass))
#define SYNAPSE_GUI_IS_FAKE_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_TYPE_FAKE_BUTTON))
#define SYNAPSE_GUI_IS_FAKE_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_GUI_TYPE_FAKE_BUTTON))
#define SYNAPSE_GUI_FAKE_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_GUI_TYPE_FAKE_BUTTON, SynapseGuiFakeButtonClass))

typedef struct _SynapseGuiFakeButton SynapseGuiFakeButton;
typedef struct _SynapseGuiFakeButtonClass SynapseGuiFakeButtonClass;

#define SYNAPSE_GUI_TYPE_MENU_BUTTON (synapse_gui_menu_button_get_type ())
#define SYNAPSE_GUI_MENU_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_TYPE_MENU_BUTTON, SynapseGuiMenuButton))
#define SYNAPSE_GUI_MENU_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_GUI_TYPE_MENU_BUTTON, SynapseGuiMenuButtonClass))
#define SYNAPSE_GUI_IS_MENU_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_TYPE_MENU_BUTTON))
#define SYNAPSE_GUI_IS_MENU_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_GUI_TYPE_MENU_BUTTON))
#define SYNAPSE_GUI_MENU_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_GUI_TYPE_MENU_BUTTON, SynapseGuiMenuButtonClass))

typedef struct _SynapseGuiMenuButton SynapseGuiMenuButton;
typedef struct _SynapseGuiMenuButtonClass SynapseGuiMenuButtonClass;

#define SYNAPSE_GUI_TYPE_VIEW_ESSENTIAL (synapse_gui_view_essential_get_type ())
#define SYNAPSE_GUI_VIEW_ESSENTIAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_TYPE_VIEW_ESSENTIAL, SynapseGuiViewEssential))
#define SYNAPSE_GUI_VIEW_ESSENTIAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_GUI_TYPE_VIEW_ESSENTIAL, SynapseGuiViewEssentialClass))
#define SYNAPSE_GUI_IS_VIEW_ESSENTIAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_TYPE_VIEW_ESSENTIAL))
#define SYNAPSE_GUI_IS_VIEW_ESSENTIAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_GUI_TYPE_VIEW_ESSENTIAL))
#define SYNAPSE_GUI_VIEW_ESSENTIAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_GUI_TYPE_VIEW_ESSENTIAL, SynapseGuiViewEssentialClass))

typedef struct _SynapseGuiViewEssential SynapseGuiViewEssential;
typedef struct _SynapseGuiViewEssentialClass SynapseGuiViewEssentialClass;
typedef struct _SynapseGuiViewEssentialPrivate SynapseGuiViewEssentialPrivate;

#define SYNAPSE_GUI_TYPE_NAMED_ICON (synapse_gui_named_icon_get_type ())
#define SYNAPSE_GUI_NAMED_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_TYPE_NAMED_ICON, SynapseGuiNamedIcon))
#define SYNAPSE_GUI_NAMED_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_GUI_TYPE_NAMED_ICON, SynapseGuiNamedIconClass))
#define SYNAPSE_GUI_IS_NAMED_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_TYPE_NAMED_ICON))
#define SYNAPSE_GUI_IS_NAMED_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_GUI_TYPE_NAMED_ICON))
#define SYNAPSE_GUI_NAMED_ICON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_GUI_TYPE_NAMED_ICON, SynapseGuiNamedIconClass))

typedef struct _SynapseGuiNamedIcon SynapseGuiNamedIcon;
typedef struct _SynapseGuiNamedIconClass SynapseGuiNamedIconClass;

#define SYNAPSE_GUI_TYPE_SMART_LABEL (synapse_gui_smart_label_get_type ())
#define SYNAPSE_GUI_SMART_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_TYPE_SMART_LABEL, SynapseGuiSmartLabel))
#define SYNAPSE_GUI_SMART_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_GUI_TYPE_SMART_LABEL, SynapseGuiSmartLabelClass))
#define SYNAPSE_GUI_IS_SMART_LABEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_TYPE_SMART_LABEL))
#define SYNAPSE_GUI_IS_SMART_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_GUI_TYPE_SMART_LABEL))
#define SYNAPSE_GUI_SMART_LABEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_GUI_TYPE_SMART_LABEL, SynapseGuiSmartLabelClass))

typedef struct _SynapseGuiSmartLabel SynapseGuiSmartLabel;
typedef struct _SynapseGuiSmartLabelClass SynapseGuiSmartLabelClass;

#define SYNAPSE_GUI_TYPE_SCHEMA_CONTAINER (synapse_gui_schema_container_get_type ())
#define SYNAPSE_GUI_SCHEMA_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_TYPE_SCHEMA_CONTAINER, SynapseGuiSchemaContainer))
#define SYNAPSE_GUI_SCHEMA_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_GUI_TYPE_SCHEMA_CONTAINER, SynapseGuiSchemaContainerClass))
#define SYNAPSE_GUI_IS_SCHEMA_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_TYPE_SCHEMA_CONTAINER))
#define SYNAPSE_GUI_IS_SCHEMA_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_GUI_TYPE_SCHEMA_CONTAINER))
#define SYNAPSE_GUI_SCHEMA_CONTAINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_GUI_TYPE_SCHEMA_CONTAINER, SynapseGuiSchemaContainerClass))

typedef struct _SynapseGuiSchemaContainer SynapseGuiSchemaContainer;
typedef struct _SynapseGuiSchemaContainerClass SynapseGuiSchemaContainerClass;

#define SYNAPSE_GUI_TYPE_SELECTION_CONTAINER (synapse_gui_selection_container_get_type ())
#define SYNAPSE_GUI_SELECTION_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_TYPE_SELECTION_CONTAINER, SynapseGuiSelectionContainer))
#define SYNAPSE_GUI_SELECTION_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_GUI_TYPE_SELECTION_CONTAINER, SynapseGuiSelectionContainerClass))
#define SYNAPSE_GUI_IS_SELECTION_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_TYPE_SELECTION_CONTAINER))
#define SYNAPSE_GUI_IS_SELECTION_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_GUI_TYPE_SELECTION_CONTAINER))
#define SYNAPSE_GUI_SELECTION_CONTAINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_GUI_TYPE_SELECTION_CONTAINER, SynapseGuiSelectionContainerClass))

typedef struct _SynapseGuiSelectionContainer SynapseGuiSelectionContainer;
typedef struct _SynapseGuiSelectionContainerClass SynapseGuiSelectionContainerClass;

#define SYNAPSE_GUI_TYPE_RESULT_BOX (synapse_gui_result_box_get_type ())
#define SYNAPSE_GUI_RESULT_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_TYPE_RESULT_BOX, SynapseGuiResultBox))
#define SYNAPSE_GUI_RESULT_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_GUI_TYPE_RESULT_BOX, SynapseGuiResultBoxClass))
#define SYNAPSE_GUI_IS_RESULT_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_TYPE_RESULT_BOX))
#define SYNAPSE_GUI_IS_RESULT_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_GUI_TYPE_RESULT_BOX))
#define SYNAPSE_GUI_RESULT_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_GUI_TYPE_RESULT_BOX, SynapseGuiResultBoxClass))

typedef struct _SynapseGuiResultBox SynapseGuiResultBox;
typedef struct _SynapseGuiResultBoxClass SynapseGuiResultBoxClass;

#define SYNAPSE_GUI_TYPE_MENU_THROBBER (synapse_gui_menu_throbber_get_type ())
#define SYNAPSE_GUI_MENU_THROBBER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_TYPE_MENU_THROBBER, SynapseGuiMenuThrobber))
#define SYNAPSE_GUI_MENU_THROBBER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_GUI_TYPE_MENU_THROBBER, SynapseGuiMenuThrobberClass))
#define SYNAPSE_GUI_IS_MENU_THROBBER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_TYPE_MENU_THROBBER))
#define SYNAPSE_GUI_IS_MENU_THROBBER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_GUI_TYPE_MENU_THROBBER))
#define SYNAPSE_GUI_MENU_THROBBER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_GUI_TYPE_MENU_THROBBER, SynapseGuiMenuThrobberClass))

typedef struct _SynapseGuiMenuThrobber SynapseGuiMenuThrobber;
typedef struct _SynapseGuiMenuThrobberClass SynapseGuiMenuThrobberClass;
enum  {
	SYNAPSE_GUI_VIEW_ESSENTIAL_0_PROPERTY,
	SYNAPSE_GUI_VIEW_ESSENTIAL_NUM_PROPERTIES
};
static GParamSpec* synapse_gui_view_essential_properties[SYNAPSE_GUI_VIEW_ESSENTIAL_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef enum  {
	SYNAPSE_GUI_SMART_LABEL_SIZE_XX_SMALL,
	SYNAPSE_GUI_SMART_LABEL_SIZE_X_SMALL,
	SYNAPSE_GUI_SMART_LABEL_SIZE_SMALL,
	SYNAPSE_GUI_SMART_LABEL_SIZE_MEDIUM,
	SYNAPSE_GUI_SMART_LABEL_SIZE_LARGE,
	SYNAPSE_GUI_SMART_LABEL_SIZE_X_LARGE,
	SYNAPSE_GUI_SMART_LABEL_SIZE_XX_LARGE
} SynapseGuiSmartLabelSize;

#define SYNAPSE_GUI_SMART_LABEL_TYPE_SIZE (synapse_gui_smart_label_size_get_type ())

#define SYNAPSE_GUI_SCHEMA_CONTAINER_TYPE_SCHEMA (synapse_gui_schema_container_schema_get_type ())
#define SYNAPSE_GUI_SCHEMA_CONTAINER_SCHEMA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_SCHEMA_CONTAINER_TYPE_SCHEMA, SynapseGuiSchemaContainerSchema))
#define SYNAPSE_GUI_SCHEMA_CONTAINER_SCHEMA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_GUI_SCHEMA_CONTAINER_TYPE_SCHEMA, SynapseGuiSchemaContainerSchemaClass))
#define SYNAPSE_GUI_SCHEMA_CONTAINER_IS_SCHEMA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_SCHEMA_CONTAINER_TYPE_SCHEMA))
#define SYNAPSE_GUI_SCHEMA_CONTAINER_IS_SCHEMA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_GUI_SCHEMA_CONTAINER_TYPE_SCHEMA))
#define SYNAPSE_GUI_SCHEMA_CONTAINER_SCHEMA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_GUI_SCHEMA_CONTAINER_TYPE_SCHEMA, SynapseGuiSchemaContainerSchemaClass))

typedef struct _SynapseGuiSchemaContainerSchema SynapseGuiSchemaContainerSchema;
typedef struct _SynapseGuiSchemaContainerSchemaClass SynapseGuiSchemaContainerSchemaClass;

#define SYNAPSE_GUI_TYPE_FAKE_INPUT (synapse_gui_fake_input_get_type ())
#define SYNAPSE_GUI_FAKE_INPUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_TYPE_FAKE_INPUT, SynapseGuiFakeInput))
#define SYNAPSE_GUI_FAKE_INPUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_GUI_TYPE_FAKE_INPUT, SynapseGuiFakeInputClass))
#define SYNAPSE_GUI_IS_FAKE_INPUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_TYPE_FAKE_INPUT))
#define SYNAPSE_GUI_IS_FAKE_INPUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_GUI_TYPE_FAKE_INPUT))
#define SYNAPSE_GUI_FAKE_INPUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_GUI_TYPE_FAKE_INPUT, SynapseGuiFakeInputClass))

typedef struct _SynapseGuiFakeInput SynapseGuiFakeInput;
typedef struct _SynapseGuiFakeInputClass SynapseGuiFakeInputClass;

#define SYNAPSE_GUI_TYPE_SENSITIVE_WIDGET (synapse_gui_sensitive_widget_get_type ())
#define SYNAPSE_GUI_SENSITIVE_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SYNAPSE_GUI_TYPE_SENSITIVE_WIDGET, SynapseGuiSensitiveWidget))
#define SYNAPSE_GUI_SENSITIVE_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SYNAPSE_GUI_TYPE_SENSITIVE_WIDGET, SynapseGuiSensitiveWidgetClass))
#define SYNAPSE_GUI_IS_SENSITIVE_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SYNAPSE_GUI_TYPE_SENSITIVE_WIDGET))
#define SYNAPSE_GUI_IS_SENSITIVE_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SYNAPSE_GUI_TYPE_SENSITIVE_WIDGET))
#define SYNAPSE_GUI_SENSITIVE_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SYNAPSE_GUI_TYPE_SENSITIVE_WIDGET, SynapseGuiSensitiveWidgetClass))

typedef struct _SynapseGuiSensitiveWidget SynapseGuiSensitiveWidget;
typedef struct _SynapseGuiSensitiveWidgetClass SynapseGuiSensitiveWidgetClass;
typedef struct _SynapseGuiModelPrivate SynapseGuiModelPrivate;
typedef enum  {
	SYNAPSE_GUI_SEARCHING_FOR_SOURCES,
	SYNAPSE_GUI_SEARCHING_FOR_ACTIONS,
	SYNAPSE_GUI_SEARCHING_FOR_TARGETS,
	SYNAPSE_GUI_SEARCHING_FOR_COUNT
} SynapseGuiSearchingFor;

#define SYNAPSE_GUI_TYPE_SEARCHING_FOR (synapse_gui_searching_for_get_type ())
typedef enum  {
	SYNAPSE_GUI_STYLE_TYPE_BG,
	SYNAPSE_GUI_STYLE_TYPE_FG,
	SYNAPSE_GUI_STYLE_TYPE_BASE,
	SYNAPSE_GUI_STYLE_TYPE_TEXT
} SynapseGuiStyleType;

#define SYNAPSE_GUI_TYPE_STYLE_TYPE (synapse_gui_style_type_get_type ())
typedef enum  {
	SYNAPSE_GUI_MOD_NORMAL,
	SYNAPSE_GUI_MOD_LIGHTER,
	SYNAPSE_GUI_MOD_LIGHTEST,
	SYNAPSE_GUI_MOD_DARKER,
	SYNAPSE_GUI_MOD_DARKEST,
	SYNAPSE_GUI_MOD_INVERTED
} SynapseGuiMod;

#define SYNAPSE_GUI_TYPE_MOD (synapse_gui_mod_get_type ())
#define _cairo_pattern_destroy0(var) ((var == NULL) ? NULL : (var = (cairo_pattern_destroy (var), NULL)))
#define _synapse_gui_entry_unref0(var) ((var == NULL) ? NULL : (var = (synapse_gui_entry_unref (var), NULL)))

struct _SynapseGuiIControllerIface {
	GTypeInterface parent_iface;
	void (*key_press_event) (SynapseGuiIController* self, GdkEventKey* event);
	void (*category_changed_event) (SynapseGuiIController* self, gint category_index);
	void (*fire_focus_context_switch_event) (SynapseGuiIController* self);
	void (*fire_focus) (SynapseGuiIController* self);
	void (*selected_index_changed_event) (SynapseGuiIController* self, gint focus_index);
	void (*set_view) (SynapseGuiIController* self, GType view_type);
	void (*summon_or_vanish) (SynapseGuiIController* self);
	gboolean (*is_in_initial_state) (SynapseGuiIController* self);
	gboolean (*searched_for_recent) (SynapseGuiIController* self);
	SynapseDataSink* (*get_data_sink) (SynapseGuiIController* self);
	void (*set_data_sink) (SynapseGuiIController* self, SynapseDataSink* value);
	SynapseGuiKeyComboConfig* (*get_key_combo_config) (SynapseGuiIController* self);
	void (*set_key_combo_config) (SynapseGuiIController* self, SynapseGuiKeyComboConfig* value);
	SynapseGuiCategoryConfig* (*get_category_config) (SynapseGuiIController* self);
	void (*set_category_config) (SynapseGuiIController* self, SynapseGuiCategoryConfig* value);
};

struct _SynapseGuiIViewIface {
	GTypeInterface parent_iface;
	void (*summon) (SynapseGuiIView* self);
	void (*vanish) (SynapseGuiIView* self);
	void (*summon_or_vanish) (SynapseGuiIView* self);
	void (*update_focused_source) (SynapseGuiIView* self, SynapseGuiEntry* m);
	void (*update_focused_action) (SynapseGuiIView* self, SynapseGuiEntry* m);
	void (*update_focused_target) (SynapseGuiIView* self, SynapseGuiEntry* m);
	void (*update_sources) (SynapseGuiIView* self, GeeList* list);
	void (*update_actions) (SynapseGuiIView* self, GeeList* list);
	void (*update_targets) (SynapseGuiIView* self, GeeList* list);
	void (*update_selected_category) (SynapseGuiIView* self);
	void (*update_searching_for) (SynapseGuiIView* self);
	gboolean (*is_list_visible) (SynapseGuiIView* self);
	void (*set_list_visible) (SynapseGuiIView* self, gboolean visible);
	void (*set_throbber_visible) (SynapseGuiIView* self, gboolean visible);
	SynapseGuiModel* (*get_controller_model) (SynapseGuiIView* self);
	void (*set_controller_model) (SynapseGuiIView* self, SynapseGuiModel* value);
	SynapseGuiIController* (*get_controller) (SynapseGuiIView* self);
	void (*set_controller) (SynapseGuiIView* self, SynapseGuiIController* value);
};

struct _SynapseGuiView {
	GtkWindow parent_instance;
	SynapseGuiViewPrivate * priv;
	gboolean is_kwin;
	SynapseGuiUtilsColorHelper* ch;
	SynapseGuiHTextSelector* flag_selector;
	SynapseGuiMenuButton* menu;
	GtkLabel* spacer;
	gint BORDER_RADIUS;
	gint SHADOW_SIZE;
	GtkStateFlags bg_state;
	gboolean cache_enabled;
	GeeMap* bg_cache;
	SynapseGuiModel* model;
};

struct _SynapseGuiViewClass {
	GtkWindowClass parent_class;
	void (*build_ui) (SynapseGuiView* self);
	void (*paint_background) (SynapseGuiView* self, cairo_t* ctx);
	void (*summon) (SynapseGuiView* self);
	void (*vanish) (SynapseGuiView* self);
	void (*summon_or_vanish) (SynapseGuiView* self);
	void (*update_focused_source) (SynapseGuiView* self, SynapseGuiEntry* m);
	void (*update_focused_action) (SynapseGuiView* self, SynapseGuiEntry* m);
	void (*update_focused_target) (SynapseGuiView* self, SynapseGuiEntry* m);
	void (*update_sources) (SynapseGuiView* self, GeeList* list);
	void (*update_actions) (SynapseGuiView* self, GeeList* list);
	void (*update_targets) (SynapseGuiView* self, GeeList* list);
	void (*update_selected_category) (SynapseGuiView* self);
	void (*update_searching_for) (SynapseGuiView* self);
	gboolean (*is_list_visible) (SynapseGuiView* self);
	void (*set_list_visible) (SynapseGuiView* self, gboolean visible);
	void (*set_throbber_visible) (SynapseGuiView* self, gboolean visible);
};

struct _SynapseGuiViewEssential {
	SynapseGuiView parent_instance;
	SynapseGuiViewEssentialPrivate * priv;
};

struct _SynapseGuiViewEssentialClass {
	SynapseGuiViewClass parent_class;
};

struct _SynapseGuiViewEssentialPrivate {
	SynapseGuiNamedIcon* source_icon;
	SynapseGuiNamedIcon* action_icon;
	SynapseGuiNamedIcon* target_icon;
	SynapseGuiSmartLabel* focus_label;
	SynapseGuiSchemaContainer* icon_container;
	GtkBox* container;
	SynapseGuiSelectionContainer* results_container;
	SynapseGuiResultBox* results_sources;
	SynapseGuiResultBox* results_actions;
	SynapseGuiResultBox* results_targets;
	SynapseGuiMenuThrobber* menuthrobber;
};

struct _SynapseGuiModel {
	GObject parent_instance;
	SynapseGuiModelPrivate * priv;
	gchar** query;
	gint query_length1;
	GeeList** results;
	gint results_length1;
	SynapseGuiEntry** focus;
	gint focus_length1;
	gint selected_category;
	SynapseGuiSearchingFor searching_for;
};

struct _SynapseGuiModelClass {
	GObjectClass parent_class;
};

static gint SynapseGuiViewEssential_private_offset;
static gpointer synapse_gui_view_essential_parent_class = NULL;
VALA_EXTERN gchar* synapse_gui_icontroller_TYPE_TO_SEARCH;

VALA_EXTERN gpointer synapse_gui_entry_ref (gpointer instance);
VALA_EXTERN void synapse_gui_entry_unref (gpointer instance);
VALA_EXTERN GParamSpec* synapse_gui_param_spec_entry (const gchar* name,
                                          const gchar* nick,
                                          const gchar* blurb,
                                          GType object_type,
                                          GParamFlags flags);
VALA_EXTERN void synapse_gui_value_set_entry (GValue* value,
                                  gpointer v_object);
VALA_EXTERN void synapse_gui_value_take_entry (GValue* value,
                                   gpointer v_object);
VALA_EXTERN gpointer synapse_gui_value_get_entry (const GValue* value);
VALA_EXTERN GType synapse_gui_entry_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiEntry, synapse_gui_entry_unref)
VALA_EXTERN GType synapse_gui_model_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiModel, g_object_unref)
VALA_EXTERN GType synapse_gui_key_combo_config_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiKeyComboConfig, g_object_unref)
VALA_EXTERN GType synapse_gui_category_config_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiCategoryConfig, g_object_unref)
VALA_EXTERN GType synapse_gui_icontroller_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiIController, g_object_unref)
VALA_EXTERN GType synapse_gui_iview_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiIView, g_object_unref)
VALA_EXTERN GType synapse_gui_view_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiView, g_object_unref)
VALA_EXTERN gpointer synapse_gui_utils_color_helper_ref (gpointer instance);
VALA_EXTERN void synapse_gui_utils_color_helper_unref (gpointer instance);
VALA_EXTERN GParamSpec* synapse_gui_utils_param_spec_color_helper (const gchar* name,
                                                       const gchar* nick,
                                                       const gchar* blurb,
                                                       GType object_type,
                                                       GParamFlags flags);
VALA_EXTERN void synapse_gui_utils_value_set_color_helper (GValue* value,
                                               gpointer v_object);
VALA_EXTERN void synapse_gui_utils_value_take_color_helper (GValue* value,
                                                gpointer v_object);
VALA_EXTERN gpointer synapse_gui_utils_value_get_color_helper (const GValue* value);
VALA_EXTERN GType synapse_gui_utils_color_helper_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiUtilsColorHelper, synapse_gui_utils_color_helper_unref)
VALA_EXTERN GType synapse_gui_htext_selector_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiHTextSelector, g_object_unref)
VALA_EXTERN GType synapse_gui_fake_button_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiFakeButton, g_object_unref)
VALA_EXTERN GType synapse_gui_menu_button_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiMenuButton, g_object_unref)
VALA_EXTERN GType synapse_gui_view_essential_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiViewEssential, g_object_unref)
VALA_EXTERN GType synapse_gui_named_icon_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiNamedIcon, g_object_unref)
VALA_EXTERN GType synapse_gui_smart_label_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiSmartLabel, g_object_unref)
VALA_EXTERN GType synapse_gui_schema_container_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiSchemaContainer, g_object_unref)
VALA_EXTERN GType synapse_gui_selection_container_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiSelectionContainer, g_object_unref)
VALA_EXTERN GType synapse_gui_result_box_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiResultBox, g_object_unref)
VALA_EXTERN GType synapse_gui_menu_throbber_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiMenuThrobber, g_object_unref)
VALA_EXTERN void synapse_gui_view_build_ui (SynapseGuiView* self);
VALA_EXTERN gboolean synapse_gui_view_is_list_visible (SynapseGuiView* self);
VALA_EXTERN void synapse_gui_view_set_list_visible (SynapseGuiView* self,
                                        gboolean visible);
VALA_EXTERN void synapse_gui_view_set_throbber_visible (SynapseGuiView* self,
                                            gboolean visible);
VALA_EXTERN void synapse_gui_view_update_searching_for (SynapseGuiView* self);
VALA_EXTERN void synapse_gui_view_update_selected_category (SynapseGuiView* self);
VALA_EXTERN void synapse_gui_view_paint_background (SynapseGuiView* self,
                                        cairo_t* ctx);
VALA_EXTERN void synapse_gui_view_update_focused_source (SynapseGuiView* self,
                                             SynapseGuiEntry* m);
VALA_EXTERN void synapse_gui_view_update_focused_action (SynapseGuiView* self,
                                             SynapseGuiEntry* m);
VALA_EXTERN void synapse_gui_view_update_focused_target (SynapseGuiView* self,
                                             SynapseGuiEntry* m);
VALA_EXTERN void synapse_gui_view_update_sources (SynapseGuiView* self,
                                      GeeList* list);
VALA_EXTERN void synapse_gui_view_update_actions (SynapseGuiView* self,
                                      GeeList* list);
VALA_EXTERN void synapse_gui_view_update_targets (SynapseGuiView* self,
                                      GeeList* list);
static void synapse_gui_view_essential_real_style_updated (GtkWidget* base);
static void synapse_gui_view_essential_update_bg_state (SynapseGuiViewEssential* self);
VALA_EXTERN void synapse_gui_schema_container_set_scale_size (SynapseGuiSchemaContainer* self,
                                                  gint value);
VALA_EXTERN GType synapse_gui_smart_label_size_get_type (void) G_GNUC_CONST ;
VALA_EXTERN SynapseGuiSmartLabelSize synapse_gui_smart_label_string_to_size (const gchar* sizename);
VALA_EXTERN void synapse_gui_smart_label_set_size (SynapseGuiSmartLabel* self,
                                       SynapseGuiSmartLabelSize value);
VALA_EXTERN void synapse_gui_smart_label_set_min_size (SynapseGuiSmartLabel* self,
                                           SynapseGuiSmartLabelSize value);
static void synapse_gui_view_essential_real_build_ui (SynapseGuiView* base);
VALA_EXTERN SynapseGuiNamedIcon* synapse_gui_named_icon_new (void);
VALA_EXTERN SynapseGuiNamedIcon* synapse_gui_named_icon_construct (GType object_type);
VALA_EXTERN void synapse_gui_named_icon_set_icon_name (SynapseGuiNamedIcon* self,
                                           const gchar* name,
                                           GtkIconSize size);
VALA_EXTERN void synapse_gui_named_icon_clear (SynapseGuiNamedIcon* self);
VALA_EXTERN SynapseGuiSchemaContainer* synapse_gui_schema_container_new (gint scale_size);
VALA_EXTERN SynapseGuiSchemaContainer* synapse_gui_schema_container_construct (GType object_type,
                                                                   gint scale_size);
VALA_EXTERN void synapse_gui_schema_container_set_fixed_height (SynapseGuiSchemaContainer* self,
                                                    gboolean value);
VALA_EXTERN GType synapse_gui_schema_container_schema_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiSchemaContainerSchema, g_object_unref)
VALA_EXTERN SynapseGuiSchemaContainerSchema* synapse_gui_schema_container_schema_new (void);
VALA_EXTERN SynapseGuiSchemaContainerSchema* synapse_gui_schema_container_schema_construct (GType object_type);
VALA_EXTERN void synapse_gui_schema_container_schema_add_allocation (SynapseGuiSchemaContainerSchema* self,
                                                         GtkAllocation* alloc);
VALA_EXTERN void synapse_gui_schema_container_add_schema (SynapseGuiSchemaContainer* self,
                                              SynapseGuiSchemaContainerSchema* s);
VALA_EXTERN SynapseGuiSmartLabel* synapse_gui_smart_label_new (void);
VALA_EXTERN SynapseGuiSmartLabel* synapse_gui_smart_label_construct (GType object_type);
VALA_EXTERN void synapse_gui_smart_label_set_ellipsize (SynapseGuiSmartLabel* self,
                                            PangoEllipsizeMode mode);
VALA_EXTERN SynapseGuiMenuThrobber* synapse_gui_menu_throbber_new (void);
VALA_EXTERN SynapseGuiMenuThrobber* synapse_gui_menu_throbber_construct (GType object_type);
VALA_EXTERN GType synapse_gui_fake_input_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiFakeInput, g_object_unref)
VALA_EXTERN SynapseGuiFakeInput* synapse_gui_fake_input_new (void);
VALA_EXTERN SynapseGuiFakeInput* synapse_gui_fake_input_construct (GType object_type);
VALA_EXTERN void synapse_gui_fake_input_set_border_radius (SynapseGuiFakeInput* self,
                                               gdouble value);
VALA_EXTERN void synapse_gui_htext_selector_set_selected_markup (SynapseGuiHTextSelector* self,
                                                     const gchar* value);
VALA_EXTERN void synapse_gui_htext_selector_set_unselected_markup (SynapseGuiHTextSelector* self,
                                                       const gchar* value);
VALA_EXTERN GType synapse_gui_sensitive_widget_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SynapseGuiSensitiveWidget, g_object_unref)
VALA_EXTERN SynapseGuiSensitiveWidget* synapse_gui_sensitive_widget_new (GtkWidget* widget);
VALA_EXTERN SynapseGuiSensitiveWidget* synapse_gui_sensitive_widget_construct (GType object_type,
                                                                   GtkWidget* widget);
VALA_EXTERN void synapse_gui_view_make_draggable (SynapseGuiView* self,
                                      GtkEventBox* obj);
VALA_EXTERN void synapse_gui_view_prepare_results_container (SynapseGuiView* self,
                                                 SynapseGuiSelectionContainer** results_container,
                                                 SynapseGuiResultBox** results_sources,
                                                 SynapseGuiResultBox** results_actions,
                                                 SynapseGuiResultBox** results_targets,
                                                 GtkStateFlags state_type,
                                                 gboolean add_to_container);
static gboolean synapse_gui_view_essential_real_is_list_visible (SynapseGuiView* base);
static void synapse_gui_view_essential_real_set_list_visible (SynapseGuiView* base,
                                                       gboolean visible);
static void synapse_gui_view_essential_real_set_throbber_visible (SynapseGuiView* base,
                                                           gboolean visible);
VALA_EXTERN void synapse_gui_menu_throbber_set_active (SynapseGuiMenuThrobber* self,
                                           gboolean value);
static void synapse_gui_view_essential_real_update_searching_for (SynapseGuiView* base);
static void synapse_gui_view_essential_update_labels (SynapseGuiViewEssential* self);
VALA_EXTERN void synapse_gui_selection_container_select_child (SynapseGuiSelectionContainer* self,
                                                   gint i);
VALA_EXTERN GType synapse_gui_searching_for_get_type (void) G_GNUC_CONST ;
static void synapse_gui_view_essential_real_update_selected_category (SynapseGuiView* base);
VALA_EXTERN void synapse_gui_htext_selector_set_selected (SynapseGuiHTextSelector* self,
                                              gint value);
static void synapse_gui_view_essential_real_paint_background (SynapseGuiView* base,
                                                       cairo_t* ctx);
VALA_EXTERN void synapse_gui_utils_cairo_make_shadow_for_rect (cairo_t* ctx,
                                                   gdouble x1,
                                                   gdouble y1,
                                                   gdouble w,
                                                   gdouble h,
                                                   gdouble rad,
                                                   gdouble r,
                                                   gdouble g,
                                                   gdouble b,
                                                   gdouble size);
VALA_EXTERN GType synapse_gui_style_type_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GType synapse_gui_mod_get_type (void) G_GNUC_CONST ;
VALA_EXTERN void synapse_gui_utils_color_helper_set_source_rgba (SynapseGuiUtilsColorHelper* self,
                                                     cairo_t* ctx,
                                                     gdouble alpha,
                                                     SynapseGuiStyleType t,
                                                     GtkStateFlags st,
                                                     SynapseGuiMod mod);
VALA_EXTERN void synapse_gui_utils_color_helper_get_color_colorized (SynapseGuiUtilsColorHelper* self,
                                                         gdouble* red,
                                                         gdouble* green,
                                                         gdouble* blue,
                                                         SynapseGuiStyleType t,
                                                         GtkStateFlags st,
                                                         SynapseGuiMod mod);
VALA_EXTERN void synapse_gui_utils_color_helper_add_color_stop_rgba (SynapseGuiUtilsColorHelper* self,
                                                         cairo_pattern_t* pat,
                                                         gdouble val,
                                                         gdouble alpha,
                                                         SynapseGuiStyleType t,
                                                         GtkStateFlags st,
                                                         SynapseGuiMod mod);
VALA_EXTERN void synapse_gui_utils_cairo_rounded_rect (cairo_t* ctx,
                                           gdouble x,
                                           gdouble y,
                                           gdouble w,
                                           gdouble h,
                                           gdouble r);
VALA_EXTERN SynapseGuiEntry* synapse_gui_model_get_actual_focus (SynapseGuiModel* self);
VALA_EXTERN gconstpointer synapse_gui_entry_get_value (SynapseGuiEntry* self);
VALA_EXTERN SynapseGuiIController* synapse_gui_iview_get_controller (SynapseGuiIView* self);
VALA_EXTERN gboolean synapse_gui_icontroller_is_in_initial_state (SynapseGuiIController* self);
VALA_EXTERN void synapse_gui_smart_label_set_text (SynapseGuiSmartLabel* self,
                                       const gchar* s);
VALA_EXTERN gboolean synapse_gui_icontroller_searched_for_recent (SynapseGuiIController* self);
VALA_EXTERN void synapse_gui_smart_label_set_markup (SynapseGuiSmartLabel* self,
                                         const gchar* m);
VALA_EXTERN gchar* synapse_gui_utils_markup_string_with_search (const gchar* text,
                                                    const gchar* pattern,
                                                    const gchar* size,
                                                    gboolean show_not_found);
VALA_EXTERN gboolean synapse_gui_model_needs_target (SynapseGuiModel* self);
VALA_EXTERN void synapse_gui_schema_container_select_schema (SynapseGuiSchemaContainer* self,
                                                 gint i);
VALA_EXTERN void synapse_gui_schema_container_set_render_order (SynapseGuiSchemaContainer* self,
                                                    gint* order,
                                                    gint order_length1);
static void synapse_gui_view_essential_real_update_focused_source (SynapseGuiView* base,
                                                            SynapseGuiEntry* m);
VALA_EXTERN void synapse_gui_result_box_move_selection_to_index (SynapseGuiResultBox* self,
                                                     gint i);
VALA_EXTERN gconstpointer synapse_gui_entry_get_key (SynapseGuiEntry* self);
static void synapse_gui_view_essential_real_update_focused_action (SynapseGuiView* base,
                                                            SynapseGuiEntry* m);
static void synapse_gui_view_essential_real_update_focused_target (SynapseGuiView* base,
                                                            SynapseGuiEntry* m);
static void synapse_gui_view_essential_real_update_sources (SynapseGuiView* base,
                                                     GeeList* list);
VALA_EXTERN void synapse_gui_result_box_update_matches (SynapseGuiResultBox* self,
                                            GeeList* rs);
static void synapse_gui_view_essential_real_update_actions (SynapseGuiView* base,
                                                     GeeList* list);
static void synapse_gui_view_essential_real_update_targets (SynapseGuiView* base,
                                                     GeeList* list);
VALA_EXTERN SynapseGuiViewEssential* synapse_gui_view_essential_new (void);
VALA_EXTERN SynapseGuiViewEssential* synapse_gui_view_essential_construct (GType object_type);
VALA_EXTERN SynapseGuiView* synapse_gui_view_new (void);
VALA_EXTERN SynapseGuiView* synapse_gui_view_construct (GType object_type);
static GObject * synapse_gui_view_essential_constructor (GType type,
                                                  guint n_construct_properties,
                                                  GObjectConstructParam * construct_properties);
static void synapse_gui_view_essential_finalize (GObject * obj);
static GType synapse_gui_view_essential_get_type_once (void);

static inline gpointer
synapse_gui_view_essential_get_instance_private (SynapseGuiViewEssential* self)
{
	return G_STRUCT_MEMBER_P (self, SynapseGuiViewEssential_private_offset);
}

static void
synapse_gui_view_essential_real_style_updated (GtkWidget* base)
{
	SynapseGuiViewEssential * self;
	gint width = 0;
	gint icon_size = 0;
	gchar* tmax = NULL;
	gchar* tmin = NULL;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	SynapseGuiSchemaContainer* _tmp4_;
	GtkBox* _tmp5_;
	GtkLabel* _tmp6_;
	SynapseGuiSmartLabel* _tmp7_;
	SynapseGuiSmartLabel* _tmp8_;
#line 30 "view-essential.vala"
	self = (SynapseGuiViewEssential*) base;
#line 32 "view-essential.vala"
	GTK_WIDGET_CLASS (synapse_gui_view_essential_parent_class)->style_updated ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, SYNAPSE_GUI_TYPE_VIEW, SynapseGuiView));
#line 33 "view-essential.vala"
	synapse_gui_view_essential_update_bg_state (self);
#line 37 "view-essential.vala"
	gtk_widget_style_get ((GtkWidget*) self, "ui-width", &_tmp0_, "icon-size", &_tmp1_, "title-size", &_tmp2_, "title-min-size", &_tmp3_, NULL);
#line 37 "view-essential.vala"
	width = _tmp0_;
#line 37 "view-essential.vala"
	icon_size = _tmp1_;
#line 37 "view-essential.vala"
	_g_free0 (tmax);
#line 37 "view-essential.vala"
	tmax = _tmp2_;
#line 37 "view-essential.vala"
	_g_free0 (tmin);
#line 37 "view-essential.vala"
	tmin = _tmp3_;
#line 40 "view-essential.vala"
	_tmp4_ = self->priv->icon_container;
#line 40 "view-essential.vala"
	synapse_gui_schema_container_set_scale_size (_tmp4_, icon_size);
#line 41 "view-essential.vala"
	_tmp5_ = self->priv->container;
#line 41 "view-essential.vala"
	gtk_widget_set_size_request ((GtkWidget*) _tmp5_, width, -1);
#line 42 "view-essential.vala"
	_tmp6_ = ((SynapseGuiView*) self)->spacer;
#line 42 "view-essential.vala"
	gtk_widget_set_size_request ((GtkWidget*) _tmp6_, 1, ((SynapseGuiView*) self)->SHADOW_SIZE + ((SynapseGuiView*) self)->BORDER_RADIUS);
#line 43 "view-essential.vala"
	_tmp7_ = self->priv->focus_label;
#line 43 "view-essential.vala"
	synapse_gui_smart_label_set_size (_tmp7_, synapse_gui_smart_label_string_to_size (tmax));
#line 44 "view-essential.vala"
	_tmp8_ = self->priv->focus_label;
#line 44 "view-essential.vala"
	synapse_gui_smart_label_set_min_size (_tmp8_, synapse_gui_smart_label_string_to_size (tmin));
#line 30 "view-essential.vala"
	_g_free0 (tmin);
#line 30 "view-essential.vala"
	_g_free0 (tmax);
#line 743 "view-essential.c"
}

static void
synapse_gui_view_essential_update_bg_state (SynapseGuiViewEssential* self)
{
	SynapseGuiHTextSelector* _tmp0_;
	SynapseGuiResultBox* _tmp1_;
	SynapseGuiResultBox* _tmp2_;
	SynapseGuiResultBox* _tmp3_;
	SynapseGuiMenuThrobber* _tmp4_;
#line 47 "view-essential.vala"
	g_return_if_fail (self != NULL);
#line 49 "view-essential.vala"
	_tmp0_ = ((SynapseGuiView*) self)->flag_selector;
#line 49 "view-essential.vala"
	gtk_widget_set_state_flags ((GtkWidget*) _tmp0_, ((SynapseGuiView*) self)->bg_state, FALSE);
#line 50 "view-essential.vala"
	_tmp1_ = self->priv->results_sources;
#line 50 "view-essential.vala"
	gtk_widget_set_state_flags ((GtkWidget*) _tmp1_, ((SynapseGuiView*) self)->bg_state, FALSE);
#line 51 "view-essential.vala"
	_tmp2_ = self->priv->results_actions;
#line 51 "view-essential.vala"
	gtk_widget_set_state_flags ((GtkWidget*) _tmp2_, ((SynapseGuiView*) self)->bg_state, FALSE);
#line 52 "view-essential.vala"
	_tmp3_ = self->priv->results_targets;
#line 52 "view-essential.vala"
	gtk_widget_set_state_flags ((GtkWidget*) _tmp3_, ((SynapseGuiView*) self)->bg_state, FALSE);
#line 53 "view-essential.vala"
	_tmp4_ = self->priv->menuthrobber;
#line 53 "view-essential.vala"
	gtk_widget_set_state_flags ((GtkWidget*) _tmp4_, ((SynapseGuiView*) self)->bg_state, FALSE);
#line 776 "view-essential.c"
}

static gpointer
_g_object_ref0 (gpointer self)
{
#line 126 "view-essential.vala"
	return self ? g_object_ref (self) : NULL;
#line 784 "view-essential.c"
}

static void
synapse_gui_view_essential_real_build_ui (SynapseGuiView* base)
{
	SynapseGuiViewEssential * self;
	GtkBox* _tmp0_;
	SynapseGuiNamedIcon* _tmp1_;
	SynapseGuiNamedIcon* _tmp2_;
	SynapseGuiNamedIcon* _tmp3_;
	SynapseGuiNamedIcon* _tmp4_;
	SynapseGuiNamedIcon* _tmp5_;
	SynapseGuiNamedIcon* _tmp6_;
	SynapseGuiSchemaContainer* _tmp7_;
	SynapseGuiSchemaContainer* _tmp8_;
	SynapseGuiSchemaContainer* _tmp9_;
	SynapseGuiNamedIcon* _tmp10_;
	SynapseGuiSchemaContainer* _tmp11_;
	SynapseGuiNamedIcon* _tmp12_;
	SynapseGuiSchemaContainer* _tmp13_;
	SynapseGuiNamedIcon* _tmp14_;
	SynapseGuiSchemaContainerSchema* schema = NULL;
	SynapseGuiSchemaContainerSchema* _tmp15_;
	SynapseGuiSchemaContainerSchema* _tmp16_;
	GtkAllocation _tmp17_ = {0};
	SynapseGuiSchemaContainerSchema* _tmp18_;
	GtkAllocation _tmp19_ = {0};
	SynapseGuiSchemaContainer* _tmp20_;
	SynapseGuiSchemaContainerSchema* _tmp21_;
	SynapseGuiSchemaContainerSchema* _tmp22_;
	SynapseGuiSchemaContainerSchema* _tmp23_;
	GtkAllocation _tmp24_ = {0};
	SynapseGuiSchemaContainerSchema* _tmp25_;
	GtkAllocation _tmp26_ = {0};
	SynapseGuiSchemaContainerSchema* _tmp27_;
	GtkAllocation _tmp28_ = {0};
	SynapseGuiSchemaContainer* _tmp29_;
	SynapseGuiSchemaContainerSchema* _tmp30_;
	SynapseGuiSchemaContainerSchema* _tmp31_;
	SynapseGuiSchemaContainerSchema* _tmp32_;
	GtkAllocation _tmp33_ = {0};
	SynapseGuiSchemaContainerSchema* _tmp34_;
	GtkAllocation _tmp35_ = {0};
	SynapseGuiSchemaContainer* _tmp36_;
	SynapseGuiSchemaContainerSchema* _tmp37_;
	SynapseGuiSchemaContainerSchema* _tmp38_;
	SynapseGuiSchemaContainerSchema* _tmp39_;
	GtkAllocation _tmp40_ = {0};
	SynapseGuiSchemaContainerSchema* _tmp41_;
	GtkAllocation _tmp42_ = {0};
	SynapseGuiSchemaContainerSchema* _tmp43_;
	GtkAllocation _tmp44_ = {0};
	SynapseGuiSchemaContainer* _tmp45_;
	SynapseGuiSchemaContainerSchema* _tmp46_;
	SynapseGuiSchemaContainerSchema* _tmp47_;
	SynapseGuiSchemaContainerSchema* _tmp48_;
	GtkAllocation _tmp49_ = {0};
	SynapseGuiSchemaContainerSchema* _tmp50_;
	GtkAllocation _tmp51_ = {0};
	SynapseGuiSchemaContainerSchema* _tmp52_;
	GtkAllocation _tmp53_ = {0};
	SynapseGuiSchemaContainer* _tmp54_;
	SynapseGuiSchemaContainerSchema* _tmp55_;
	SynapseGuiSchemaContainer* _tmp56_;
	SynapseGuiSmartLabel* _tmp57_;
	SynapseGuiSmartLabel* _tmp58_;
	SynapseGuiSmartLabel* _tmp59_;
	SynapseGuiSmartLabel* _tmp60_;
	SynapseGuiSmartLabel* _tmp61_;
	GtkBox* categories_hbox = NULL;
	GtkBox* _tmp62_;
	SynapseGuiMenuThrobber* _tmp63_;
	SynapseGuiMenuThrobber* _tmp64_;
	SynapseGuiMenuButton* _tmp65_;
	SynapseGuiMenuThrobber* _tmp66_;
	SynapseGuiHTextSelector* _tmp67_;
	SynapseGuiMenuThrobber* _tmp68_;
	GtkBox* vb = NULL;
	GtkBox* _tmp69_;
	SynapseGuiFakeInput* fi = NULL;
	SynapseGuiFakeInput* _tmp70_;
	SynapseGuiSmartLabel* _tmp71_;
	SynapseGuiHTextSelector* _tmp72_;
	SynapseGuiHTextSelector* _tmp73_;
	GtkBox* hb = NULL;
	GtkBox* _tmp74_;
	SynapseGuiSensitiveWidget* sensitive = NULL;
	SynapseGuiSchemaContainer* _tmp75_;
	SynapseGuiSensitiveWidget* _tmp76_;
	GtkBox* _tmp77_;
	GtkBox* _tmp78_;
	GtkLabel* _tmp79_;
	SynapseGuiSelectionContainer* _tmp80_ = NULL;
	SynapseGuiResultBox* _tmp81_ = NULL;
	SynapseGuiResultBox* _tmp82_ = NULL;
	SynapseGuiResultBox* _tmp83_ = NULL;
	GtkBox* _tmp84_;
	SynapseGuiSelectionContainer* _tmp85_;
	GtkBox* _tmp86_;
	SynapseGuiSelectionContainer* _tmp87_;
	GtkBox* _tmp88_;
	GtkBox* _tmp89_;
#line 74 "view-essential.vala"
	self = (SynapseGuiViewEssential*) base;
#line 76 "view-essential.vala"
	_tmp0_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
#line 76 "view-essential.vala"
	g_object_ref_sink (_tmp0_);
#line 76 "view-essential.vala"
	_g_object_unref0 (self->priv->container);
#line 76 "view-essential.vala"
	self->priv->container = _tmp0_;
#line 78 "view-essential.vala"
	_tmp1_ = synapse_gui_named_icon_new ();
#line 78 "view-essential.vala"
	g_object_ref_sink (_tmp1_);
#line 78 "view-essential.vala"
	_g_object_unref0 (self->priv->source_icon);
#line 78 "view-essential.vala"
	self->priv->source_icon = _tmp1_;
#line 79 "view-essential.vala"
	_tmp2_ = synapse_gui_named_icon_new ();
#line 79 "view-essential.vala"
	g_object_ref_sink (_tmp2_);
#line 79 "view-essential.vala"
	_g_object_unref0 (self->priv->action_icon);
#line 79 "view-essential.vala"
	self->priv->action_icon = _tmp2_;
#line 80 "view-essential.vala"
	_tmp3_ = synapse_gui_named_icon_new ();
#line 80 "view-essential.vala"
	g_object_ref_sink (_tmp3_);
#line 80 "view-essential.vala"
	_g_object_unref0 (self->priv->target_icon);
#line 80 "view-essential.vala"
	self->priv->target_icon = _tmp3_;
#line 81 "view-essential.vala"
	_tmp4_ = self->priv->source_icon;
#line 81 "view-essential.vala"
	synapse_gui_named_icon_set_icon_name (_tmp4_, "search", GTK_ICON_SIZE_DND);
#line 82 "view-essential.vala"
	_tmp5_ = self->priv->action_icon;
#line 82 "view-essential.vala"
	synapse_gui_named_icon_clear (_tmp5_);
#line 83 "view-essential.vala"
	_tmp6_ = self->priv->target_icon;
#line 83 "view-essential.vala"
	synapse_gui_named_icon_set_icon_name (_tmp6_, "", GTK_ICON_SIZE_DND);
#line 85 "view-essential.vala"
	_tmp7_ = synapse_gui_schema_container_new (96);
#line 85 "view-essential.vala"
	g_object_ref_sink (_tmp7_);
#line 85 "view-essential.vala"
	_g_object_unref0 (self->priv->icon_container);
#line 85 "view-essential.vala"
	self->priv->icon_container = _tmp7_;
#line 86 "view-essential.vala"
	_tmp8_ = self->priv->icon_container;
#line 86 "view-essential.vala"
	synapse_gui_schema_container_set_fixed_height (_tmp8_, TRUE);
#line 87 "view-essential.vala"
	_tmp9_ = self->priv->icon_container;
#line 87 "view-essential.vala"
	_tmp10_ = self->priv->source_icon;
#line 87 "view-essential.vala"
	gtk_container_add ((GtkContainer*) _tmp9_, (GtkWidget*) _tmp10_);
#line 88 "view-essential.vala"
	_tmp11_ = self->priv->icon_container;
#line 88 "view-essential.vala"
	_tmp12_ = self->priv->action_icon;
#line 88 "view-essential.vala"
	gtk_container_add ((GtkContainer*) _tmp11_, (GtkWidget*) _tmp12_);
#line 89 "view-essential.vala"
	_tmp13_ = self->priv->icon_container;
#line 89 "view-essential.vala"
	_tmp14_ = self->priv->target_icon;
#line 89 "view-essential.vala"
	gtk_container_add ((GtkContainer*) _tmp13_, (GtkWidget*) _tmp14_);
#line 90 "view-essential.vala"
	_tmp15_ = synapse_gui_schema_container_schema_new ();
#line 90 "view-essential.vala"
	schema = _tmp15_;
#line 91 "view-essential.vala"
	_tmp16_ = schema;
#line 91 "view-essential.vala"
	_tmp17_.x = 30;
#line 91 "view-essential.vala"
	_tmp17_.y = 0;
#line 91 "view-essential.vala"
	_tmp17_.width = 100;
#line 91 "view-essential.vala"
	_tmp17_.height = 100;
#line 91 "view-essential.vala"
	synapse_gui_schema_container_schema_add_allocation (_tmp16_, &_tmp17_);
#line 92 "view-essential.vala"
	_tmp18_ = schema;
#line 92 "view-essential.vala"
	_tmp19_.x = 0;
#line 92 "view-essential.vala"
	_tmp19_.y = 50;
#line 92 "view-essential.vala"
	_tmp19_.width = 50;
#line 92 "view-essential.vala"
	_tmp19_.height = 50;
#line 92 "view-essential.vala"
	synapse_gui_schema_container_schema_add_allocation (_tmp18_, &_tmp19_);
#line 93 "view-essential.vala"
	_tmp20_ = self->priv->icon_container;
#line 93 "view-essential.vala"
	_tmp21_ = schema;
#line 93 "view-essential.vala"
	synapse_gui_schema_container_add_schema (_tmp20_, _tmp21_);
#line 94 "view-essential.vala"
	_tmp22_ = synapse_gui_schema_container_schema_new ();
#line 94 "view-essential.vala"
	_g_object_unref0 (schema);
#line 94 "view-essential.vala"
	schema = _tmp22_;
#line 95 "view-essential.vala"
	_tmp23_ = schema;
#line 95 "view-essential.vala"
	_tmp24_.x = 30;
#line 95 "view-essential.vala"
	_tmp24_.y = 0;
#line 95 "view-essential.vala"
	_tmp24_.width = 100;
#line 95 "view-essential.vala"
	_tmp24_.height = 100;
#line 95 "view-essential.vala"
	synapse_gui_schema_container_schema_add_allocation (_tmp23_, &_tmp24_);
#line 96 "view-essential.vala"
	_tmp25_ = schema;
#line 96 "view-essential.vala"
	_tmp26_.x = 0;
#line 96 "view-essential.vala"
	_tmp26_.y = 50;
#line 96 "view-essential.vala"
	_tmp26_.width = 50;
#line 96 "view-essential.vala"
	_tmp26_.height = 50;
#line 96 "view-essential.vala"
	synapse_gui_schema_container_schema_add_allocation (_tmp25_, &_tmp26_);
#line 97 "view-essential.vala"
	_tmp27_ = schema;
#line 97 "view-essential.vala"
	_tmp28_.x = 0;
#line 97 "view-essential.vala"
	_tmp28_.y = 0;
#line 97 "view-essential.vala"
	_tmp28_.width = 50;
#line 97 "view-essential.vala"
	_tmp28_.height = 50;
#line 97 "view-essential.vala"
	synapse_gui_schema_container_schema_add_allocation (_tmp27_, &_tmp28_);
#line 98 "view-essential.vala"
	_tmp29_ = self->priv->icon_container;
#line 98 "view-essential.vala"
	_tmp30_ = schema;
#line 98 "view-essential.vala"
	synapse_gui_schema_container_add_schema (_tmp29_, _tmp30_);
#line 99 "view-essential.vala"
	_tmp31_ = synapse_gui_schema_container_schema_new ();
#line 99 "view-essential.vala"
	_g_object_unref0 (schema);
#line 99 "view-essential.vala"
	schema = _tmp31_;
#line 100 "view-essential.vala"
	_tmp32_ = schema;
#line 100 "view-essential.vala"
	_tmp33_.x = 0;
#line 100 "view-essential.vala"
	_tmp33_.y = 50;
#line 100 "view-essential.vala"
	_tmp33_.width = 50;
#line 100 "view-essential.vala"
	_tmp33_.height = 50;
#line 100 "view-essential.vala"
	synapse_gui_schema_container_schema_add_allocation (_tmp32_, &_tmp33_);
#line 101 "view-essential.vala"
	_tmp34_ = schema;
#line 101 "view-essential.vala"
	_tmp35_.x = 30;
#line 101 "view-essential.vala"
	_tmp35_.y = 0;
#line 101 "view-essential.vala"
	_tmp35_.width = 100;
#line 101 "view-essential.vala"
	_tmp35_.height = 100;
#line 101 "view-essential.vala"
	synapse_gui_schema_container_schema_add_allocation (_tmp34_, &_tmp35_);
#line 102 "view-essential.vala"
	_tmp36_ = self->priv->icon_container;
#line 102 "view-essential.vala"
	_tmp37_ = schema;
#line 102 "view-essential.vala"
	synapse_gui_schema_container_add_schema (_tmp36_, _tmp37_);
#line 103 "view-essential.vala"
	_tmp38_ = synapse_gui_schema_container_schema_new ();
#line 103 "view-essential.vala"
	_g_object_unref0 (schema);
#line 103 "view-essential.vala"
	schema = _tmp38_;
#line 104 "view-essential.vala"
	_tmp39_ = schema;
#line 104 "view-essential.vala"
	_tmp40_.x = 0;
#line 104 "view-essential.vala"
	_tmp40_.y = 50;
#line 104 "view-essential.vala"
	_tmp40_.width = 50;
#line 104 "view-essential.vala"
	_tmp40_.height = 50;
#line 104 "view-essential.vala"
	synapse_gui_schema_container_schema_add_allocation (_tmp39_, &_tmp40_);
#line 105 "view-essential.vala"
	_tmp41_ = schema;
#line 105 "view-essential.vala"
	_tmp42_.x = 30;
#line 105 "view-essential.vala"
	_tmp42_.y = 0;
#line 105 "view-essential.vala"
	_tmp42_.width = 100;
#line 105 "view-essential.vala"
	_tmp42_.height = 100;
#line 105 "view-essential.vala"
	synapse_gui_schema_container_schema_add_allocation (_tmp41_, &_tmp42_);
#line 106 "view-essential.vala"
	_tmp43_ = schema;
#line 106 "view-essential.vala"
	_tmp44_.x = 0;
#line 106 "view-essential.vala"
	_tmp44_.y = 0;
#line 106 "view-essential.vala"
	_tmp44_.width = 50;
#line 106 "view-essential.vala"
	_tmp44_.height = 50;
#line 106 "view-essential.vala"
	synapse_gui_schema_container_schema_add_allocation (_tmp43_, &_tmp44_);
#line 107 "view-essential.vala"
	_tmp45_ = self->priv->icon_container;
#line 107 "view-essential.vala"
	_tmp46_ = schema;
#line 107 "view-essential.vala"
	synapse_gui_schema_container_add_schema (_tmp45_, _tmp46_);
#line 108 "view-essential.vala"
	_tmp47_ = synapse_gui_schema_container_schema_new ();
#line 108 "view-essential.vala"
	_g_object_unref0 (schema);
#line 108 "view-essential.vala"
	schema = _tmp47_;
#line 109 "view-essential.vala"
	_tmp48_ = schema;
#line 109 "view-essential.vala"
	_tmp49_.x = 0;
#line 109 "view-essential.vala"
	_tmp49_.y = 50;
#line 109 "view-essential.vala"
	_tmp49_.width = 50;
#line 109 "view-essential.vala"
	_tmp49_.height = 50;
#line 109 "view-essential.vala"
	synapse_gui_schema_container_schema_add_allocation (_tmp48_, &_tmp49_);
#line 110 "view-essential.vala"
	_tmp50_ = schema;
#line 110 "view-essential.vala"
	_tmp51_.x = 0;
#line 110 "view-essential.vala"
	_tmp51_.y = 0;
#line 110 "view-essential.vala"
	_tmp51_.width = 50;
#line 110 "view-essential.vala"
	_tmp51_.height = 50;
#line 110 "view-essential.vala"
	synapse_gui_schema_container_schema_add_allocation (_tmp50_, &_tmp51_);
#line 111 "view-essential.vala"
	_tmp52_ = schema;
#line 111 "view-essential.vala"
	_tmp53_.x = 30;
#line 111 "view-essential.vala"
	_tmp53_.y = 0;
#line 111 "view-essential.vala"
	_tmp53_.width = 100;
#line 111 "view-essential.vala"
	_tmp53_.height = 100;
#line 111 "view-essential.vala"
	synapse_gui_schema_container_schema_add_allocation (_tmp52_, &_tmp53_);
#line 112 "view-essential.vala"
	_tmp54_ = self->priv->icon_container;
#line 112 "view-essential.vala"
	_tmp55_ = schema;
#line 112 "view-essential.vala"
	synapse_gui_schema_container_add_schema (_tmp54_, _tmp55_);
#line 114 "view-essential.vala"
	_tmp56_ = self->priv->icon_container;
#line 114 "view-essential.vala"
	gtk_widget_show ((GtkWidget*) _tmp56_);
#line 116 "view-essential.vala"
	_tmp57_ = synapse_gui_smart_label_new ();
#line 116 "view-essential.vala"
	g_object_ref_sink (_tmp57_);
#line 116 "view-essential.vala"
	_g_object_unref0 (self->priv->focus_label);
#line 116 "view-essential.vala"
	self->priv->focus_label = _tmp57_;
#line 117 "view-essential.vala"
	_tmp58_ = self->priv->focus_label;
#line 117 "view-essential.vala"
	synapse_gui_smart_label_set_ellipsize (_tmp58_, PANGO_ELLIPSIZE_END);
#line 118 "view-essential.vala"
	_tmp59_ = self->priv->focus_label;
#line 118 "view-essential.vala"
	synapse_gui_smart_label_set_size (_tmp59_, SYNAPSE_GUI_SMART_LABEL_SIZE_LARGE);
#line 119 "view-essential.vala"
	_tmp60_ = self->priv->focus_label;
#line 119 "view-essential.vala"
	synapse_gui_smart_label_set_min_size (_tmp60_, SYNAPSE_GUI_SMART_LABEL_SIZE_MEDIUM);
#line 120 "view-essential.vala"
	_tmp61_ = self->priv->focus_label;
#line 120 "view-essential.vala"
	g_object_set ((GtkMisc*) _tmp61_, "xpad", 3, NULL);
#line 123 "view-essential.vala"
	_tmp62_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
#line 123 "view-essential.vala"
	g_object_ref_sink (_tmp62_);
#line 123 "view-essential.vala"
	categories_hbox = _tmp62_;
#line 125 "view-essential.vala"
	_tmp63_ = synapse_gui_menu_throbber_new ();
#line 125 "view-essential.vala"
	g_object_ref_sink (_tmp63_);
#line 125 "view-essential.vala"
	_g_object_unref0 (self->priv->menuthrobber);
#line 125 "view-essential.vala"
	self->priv->menuthrobber = _tmp63_;
#line 126 "view-essential.vala"
	_tmp64_ = self->priv->menuthrobber;
#line 126 "view-essential.vala"
	_tmp65_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp64_, SYNAPSE_GUI_TYPE_MENU_BUTTON, SynapseGuiMenuButton));
#line 126 "view-essential.vala"
	_g_object_unref0 (((SynapseGuiView*) self)->menu);
#line 126 "view-essential.vala"
	((SynapseGuiView*) self)->menu = _tmp65_;
#line 127 "view-essential.vala"
	_tmp66_ = self->priv->menuthrobber;
#line 127 "view-essential.vala"
	gtk_widget_set_size_request ((GtkWidget*) _tmp66_, 14, 14);
#line 129 "view-essential.vala"
	_tmp67_ = ((SynapseGuiView*) self)->flag_selector;
#line 129 "view-essential.vala"
	gtk_box_pack_start (categories_hbox, (GtkWidget*) _tmp67_, TRUE, TRUE, (guint) 0);
#line 130 "view-essential.vala"
	_tmp68_ = self->priv->menuthrobber;
#line 130 "view-essential.vala"
	gtk_box_pack_start (categories_hbox, (GtkWidget*) _tmp68_, FALSE, TRUE, (guint) 0);
#line 132 "view-essential.vala"
	_tmp69_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
#line 132 "view-essential.vala"
	g_object_ref_sink (_tmp69_);
#line 132 "view-essential.vala"
	vb = _tmp69_;
#line 134 "view-essential.vala"
	_tmp70_ = synapse_gui_fake_input_new ();
#line 134 "view-essential.vala"
	g_object_ref_sink (_tmp70_);
#line 134 "view-essential.vala"
	fi = _tmp70_;
#line 135 "view-essential.vala"
	synapse_gui_fake_input_set_border_radius (fi, (gdouble) 5);
#line 136 "view-essential.vala"
	gtk_container_set_border_width ((GtkContainer*) fi, (guint) 5);
#line 137 "view-essential.vala"
	_tmp71_ = self->priv->focus_label;
#line 137 "view-essential.vala"
	gtk_container_add ((GtkContainer*) fi, (GtkWidget*) _tmp71_);
#line 138 "view-essential.vala"
	gtk_box_pack_end (vb, (GtkWidget*) fi, FALSE, FALSE, (guint) 2);
#line 139 "view-essential.vala"
	gtk_box_pack_end (vb, (GtkWidget*) categories_hbox, FALSE, TRUE, (guint) 0);
#line 141 "view-essential.vala"
	_tmp72_ = ((SynapseGuiView*) self)->flag_selector;
#line 141 "view-essential.vala"
	synapse_gui_htext_selector_set_selected_markup (_tmp72_, "<span size=\"small\"><b>%s</b></span>");
#line 142 "view-essential.vala"
	_tmp73_ = ((SynapseGuiView*) self)->flag_selector;
#line 142 "view-essential.vala"
	synapse_gui_htext_selector_set_unselected_markup (_tmp73_, "<span size=\"x-small\">%s</span>");
#line 145 "view-essential.vala"
	_tmp74_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
#line 145 "view-essential.vala"
	g_object_ref_sink (_tmp74_);
#line 145 "view-essential.vala"
	hb = _tmp74_;
#line 146 "view-essential.vala"
	_tmp75_ = self->priv->icon_container;
#line 146 "view-essential.vala"
	_tmp76_ = synapse_gui_sensitive_widget_new ((GtkWidget*) _tmp75_);
#line 146 "view-essential.vala"
	g_object_ref_sink (_tmp76_);
#line 146 "view-essential.vala"
	sensitive = _tmp76_;
#line 147 "view-essential.vala"
	synapse_gui_view_make_draggable ((SynapseGuiView*) self, (GtkEventBox*) sensitive);
#line 148 "view-essential.vala"
	gtk_box_pack_start (hb, (GtkWidget*) sensitive, FALSE, TRUE, (guint) 0);
#line 149 "view-essential.vala"
	gtk_box_pack_start (hb, (GtkWidget*) vb, TRUE, TRUE, (guint) 0);
#line 151 "view-essential.vala"
	_tmp77_ = self->priv->container;
#line 151 "view-essential.vala"
	gtk_box_pack_start (_tmp77_, (GtkWidget*) hb, FALSE, TRUE, (guint) 0);
#line 152 "view-essential.vala"
	_tmp78_ = self->priv->container;
#line 152 "view-essential.vala"
	_tmp79_ = ((SynapseGuiView*) self)->spacer;
#line 152 "view-essential.vala"
	gtk_box_pack_start (_tmp78_, (GtkWidget*) _tmp79_, FALSE, TRUE, (guint) 0);
#line 155 "view-essential.vala"
	synapse_gui_view_prepare_results_container ((SynapseGuiView*) self, &_tmp80_, &_tmp81_, &_tmp82_, &_tmp83_, GTK_STATE_FLAG_NORMAL, TRUE);
#line 155 "view-essential.vala"
	_g_object_unref0 (self->priv->results_container);
#line 155 "view-essential.vala"
	self->priv->results_container = _tmp80_;
#line 155 "view-essential.vala"
	_g_object_unref0 (self->priv->results_sources);
#line 155 "view-essential.vala"
	self->priv->results_sources = _tmp81_;
#line 155 "view-essential.vala"
	_g_object_unref0 (self->priv->results_actions);
#line 155 "view-essential.vala"
	self->priv->results_actions = _tmp82_;
#line 155 "view-essential.vala"
	_g_object_unref0 (self->priv->results_targets);
#line 155 "view-essential.vala"
	self->priv->results_targets = _tmp83_;
#line 157 "view-essential.vala"
	_tmp84_ = self->priv->container;
#line 157 "view-essential.vala"
	_tmp85_ = self->priv->results_container;
#line 157 "view-essential.vala"
	gtk_box_pack_start (_tmp84_, (GtkWidget*) _tmp85_, FALSE, TRUE, (guint) 0);
#line 159 "view-essential.vala"
	_tmp86_ = self->priv->container;
#line 159 "view-essential.vala"
	gtk_widget_show_all ((GtkWidget*) _tmp86_);
#line 160 "view-essential.vala"
	_tmp87_ = self->priv->results_container;
#line 160 "view-essential.vala"
	gtk_widget_hide ((GtkWidget*) _tmp87_);
#line 162 "view-essential.vala"
	_tmp88_ = self->priv->container;
#line 162 "view-essential.vala"
	gtk_widget_set_size_request ((GtkWidget*) _tmp88_, 500, -1);
#line 163 "view-essential.vala"
	_tmp89_ = self->priv->container;
#line 163 "view-essential.vala"
	gtk_container_add ((GtkContainer*) self, (GtkWidget*) _tmp89_);
#line 74 "view-essential.vala"
	_g_object_unref0 (sensitive);
#line 74 "view-essential.vala"
	_g_object_unref0 (hb);
#line 74 "view-essential.vala"
	_g_object_unref0 (fi);
#line 74 "view-essential.vala"
	_g_object_unref0 (vb);
#line 74 "view-essential.vala"
	_g_object_unref0 (categories_hbox);
#line 74 "view-essential.vala"
	_g_object_unref0 (schema);
#line 1353 "view-essential.c"
}

static gboolean
synapse_gui_view_essential_real_is_list_visible (SynapseGuiView* base)
{
	SynapseGuiViewEssential * self;
	SynapseGuiSelectionContainer* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	gboolean result;
#line 166 "view-essential.vala"
	self = (SynapseGuiViewEssential*) base;
#line 168 "view-essential.vala"
	_tmp0_ = self->priv->results_container;
#line 168 "view-essential.vala"
	_tmp1_ = gtk_widget_get_visible ((GtkWidget*) _tmp0_);
#line 168 "view-essential.vala"
	_tmp2_ = _tmp1_;
#line 168 "view-essential.vala"
	result = _tmp2_;
#line 168 "view-essential.vala"
	return result;
#line 1376 "view-essential.c"
}

static void
synapse_gui_view_essential_real_set_list_visible (SynapseGuiView* base,
                                                  gboolean visible)
{
	SynapseGuiViewEssential * self;
	SynapseGuiSelectionContainer* _tmp0_;
#line 171 "view-essential.vala"
	self = (SynapseGuiViewEssential*) base;
#line 173 "view-essential.vala"
	_tmp0_ = self->priv->results_container;
#line 173 "view-essential.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp0_, visible);
#line 1391 "view-essential.c"
}

static void
synapse_gui_view_essential_real_set_throbber_visible (SynapseGuiView* base,
                                                      gboolean visible)
{
	SynapseGuiViewEssential * self;
	SynapseGuiMenuThrobber* _tmp0_;
#line 176 "view-essential.vala"
	self = (SynapseGuiViewEssential*) base;
#line 178 "view-essential.vala"
	_tmp0_ = self->priv->menuthrobber;
#line 178 "view-essential.vala"
	synapse_gui_menu_throbber_set_active (_tmp0_, visible);
#line 1406 "view-essential.c"
}

static void
synapse_gui_view_essential_real_update_searching_for (SynapseGuiView* base)
{
	SynapseGuiViewEssential * self;
	SynapseGuiSelectionContainer* _tmp0_;
	SynapseGuiModel* _tmp1_;
#line 181 "view-essential.vala"
	self = (SynapseGuiViewEssential*) base;
#line 183 "view-essential.vala"
	synapse_gui_view_essential_update_labels (self);
#line 184 "view-essential.vala"
	_tmp0_ = self->priv->results_container;
#line 184 "view-essential.vala"
	_tmp1_ = ((SynapseGuiView*) self)->model;
#line 184 "view-essential.vala"
	synapse_gui_selection_container_select_child (_tmp0_, (gint) _tmp1_->searching_for);
#line 1425 "view-essential.c"
}

static void
synapse_gui_view_essential_real_update_selected_category (SynapseGuiView* base)
{
	SynapseGuiViewEssential * self;
	SynapseGuiHTextSelector* _tmp0_;
	SynapseGuiModel* _tmp1_;
#line 187 "view-essential.vala"
	self = (SynapseGuiViewEssential*) base;
#line 189 "view-essential.vala"
	_tmp0_ = ((SynapseGuiView*) self)->flag_selector;
#line 189 "view-essential.vala"
	_tmp1_ = ((SynapseGuiView*) self)->model;
#line 189 "view-essential.vala"
	synapse_gui_htext_selector_set_selected (_tmp0_, _tmp1_->selected_category);
#line 1442 "view-essential.c"
}

static void
synapse_gui_view_essential_real_paint_background (SynapseGuiView* base,
                                                  cairo_t* ctx)
{
	SynapseGuiViewEssential * self;
	gboolean comp = FALSE;
	gdouble r = 0.0;
	gdouble b = 0.0;
	gdouble g = 0.0;
	GtkAllocation spacer_allocation = {0};
	GtkAllocation flag_selector_allocation = {0};
	GtkLabel* _tmp0_;
	GtkAllocation _tmp1_ = {0};
	SynapseGuiHTextSelector* _tmp2_;
	GtkAllocation _tmp3_ = {0};
	gboolean _tmp4_ = FALSE;
	gint width = 0;
	gint height = 0;
	GtkAllocation _tmp16_;
	gint delta = 0;
	GtkAllocation _tmp17_;
	cairo_pattern_t* pat = NULL;
	cairo_pattern_t* _tmp18_;
	cairo_pattern_t* _tmp27_;
#line 192 "view-essential.vala"
	self = (SynapseGuiViewEssential*) base;
#line 192 "view-essential.vala"
	g_return_if_fail (ctx != NULL);
#line 194 "view-essential.vala"
	comp = gtk_widget_is_composited ((GtkWidget*) self);
#line 195 "view-essential.vala"
	r = (gdouble) 0;
#line 195 "view-essential.vala"
	b = (gdouble) 0;
#line 195 "view-essential.vala"
	g = (gdouble) 0;
#line 198 "view-essential.vala"
	_tmp0_ = ((SynapseGuiView*) self)->spacer;
#line 198 "view-essential.vala"
	gtk_widget_get_allocation ((GtkWidget*) _tmp0_, &_tmp1_);
#line 198 "view-essential.vala"
	spacer_allocation = _tmp1_;
#line 199 "view-essential.vala"
	_tmp2_ = ((SynapseGuiView*) self)->flag_selector;
#line 199 "view-essential.vala"
	gtk_widget_get_allocation ((GtkWidget*) _tmp2_, &_tmp3_);
#line 199 "view-essential.vala"
	flag_selector_allocation = _tmp3_;
#line 201 "view-essential.vala"
	if (synapse_gui_view_is_list_visible ((SynapseGuiView*) self)) {
#line 201 "view-essential.vala"
		_tmp4_ = TRUE;
#line 1497 "view-essential.c"
	} else {
#line 201 "view-essential.vala"
		_tmp4_ = !comp;
#line 1501 "view-essential.c"
	}
#line 201 "view-essential.vala"
	if (_tmp4_) {
#line 1505 "view-essential.c"
		gboolean _tmp5_ = FALSE;
		SynapseGuiUtilsColorHelper* _tmp12_;
		GtkAllocation _tmp13_;
		GtkAllocation _tmp14_;
		GtkAllocation _tmp15_;
#line 203 "view-essential.vala"
		if (comp) {
#line 203 "view-essential.vala"
			_tmp5_ = synapse_gui_view_is_list_visible ((SynapseGuiView*) self);
#line 1515 "view-essential.c"
		} else {
#line 203 "view-essential.vala"
			_tmp5_ = FALSE;
#line 1519 "view-essential.c"
		}
#line 203 "view-essential.vala"
		if (_tmp5_) {
#line 1523 "view-essential.c"
			GtkAllocation results_container_allocation = {0};
			SynapseGuiSelectionContainer* _tmp6_;
			GtkAllocation _tmp7_ = {0};
			GtkAllocation _tmp8_;
			GtkAllocation _tmp9_;
			GtkAllocation _tmp10_;
			GtkAllocation _tmp11_;
#line 206 "view-essential.vala"
			_tmp6_ = self->priv->results_container;
#line 206 "view-essential.vala"
			gtk_widget_get_allocation ((GtkWidget*) _tmp6_, &_tmp7_);
#line 206 "view-essential.vala"
			results_container_allocation = _tmp7_;
#line 207 "view-essential.vala"
			cairo_translate (ctx, 0.5, 0.5);
#line 208 "view-essential.vala"
			cairo_set_operator (ctx, CAIRO_OPERATOR_OVER);
#line 209 "view-essential.vala"
			_tmp8_ = results_container_allocation;
#line 209 "view-essential.vala"
			_tmp9_ = results_container_allocation;
#line 209 "view-essential.vala"
			_tmp10_ = results_container_allocation;
#line 209 "view-essential.vala"
			_tmp11_ = results_container_allocation;
#line 209 "view-essential.vala"
			synapse_gui_utils_cairo_make_shadow_for_rect (ctx, (gdouble) _tmp8_.x, (gdouble) _tmp9_.y, (gdouble) (_tmp10_.width - 1), (gdouble) (_tmp11_.height - 1), (gdouble) 0, r, g, b, (gdouble) ((SynapseGuiView*) self)->SHADOW_SIZE);
#line 214 "view-essential.vala"
			cairo_translate (ctx, -0.5, -0.5);
#line 1553 "view-essential.c"
		}
#line 216 "view-essential.vala"
		cairo_set_operator (ctx, CAIRO_OPERATOR_SOURCE);
#line 217 "view-essential.vala"
		_tmp12_ = ((SynapseGuiView*) self)->ch;
#line 217 "view-essential.vala"
		synapse_gui_utils_color_helper_set_source_rgba (_tmp12_, ctx, 1.0, SYNAPSE_GUI_STYLE_TYPE_BASE, GTK_STATE_FLAG_NORMAL, SYNAPSE_GUI_MOD_NORMAL);
#line 218 "view-essential.vala"
		_tmp13_ = spacer_allocation;
#line 218 "view-essential.vala"
		_tmp14_ = spacer_allocation;
#line 218 "view-essential.vala"
		_tmp15_ = spacer_allocation;
#line 218 "view-essential.vala"
		cairo_rectangle (ctx, (gdouble) _tmp13_.x, (gdouble) (_tmp14_.y + ((SynapseGuiView*) self)->BORDER_RADIUS), (gdouble) _tmp15_.width, (gdouble) ((SynapseGuiView*) self)->SHADOW_SIZE);
#line 219 "view-essential.vala"
		cairo_fill (ctx);
#line 1571 "view-essential.c"
	}
#line 222 "view-essential.vala"
	width = gtk_widget_get_allocated_width ((GtkWidget*) self);
#line 223 "view-essential.vala"
	_tmp16_ = spacer_allocation;
#line 223 "view-essential.vala"
	height = (_tmp16_.y + ((SynapseGuiView*) self)->BORDER_RADIUS) + ((SynapseGuiView*) self)->SHADOW_SIZE;
#line 225 "view-essential.vala"
	_tmp17_ = flag_selector_allocation;
#line 225 "view-essential.vala"
	delta = _tmp17_.y - ((SynapseGuiView*) self)->BORDER_RADIUS;
#line 226 "view-essential.vala"
	if (!comp) {
#line 226 "view-essential.vala"
		delta = 0;
#line 1587 "view-essential.c"
	}
#line 228 "view-essential.vala"
	cairo_save (ctx);
#line 229 "view-essential.vala"
	cairo_translate (ctx, (gdouble) ((SynapseGuiView*) self)->SHADOW_SIZE, (gdouble) delta);
#line 230 "view-essential.vala"
	width -= ((SynapseGuiView*) self)->SHADOW_SIZE * 2;
#line 231 "view-essential.vala"
	height -= ((SynapseGuiView*) self)->SHADOW_SIZE + delta;
#line 233 "view-essential.vala"
	cairo_translate (ctx, 0.5, 0.5);
#line 234 "view-essential.vala"
	cairo_set_operator (ctx, CAIRO_OPERATOR_OVER);
#line 235 "view-essential.vala"
	synapse_gui_utils_cairo_make_shadow_for_rect (ctx, (gdouble) 0, (gdouble) 0, (gdouble) (width - 1), (gdouble) (height - 1), (gdouble) ((SynapseGuiView*) self)->BORDER_RADIUS, r, g, b, (gdouble) ((SynapseGuiView*) self)->SHADOW_SIZE);
#line 236 "view-essential.vala"
	cairo_translate (ctx, -0.5, -0.5);
#line 238 "view-essential.vala"
	cairo_save (ctx);
#line 240 "view-essential.vala"
	_tmp18_ = cairo_pattern_create_linear ((gdouble) 0, (gdouble) 0, (gdouble) 0, (gdouble) height);
#line 240 "view-essential.vala"
	pat = _tmp18_;
#line 241 "view-essential.vala"
	if (((SynapseGuiView*) self)->bg_state == GTK_STATE_FLAG_SELECTED) {
#line 1613 "view-essential.c"
		SynapseGuiUtilsColorHelper* _tmp19_;
		cairo_pattern_t* _tmp20_;
		SynapseGuiUtilsColorHelper* _tmp21_;
		cairo_pattern_t* _tmp22_;
#line 243 "view-essential.vala"
		b = 0.5;
#line 243 "view-essential.vala"
		g = b;
#line 243 "view-essential.vala"
		r = g;
#line 244 "view-essential.vala"
		_tmp19_ = ((SynapseGuiView*) self)->ch;
#line 244 "view-essential.vala"
		synapse_gui_utils_color_helper_get_color_colorized (_tmp19_, &r, &g, &b, SYNAPSE_GUI_STYLE_TYPE_BG, ((SynapseGuiView*) self)->bg_state, SYNAPSE_GUI_MOD_NORMAL);
#line 245 "view-essential.vala"
		_tmp20_ = pat;
#line 245 "view-essential.vala"
		cairo_pattern_add_color_stop_rgba (_tmp20_, 0.0, r, g, b, 0.95);
#line 246 "view-essential.vala"
		b = 0.15;
#line 246 "view-essential.vala"
		g = b;
#line 246 "view-essential.vala"
		r = g;
#line 247 "view-essential.vala"
		_tmp21_ = ((SynapseGuiView*) self)->ch;
#line 247 "view-essential.vala"
		synapse_gui_utils_color_helper_get_color_colorized (_tmp21_, &r, &g, &b, SYNAPSE_GUI_STYLE_TYPE_BG, ((SynapseGuiView*) self)->bg_state, SYNAPSE_GUI_MOD_NORMAL);
#line 248 "view-essential.vala"
		_tmp22_ = pat;
#line 248 "view-essential.vala"
		cairo_pattern_add_color_stop_rgba (_tmp22_, 1.0, r, g, b, 1.0);
#line 1646 "view-essential.c"
	} else {
		SynapseGuiUtilsColorHelper* _tmp23_;
		cairo_pattern_t* _tmp24_;
		SynapseGuiUtilsColorHelper* _tmp25_;
		cairo_pattern_t* _tmp26_;
#line 252 "view-essential.vala"
		_tmp23_ = ((SynapseGuiView*) self)->ch;
#line 252 "view-essential.vala"
		_tmp24_ = pat;
#line 252 "view-essential.vala"
		synapse_gui_utils_color_helper_add_color_stop_rgba (_tmp23_, _tmp24_, 0.0, 0.95, SYNAPSE_GUI_STYLE_TYPE_BG, ((SynapseGuiView*) self)->bg_state, SYNAPSE_GUI_MOD_LIGHTER);
#line 253 "view-essential.vala"
		_tmp25_ = ((SynapseGuiView*) self)->ch;
#line 253 "view-essential.vala"
		_tmp26_ = pat;
#line 253 "view-essential.vala"
		synapse_gui_utils_color_helper_add_color_stop_rgba (_tmp25_, _tmp26_, 1.0, 1.0, SYNAPSE_GUI_STYLE_TYPE_BG, ((SynapseGuiView*) self)->bg_state, SYNAPSE_GUI_MOD_NORMAL);
#line 1664 "view-essential.c"
	}
#line 255 "view-essential.vala"
	synapse_gui_utils_cairo_rounded_rect (ctx, (gdouble) 0, (gdouble) 0, (gdouble) width, (gdouble) height, (gdouble) ((SynapseGuiView*) self)->BORDER_RADIUS);
#line 256 "view-essential.vala"
	_tmp27_ = pat;
#line 256 "view-essential.vala"
	cairo_set_source (ctx, _tmp27_);
#line 257 "view-essential.vala"
	cairo_set_operator (ctx, CAIRO_OPERATOR_SOURCE);
#line 258 "view-essential.vala"
	cairo_clip (ctx);
#line 259 "view-essential.vala"
	cairo_paint (ctx);
#line 260 "view-essential.vala"
	cairo_restore (ctx);
#line 263 "view-essential.vala"
	cairo_translate (ctx, -0.5, -0.5);
#line 264 "view-essential.vala"
	synapse_gui_utils_cairo_rounded_rect (ctx, (gdouble) 0, (gdouble) 0, (gdouble) (width + 1), (gdouble) (height + 1), (gdouble) ((SynapseGuiView*) self)->BORDER_RADIUS);
#line 265 "view-essential.vala"
	cairo_set_line_width (ctx, 1.0);
#line 266 "view-essential.vala"
	cairo_set_operator (ctx, CAIRO_OPERATOR_OVER);
#line 267 "view-essential.vala"
	cairo_set_source_rgba (ctx, 0.0, 0.0, 0.0, 0.5);
#line 268 "view-essential.vala"
	cairo_stroke (ctx);
#line 270 "view-essential.vala"
	cairo_restore (ctx);
#line 192 "view-essential.vala"
	_cairo_pattern_destroy0 (pat);
#line 1696 "view-essential.c"
}

static void
synapse_gui_view_essential_update_labels (SynapseGuiViewEssential* self)
{
	SynapseGuiEntry* focus = NULL;
	SynapseGuiModel* _tmp0_;
	SynapseGuiEntry* _tmp1_;
	SynapseGuiEntry* _tmp2_;
	gconstpointer _tmp3_;
	gconstpointer _tmp4_;
	SynapseGuiModel* _tmp29_;
#line 273 "view-essential.vala"
	g_return_if_fail (self != NULL);
#line 275 "view-essential.vala"
	_tmp0_ = ((SynapseGuiView*) self)->model;
#line 275 "view-essential.vala"
	_tmp1_ = synapse_gui_model_get_actual_focus (_tmp0_);
#line 275 "view-essential.vala"
	focus = _tmp1_;
#line 276 "view-essential.vala"
	_tmp2_ = focus;
#line 276 "view-essential.vala"
	_tmp3_ = synapse_gui_entry_get_value (_tmp2_);
#line 276 "view-essential.vala"
	_tmp4_ = _tmp3_;
#line 276 "view-essential.vala"
	if (((SynapseMatch*) _tmp4_) == NULL) {
#line 1725 "view-essential.c"
		SynapseGuiIController* _tmp5_;
		SynapseGuiIController* _tmp6_;
#line 278 "view-essential.vala"
		_tmp5_ = synapse_gui_iview_get_controller ((SynapseGuiIView*) self);
#line 278 "view-essential.vala"
		_tmp6_ = _tmp5_;
#line 278 "view-essential.vala"
		if (synapse_gui_icontroller_is_in_initial_state (_tmp6_)) {
#line 1734 "view-essential.c"
			SynapseGuiSmartLabel* _tmp7_;
			const gchar* _tmp8_;
#line 280 "view-essential.vala"
			_tmp7_ = self->priv->focus_label;
#line 280 "view-essential.vala"
			_tmp8_ = synapse_gui_icontroller_TYPE_TO_SEARCH;
#line 280 "view-essential.vala"
			synapse_gui_smart_label_set_text (_tmp7_, _tmp8_);
#line 1743 "view-essential.c"
		} else {
			SynapseGuiIController* _tmp9_;
			SynapseGuiIController* _tmp10_;
#line 282 "view-essential.vala"
			_tmp9_ = synapse_gui_iview_get_controller ((SynapseGuiIView*) self);
#line 282 "view-essential.vala"
			_tmp10_ = _tmp9_;
#line 282 "view-essential.vala"
			if (synapse_gui_icontroller_searched_for_recent (_tmp10_)) {
#line 1753 "view-essential.c"
				SynapseGuiSmartLabel* _tmp11_;
#line 284 "view-essential.vala"
				_tmp11_ = self->priv->focus_label;
#line 284 "view-essential.vala"
				synapse_gui_smart_label_set_text (_tmp11_, "");
#line 1759 "view-essential.c"
			} else {
				SynapseGuiSmartLabel* _tmp12_;
				SynapseGuiModel* _tmp13_;
				gchar** _tmp14_;
				gint _tmp14__length1;
				SynapseGuiModel* _tmp15_;
				const gchar* _tmp16_;
#line 288 "view-essential.vala"
				_tmp12_ = self->priv->focus_label;
#line 288 "view-essential.vala"
				_tmp13_ = ((SynapseGuiView*) self)->model;
#line 288 "view-essential.vala"
				_tmp14_ = _tmp13_->query;
#line 288 "view-essential.vala"
				_tmp14__length1 = _tmp13_->query_length1;
#line 288 "view-essential.vala"
				_tmp15_ = ((SynapseGuiView*) self)->model;
#line 288 "view-essential.vala"
				_tmp16_ = _tmp14_[_tmp15_->searching_for];
#line 288 "view-essential.vala"
				synapse_gui_smart_label_set_text (_tmp12_, _tmp16_);
#line 1781 "view-essential.c"
			}
		}
	} else {
		SynapseGuiSmartLabel* _tmp17_;
		SynapseGuiEntry* _tmp18_;
		gconstpointer _tmp19_;
		gconstpointer _tmp20_;
		const gchar* _tmp21_;
		const gchar* _tmp22_;
		SynapseGuiModel* _tmp23_;
		gchar** _tmp24_;
		gint _tmp24__length1;
		SynapseGuiModel* _tmp25_;
		const gchar* _tmp26_;
		gchar* _tmp27_;
		gchar* _tmp28_;
#line 293 "view-essential.vala"
		_tmp17_ = self->priv->focus_label;
#line 293 "view-essential.vala"
		_tmp18_ = focus;
#line 293 "view-essential.vala"
		_tmp19_ = synapse_gui_entry_get_value (_tmp18_);
#line 293 "view-essential.vala"
		_tmp20_ = _tmp19_;
#line 293 "view-essential.vala"
		_tmp21_ = synapse_match_get_title ((SynapseMatch*) _tmp20_);
#line 293 "view-essential.vala"
		_tmp22_ = _tmp21_;
#line 293 "view-essential.vala"
		_tmp23_ = ((SynapseGuiView*) self)->model;
#line 293 "view-essential.vala"
		_tmp24_ = _tmp23_->query;
#line 293 "view-essential.vala"
		_tmp24__length1 = _tmp23_->query_length1;
#line 293 "view-essential.vala"
		_tmp25_ = ((SynapseGuiView*) self)->model;
#line 293 "view-essential.vala"
		_tmp26_ = _tmp24_[_tmp25_->searching_for];
#line 293 "view-essential.vala"
		_tmp27_ = synapse_gui_utils_markup_string_with_search (_tmp22_, _tmp26_, "", FALSE);
#line 293 "view-essential.vala"
		_tmp28_ = _tmp27_;
#line 293 "view-essential.vala"
		synapse_gui_smart_label_set_markup (_tmp17_, _tmp28_);
#line 293 "view-essential.vala"
		_g_free0 (_tmp28_);
#line 1828 "view-essential.c"
	}
#line 295 "view-essential.vala"
	_tmp29_ = ((SynapseGuiView*) self)->model;
#line 295 "view-essential.vala"
	switch (_tmp29_->searching_for) {
#line 295 "view-essential.vala"
		case SYNAPSE_GUI_SEARCHING_FOR_SOURCES:
#line 1836 "view-essential.c"
		{
			SynapseGuiHTextSelector* _tmp30_;
			SynapseGuiModel* _tmp31_;
			SynapseGuiSchemaContainer* _tmp34_;
			gint* _tmp35_;
			gint* _tmp36_;
			gint _tmp36__length1;
#line 298 "view-essential.vala"
			_tmp30_ = ((SynapseGuiView*) self)->flag_selector;
#line 298 "view-essential.vala"
			gtk_widget_set_sensitive ((GtkWidget*) _tmp30_, TRUE);
#line 299 "view-essential.vala"
			_tmp31_ = ((SynapseGuiView*) self)->model;
#line 299 "view-essential.vala"
			if (synapse_gui_model_needs_target (_tmp31_)) {
#line 1852 "view-essential.c"
				SynapseGuiSchemaContainer* _tmp32_;
#line 301 "view-essential.vala"
				_tmp32_ = self->priv->icon_container;
#line 301 "view-essential.vala"
				synapse_gui_schema_container_select_schema (_tmp32_, 1);
#line 1858 "view-essential.c"
			} else {
				SynapseGuiSchemaContainer* _tmp33_;
#line 305 "view-essential.vala"
				_tmp33_ = self->priv->icon_container;
#line 305 "view-essential.vala"
				synapse_gui_schema_container_select_schema (_tmp33_, 0);
#line 1865 "view-essential.c"
			}
#line 307 "view-essential.vala"
			_tmp34_ = self->priv->icon_container;
#line 307 "view-essential.vala"
			_tmp35_ = g_new0 (gint, 3);
#line 307 "view-essential.vala"
			_tmp35_[0] = 2;
#line 307 "view-essential.vala"
			_tmp35_[1] = 0;
#line 307 "view-essential.vala"
			_tmp35_[2] = 1;
#line 307 "view-essential.vala"
			_tmp36_ = _tmp35_;
#line 307 "view-essential.vala"
			_tmp36__length1 = 3;
#line 307 "view-essential.vala"
			synapse_gui_schema_container_set_render_order (_tmp34_, _tmp36_, (gint) 3);
#line 307 "view-essential.vala"
			_tmp36_ = (g_free (_tmp36_), NULL);
#line 308 "view-essential.vala"
			break;
#line 1887 "view-essential.c"
		}
#line 295 "view-essential.vala"
		case SYNAPSE_GUI_SEARCHING_FOR_ACTIONS:
#line 1891 "view-essential.c"
		{
			SynapseGuiModel* _tmp37_;
			SynapseGuiSchemaContainer* _tmp40_;
			gint* _tmp41_;
			gint* _tmp42_;
			gint _tmp42__length1;
			SynapseGuiHTextSelector* _tmp43_;
#line 310 "view-essential.vala"
			_tmp37_ = ((SynapseGuiView*) self)->model;
#line 310 "view-essential.vala"
			if (synapse_gui_model_needs_target (_tmp37_)) {
#line 1903 "view-essential.c"
				SynapseGuiSchemaContainer* _tmp38_;
#line 312 "view-essential.vala"
				_tmp38_ = self->priv->icon_container;
#line 312 "view-essential.vala"
				synapse_gui_schema_container_select_schema (_tmp38_, 3);
#line 1909 "view-essential.c"
			} else {
				SynapseGuiSchemaContainer* _tmp39_;
#line 316 "view-essential.vala"
				_tmp39_ = self->priv->icon_container;
#line 316 "view-essential.vala"
				synapse_gui_schema_container_select_schema (_tmp39_, 2);
#line 1916 "view-essential.c"
			}
#line 318 "view-essential.vala"
			_tmp40_ = self->priv->icon_container;
#line 318 "view-essential.vala"
			_tmp41_ = g_new0 (gint, 3);
#line 318 "view-essential.vala"
			_tmp41_[0] = 0;
#line 318 "view-essential.vala"
			_tmp41_[1] = 2;
#line 318 "view-essential.vala"
			_tmp41_[2] = 1;
#line 318 "view-essential.vala"
			_tmp42_ = _tmp41_;
#line 318 "view-essential.vala"
			_tmp42__length1 = 3;
#line 318 "view-essential.vala"
			synapse_gui_schema_container_set_render_order (_tmp40_, _tmp42_, (gint) 3);
#line 318 "view-essential.vala"
			_tmp42_ = (g_free (_tmp42_), NULL);
#line 319 "view-essential.vala"
			_tmp43_ = ((SynapseGuiView*) self)->flag_selector;
#line 319 "view-essential.vala"
			gtk_widget_set_sensitive ((GtkWidget*) _tmp43_, TRUE);
#line 320 "view-essential.vala"
			break;
#line 1942 "view-essential.c"
		}
		default:
		{
			SynapseGuiSchemaContainer* _tmp44_;
			SynapseGuiSchemaContainer* _tmp45_;
			gint* _tmp46_;
			gint* _tmp47_;
			gint _tmp47__length1;
			SynapseGuiHTextSelector* _tmp48_;
#line 322 "view-essential.vala"
			_tmp44_ = self->priv->icon_container;
#line 322 "view-essential.vala"
			synapse_gui_schema_container_select_schema (_tmp44_, 4);
#line 323 "view-essential.vala"
			_tmp45_ = self->priv->icon_container;
#line 323 "view-essential.vala"
			_tmp46_ = g_new0 (gint, 3);
#line 323 "view-essential.vala"
			_tmp46_[0] = 2;
#line 323 "view-essential.vala"
			_tmp46_[1] = 0;
#line 323 "view-essential.vala"
			_tmp46_[2] = 1;
#line 323 "view-essential.vala"
			_tmp47_ = _tmp46_;
#line 323 "view-essential.vala"
			_tmp47__length1 = 3;
#line 323 "view-essential.vala"
			synapse_gui_schema_container_set_render_order (_tmp45_, _tmp47_, (gint) 3);
#line 323 "view-essential.vala"
			_tmp47_ = (g_free (_tmp47_), NULL);
#line 324 "view-essential.vala"
			_tmp48_ = ((SynapseGuiView*) self)->flag_selector;
#line 324 "view-essential.vala"
			gtk_widget_set_sensitive ((GtkWidget*) _tmp48_, FALSE);
#line 325 "view-essential.vala"
			break;
#line 1980 "view-essential.c"
		}
	}
#line 273 "view-essential.vala"
	_synapse_gui_entry_unref0 (focus);
#line 1985 "view-essential.c"
}

static void
synapse_gui_view_essential_real_update_focused_source (SynapseGuiView* base,
                                                       SynapseGuiEntry* m)
{
	SynapseGuiViewEssential * self;
	SynapseGuiIController* _tmp0_;
	SynapseGuiIController* _tmp1_;
	SynapseGuiModel* _tmp23_;
#line 329 "view-essential.vala"
	self = (SynapseGuiViewEssential*) base;
#line 329 "view-essential.vala"
	g_return_if_fail (m != NULL);
#line 331 "view-essential.vala"
	_tmp0_ = synapse_gui_iview_get_controller ((SynapseGuiIView*) self);
#line 331 "view-essential.vala"
	_tmp1_ = _tmp0_;
#line 331 "view-essential.vala"
	if (synapse_gui_icontroller_is_in_initial_state (_tmp1_)) {
#line 2006 "view-essential.c"
		SynapseGuiNamedIcon* _tmp2_;
#line 331 "view-essential.vala"
		_tmp2_ = self->priv->source_icon;
#line 331 "view-essential.vala"
		synapse_gui_named_icon_set_icon_name (_tmp2_, "search", GTK_ICON_SIZE_DND);
#line 2012 "view-essential.c"
	} else {
		gconstpointer _tmp3_;
		gconstpointer _tmp4_;
#line 332 "view-essential.vala"
		_tmp3_ = synapse_gui_entry_get_value (m);
#line 332 "view-essential.vala"
		_tmp4_ = _tmp3_;
#line 332 "view-essential.vala"
		if (((SynapseMatch*) _tmp4_) == NULL) {
#line 2022 "view-essential.c"
			SynapseGuiNamedIcon* _tmp5_;
#line 332 "view-essential.vala"
			_tmp5_ = self->priv->source_icon;
#line 332 "view-essential.vala"
			synapse_gui_named_icon_set_icon_name (_tmp5_, "", GTK_ICON_SIZE_DND);
#line 2028 "view-essential.c"
		} else {
			gconstpointer _tmp6_;
			gconstpointer _tmp7_;
			gboolean _tmp8_;
			gboolean _tmp9_;
			SynapseGuiResultBox* _tmp20_;
			gconstpointer _tmp21_;
			gconstpointer _tmp22_;
#line 335 "view-essential.vala"
			_tmp6_ = synapse_gui_entry_get_value (m);
#line 335 "view-essential.vala"
			_tmp7_ = _tmp6_;
#line 335 "view-essential.vala"
			_tmp8_ = synapse_match_get_has_thumbnail ((SynapseMatch*) _tmp7_);
#line 335 "view-essential.vala"
			_tmp9_ = _tmp8_;
#line 335 "view-essential.vala"
			if (_tmp9_) {
#line 2047 "view-essential.c"
				SynapseGuiNamedIcon* _tmp10_;
				gconstpointer _tmp11_;
				gconstpointer _tmp12_;
				const gchar* _tmp13_;
				const gchar* _tmp14_;
#line 336 "view-essential.vala"
				_tmp10_ = self->priv->source_icon;
#line 336 "view-essential.vala"
				_tmp11_ = synapse_gui_entry_get_value (m);
#line 336 "view-essential.vala"
				_tmp12_ = _tmp11_;
#line 336 "view-essential.vala"
				_tmp13_ = synapse_match_get_thumbnail_path ((SynapseMatch*) _tmp12_);
#line 336 "view-essential.vala"
				_tmp14_ = _tmp13_;
#line 336 "view-essential.vala"
				synapse_gui_named_icon_set_icon_name (_tmp10_, _tmp14_, GTK_ICON_SIZE_DND);
#line 2065 "view-essential.c"
			} else {
				SynapseGuiNamedIcon* _tmp15_;
				gconstpointer _tmp16_;
				gconstpointer _tmp17_;
				const gchar* _tmp18_;
				const gchar* _tmp19_;
#line 338 "view-essential.vala"
				_tmp15_ = self->priv->source_icon;
#line 338 "view-essential.vala"
				_tmp16_ = synapse_gui_entry_get_value (m);
#line 338 "view-essential.vala"
				_tmp17_ = _tmp16_;
#line 338 "view-essential.vala"
				_tmp18_ = synapse_match_get_icon_name ((SynapseMatch*) _tmp17_);
#line 338 "view-essential.vala"
				_tmp19_ = _tmp18_;
#line 338 "view-essential.vala"
				synapse_gui_named_icon_set_icon_name (_tmp15_, _tmp19_, GTK_ICON_SIZE_DND);
#line 2084 "view-essential.c"
			}
#line 339 "view-essential.vala"
			_tmp20_ = self->priv->results_sources;
#line 339 "view-essential.vala"
			_tmp21_ = synapse_gui_entry_get_key (m);
#line 339 "view-essential.vala"
			_tmp22_ = _tmp21_;
#line 339 "view-essential.vala"
			synapse_gui_result_box_move_selection_to_index (_tmp20_, (gint) ((gintptr) _tmp22_));
#line 2094 "view-essential.c"
		}
	}
#line 341 "view-essential.vala"
	_tmp23_ = ((SynapseGuiView*) self)->model;
#line 341 "view-essential.vala"
	if (_tmp23_->searching_for == SYNAPSE_GUI_SEARCHING_FOR_SOURCES) {
#line 341 "view-essential.vala"
		synapse_gui_view_essential_update_labels (self);
#line 2103 "view-essential.c"
	}
}

static void
synapse_gui_view_essential_real_update_focused_action (SynapseGuiView* base,
                                                       SynapseGuiEntry* m)
{
	SynapseGuiViewEssential * self;
	gboolean _tmp0_ = FALSE;
	SynapseGuiIController* _tmp1_;
	SynapseGuiIController* _tmp2_;
	SynapseGuiModel* _tmp20_;
#line 344 "view-essential.vala"
	self = (SynapseGuiViewEssential*) base;
#line 344 "view-essential.vala"
	g_return_if_fail (m != NULL);
#line 346 "view-essential.vala"
	_tmp1_ = synapse_gui_iview_get_controller ((SynapseGuiIView*) self);
#line 346 "view-essential.vala"
	_tmp2_ = _tmp1_;
#line 346 "view-essential.vala"
	if (synapse_gui_icontroller_is_in_initial_state (_tmp2_)) {
#line 346 "view-essential.vala"
		_tmp0_ = TRUE;
#line 2128 "view-essential.c"
	} else {
		SynapseGuiModel* _tmp3_;
		SynapseGuiEntry** _tmp4_;
		gint _tmp4__length1;
		SynapseGuiEntry* _tmp5_;
		gconstpointer _tmp6_;
		gconstpointer _tmp7_;
#line 347 "view-essential.vala"
		_tmp3_ = ((SynapseGuiView*) self)->model;
#line 347 "view-essential.vala"
		_tmp4_ = _tmp3_->focus;
#line 347 "view-essential.vala"
		_tmp4__length1 = _tmp3_->focus_length1;
#line 347 "view-essential.vala"
		_tmp5_ = _tmp4_[SYNAPSE_GUI_SEARCHING_FOR_SOURCES];
#line 347 "view-essential.vala"
		_tmp6_ = synapse_gui_entry_get_value (_tmp5_);
#line 347 "view-essential.vala"
		_tmp7_ = _tmp6_;
#line 347 "view-essential.vala"
		_tmp0_ = ((SynapseMatch*) _tmp7_) == NULL;
#line 2150 "view-essential.c"
	}
#line 346 "view-essential.vala"
	if (_tmp0_) {
#line 2154 "view-essential.c"
		SynapseGuiNamedIcon* _tmp8_;
#line 347 "view-essential.vala"
		_tmp8_ = self->priv->action_icon;
#line 347 "view-essential.vala"
		synapse_gui_named_icon_clear (_tmp8_);
#line 2160 "view-essential.c"
	} else {
		gconstpointer _tmp9_;
		gconstpointer _tmp10_;
#line 348 "view-essential.vala"
		_tmp9_ = synapse_gui_entry_get_value (m);
#line 348 "view-essential.vala"
		_tmp10_ = _tmp9_;
#line 348 "view-essential.vala"
		if (((SynapseMatch*) _tmp10_) == NULL) {
#line 2170 "view-essential.c"
			SynapseGuiNamedIcon* _tmp11_;
#line 348 "view-essential.vala"
			_tmp11_ = self->priv->action_icon;
#line 348 "view-essential.vala"
			synapse_gui_named_icon_set_icon_name (_tmp11_, "", GTK_ICON_SIZE_DND);
#line 2176 "view-essential.c"
		} else {
			SynapseGuiNamedIcon* _tmp12_;
			gconstpointer _tmp13_;
			gconstpointer _tmp14_;
			const gchar* _tmp15_;
			const gchar* _tmp16_;
			SynapseGuiResultBox* _tmp17_;
			gconstpointer _tmp18_;
			gconstpointer _tmp19_;
#line 351 "view-essential.vala"
			_tmp12_ = self->priv->action_icon;
#line 351 "view-essential.vala"
			_tmp13_ = synapse_gui_entry_get_value (m);
#line 351 "view-essential.vala"
			_tmp14_ = _tmp13_;
#line 351 "view-essential.vala"
			_tmp15_ = synapse_match_get_icon_name ((SynapseMatch*) _tmp14_);
#line 351 "view-essential.vala"
			_tmp16_ = _tmp15_;
#line 351 "view-essential.vala"
			synapse_gui_named_icon_set_icon_name (_tmp12_, _tmp16_, GTK_ICON_SIZE_DND);
#line 352 "view-essential.vala"
			_tmp17_ = self->priv->results_actions;
#line 352 "view-essential.vala"
			_tmp18_ = synapse_gui_entry_get_key (m);
#line 352 "view-essential.vala"
			_tmp19_ = _tmp18_;
#line 352 "view-essential.vala"
			synapse_gui_result_box_move_selection_to_index (_tmp17_, (gint) ((gintptr) _tmp19_));
#line 2206 "view-essential.c"
		}
	}
#line 354 "view-essential.vala"
	_tmp20_ = ((SynapseGuiView*) self)->model;
#line 354 "view-essential.vala"
	if (_tmp20_->searching_for == SYNAPSE_GUI_SEARCHING_FOR_ACTIONS) {
#line 354 "view-essential.vala"
		synapse_gui_view_essential_update_labels (self);
#line 2215 "view-essential.c"
	}
}

static void
synapse_gui_view_essential_real_update_focused_target (SynapseGuiView* base,
                                                       SynapseGuiEntry* m)
{
	SynapseGuiViewEssential * self;
	gconstpointer _tmp0_;
	gconstpointer _tmp1_;
	SynapseGuiModel* _tmp14_;
#line 357 "view-essential.vala"
	self = (SynapseGuiViewEssential*) base;
#line 357 "view-essential.vala"
	g_return_if_fail (m != NULL);
#line 359 "view-essential.vala"
	_tmp0_ = synapse_gui_entry_get_value (m);
#line 359 "view-essential.vala"
	_tmp1_ = _tmp0_;
#line 359 "view-essential.vala"
	if (((SynapseMatch*) _tmp1_) == NULL) {
#line 2237 "view-essential.c"
		SynapseGuiNamedIcon* _tmp2_;
#line 359 "view-essential.vala"
		_tmp2_ = self->priv->target_icon;
#line 359 "view-essential.vala"
		synapse_gui_named_icon_set_icon_name (_tmp2_, "", GTK_ICON_SIZE_DND);
#line 2243 "view-essential.c"
	} else {
		gconstpointer _tmp3_;
		gconstpointer _tmp4_;
		SynapseGuiResultBox* _tmp11_;
		gconstpointer _tmp12_;
		gconstpointer _tmp13_;
#line 362 "view-essential.vala"
		_tmp3_ = synapse_gui_entry_get_value (m);
#line 362 "view-essential.vala"
		_tmp4_ = _tmp3_;
#line 362 "view-essential.vala"
		if (G_TYPE_CHECK_INSTANCE_TYPE ((SynapseMatch*) _tmp4_, SYNAPSE_TYPE_UNKNOWN_MATCH)) {
#line 2256 "view-essential.c"
			SynapseGuiNamedIcon* _tmp5_;
#line 363 "view-essential.vala"
			_tmp5_ = self->priv->target_icon;
#line 363 "view-essential.vala"
			synapse_gui_named_icon_set_icon_name (_tmp5_, "text-plain", GTK_ICON_SIZE_DND);
#line 2262 "view-essential.c"
		} else {
			SynapseGuiNamedIcon* _tmp6_;
			gconstpointer _tmp7_;
			gconstpointer _tmp8_;
			const gchar* _tmp9_;
			const gchar* _tmp10_;
#line 365 "view-essential.vala"
			_tmp6_ = self->priv->target_icon;
#line 365 "view-essential.vala"
			_tmp7_ = synapse_gui_entry_get_value (m);
#line 365 "view-essential.vala"
			_tmp8_ = _tmp7_;
#line 365 "view-essential.vala"
			_tmp9_ = synapse_match_get_icon_name ((SynapseMatch*) _tmp8_);
#line 365 "view-essential.vala"
			_tmp10_ = _tmp9_;
#line 365 "view-essential.vala"
			synapse_gui_named_icon_set_icon_name (_tmp6_, _tmp10_, GTK_ICON_SIZE_DND);
#line 2281 "view-essential.c"
		}
#line 366 "view-essential.vala"
		_tmp11_ = self->priv->results_targets;
#line 366 "view-essential.vala"
		_tmp12_ = synapse_gui_entry_get_key (m);
#line 366 "view-essential.vala"
		_tmp13_ = _tmp12_;
#line 366 "view-essential.vala"
		synapse_gui_result_box_move_selection_to_index (_tmp11_, (gint) ((gintptr) _tmp13_));
#line 2291 "view-essential.c"
	}
#line 368 "view-essential.vala"
	_tmp14_ = ((SynapseGuiView*) self)->model;
#line 368 "view-essential.vala"
	if (_tmp14_->searching_for == SYNAPSE_GUI_SEARCHING_FOR_TARGETS) {
#line 368 "view-essential.vala"
		synapse_gui_view_essential_update_labels (self);
#line 2299 "view-essential.c"
	}
}

static void
synapse_gui_view_essential_real_update_sources (SynapseGuiView* base,
                                                GeeList* list)
{
	SynapseGuiViewEssential * self;
	SynapseGuiResultBox* _tmp0_;
#line 371 "view-essential.vala"
	self = (SynapseGuiViewEssential*) base;
#line 373 "view-essential.vala"
	_tmp0_ = self->priv->results_sources;
#line 373 "view-essential.vala"
	synapse_gui_result_box_update_matches (_tmp0_, list);
#line 2315 "view-essential.c"
}

static void
synapse_gui_view_essential_real_update_actions (SynapseGuiView* base,
                                                GeeList* list)
{
	SynapseGuiViewEssential * self;
	SynapseGuiResultBox* _tmp0_;
#line 375 "view-essential.vala"
	self = (SynapseGuiViewEssential*) base;
#line 377 "view-essential.vala"
	_tmp0_ = self->priv->results_actions;
#line 377 "view-essential.vala"
	synapse_gui_result_box_update_matches (_tmp0_, list);
#line 2330 "view-essential.c"
}

static void
synapse_gui_view_essential_real_update_targets (SynapseGuiView* base,
                                                GeeList* list)
{
	SynapseGuiViewEssential * self;
	SynapseGuiResultBox* _tmp0_;
#line 379 "view-essential.vala"
	self = (SynapseGuiViewEssential*) base;
#line 381 "view-essential.vala"
	_tmp0_ = self->priv->results_targets;
#line 381 "view-essential.vala"
	synapse_gui_result_box_update_matches (_tmp0_, list);
#line 2345 "view-essential.c"
}

SynapseGuiViewEssential*
synapse_gui_view_essential_construct (GType object_type)
{
	SynapseGuiViewEssential * self = NULL;
#line 24 "view-essential.vala"
	self = (SynapseGuiViewEssential*) synapse_gui_view_construct (object_type);
#line 24 "view-essential.vala"
	return self;
#line 2356 "view-essential.c"
}

SynapseGuiViewEssential*
synapse_gui_view_essential_new (void)
{
#line 24 "view-essential.vala"
	return synapse_gui_view_essential_construct (SYNAPSE_GUI_TYPE_VIEW_ESSENTIAL);
#line 2364 "view-essential.c"
}

static GObject *
synapse_gui_view_essential_constructor (GType type,
                                        guint n_construct_properties,
                                        GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	SynapseGuiViewEssential * self;
#line 26 "view-essential.vala"
	parent_class = G_OBJECT_CLASS (synapse_gui_view_essential_parent_class);
#line 26 "view-essential.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 26 "view-essential.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, SYNAPSE_GUI_TYPE_VIEW_ESSENTIAL, SynapseGuiViewEssential);
#line 26 "view-essential.vala"
	return obj;
#line 2383 "view-essential.c"
}

static void
synapse_gui_view_essential_class_init (SynapseGuiViewEssentialClass * klass,
                                       gpointer klass_data)
{
#line 24 "view-essential.vala"
	synapse_gui_view_essential_parent_class = g_type_class_peek_parent (klass);
#line 24 "view-essential.vala"
	g_type_class_adjust_private_offset (klass, &SynapseGuiViewEssential_private_offset);
#line 24 "view-essential.vala"
	((GtkWidgetClass *) klass)->style_updated = (void (*) (GtkWidget*)) synapse_gui_view_essential_real_style_updated;
#line 24 "view-essential.vala"
	((SynapseGuiViewClass *) klass)->build_ui = (void (*) (SynapseGuiView*)) synapse_gui_view_essential_real_build_ui;
#line 24 "view-essential.vala"
	((SynapseGuiViewClass *) klass)->is_list_visible = (gboolean (*) (SynapseGuiView*)) synapse_gui_view_essential_real_is_list_visible;
#line 24 "view-essential.vala"
	((SynapseGuiViewClass *) klass)->set_list_visible = (void (*) (SynapseGuiView*, gboolean)) synapse_gui_view_essential_real_set_list_visible;
#line 24 "view-essential.vala"
	((SynapseGuiViewClass *) klass)->set_throbber_visible = (void (*) (SynapseGuiView*, gboolean)) synapse_gui_view_essential_real_set_throbber_visible;
#line 24 "view-essential.vala"
	((SynapseGuiViewClass *) klass)->update_searching_for = (void (*) (SynapseGuiView*)) synapse_gui_view_essential_real_update_searching_for;
#line 24 "view-essential.vala"
	((SynapseGuiViewClass *) klass)->update_selected_category = (void (*) (SynapseGuiView*)) synapse_gui_view_essential_real_update_selected_category;
#line 24 "view-essential.vala"
	((SynapseGuiViewClass *) klass)->paint_background = (void (*) (SynapseGuiView*, cairo_t*)) synapse_gui_view_essential_real_paint_background;
#line 24 "view-essential.vala"
	((SynapseGuiViewClass *) klass)->update_focused_source = (void (*) (SynapseGuiView*, SynapseGuiEntry*)) synapse_gui_view_essential_real_update_focused_source;
#line 24 "view-essential.vala"
	((SynapseGuiViewClass *) klass)->update_focused_action = (void (*) (SynapseGuiView*, SynapseGuiEntry*)) synapse_gui_view_essential_real_update_focused_action;
#line 24 "view-essential.vala"
	((SynapseGuiViewClass *) klass)->update_focused_target = (void (*) (SynapseGuiView*, SynapseGuiEntry*)) synapse_gui_view_essential_real_update_focused_target;
#line 24 "view-essential.vala"
	((SynapseGuiViewClass *) klass)->update_sources = (void (*) (SynapseGuiView*, GeeList*)) synapse_gui_view_essential_real_update_sources;
#line 24 "view-essential.vala"
	((SynapseGuiViewClass *) klass)->update_actions = (void (*) (SynapseGuiView*, GeeList*)) synapse_gui_view_essential_real_update_actions;
#line 24 "view-essential.vala"
	((SynapseGuiViewClass *) klass)->update_targets = (void (*) (SynapseGuiView*, GeeList*)) synapse_gui_view_essential_real_update_targets;
#line 24 "view-essential.vala"
	G_OBJECT_CLASS (klass)->constructor = synapse_gui_view_essential_constructor;
#line 24 "view-essential.vala"
	G_OBJECT_CLASS (klass)->finalize = synapse_gui_view_essential_finalize;
#line 2426 "view-essential.c"
}

static void
synapse_gui_view_essential_instance_init (SynapseGuiViewEssential * self,
                                          gpointer klass)
{
#line 24 "view-essential.vala"
	self->priv = synapse_gui_view_essential_get_instance_private (self);
#line 2435 "view-essential.c"
}

static void
synapse_gui_view_essential_finalize (GObject * obj)
{
	SynapseGuiViewEssential * self;
#line 24 "view-essential.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, SYNAPSE_GUI_TYPE_VIEW_ESSENTIAL, SynapseGuiViewEssential);
#line 56 "view-essential.vala"
	_g_object_unref0 (self->priv->source_icon);
#line 57 "view-essential.vala"
	_g_object_unref0 (self->priv->action_icon);
#line 58 "view-essential.vala"
	_g_object_unref0 (self->priv->target_icon);
#line 60 "view-essential.vala"
	_g_object_unref0 (self->priv->focus_label);
#line 62 "view-essential.vala"
	_g_object_unref0 (self->priv->icon_container);
#line 64 "view-essential.vala"
	_g_object_unref0 (self->priv->container);
#line 66 "view-essential.vala"
	_g_object_unref0 (self->priv->results_container);
#line 68 "view-essential.vala"
	_g_object_unref0 (self->priv->results_sources);
#line 69 "view-essential.vala"
	_g_object_unref0 (self->priv->results_actions);
#line 70 "view-essential.vala"
	_g_object_unref0 (self->priv->results_targets);
#line 72 "view-essential.vala"
	_g_object_unref0 (self->priv->menuthrobber);
#line 24 "view-essential.vala"
	G_OBJECT_CLASS (synapse_gui_view_essential_parent_class)->finalize (obj);
#line 2468 "view-essential.c"
}

static GType
synapse_gui_view_essential_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SynapseGuiViewEssentialClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) synapse_gui_view_essential_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (SynapseGuiViewEssential), 0, (GInstanceInitFunc) synapse_gui_view_essential_instance_init, NULL };
	GType synapse_gui_view_essential_type_id;
	synapse_gui_view_essential_type_id = g_type_register_static (SYNAPSE_GUI_TYPE_VIEW, "SynapseGuiViewEssential", &g_define_type_info, 0);
	SynapseGuiViewEssential_private_offset = g_type_add_instance_private (synapse_gui_view_essential_type_id, sizeof (SynapseGuiViewEssentialPrivate));
	return synapse_gui_view_essential_type_id;
}

GType
synapse_gui_view_essential_get_type (void)
{
	static volatile gsize synapse_gui_view_essential_type_id__once = 0;
	if (g_once_init_enter (&synapse_gui_view_essential_type_id__once)) {
		GType synapse_gui_view_essential_type_id;
		synapse_gui_view_essential_type_id = synapse_gui_view_essential_get_type_once ();
		g_once_init_leave (&synapse_gui_view_essential_type_id__once, synapse_gui_view_essential_type_id);
	}
	return synapse_gui_view_essential_type_id__once;
}

