/* prompt-box.c generated by valac 0.56.19, the Vala compiler
 * generated from prompt-box.vala, do not modify */

/* -*- Mode: Vala; indent-tabs-mode: nil; tab-width: 4 -*-
 *
 * Copyright (C) 2011,2012 Canonical Ltd
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3 as
 * published by the Free Software Foundation.
 *
 * 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/>.
 *
 * Authors: Robert Ancell <robert.ancell@canonical.com>
 *          Michael Terry <michael.terry@canonical.com>
 */

#include <gtk/gtk.h>
#include <glib-object.h>
#include <cairo-gobject.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <float.h>
#include <math.h>
#include <pango/pango.h>
#include <gdk/gdk.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <atk/atk.h>
#include <glib/gi18n-lib.h>
#include "config.h"

#define PROMPT_BOX_COL_ACTIVE 0
#define PROMPT_BOX_COL_CONTENT 1
#define PROMPT_BOX_COL_SPACER 2
#define PROMPT_BOX_ROW_NAME 0
#define PROMPT_BOX_COL_AVATAR 0
#define PROMPT_BOX_COL_NAME_LABEL 1
#define PROMPT_BOX_COL_NAME_MESSAGE 2
#define PROMPT_BOX_COL_NAME_OPTIONS 3
#define PROMPT_BOX_COL_ENTRIES_START 1
#define PROMPT_BOX_COL_ENTRIES_END 1
#define PROMPT_BOX_COL_ENTRIES_WIDTH 1
#define ACTIVE_INDICATOR_WIDTH 8
#define ACTIVE_INDICATOR_MARGIN 4
#define grid_size 40
#define GREETER_LIST_BORDER 4
#define ACTIVE_INDICATOR_HEIGHT 7
#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif
#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif

#define TYPE_FADABLE (fadable_get_type ())
#define FADABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FADABLE, Fadable))
#define IS_FADABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FADABLE))
#define FADABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), TYPE_FADABLE, FadableIface))

typedef struct _Fadable Fadable;
typedef struct _FadableIface FadableIface;

#define TYPE_FADE_TRACKER (fade_tracker_get_type ())
#define FADE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FADE_TRACKER, FadeTracker))
#define FADE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FADE_TRACKER, FadeTrackerClass))
#define IS_FADE_TRACKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FADE_TRACKER))
#define IS_FADE_TRACKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FADE_TRACKER))
#define FADE_TRACKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FADE_TRACKER, FadeTrackerClass))

typedef struct _FadeTracker FadeTracker;
typedef struct _FadeTrackerClass FadeTrackerClass;

#define TYPE_FADABLE_BOX (fadable_box_get_type ())
#define FADABLE_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FADABLE_BOX, FadableBox))
#define FADABLE_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FADABLE_BOX, FadableBoxClass))
#define IS_FADABLE_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FADABLE_BOX))
#define IS_FADABLE_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FADABLE_BOX))
#define FADABLE_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FADABLE_BOX, FadableBoxClass))

typedef struct _FadableBox FadableBox;
typedef struct _FadableBoxClass FadableBoxClass;
typedef struct _FadableBoxPrivate FadableBoxPrivate;

#define TYPE_PROMPT_BOX (prompt_box_get_type ())
#define PROMPT_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_PROMPT_BOX, PromptBox))
#define PROMPT_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_PROMPT_BOX, PromptBoxClass))
#define IS_PROMPT_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_PROMPT_BOX))
#define IS_PROMPT_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_PROMPT_BOX))
#define PROMPT_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_PROMPT_BOX, PromptBoxClass))

typedef struct _PromptBox PromptBox;
typedef struct _PromptBoxClass PromptBoxClass;
typedef struct _PromptBoxPrivate PromptBoxPrivate;

#define TYPE_FADING_LABEL (fading_label_get_type ())
#define FADING_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FADING_LABEL, FadingLabel))
#define FADING_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FADING_LABEL, FadingLabelClass))
#define IS_FADING_LABEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FADING_LABEL))
#define IS_FADING_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FADING_LABEL))
#define FADING_LABEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FADING_LABEL, FadingLabelClass))

typedef struct _FadingLabel FadingLabel;
typedef struct _FadingLabelClass FadingLabelClass;

#define TYPE_FLAT_BUTTON (flat_button_get_type ())
#define FLAT_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_FLAT_BUTTON, FlatButton))
#define FLAT_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_FLAT_BUTTON, FlatButtonClass))
#define IS_FLAT_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_FLAT_BUTTON))
#define IS_FLAT_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_FLAT_BUTTON))
#define FLAT_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_FLAT_BUTTON, FlatButtonClass))

typedef struct _FlatButton FlatButton;
typedef struct _FlatButtonClass FlatButtonClass;

#define TYPE_ACTIVE_INDICATOR (active_indicator_get_type ())
#define ACTIVE_INDICATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ACTIVE_INDICATOR, ActiveIndicator))
#define ACTIVE_INDICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ACTIVE_INDICATOR, ActiveIndicatorClass))
#define IS_ACTIVE_INDICATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ACTIVE_INDICATOR))
#define IS_ACTIVE_INDICATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ACTIVE_INDICATOR))
#define ACTIVE_INDICATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ACTIVE_INDICATOR, ActiveIndicatorClass))

typedef struct _ActiveIndicator ActiveIndicator;
typedef struct _ActiveIndicatorClass ActiveIndicatorClass;

#define TYPE_CACHED_IMAGE (cached_image_get_type ())
#define CACHED_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_CACHED_IMAGE, CachedImage))
#define CACHED_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_CACHED_IMAGE, CachedImageClass))
#define IS_CACHED_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_CACHED_IMAGE))
#define IS_CACHED_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_CACHED_IMAGE))
#define CACHED_IMAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_CACHED_IMAGE, CachedImageClass))

typedef struct _CachedImage CachedImage;
typedef struct _CachedImageClass CachedImageClass;

#define TYPE_USER_AVATAR (user_avatar_get_type ())
#define USER_AVATAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_USER_AVATAR, UserAvatar))
#define USER_AVATAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_USER_AVATAR, UserAvatarClass))
#define IS_USER_AVATAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_USER_AVATAR))
#define IS_USER_AVATAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_USER_AVATAR))
#define USER_AVATAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_USER_AVATAR, UserAvatarClass))

typedef struct _UserAvatar UserAvatar;
typedef struct _UserAvatarClass UserAvatarClass;
typedef enum  {
	PROMPT_BOX_PROMPT_VISIBILITY_HIDDEN,
	PROMPT_BOX_PROMPT_VISIBILITY_FADING,
	PROMPT_BOX_PROMPT_VISIBILITY_SHOWN
} PromptBoxPromptVisibility;

#define PROMPT_BOX_TYPE_PROMPT_VISIBILITY (prompt_box_prompt_visibility_get_type ())
enum  {
	PROMPT_BOX_0_PROPERTY,
	PROMPT_BOX_HAS_ERRORS_PROPERTY,
	PROMPT_BOX_ID_PROPERTY,
	PROMPT_BOX_LABEL_PROPERTY,
	PROMPT_BOX_POSITION_PROPERTY,
	PROMPT_BOX_NUM_PROPERTIES
};
static GParamSpec* prompt_box_properties[PROMPT_BOX_NUM_PROPERTIES];
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define __vala_PangoFontDescription_free0(var) ((var == NULL) ? NULL : (var = (_vala_PangoFontDescription_free (var), NULL)))

#define TYPE_DASH_ENTRY (dash_entry_get_type ())
#define DASH_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DASH_ENTRY, DashEntry))
#define DASH_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DASH_ENTRY, DashEntryClass))
#define IS_DASH_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DASH_ENTRY))
#define IS_DASH_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DASH_ENTRY))
#define DASH_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DASH_ENTRY, DashEntryClass))

typedef struct _DashEntry DashEntry;
typedef struct _DashEntryClass DashEntryClass;
typedef struct _Block4Data Block4Data;
typedef struct _Block5Data Block5Data;
typedef struct _Block6Data Block6Data;

#define TYPE_DASH_BUTTON (dash_button_get_type ())
#define DASH_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_DASH_BUTTON, DashButton))
#define DASH_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_DASH_BUTTON, DashButtonClass))
#define IS_DASH_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_DASH_BUTTON))
#define IS_DASH_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_DASH_BUTTON))
#define DASH_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_DASH_BUTTON, DashButtonClass))

typedef struct _DashButton DashButton;
typedef struct _DashButtonClass DashButtonClass;
typedef struct _Block7Data Block7Data;
enum  {
	PROMPT_BOX_RESPOND_SIGNAL,
	PROMPT_BOX_LOGIN_SIGNAL,
	PROMPT_BOX_SHOW_OPTIONS_SIGNAL,
	PROMPT_BOX_NAME_CLICKED_SIGNAL,
	PROMPT_BOX_NUM_SIGNALS
};
static guint prompt_box_signals[PROMPT_BOX_NUM_SIGNALS] = {0};
typedef struct _ActiveIndicatorPrivate ActiveIndicatorPrivate;
enum  {
	ACTIVE_INDICATOR_0_PROPERTY,
	ACTIVE_INDICATOR_ACTIVE_PROPERTY,
	ACTIVE_INDICATOR_NUM_PROPERTIES
};
static GParamSpec* active_indicator_properties[ACTIVE_INDICATOR_NUM_PROPERTIES];
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

struct _FadableIface {
	GTypeInterface parent_iface;
	FadeTracker* (*get_fade_tracker) (Fadable* self);
	void (*set_fade_tracker) (Fadable* self, FadeTracker* value);
};

struct _FadableBox {
	GtkEventBox parent_instance;
	FadableBoxPrivate * priv;
};

struct _FadableBoxClass {
	GtkEventBoxClass parent_class;
	void (*draw_full_alpha) (FadableBox* self, cairo_t* c);
};

struct _PromptBox {
	FadableBox parent_instance;
	PromptBoxPrivate * priv;
	GtkGrid* box_grid;
	GtkGrid* name_grid;
	FadingLabel* name_label;
	FlatButton* option_button;
	GtkWidget* small_box_widget;
	FadingLabel* small_name_label;
	gint start_row;
	gint last_row;
};

struct _PromptBoxClass {
	FadableBoxClass parent_class;
	GtkGrid* (*create_name_grid) (PromptBox* self);
	GtkGrid* (*create_small_name_grid) (PromptBox* self);
	void (*set_start_row) (PromptBox* self);
	void (*reset_last_row) (PromptBox* self);
	void (*add_static_prompts) (PromptBox* self);
};

struct _PromptBoxPrivate {
	gboolean _has_errors;
	gchar* _id;
	gdouble _position;
	GtkFixed* fixed;
	GtkWidget* zone;
	ActiveIndicator* active_indicator;
	CachedImage* option_image;
	CachedImage* message_image;
	UserAvatar* avatar_image;
	ActiveIndicator* small_active_indicator;
	CachedImage* small_message_image;
	UserAvatar* small_avatar_image;
	PromptBoxPromptVisibility prompt_visibility;
};

struct _Block4Data {
	int _ref_count_;
	PromptBox* self;
	DashEntry* entry;
};

struct _Block5Data {
	int _ref_count_;
	PromptBox* self;
	GtkComboBoxText* combo;
};

struct _Block6Data {
	int _ref_count_;
	PromptBox* self;
	gchar** response;
	gint response_length1;
	gint _response_size_;
};

struct _Block7Data {
	int _ref_count_;
	PromptBox* self;
	gboolean done;
	GtkWidget* best;
};

struct _ActiveIndicator {
	GtkImage parent_instance;
	ActiveIndicatorPrivate * priv;
};

struct _ActiveIndicatorClass {
	GtkImageClass parent_class;
};

struct _ActiveIndicatorPrivate {
	gboolean _active;
};

static gint PromptBox_private_offset;
static gpointer prompt_box_parent_class = NULL;
VALA_EXTERN gchar* dash_entry_font;
static gint ActiveIndicator_private_offset;
static gpointer active_indicator_parent_class = NULL;

VALA_EXTERN GType fade_tracker_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (FadeTracker, g_object_unref)
VALA_EXTERN GType fadable_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (Fadable, g_object_unref)
VALA_EXTERN GType fadable_box_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (FadableBox, g_object_unref)
VALA_EXTERN GType prompt_box_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PromptBox, g_object_unref)
VALA_EXTERN GType fading_label_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (FadingLabel, g_object_unref)
VALA_EXTERN GType flat_button_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (FlatButton, g_object_unref)
VALA_EXTERN GType active_indicator_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ActiveIndicator, g_object_unref)
VALA_EXTERN GType cached_image_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (CachedImage, g_object_unref)
VALA_EXTERN GType user_avatar_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (UserAvatar, g_object_unref)
static GType prompt_box_prompt_visibility_get_type (void) G_GNUC_CONST  G_GNUC_UNUSED ;
VALA_EXTERN GtkGrid* prompt_box_create_name_grid (PromptBox* self);
VALA_EXTERN GtkGrid* prompt_box_create_small_name_grid (PromptBox* self);
VALA_EXTERN void prompt_box_set_start_row (PromptBox* self);
VALA_EXTERN void prompt_box_reset_last_row (PromptBox* self);
VALA_EXTERN void prompt_box_add_static_prompts (PromptBox* self);
VALA_EXTERN void fadable_box_draw_full_alpha (FadableBox* self,
                                  cairo_t* c);
VALA_EXTERN PromptBox* prompt_box_new (const gchar* id);
VALA_EXTERN PromptBox* prompt_box_construct (GType object_type,
                                 const gchar* id);
static void prompt_box_update_visibility (PromptBox* self);
VALA_EXTERN gdouble prompt_box_get_position (PromptBox* self);
static GtkGrid* prompt_box_real_create_name_grid (PromptBox* self);
VALA_EXTERN UserAvatar* user_avatar_new (void);
VALA_EXTERN UserAvatar* user_avatar_construct (GType object_type);
VALA_EXTERN FadingLabel* fading_label_new (const gchar* text);
VALA_EXTERN FadingLabel* fading_label_construct (GType object_type,
                                     const gchar* text);
static void _vala_PangoFontDescription_free (PangoFontDescription* self);
VALA_EXTERN CachedImage* cached_image_new (GdkPixbuf* pixbuf);
VALA_EXTERN CachedImage* cached_image_construct (GType object_type,
                                     GdkPixbuf* pixbuf);
VALA_EXTERN FlatButton* flat_button_new (void);
VALA_EXTERN FlatButton* flat_button_construct (GType object_type);
static void prompt_box_option_button_clicked_cb (PromptBox* self,
                                          GtkButton* button);
static void _prompt_box_option_button_clicked_cb_gtk_button_clicked (GtkButton* _sender,
                                                              gpointer self);
static GtkGrid* prompt_box_real_create_small_name_grid (PromptBox* self);
VALA_EXTERN void user_avatar_set_is_small (UserAvatar* self,
                               gboolean value);
static void prompt_box_real_set_start_row (PromptBox* self);
static void prompt_box_real_reset_last_row (PromptBox* self);
static gint prompt_box_round_to_grid (PromptBox* self,
                               gint size);
static void prompt_box_real_get_preferred_height (GtkWidget* base,
                                           gint* min,
                                           gint* nat);
VALA_EXTERN void prompt_box_set_zone (PromptBox* self,
                          GtkWidget* zone);
VALA_EXTERN void prompt_box_set_options_image (PromptBox* self,
                                   GdkPixbuf* image,
                                   const gchar* tooltip);
VALA_EXTERN void cached_image_set_pixbuf (CachedImage* self,
                              GdkPixbuf* pixbuf);
VALA_EXTERN void prompt_box_set_show_message_icon (PromptBox* self,
                                       gboolean show);
VALA_EXTERN void prompt_box_set_is_active (PromptBox* self,
                               gboolean active);
VALA_EXTERN void active_indicator_set_active (ActiveIndicator* self,
                                  gboolean value);
VALA_EXTERN void prompt_box_foreach_prompt_widget (PromptBox* self,
                                       GtkCallback cb,
                                       gpointer cb_target);
static void _g_object_unref0_ (gpointer var);
static inline void _g_list_free__g_object_unref0_ (GList* self);
VALA_EXTERN void prompt_box_clear (PromptBox* self);
static void __lambda25_ (PromptBox* self,
                  GtkWidget* w);
static void ___lambda25__gtk_callback (GtkWidget* widget,
                                gpointer self);
VALA_EXTERN void prompt_box_set_has_errors (PromptBox* self,
                                gboolean value);
VALA_EXTERN void prompt_box_reset_messages (PromptBox* self);
static void __lambda26_ (PromptBox* self,
                  GtkWidget* w);
static void ___lambda26__gtk_callback (GtkWidget* widget,
                                gpointer self);
VALA_EXTERN void prompt_box_reset_spinners (PromptBox* self);
static void __lambda27_ (PromptBox* self,
                  GtkWidget* w);
VALA_EXTERN GType dash_entry_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (DashEntry, g_object_unref)
VALA_EXTERN void dash_entry_set_did_respond (DashEntry* self,
                                 gboolean value);
static void ___lambda27__gtk_callback (GtkWidget* widget,
                                gpointer self);
VALA_EXTERN void prompt_box_reset_state (PromptBox* self);
static void prompt_box_real_add_static_prompts (PromptBox* self);
static void prompt_box_update_prompt_visibility (PromptBox* self,
                                          GtkWidget* w);
VALA_EXTERN void fadable_fade_in (Fadable* self);
VALA_EXTERN void prompt_box_fade_in_prompts (PromptBox* self);
static void __lambda28_ (PromptBox* self,
                  GtkWidget* w);
static void ___lambda28__gtk_callback (GtkWidget* widget,
                                gpointer self);
VALA_EXTERN void prompt_box_show_prompts (PromptBox* self);
static void __lambda29_ (PromptBox* self,
                  GtkWidget* w);
static void ___lambda29__gtk_callback (GtkWidget* widget,
                                gpointer self);
VALA_EXTERN void prompt_box_attach_item (PromptBox* self,
                             GtkWidget* w,
                             gboolean add_style_class);
VALA_EXTERN void slick_greeter_add_style_class (GtkWidget* widget);
VALA_EXTERN void prompt_box_add_message (PromptBox* self,
                             const gchar* text,
                             gboolean is_error);
VALA_EXTERN DashEntry* prompt_box_add_prompt (PromptBox* self,
                                  const gchar* text,
                                  const gchar* accessible_text,
                                  gboolean is_secret);
static Block4Data* block4_data_ref (Block4Data* _data4_);
static void block4_data_unref (void * _userdata_);
static void __lambda30_ (PromptBox* self,
                  GtkWidget* w);
VALA_EXTERN void dash_entry_set_can_respond (DashEntry* self,
                                 gboolean value);
static void ___lambda30__gtk_callback (GtkWidget* widget,
                                gpointer self);
VALA_EXTERN DashEntry* dash_entry_new (void);
VALA_EXTERN DashEntry* dash_entry_construct (GType object_type);
VALA_EXTERN void dash_entry_set_constant_placeholder_text (DashEntry* self,
                                               const gchar* value);
static gboolean ___lambda31_ (Block4Data* _data4_,
                       GtkWidget* widget,
                       GdkEventButton* event);
VALA_EXTERN void prompt_box_show_toggle_visibility_icon (PromptBox* self,
                                             GtkEntry* entry);
static gboolean ____lambda31__gtk_widget_button_release_event (GtkWidget* _sender,
                                                        GdkEventButton* event,
                                                        gpointer self);
static gboolean ___lambda32_ (Block4Data* _data4_,
                       GtkWidget* widget,
                       GdkEventKey* event);
static gboolean ____lambda32__gtk_widget_key_press_event (GtkWidget* _sender,
                                                   GdkEventKey* event,
                                                   gpointer self);
VALA_EXTERN void prompt_box_entry_icon_press_cb (PromptBox* self,
                                     GtkEntry* entry,
                                     GtkEntryIconPosition position,
                                     GdkEvent* event);
static void _prompt_box_entry_icon_press_cb_gtk_entry_icon_press (GtkEntry* _sender,
                                                           GtkEntryIconPosition icon_pos,
                                                           GdkEvent* event,
                                                           gpointer self);
VALA_EXTERN void prompt_box_entry_activate_cb (PromptBox* self);
static void _prompt_box_entry_activate_cb_dash_entry_respond (DashEntry* _sender,
                                                       gpointer self);
VALA_EXTERN GtkComboBox* prompt_box_add_combo (PromptBox* self,
                                   GPtrArray* texts,
                                   gboolean read_only);
static Block5Data* block5_data_ref (Block5Data* _data5_);
static void block5_data_unref (void * _userdata_);
static void __lambda34_ (Block5Data* _data5_,
                  const gchar* text);
static void ___lambda34__gfunc (gconstpointer data,
                         gpointer self);
static Block6Data* block6_data_ref (Block6Data* _data6_);
static void block6_data_unref (void * _userdata_);
static void __lambda33_ (Block6Data* _data6_,
                  GtkWidget* w);
static void _vala_array_add1 (gchar** * array,
                       gint* length,
                       gint* size,
                       gchar* value);
static void ___lambda33__gtk_callback (GtkWidget* widget,
                                gpointer self);
VALA_EXTERN void prompt_box_add_button (PromptBox* self,
                            const gchar* text,
                            const gchar* accessible_text);
VALA_EXTERN GType dash_button_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (DashButton, g_object_unref)
VALA_EXTERN DashButton* dash_button_new (const gchar* text);
VALA_EXTERN DashButton* dash_button_construct (GType object_type,
                                   const gchar* text);
static void prompt_box_button_clicked_cb (PromptBox* self,
                                   GtkButton* button);
static void _prompt_box_button_clicked_cb_gtk_button_clicked (GtkButton* _sender,
                                                       gpointer self);
static void prompt_box_real_grab_focus (GtkWidget* base);
static Block7Data* block7_data_ref (Block7Data* _data7_);
static void block7_data_unref (void * _userdata_);
static void __lambda35_ (Block7Data* _data7_,
                  GtkWidget* w);
static void ___lambda35__gtk_callback (GtkWidget* widget,
                                gpointer self);
static void prompt_box_real_size_allocate (GtkWidget* base,
                                    GtkAllocation* allocation);
static void prompt_box_real_draw_full_alpha (FadableBox* base,
                                      cairo_t* c);
VALA_EXTERN void prompt_box_set_avatar_path (PromptBox* self,
                                 const gchar* path);
VALA_EXTERN void user_avatar_set_avatar_path (UserAvatar* self,
                                  const gchar* value);
VALA_EXTERN void prompt_box_hide_avatar (PromptBox* self);
VALA_EXTERN gboolean prompt_box_get_has_errors (PromptBox* self);
VALA_EXTERN const gchar* prompt_box_get_id (PromptBox* self);
static void prompt_box_set_id (PromptBox* self,
                        const gchar* value);
VALA_EXTERN const gchar* prompt_box_get_label (PromptBox* self);
VALA_EXTERN void prompt_box_set_label (PromptBox* self,
                           const gchar* value);
VALA_EXTERN void prompt_box_set_position (PromptBox* self,
                              gdouble value);
static void g_cclosure_user_marshal_VOID__BOXED_INT (GClosure * closure,
                                              GValue * return_value,
                                              guint n_param_values,
                                              const GValue * param_values,
                                              gpointer invocation_hint,
                                              gpointer marshal_data);
static GObject * prompt_box_constructor (GType type,
                                  guint n_construct_properties,
                                  GObjectConstructParam * construct_properties);
VALA_EXTERN ActiveIndicator* active_indicator_new (void);
VALA_EXTERN ActiveIndicator* active_indicator_construct (GType object_type);
static gboolean _prompt_box___lambda36_ (PromptBox* self);
static gboolean __prompt_box___lambda36__gtk_widget_button_release_event (GtkWidget* _sender,
                                                                   GdkEventButton* event,
                                                                   gpointer self);
static void _prompt_box_update_visibility_g_object_notify (GObject* _sender,
                                                    GParamSpec* pspec,
                                                    gpointer self);
static void prompt_box_finalize (GObject * obj);
static GType prompt_box_get_type_once (void);
static void _vala_prompt_box_get_property (GObject * object,
                                    guint property_id,
                                    GValue * value,
                                    GParamSpec * pspec);
static void _vala_prompt_box_set_property (GObject * object,
                                    guint property_id,
                                    const GValue * value,
                                    GParamSpec * pspec);
static void active_indicator_real_get_preferred_width (GtkWidget* base,
                                                gint* min,
                                                gint* nat);
static void active_indicator_real_get_preferred_height (GtkWidget* base,
                                                 gint* min,
                                                 gint* nat);
static gboolean active_indicator_real_draw (GtkWidget* base,
                                     cairo_t* c);
VALA_EXTERN gboolean active_indicator_get_active (ActiveIndicator* self);
static GObject * active_indicator_constructor (GType type,
                                        guint n_construct_properties,
                                        GObjectConstructParam * construct_properties);
static void _active_indicator___lambda24_ (ActiveIndicator* self);
static void __active_indicator___lambda24__g_object_notify (GObject* _sender,
                                                     GParamSpec* pspec,
                                                     gpointer self);
static void active_indicator_finalize (GObject * obj);
static GType active_indicator_get_type_once (void);
static void _vala_active_indicator_get_property (GObject * object,
                                          guint property_id,
                                          GValue * value,
                                          GParamSpec * pspec);
static void _vala_active_indicator_set_property (GObject * object,
                                          guint property_id,
                                          const GValue * value,
                                          GParamSpec * pspec);
static void _vala_array_destroy (gpointer array,
                          gssize array_length,
                          GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array,
                       gssize array_length,
                       GDestroyNotify destroy_func);
static inline gpointer _vala_memdup2 (gconstpointer mem,
                        gsize byte_size);

static inline gpointer
prompt_box_get_instance_private (PromptBox* self)
{
	return G_STRUCT_MEMBER_P (self, PromptBox_private_offset);
}

static GType
prompt_box_prompt_visibility_get_type_once (void)
{
	static const GEnumValue values[] = {{PROMPT_BOX_PROMPT_VISIBILITY_HIDDEN, "PROMPT_BOX_PROMPT_VISIBILITY_HIDDEN", "hidden"}, {PROMPT_BOX_PROMPT_VISIBILITY_FADING, "PROMPT_BOX_PROMPT_VISIBILITY_FADING", "fading"}, {PROMPT_BOX_PROMPT_VISIBILITY_SHOWN, "PROMPT_BOX_PROMPT_VISIBILITY_SHOWN", "shown"}, {0, NULL, NULL}};
	GType prompt_box_prompt_visibility_type_id;
	prompt_box_prompt_visibility_type_id = g_enum_register_static ("PromptBoxPromptVisibility", values);
	return prompt_box_prompt_visibility_type_id;
}

static GType
prompt_box_prompt_visibility_get_type (void)
{
	static volatile gsize prompt_box_prompt_visibility_type_id__once = 0;
	if (g_once_init_enter (&prompt_box_prompt_visibility_type_id__once)) {
		GType prompt_box_prompt_visibility_type_id;
		prompt_box_prompt_visibility_type_id = prompt_box_prompt_visibility_get_type_once ();
		g_once_init_leave (&prompt_box_prompt_visibility_type_id__once, prompt_box_prompt_visibility_type_id);
	}
	return prompt_box_prompt_visibility_type_id__once;
}

PromptBox*
prompt_box_construct (GType object_type,
                      const gchar* id)
{
	PromptBox * self = NULL;
#line 88 "../src/prompt-box.vala"
	g_return_val_if_fail (id != NULL, NULL);
#line 90 "../src/prompt-box.vala"
	self = (PromptBox*) g_object_new (object_type, "id", id, NULL);
#line 88 "../src/prompt-box.vala"
	return self;
#line 639 "prompt-box.c"
}

PromptBox*
prompt_box_new (const gchar* id)
{
#line 88 "../src/prompt-box.vala"
	return prompt_box_construct (TYPE_PROMPT_BOX, id);
#line 647 "prompt-box.c"
}

static void
prompt_box_update_visibility (PromptBox* self)
{
	gboolean _tmp0_ = FALSE;
	gdouble _tmp1_;
#line 185 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 188 "../src/prompt-box.vala"
	_tmp1_ = self->priv->_position;
#line 188 "../src/prompt-box.vala"
	if (_tmp1_ >= (-0.1)) {
#line 661 "prompt-box.c"
		gdouble _tmp2_;
#line 188 "../src/prompt-box.vala"
		_tmp2_ = self->priv->_position;
#line 188 "../src/prompt-box.vala"
		_tmp0_ = _tmp2_ <= 0.1;
#line 667 "prompt-box.c"
	} else {
#line 188 "../src/prompt-box.vala"
		_tmp0_ = FALSE;
#line 671 "prompt-box.c"
	}
#line 188 "../src/prompt-box.vala"
	if (_tmp0_) {
#line 675 "prompt-box.c"
		GtkGrid* _tmp3_;
		GtkWidget* _tmp4_;
		GtkGrid* _tmp5_;
		GtkWidget* _tmp6_;
#line 189 "../src/prompt-box.vala"
		_tmp3_ = self->box_grid;
#line 189 "../src/prompt-box.vala"
		gtk_widget_set_opacity ((GtkWidget*) _tmp3_, 1.0);
#line 190 "../src/prompt-box.vala"
		_tmp4_ = self->small_box_widget;
#line 190 "../src/prompt-box.vala"
		gtk_widget_set_opacity (_tmp4_, 0.0);
#line 191 "../src/prompt-box.vala"
		_tmp5_ = self->box_grid;
#line 191 "../src/prompt-box.vala"
		gtk_widget_set_visible ((GtkWidget*) _tmp5_, TRUE);
#line 192 "../src/prompt-box.vala"
		_tmp6_ = self->small_box_widget;
#line 192 "../src/prompt-box.vala"
		gtk_widget_set_visible (_tmp6_, FALSE);
#line 696 "prompt-box.c"
	} else {
		GtkGrid* _tmp7_;
		GtkWidget* _tmp8_;
		GtkGrid* _tmp9_;
		GtkWidget* _tmp10_;
#line 196 "../src/prompt-box.vala"
		_tmp7_ = self->box_grid;
#line 196 "../src/prompt-box.vala"
		gtk_widget_set_opacity ((GtkWidget*) _tmp7_, 0.0);
#line 197 "../src/prompt-box.vala"
		_tmp8_ = self->small_box_widget;
#line 197 "../src/prompt-box.vala"
		gtk_widget_set_opacity (_tmp8_, 1.0);
#line 198 "../src/prompt-box.vala"
		_tmp9_ = self->box_grid;
#line 198 "../src/prompt-box.vala"
		gtk_widget_set_visible ((GtkWidget*) _tmp9_, FALSE);
#line 199 "../src/prompt-box.vala"
		_tmp10_ = self->small_box_widget;
#line 199 "../src/prompt-box.vala"
		gtk_widget_set_visible (_tmp10_, TRUE);
#line 718 "prompt-box.c"
	}
}

static void
_vala_PangoFontDescription_free (PangoFontDescription* self)
{
#line 217 "../src/prompt-box.vala"
	g_boxed_free (pango_font_description_get_type (), self);
#line 727 "prompt-box.c"
}

static void
_prompt_box_option_button_clicked_cb_gtk_button_clicked (GtkButton* _sender,
                                                         gpointer self)
{
#line 251 "../src/prompt-box.vala"
	prompt_box_option_button_clicked_cb ((PromptBox*) self, _sender);
#line 736 "prompt-box.c"
}

static GtkGrid*
prompt_box_real_create_name_grid (PromptBox* self)
{
	GtkGrid* name_grid = NULL;
	GtkGrid* _tmp0_;
	UserAvatar* _tmp1_;
	UserAvatar* _tmp2_;
	UserAvatar* _tmp3_;
	UserAvatar* _tmp4_;
	GtkGrid* _tmp5_;
	gint _tmp6_;
	gint _tmp7_;
	UserAvatar* _tmp8_;
	UserAvatar* _tmp9_;
	FadingLabel* _tmp10_;
	FadingLabel* _tmp11_;
	PangoFontDescription* _tmp12_;
	PangoFontDescription* _tmp13_;
	FadingLabel* _tmp14_;
	GdkRGBA _tmp15_ = {0};
	FadingLabel* _tmp16_;
	FadingLabel* _tmp17_;
	FadingLabel* _tmp18_;
	FadingLabel* _tmp19_;
	FadingLabel* _tmp20_;
	FadingLabel* _tmp21_;
	FadingLabel* _tmp22_;
	FadingLabel* _tmp23_;
	CachedImage* _tmp24_;
	CachedImage* _tmp25_;
	CachedImage* _tmp26_;
	CachedImage* _tmp27_;
	GtkAlignment* align = NULL;
	GtkAlignment* _tmp28_;
	CachedImage* _tmp29_;
	FlatButton* _tmp30_;
	FlatButton* _tmp31_;
	GtkStyleContext* _tmp32_;
	FlatButton* _tmp33_;
	FlatButton* _tmp34_;
	FlatButton* _tmp35_;
	FlatButton* _tmp36_;
	FlatButton* _tmp37_;
	GtkGrid* _tmp38_;
	gint _tmp39_;
	gint _tmp40_;
	FlatButton* _tmp41_;
	FlatButton* _tmp42_;
	FlatButton* _tmp43_;
	AtkObject* _tmp44_;
	FlatButton* _tmp45_;
	CachedImage* _tmp46_;
	CachedImage* _tmp47_;
	FlatButton* _tmp48_;
	CachedImage* _tmp49_;
	FlatButton* _tmp50_;
	GtkGrid* result;
#line 205 "../src/prompt-box.vala"
	_tmp0_ = (GtkGrid*) gtk_grid_new ();
#line 205 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp0_);
#line 205 "../src/prompt-box.vala"
	name_grid = _tmp0_;
#line 206 "../src/prompt-box.vala"
	gtk_grid_set_column_spacing (name_grid, 4);
#line 207 "../src/prompt-box.vala"
	gtk_widget_set_hexpand ((GtkWidget*) name_grid, TRUE);
#line 209 "../src/prompt-box.vala"
	_tmp1_ = user_avatar_new ();
#line 209 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp1_);
#line 209 "../src/prompt-box.vala"
	_g_object_unref0 (self->priv->avatar_image);
#line 209 "../src/prompt-box.vala"
	self->priv->avatar_image = _tmp1_;
#line 210 "../src/prompt-box.vala"
	_tmp2_ = self->priv->avatar_image;
#line 210 "../src/prompt-box.vala"
	gtk_widget_set_valign ((GtkWidget*) _tmp2_, GTK_ALIGN_START);
#line 211 "../src/prompt-box.vala"
	_tmp3_ = self->priv->avatar_image;
#line 211 "../src/prompt-box.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp3_, GTK_ALIGN_START);
#line 212 "../src/prompt-box.vala"
	_tmp4_ = self->priv->avatar_image;
#line 212 "../src/prompt-box.vala"
	_tmp5_ = self->box_grid;
#line 212 "../src/prompt-box.vala"
	_tmp6_ = gtk_grid_get_column_spacing (_tmp5_);
#line 212 "../src/prompt-box.vala"
	_tmp7_ = _tmp6_;
#line 212 "../src/prompt-box.vala"
	gtk_widget_set_margin_top ((GtkWidget*) _tmp4_, (ACTIVE_INDICATOR_WIDTH + _tmp7_) - ACTIVE_INDICATOR_MARGIN);
#line 213 "../src/prompt-box.vala"
	_tmp8_ = self->priv->avatar_image;
#line 213 "../src/prompt-box.vala"
	gtk_widget_show ((GtkWidget*) _tmp8_);
#line 214 "../src/prompt-box.vala"
	_tmp9_ = self->priv->avatar_image;
#line 214 "../src/prompt-box.vala"
	gtk_grid_attach (name_grid, (GtkWidget*) _tmp9_, PROMPT_BOX_COL_AVATAR, PROMPT_BOX_ROW_NAME, 1, 1);
#line 216 "../src/prompt-box.vala"
	_tmp10_ = fading_label_new ("");
#line 216 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp10_);
#line 216 "../src/prompt-box.vala"
	_g_object_unref0 (self->name_label);
#line 216 "../src/prompt-box.vala"
	self->name_label = _tmp10_;
#line 217 "../src/prompt-box.vala"
	_tmp11_ = self->name_label;
#line 217 "../src/prompt-box.vala"
	_tmp12_ = pango_font_description_from_string ("Ubuntu 13");
#line 217 "../src/prompt-box.vala"
	_tmp13_ = _tmp12_;
#line 217 "../src/prompt-box.vala"
	gtk_widget_override_font ((GtkWidget*) _tmp11_, _tmp13_);
#line 217 "../src/prompt-box.vala"
	__vala_PangoFontDescription_free0 (_tmp13_);
#line 218 "../src/prompt-box.vala"
	_tmp14_ = self->name_label;
#line 218 "../src/prompt-box.vala"
	_tmp15_.red = (gdouble) 1.0f;
#line 218 "../src/prompt-box.vala"
	_tmp15_.green = (gdouble) 1.0f;
#line 218 "../src/prompt-box.vala"
	_tmp15_.blue = (gdouble) 1.0f;
#line 218 "../src/prompt-box.vala"
	_tmp15_.alpha = (gdouble) 1.0f;
#line 218 "../src/prompt-box.vala"
	gtk_widget_override_color ((GtkWidget*) _tmp14_, GTK_STATE_FLAG_NORMAL, &_tmp15_);
#line 219 "../src/prompt-box.vala"
	_tmp16_ = self->name_label;
#line 219 "../src/prompt-box.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp16_, GTK_ALIGN_START);
#line 220 "../src/prompt-box.vala"
	_tmp17_ = self->name_label;
#line 220 "../src/prompt-box.vala"
	gtk_widget_set_valign ((GtkWidget*) _tmp17_, GTK_ALIGN_START);
#line 221 "../src/prompt-box.vala"
	_tmp18_ = self->name_label;
#line 221 "../src/prompt-box.vala"
	gtk_widget_set_vexpand ((GtkWidget*) _tmp18_, FALSE);
#line 222 "../src/prompt-box.vala"
	_tmp19_ = self->name_label;
#line 222 "../src/prompt-box.vala"
	gtk_widget_set_margin_left ((GtkWidget*) _tmp19_, 2);
#line 223 "../src/prompt-box.vala"
	_tmp20_ = self->name_label;
#line 223 "../src/prompt-box.vala"
	gtk_widget_set_margin_top ((GtkWidget*) _tmp20_, 4);
#line 224 "../src/prompt-box.vala"
	_tmp21_ = self->name_label;
#line 224 "../src/prompt-box.vala"
	gtk_widget_set_size_request ((GtkWidget*) _tmp21_, -1, grid_size);
#line 225 "../src/prompt-box.vala"
	_tmp22_ = self->name_label;
#line 225 "../src/prompt-box.vala"
	gtk_widget_show ((GtkWidget*) _tmp22_);
#line 226 "../src/prompt-box.vala"
	_tmp23_ = self->name_label;
#line 226 "../src/prompt-box.vala"
	gtk_grid_attach (name_grid, (GtkWidget*) _tmp23_, PROMPT_BOX_COL_NAME_LABEL, PROMPT_BOX_ROW_NAME, 1, 1);
#line 228 "../src/prompt-box.vala"
	_tmp24_ = cached_image_new (NULL);
#line 228 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp24_);
#line 228 "../src/prompt-box.vala"
	_g_object_unref0 (self->priv->message_image);
#line 228 "../src/prompt-box.vala"
	self->priv->message_image = _tmp24_;
#line 229 "../src/prompt-box.vala"
	_tmp25_ = self->priv->message_image;
#line 229 "../src/prompt-box.vala"
	gtk_image_set_from_icon_name ((GtkImage*) _tmp25_, "mail-unread", (GtkIconSize) GTK_ICON_SIZE_BUTTON);
#line 230 "../src/prompt-box.vala"
	_tmp26_ = self->priv->message_image;
#line 230 "../src/prompt-box.vala"
	gtk_widget_set_valign ((GtkWidget*) _tmp26_, GTK_ALIGN_CENTER);
#line 231 "../src/prompt-box.vala"
	_tmp27_ = self->priv->message_image;
#line 231 "../src/prompt-box.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp27_, GTK_ALIGN_CENTER);
#line 233 "../src/prompt-box.vala"
	_tmp28_ = (GtkAlignment*) gtk_alignment_new (0.5f, 0.5f, 0.0f, 0.0f);
#line 233 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp28_);
#line 233 "../src/prompt-box.vala"
	align = _tmp28_;
#line 234 "../src/prompt-box.vala"
	gtk_widget_set_valign ((GtkWidget*) align, GTK_ALIGN_START);
#line 235 "../src/prompt-box.vala"
	gtk_widget_set_size_request ((GtkWidget*) align, -1, grid_size);
#line 236 "../src/prompt-box.vala"
	_tmp29_ = self->priv->message_image;
#line 236 "../src/prompt-box.vala"
	gtk_container_add ((GtkContainer*) align, (GtkWidget*) _tmp29_);
#line 237 "../src/prompt-box.vala"
	gtk_widget_show ((GtkWidget*) align);
#line 238 "../src/prompt-box.vala"
	gtk_grid_attach (name_grid, (GtkWidget*) align, PROMPT_BOX_COL_NAME_MESSAGE, PROMPT_BOX_ROW_NAME, 1, 1);
#line 240 "../src/prompt-box.vala"
	_tmp30_ = flat_button_new ();
#line 240 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp30_);
#line 240 "../src/prompt-box.vala"
	_g_object_unref0 (self->option_button);
#line 240 "../src/prompt-box.vala"
	self->option_button = _tmp30_;
#line 241 "../src/prompt-box.vala"
	_tmp31_ = self->option_button;
#line 241 "../src/prompt-box.vala"
	_tmp32_ = gtk_widget_get_style_context ((GtkWidget*) _tmp31_);
#line 241 "../src/prompt-box.vala"
	gtk_style_context_add_class (_tmp32_, "option-button");
#line 242 "../src/prompt-box.vala"
	_tmp33_ = self->option_button;
#line 242 "../src/prompt-box.vala"
	gtk_widget_set_hexpand ((GtkWidget*) _tmp33_, TRUE);
#line 243 "../src/prompt-box.vala"
	_tmp34_ = self->option_button;
#line 243 "../src/prompt-box.vala"
	gtk_widget_set_vexpand ((GtkWidget*) _tmp34_, TRUE);
#line 244 "../src/prompt-box.vala"
	_tmp35_ = self->option_button;
#line 244 "../src/prompt-box.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp35_, GTK_ALIGN_END);
#line 245 "../src/prompt-box.vala"
	_tmp36_ = self->option_button;
#line 245 "../src/prompt-box.vala"
	gtk_widget_set_valign ((GtkWidget*) _tmp36_, GTK_ALIGN_START);
#line 247 "../src/prompt-box.vala"
	_tmp37_ = self->option_button;
#line 247 "../src/prompt-box.vala"
	_tmp38_ = self->box_grid;
#line 247 "../src/prompt-box.vala"
	_tmp39_ = gtk_grid_get_column_spacing (_tmp38_);
#line 247 "../src/prompt-box.vala"
	_tmp40_ = _tmp39_;
#line 247 "../src/prompt-box.vala"
	gtk_widget_set_margin_top ((GtkWidget*) _tmp37_, (ACTIVE_INDICATOR_WIDTH + _tmp40_) - ACTIVE_INDICATOR_MARGIN);
#line 248 "../src/prompt-box.vala"
	_tmp41_ = self->option_button;
#line 248 "../src/prompt-box.vala"
	gtk_button_set_focus_on_click ((GtkButton*) _tmp41_, FALSE);
#line 249 "../src/prompt-box.vala"
	_tmp42_ = self->option_button;
#line 249 "../src/prompt-box.vala"
	gtk_button_set_relief ((GtkButton*) _tmp42_, GTK_RELIEF_NONE);
#line 250 "../src/prompt-box.vala"
	_tmp43_ = self->option_button;
#line 250 "../src/prompt-box.vala"
	_tmp44_ = gtk_widget_get_accessible ((GtkWidget*) _tmp43_);
#line 250 "../src/prompt-box.vala"
	atk_object_set_name (_tmp44_, _ ("Session Options"));
#line 251 "../src/prompt-box.vala"
	_tmp45_ = self->option_button;
#line 251 "../src/prompt-box.vala"
	g_signal_connect_object ((GtkButton*) _tmp45_, "clicked", (GCallback) _prompt_box_option_button_clicked_cb_gtk_button_clicked, self, 0);
#line 252 "../src/prompt-box.vala"
	_tmp46_ = cached_image_new (NULL);
#line 252 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp46_);
#line 252 "../src/prompt-box.vala"
	_g_object_unref0 (self->priv->option_image);
#line 252 "../src/prompt-box.vala"
	self->priv->option_image = _tmp46_;
#line 253 "../src/prompt-box.vala"
	_tmp47_ = self->priv->option_image;
#line 253 "../src/prompt-box.vala"
	gtk_widget_show ((GtkWidget*) _tmp47_);
#line 255 "../src/prompt-box.vala"
	_tmp48_ = self->option_button;
#line 255 "../src/prompt-box.vala"
	_tmp49_ = self->priv->option_image;
#line 255 "../src/prompt-box.vala"
	gtk_container_add ((GtkContainer*) _tmp48_, (GtkWidget*) _tmp49_);
#line 256 "../src/prompt-box.vala"
	_tmp50_ = self->option_button;
#line 256 "../src/prompt-box.vala"
	gtk_grid_attach (name_grid, (GtkWidget*) _tmp50_, PROMPT_BOX_COL_NAME_OPTIONS, PROMPT_BOX_ROW_NAME, 1, 1);
#line 258 "../src/prompt-box.vala"
	gtk_widget_show ((GtkWidget*) name_grid);
#line 260 "../src/prompt-box.vala"
	result = name_grid;
#line 260 "../src/prompt-box.vala"
	_g_object_unref0 (align);
#line 260 "../src/prompt-box.vala"
	return result;
#line 1028 "prompt-box.c"
}

GtkGrid*
prompt_box_create_name_grid (PromptBox* self)
{
	PromptBoxClass* _klass_;
#line 203 "../src/prompt-box.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 203 "../src/prompt-box.vala"
	_klass_ = PROMPT_BOX_GET_CLASS (self);
#line 203 "../src/prompt-box.vala"
	if (_klass_->create_name_grid) {
#line 203 "../src/prompt-box.vala"
		return _klass_->create_name_grid (self);
#line 1043 "prompt-box.c"
	}
#line 203 "../src/prompt-box.vala"
	return NULL;
#line 1047 "prompt-box.c"
}

static GtkGrid*
prompt_box_real_create_small_name_grid (PromptBox* self)
{
	GtkGrid* small_name_grid = NULL;
	GtkGrid* _tmp0_;
	UserAvatar* _tmp1_;
	UserAvatar* _tmp2_;
	UserAvatar* _tmp3_;
	UserAvatar* _tmp4_;
	UserAvatar* _tmp5_;
	FadingLabel* _tmp6_;
	FadingLabel* _tmp7_;
	PangoFontDescription* _tmp8_;
	PangoFontDescription* _tmp9_;
	FadingLabel* _tmp10_;
	GdkRGBA _tmp11_ = {0};
	FadingLabel* _tmp12_;
	FadingLabel* _tmp13_;
	FadingLabel* _tmp14_;
	FadingLabel* _tmp15_;
	FadingLabel* _tmp16_;
	FadingLabel* _tmp17_;
	FadingLabel* _tmp18_;
	CachedImage* _tmp19_;
	CachedImage* _tmp20_;
	GtkAlignment* align = NULL;
	GtkAlignment* _tmp21_;
	CachedImage* _tmp22_;
	GtkGrid* result;
#line 265 "../src/prompt-box.vala"
	_tmp0_ = (GtkGrid*) gtk_grid_new ();
#line 265 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp0_);
#line 265 "../src/prompt-box.vala"
	small_name_grid = _tmp0_;
#line 266 "../src/prompt-box.vala"
	gtk_grid_set_column_spacing (small_name_grid, 4);
#line 268 "../src/prompt-box.vala"
	_tmp1_ = user_avatar_new ();
#line 268 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp1_);
#line 268 "../src/prompt-box.vala"
	_g_object_unref0 (self->priv->small_avatar_image);
#line 268 "../src/prompt-box.vala"
	self->priv->small_avatar_image = _tmp1_;
#line 269 "../src/prompt-box.vala"
	_tmp2_ = self->priv->small_avatar_image;
#line 269 "../src/prompt-box.vala"
	user_avatar_set_is_small (_tmp2_, TRUE);
#line 270 "../src/prompt-box.vala"
	_tmp3_ = self->priv->small_avatar_image;
#line 270 "../src/prompt-box.vala"
	gtk_widget_set_valign ((GtkWidget*) _tmp3_, GTK_ALIGN_CENTER);
#line 271 "../src/prompt-box.vala"
	_tmp4_ = self->priv->small_avatar_image;
#line 271 "../src/prompt-box.vala"
	gtk_widget_show ((GtkWidget*) _tmp4_);
#line 272 "../src/prompt-box.vala"
	_tmp5_ = self->priv->small_avatar_image;
#line 272 "../src/prompt-box.vala"
	gtk_grid_attach (small_name_grid, (GtkWidget*) _tmp5_, 0, 0, 1, 1);
#line 274 "../src/prompt-box.vala"
	_tmp6_ = fading_label_new ("");
#line 274 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp6_);
#line 274 "../src/prompt-box.vala"
	_g_object_unref0 (self->small_name_label);
#line 274 "../src/prompt-box.vala"
	self->small_name_label = _tmp6_;
#line 275 "../src/prompt-box.vala"
	_tmp7_ = self->small_name_label;
#line 275 "../src/prompt-box.vala"
	_tmp8_ = pango_font_description_from_string ("Ubuntu 13");
#line 275 "../src/prompt-box.vala"
	_tmp9_ = _tmp8_;
#line 275 "../src/prompt-box.vala"
	gtk_widget_override_font ((GtkWidget*) _tmp7_, _tmp9_);
#line 275 "../src/prompt-box.vala"
	__vala_PangoFontDescription_free0 (_tmp9_);
#line 276 "../src/prompt-box.vala"
	_tmp10_ = self->small_name_label;
#line 276 "../src/prompt-box.vala"
	_tmp11_.red = (gdouble) 1.0f;
#line 276 "../src/prompt-box.vala"
	_tmp11_.green = (gdouble) 1.0f;
#line 276 "../src/prompt-box.vala"
	_tmp11_.blue = (gdouble) 1.0f;
#line 276 "../src/prompt-box.vala"
	_tmp11_.alpha = (gdouble) 1.0f;
#line 276 "../src/prompt-box.vala"
	gtk_widget_override_color ((GtkWidget*) _tmp10_, GTK_STATE_FLAG_NORMAL, &_tmp11_);
#line 277 "../src/prompt-box.vala"
	_tmp12_ = self->small_name_label;
#line 277 "../src/prompt-box.vala"
	gtk_widget_set_valign ((GtkWidget*) _tmp12_, GTK_ALIGN_CENTER);
#line 278 "../src/prompt-box.vala"
	_tmp13_ = self->small_name_label;
#line 278 "../src/prompt-box.vala"
	gtk_label_set_yalign ((GtkLabel*) _tmp13_, 0.5f);
#line 279 "../src/prompt-box.vala"
	_tmp14_ = self->small_name_label;
#line 279 "../src/prompt-box.vala"
	gtk_label_set_xalign ((GtkLabel*) _tmp14_, 0.0f);
#line 280 "../src/prompt-box.vala"
	_tmp15_ = self->small_name_label;
#line 280 "../src/prompt-box.vala"
	gtk_widget_set_margin_left ((GtkWidget*) _tmp15_, 2);
#line 281 "../src/prompt-box.vala"
	_tmp16_ = self->small_name_label;
#line 281 "../src/prompt-box.vala"
	gtk_widget_set_size_request ((GtkWidget*) _tmp16_, -1, grid_size);
#line 282 "../src/prompt-box.vala"
	_tmp17_ = self->small_name_label;
#line 282 "../src/prompt-box.vala"
	gtk_widget_show ((GtkWidget*) _tmp17_);
#line 283 "../src/prompt-box.vala"
	_tmp18_ = self->small_name_label;
#line 283 "../src/prompt-box.vala"
	gtk_grid_attach (small_name_grid, (GtkWidget*) _tmp18_, 1, 0, 1, 1);
#line 285 "../src/prompt-box.vala"
	_tmp19_ = cached_image_new (NULL);
#line 285 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp19_);
#line 285 "../src/prompt-box.vala"
	_g_object_unref0 (self->priv->small_message_image);
#line 285 "../src/prompt-box.vala"
	self->priv->small_message_image = _tmp19_;
#line 286 "../src/prompt-box.vala"
	_tmp20_ = self->priv->small_message_image;
#line 286 "../src/prompt-box.vala"
	gtk_image_set_from_icon_name ((GtkImage*) _tmp20_, "mail-unread", (GtkIconSize) GTK_ICON_SIZE_BUTTON);
#line 288 "../src/prompt-box.vala"
	_tmp21_ = (GtkAlignment*) gtk_alignment_new (0.5f, 0.5f, 0.0f, 0.0f);
#line 288 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp21_);
#line 288 "../src/prompt-box.vala"
	align = _tmp21_;
#line 289 "../src/prompt-box.vala"
	gtk_widget_set_size_request ((GtkWidget*) align, -1, grid_size);
#line 290 "../src/prompt-box.vala"
	_tmp22_ = self->priv->small_message_image;
#line 290 "../src/prompt-box.vala"
	gtk_container_add ((GtkContainer*) align, (GtkWidget*) _tmp22_);
#line 291 "../src/prompt-box.vala"
	gtk_widget_show ((GtkWidget*) align);
#line 292 "../src/prompt-box.vala"
	gtk_grid_attach (small_name_grid, (GtkWidget*) align, 2, 0, 1, 1);
#line 294 "../src/prompt-box.vala"
	gtk_widget_show ((GtkWidget*) small_name_grid);
#line 295 "../src/prompt-box.vala"
	result = small_name_grid;
#line 295 "../src/prompt-box.vala"
	_g_object_unref0 (align);
#line 295 "../src/prompt-box.vala"
	return result;
#line 1205 "prompt-box.c"
}

GtkGrid*
prompt_box_create_small_name_grid (PromptBox* self)
{
	PromptBoxClass* _klass_;
#line 263 "../src/prompt-box.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 263 "../src/prompt-box.vala"
	_klass_ = PROMPT_BOX_GET_CLASS (self);
#line 263 "../src/prompt-box.vala"
	if (_klass_->create_small_name_grid) {
#line 263 "../src/prompt-box.vala"
		return _klass_->create_small_name_grid (self);
#line 1220 "prompt-box.c"
	}
#line 263 "../src/prompt-box.vala"
	return NULL;
#line 1224 "prompt-box.c"
}

static void
prompt_box_real_set_start_row (PromptBox* self)
{
#line 300 "../src/prompt-box.vala"
	self->start_row = 0;
#line 1232 "prompt-box.c"
}

void
prompt_box_set_start_row (PromptBox* self)
{
	PromptBoxClass* _klass_;
#line 298 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 298 "../src/prompt-box.vala"
	_klass_ = PROMPT_BOX_GET_CLASS (self);
#line 298 "../src/prompt-box.vala"
	if (_klass_->set_start_row) {
#line 298 "../src/prompt-box.vala"
		_klass_->set_start_row (self);
#line 1247 "prompt-box.c"
	}
}

static void
prompt_box_real_reset_last_row (PromptBox* self)
{
#line 305 "../src/prompt-box.vala"
	self->last_row = self->start_row;
#line 1256 "prompt-box.c"
}

void
prompt_box_reset_last_row (PromptBox* self)
{
	PromptBoxClass* _klass_;
#line 303 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 303 "../src/prompt-box.vala"
	_klass_ = PROMPT_BOX_GET_CLASS (self);
#line 303 "../src/prompt-box.vala"
	if (_klass_->reset_last_row) {
#line 303 "../src/prompt-box.vala"
		_klass_->reset_last_row (self);
#line 1271 "prompt-box.c"
	}
}

static gint
prompt_box_round_to_grid (PromptBox* self,
                          gint size)
{
	gint num_grids = 0;
	gint remainder = 0;
	gint result;
#line 309 "../src/prompt-box.vala"
	g_return_val_if_fail (self != NULL, -1);
#line 311 "../src/prompt-box.vala"
	num_grids = size / grid_size;
#line 312 "../src/prompt-box.vala"
	remainder = size % grid_size;
#line 313 "../src/prompt-box.vala"
	if (remainder > 0) {
#line 314 "../src/prompt-box.vala"
		num_grids += 1;
#line 1292 "prompt-box.c"
	}
#line 315 "../src/prompt-box.vala"
	num_grids = MAX (num_grids, 3);
#line 316 "../src/prompt-box.vala"
	result = num_grids * grid_size;
#line 316 "../src/prompt-box.vala"
	return result;
#line 1300 "prompt-box.c"
}

static void
prompt_box_real_get_preferred_height (GtkWidget* base,
                                      gint* min,
                                      gint* nat)
{
	PromptBox * self;
	gint _vala_min = 0;
	gint _vala_nat = 0;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
	gboolean _tmp2_ = FALSE;
	gdouble _tmp3_;
#line 319 "../src/prompt-box.vala"
	self = (PromptBox*) base;
#line 321 "../src/prompt-box.vala"
	GTK_WIDGET_CLASS (prompt_box_parent_class)->get_preferred_height ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_FADABLE_BOX, FadableBox), &_tmp0_, &_tmp1_);
#line 321 "../src/prompt-box.vala"
	_vala_min = _tmp0_;
#line 321 "../src/prompt-box.vala"
	_vala_nat = _tmp1_;
#line 322 "../src/prompt-box.vala"
	_vala_min = prompt_box_round_to_grid (self, _vala_min + (GREETER_LIST_BORDER * 2)) - (GREETER_LIST_BORDER * 2);
#line 323 "../src/prompt-box.vala"
	_vala_nat = prompt_box_round_to_grid (self, _vala_nat + (GREETER_LIST_BORDER * 2)) - (GREETER_LIST_BORDER * 2);
#line 325 "../src/prompt-box.vala"
	_tmp3_ = self->priv->_position;
#line 325 "../src/prompt-box.vala"
	if (_tmp3_ <= ((gdouble) -1)) {
#line 325 "../src/prompt-box.vala"
		_tmp2_ = TRUE;
#line 1333 "prompt-box.c"
	} else {
		gdouble _tmp4_;
#line 325 "../src/prompt-box.vala"
		_tmp4_ = self->priv->_position;
#line 325 "../src/prompt-box.vala"
		_tmp2_ = _tmp4_ >= ((gdouble) 1);
#line 1340 "prompt-box.c"
	}
#line 325 "../src/prompt-box.vala"
	if (_tmp2_) {
#line 326 "../src/prompt-box.vala"
		_vala_nat = grid_size;
#line 326 "../src/prompt-box.vala"
		_vala_min = _vala_nat;
#line 1348 "prompt-box.c"
	}
#line 319 "../src/prompt-box.vala"
	if (min) {
#line 319 "../src/prompt-box.vala"
		*min = _vala_min;
#line 1354 "prompt-box.c"
	}
#line 319 "../src/prompt-box.vala"
	if (nat) {
#line 319 "../src/prompt-box.vala"
		*nat = _vala_nat;
#line 1360 "prompt-box.c"
	}
}

static gpointer
_g_object_ref0 (gpointer self)
{
#line 332 "../src/prompt-box.vala"
	return self ? g_object_ref (self) : NULL;
#line 1369 "prompt-box.c"
}

void
prompt_box_set_zone (PromptBox* self,
                     GtkWidget* zone)
{
	GtkWidget* _tmp0_;
#line 330 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 330 "../src/prompt-box.vala"
	g_return_if_fail (zone != NULL);
#line 332 "../src/prompt-box.vala"
	_tmp0_ = _g_object_ref0 (zone);
#line 332 "../src/prompt-box.vala"
	_g_object_unref0 (self->priv->zone);
#line 332 "../src/prompt-box.vala"
	self->priv->zone = _tmp0_;
#line 333 "../src/prompt-box.vala"
	gtk_widget_queue_draw ((GtkWidget*) self);
#line 1389 "prompt-box.c"
}

void
prompt_box_set_options_image (PromptBox* self,
                              GdkPixbuf* image,
                              const gchar* tooltip)
{
	FlatButton* _tmp0_;
	CachedImage* _tmp1_;
#line 336 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 338 "../src/prompt-box.vala"
	_tmp0_ = self->option_button;
#line 338 "../src/prompt-box.vala"
	if (_tmp0_ == NULL) {
#line 339 "../src/prompt-box.vala"
		return;
#line 1407 "prompt-box.c"
	}
#line 341 "../src/prompt-box.vala"
	_tmp1_ = self->priv->option_image;
#line 341 "../src/prompt-box.vala"
	cached_image_set_pixbuf (_tmp1_, image);
#line 343 "../src/prompt-box.vala"
	if (tooltip == NULL) {
#line 1415 "prompt-box.c"
		CachedImage* _tmp2_;
#line 344 "../src/prompt-box.vala"
		_tmp2_ = self->priv->option_image;
#line 344 "../src/prompt-box.vala"
		gtk_widget_set_tooltip_text ((GtkWidget*) _tmp2_, "");
#line 1421 "prompt-box.c"
	} else {
		CachedImage* _tmp3_;
#line 346 "../src/prompt-box.vala"
		_tmp3_ = self->priv->option_image;
#line 346 "../src/prompt-box.vala"
		gtk_widget_set_tooltip_text ((GtkWidget*) _tmp3_, tooltip);
#line 1428 "prompt-box.c"
	}
#line 348 "../src/prompt-box.vala"
	if (image == NULL) {
#line 1432 "prompt-box.c"
		FlatButton* _tmp4_;
#line 349 "../src/prompt-box.vala"
		_tmp4_ = self->option_button;
#line 349 "../src/prompt-box.vala"
		gtk_widget_hide ((GtkWidget*) _tmp4_);
#line 1438 "prompt-box.c"
	} else {
		FlatButton* _tmp5_;
#line 351 "../src/prompt-box.vala"
		_tmp5_ = self->option_button;
#line 351 "../src/prompt-box.vala"
		gtk_widget_show ((GtkWidget*) _tmp5_);
#line 1445 "prompt-box.c"
	}
}

static void
prompt_box_option_button_clicked_cb (PromptBox* self,
                                     GtkButton* button)
{
#line 354 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 354 "../src/prompt-box.vala"
	g_return_if_fail (button != NULL);
#line 356 "../src/prompt-box.vala"
	g_signal_emit (self, prompt_box_signals[PROMPT_BOX_SHOW_OPTIONS_SIGNAL], 0);
#line 1459 "prompt-box.c"
}

void
prompt_box_set_show_message_icon (PromptBox* self,
                                  gboolean show)
{
	CachedImage* _tmp0_;
	CachedImage* _tmp1_;
#line 359 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 361 "../src/prompt-box.vala"
	_tmp0_ = self->priv->message_image;
#line 361 "../src/prompt-box.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp0_, show);
#line 362 "../src/prompt-box.vala"
	_tmp1_ = self->priv->small_message_image;
#line 362 "../src/prompt-box.vala"
	gtk_widget_set_visible ((GtkWidget*) _tmp1_, show);
#line 1478 "prompt-box.c"
}

void
prompt_box_set_is_active (PromptBox* self,
                          gboolean active)
{
	ActiveIndicator* _tmp0_;
	ActiveIndicator* _tmp1_;
#line 365 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 367 "../src/prompt-box.vala"
	_tmp0_ = self->priv->active_indicator;
#line 367 "../src/prompt-box.vala"
	active_indicator_set_active (_tmp0_, active);
#line 368 "../src/prompt-box.vala"
	_tmp1_ = self->priv->small_active_indicator;
#line 368 "../src/prompt-box.vala"
	active_indicator_set_active (_tmp1_, active);
#line 1497 "prompt-box.c"
}

static void
_g_object_unref0_ (gpointer var)
{
#line 371 "../src/prompt-box.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 1505 "prompt-box.c"
}

static inline void
_g_list_free__g_object_unref0_ (GList* self)
{
#line 371 "../src/prompt-box.vala"
	g_list_free_full (self, (GDestroyNotify) _g_object_unref0_);
#line 1513 "prompt-box.c"
}

void
prompt_box_foreach_prompt_widget (PromptBox* self,
                                  GtkCallback cb,
                                  gpointer cb_target)
{
	GList* prompt_widgets = NULL;
	gint i = 0;
	GList* _tmp7_;
#line 371 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 373 "../src/prompt-box.vala"
	prompt_widgets = NULL;
#line 375 "../src/prompt-box.vala"
	i = self->start_row + 1;
#line 376 "../src/prompt-box.vala"
	while (TRUE) {
#line 1532 "prompt-box.c"
		GtkWidget* c = NULL;
		GtkGrid* _tmp0_;
		GtkWidget* _tmp1_;
		GtkWidget* _tmp2_;
		GtkWidget* _tmp3_;
		gint _tmp6_;
#line 376 "../src/prompt-box.vala"
		if (!(i <= self->last_row)) {
#line 376 "../src/prompt-box.vala"
			break;
#line 1543 "prompt-box.c"
		}
#line 378 "../src/prompt-box.vala"
		_tmp0_ = self->box_grid;
#line 378 "../src/prompt-box.vala"
		_tmp1_ = gtk_grid_get_child_at (_tmp0_, PROMPT_BOX_COL_ENTRIES_START, i);
#line 378 "../src/prompt-box.vala"
		_tmp2_ = _g_object_ref0 (_tmp1_);
#line 378 "../src/prompt-box.vala"
		c = _tmp2_;
#line 379 "../src/prompt-box.vala"
		_tmp3_ = c;
#line 379 "../src/prompt-box.vala"
		if (_tmp3_ != NULL) {
#line 1557 "prompt-box.c"
			GtkWidget* _tmp4_;
			GtkWidget* _tmp5_;
#line 380 "../src/prompt-box.vala"
			_tmp4_ = c;
#line 380 "../src/prompt-box.vala"
			_tmp5_ = _g_object_ref0 (_tmp4_);
#line 380 "../src/prompt-box.vala"
			prompt_widgets = g_list_append (prompt_widgets, _tmp5_);
#line 1566 "prompt-box.c"
		}
#line 381 "../src/prompt-box.vala"
		_tmp6_ = i;
#line 381 "../src/prompt-box.vala"
		i = _tmp6_ + 1;
#line 376 "../src/prompt-box.vala"
		_g_object_unref0 (c);
#line 1574 "prompt-box.c"
	}
#line 384 "../src/prompt-box.vala"
	_tmp7_ = prompt_widgets;
#line 1578 "prompt-box.c"
	{
		GList* w_collection = NULL;
		GList* w_it = NULL;
#line 384 "../src/prompt-box.vala"
		w_collection = _tmp7_;
#line 384 "../src/prompt-box.vala"
		for (w_it = w_collection; w_it != NULL; w_it = w_it->next) {
#line 1586 "prompt-box.c"
			GtkWidget* _tmp8_;
			GtkWidget* w = NULL;
#line 384 "../src/prompt-box.vala"
			_tmp8_ = _g_object_ref0 ((GtkWidget*) w_it->data);
#line 384 "../src/prompt-box.vala"
			w = _tmp8_;
#line 1593 "prompt-box.c"
			{
				GtkWidget* _tmp9_;
#line 385 "../src/prompt-box.vala"
				_tmp9_ = w;
#line 385 "../src/prompt-box.vala"
				cb (_tmp9_, cb_target);
#line 384 "../src/prompt-box.vala"
				_g_object_unref0 (w);
#line 1602 "prompt-box.c"
			}
		}
	}
#line 371 "../src/prompt-box.vala"
	(prompt_widgets == NULL) ? NULL : (prompt_widgets = (_g_list_free__g_object_unref0_ (prompt_widgets), NULL));
#line 1608 "prompt-box.c"
}

static void
__lambda25_ (PromptBox* self,
             GtkWidget* w)
{
	GtkContainer* _tmp0_;
#line 398 "../src/prompt-box.vala"
	g_return_if_fail (w != NULL);
#line 400 "../src/prompt-box.vala"
	g_object_ref ((GObject*) w);
#line 401 "../src/prompt-box.vala"
	_tmp0_ = gtk_widget_get_parent (w);
#line 401 "../src/prompt-box.vala"
	gtk_container_remove (_tmp0_, w);
#line 402 "../src/prompt-box.vala"
	g_object_unref ((GObject*) w);
#line 1626 "prompt-box.c"
}

static void
___lambda25__gtk_callback (GtkWidget* widget,
                           gpointer self)
{
#line 398 "../src/prompt-box.vala"
	__lambda25_ ((PromptBox*) self, widget);
#line 1635 "prompt-box.c"
}

void
prompt_box_clear (PromptBox* self)
{
#line 388 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 390 "../src/prompt-box.vala"
	self->priv->prompt_visibility = PROMPT_BOX_PROMPT_VISIBILITY_HIDDEN;
#line 398 "../src/prompt-box.vala"
	prompt_box_foreach_prompt_widget (self, ___lambda25__gtk_callback, self);
#line 408 "../src/prompt-box.vala"
	prompt_box_reset_last_row (self);
#line 409 "../src/prompt-box.vala"
	prompt_box_set_has_errors (self, FALSE);
#line 1651 "prompt-box.c"
}

static void
__lambda26_ (PromptBox* self,
             GtkWidget* w)
{
	gboolean is_error = FALSE;
	gconstpointer _tmp0_;
#line 416 "../src/prompt-box.vala"
	g_return_if_fail (w != NULL);
#line 418 "../src/prompt-box.vala"
	_tmp0_ = g_object_get_data ((GObject*) w, "prompt-box-is-error");
#line 418 "../src/prompt-box.vala"
	is_error = (gboolean) ((gintptr) _tmp0_);
#line 419 "../src/prompt-box.vala"
	if (is_error) {
#line 420 "../src/prompt-box.vala"
		gtk_widget_destroy (w);
#line 1670 "prompt-box.c"
	}
}

static void
___lambda26__gtk_callback (GtkWidget* widget,
                           gpointer self)
{
#line 416 "../src/prompt-box.vala"
	__lambda26_ ((PromptBox*) self, widget);
#line 1680 "prompt-box.c"
}

void
prompt_box_reset_messages (PromptBox* self)
{
#line 413 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 415 "../src/prompt-box.vala"
	prompt_box_set_has_errors (self, FALSE);
#line 416 "../src/prompt-box.vala"
	prompt_box_foreach_prompt_widget (self, ___lambda26__gtk_callback, self);
#line 1692 "prompt-box.c"
}

static void
__lambda27_ (PromptBox* self,
             GtkWidget* w)
{
#line 427 "../src/prompt-box.vala"
	g_return_if_fail (w != NULL);
#line 429 "../src/prompt-box.vala"
	if (IS_DASH_ENTRY (w)) {
#line 1703 "prompt-box.c"
		DashEntry* e = NULL;
		DashEntry* _tmp0_;
		DashEntry* _tmp1_;
#line 431 "../src/prompt-box.vala"
		_tmp0_ = _g_object_ref0 (IS_DASH_ENTRY (w) ? ((DashEntry*) w) : NULL);
#line 431 "../src/prompt-box.vala"
		e = _tmp0_;
#line 432 "../src/prompt-box.vala"
		_tmp1_ = e;
#line 432 "../src/prompt-box.vala"
		dash_entry_set_did_respond (_tmp1_, FALSE);
#line 429 "../src/prompt-box.vala"
		_g_object_unref0 (e);
#line 1717 "prompt-box.c"
	}
}

static void
___lambda27__gtk_callback (GtkWidget* widget,
                           gpointer self)
{
#line 427 "../src/prompt-box.vala"
	__lambda27_ ((PromptBox*) self, widget);
#line 1727 "prompt-box.c"
}

void
prompt_box_reset_spinners (PromptBox* self)
{
#line 425 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 427 "../src/prompt-box.vala"
	prompt_box_foreach_prompt_widget (self, ___lambda27__gtk_callback, self);
#line 1737 "prompt-box.c"
}

void
prompt_box_reset_state (PromptBox* self)
{
#line 438 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 440 "../src/prompt-box.vala"
	prompt_box_reset_messages (self);
#line 441 "../src/prompt-box.vala"
	prompt_box_reset_spinners (self);
#line 1749 "prompt-box.c"
}

static void
prompt_box_real_add_static_prompts (PromptBox* self)
{
}

void
prompt_box_add_static_prompts (PromptBox* self)
{
	PromptBoxClass* _klass_;
#line 444 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 444 "../src/prompt-box.vala"
	_klass_ = PROMPT_BOX_GET_CLASS (self);
#line 444 "../src/prompt-box.vala"
	if (_klass_->add_static_prompts) {
#line 444 "../src/prompt-box.vala"
		_klass_->add_static_prompts (self);
#line 1769 "prompt-box.c"
	}
}

static void
prompt_box_update_prompt_visibility (PromptBox* self,
                                     GtkWidget* w)
{
#line 449 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 449 "../src/prompt-box.vala"
	g_return_if_fail (w != NULL);
#line 451 "../src/prompt-box.vala"
	switch (self->priv->prompt_visibility) {
#line 451 "../src/prompt-box.vala"
		case PROMPT_BOX_PROMPT_VISIBILITY_HIDDEN:
#line 1785 "prompt-box.c"
		{
#line 454 "../src/prompt-box.vala"
			gtk_widget_hide (w);
#line 455 "../src/prompt-box.vala"
			break;
#line 1791 "prompt-box.c"
		}
#line 451 "../src/prompt-box.vala"
		case PROMPT_BOX_PROMPT_VISIBILITY_FADING:
#line 1795 "prompt-box.c"
		{
			Fadable* f = NULL;
			Fadable* _tmp0_;
			Fadable* _tmp1_;
#line 457 "../src/prompt-box.vala"
			_tmp0_ = _g_object_ref0 (IS_FADABLE (w) ? ((Fadable*) w) : NULL);
#line 457 "../src/prompt-box.vala"
			f = _tmp0_;
#line 458 "../src/prompt-box.vala"
			gtk_widget_set_sensitive (w, TRUE);
#line 459 "../src/prompt-box.vala"
			_tmp1_ = f;
#line 459 "../src/prompt-box.vala"
			if (_tmp1_ != NULL) {
#line 1810 "prompt-box.c"
				Fadable* _tmp2_;
#line 460 "../src/prompt-box.vala"
				_tmp2_ = f;
#line 460 "../src/prompt-box.vala"
				fadable_fade_in (_tmp2_);
#line 1816 "prompt-box.c"
			} else {
#line 462 "../src/prompt-box.vala"
				gtk_widget_show (w);
#line 1820 "prompt-box.c"
			}
#line 463 "../src/prompt-box.vala"
			_g_object_unref0 (f);
#line 463 "../src/prompt-box.vala"
			break;
#line 1826 "prompt-box.c"
		}
#line 451 "../src/prompt-box.vala"
		case PROMPT_BOX_PROMPT_VISIBILITY_SHOWN:
#line 1830 "prompt-box.c"
		{
#line 465 "../src/prompt-box.vala"
			gtk_widget_show (w);
#line 466 "../src/prompt-box.vala"
			gtk_widget_set_sensitive (w, TRUE);
#line 467 "../src/prompt-box.vala"
			break;
#line 1838 "prompt-box.c"
		}
		default:
#line 451 "../src/prompt-box.vala"
		break;
#line 1843 "prompt-box.c"
	}
}

static void
__lambda28_ (PromptBox* self,
             GtkWidget* w)
{
#line 475 "../src/prompt-box.vala"
	g_return_if_fail (w != NULL);
#line 475 "../src/prompt-box.vala"
	prompt_box_update_prompt_visibility (self, w);
#line 1855 "prompt-box.c"
}

static void
___lambda28__gtk_callback (GtkWidget* widget,
                           gpointer self)
{
#line 475 "../src/prompt-box.vala"
	__lambda28_ ((PromptBox*) self, widget);
#line 1864 "prompt-box.c"
}

void
prompt_box_fade_in_prompts (PromptBox* self)
{
#line 471 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 473 "../src/prompt-box.vala"
	self->priv->prompt_visibility = PROMPT_BOX_PROMPT_VISIBILITY_FADING;
#line 474 "../src/prompt-box.vala"
	gtk_widget_show ((GtkWidget*) self);
#line 475 "../src/prompt-box.vala"
	prompt_box_foreach_prompt_widget (self, ___lambda28__gtk_callback, self);
#line 1878 "prompt-box.c"
}

static void
__lambda29_ (PromptBox* self,
             GtkWidget* w)
{
#line 482 "../src/prompt-box.vala"
	g_return_if_fail (w != NULL);
#line 482 "../src/prompt-box.vala"
	prompt_box_update_prompt_visibility (self, w);
#line 1889 "prompt-box.c"
}

static void
___lambda29__gtk_callback (GtkWidget* widget,
                           gpointer self)
{
#line 482 "../src/prompt-box.vala"
	__lambda29_ ((PromptBox*) self, widget);
#line 1898 "prompt-box.c"
}

void
prompt_box_show_prompts (PromptBox* self)
{
#line 478 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 480 "../src/prompt-box.vala"
	self->priv->prompt_visibility = PROMPT_BOX_PROMPT_VISIBILITY_SHOWN;
#line 481 "../src/prompt-box.vala"
	gtk_widget_show ((GtkWidget*) self);
#line 482 "../src/prompt-box.vala"
	prompt_box_foreach_prompt_widget (self, ___lambda29__gtk_callback, self);
#line 1912 "prompt-box.c"
}

void
prompt_box_attach_item (PromptBox* self,
                        GtkWidget* w,
                        gboolean add_style_class)
{
	PromptBox* _tmp0_;
	GtkGrid* _tmp1_;
#line 485 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 485 "../src/prompt-box.vala"
	g_return_if_fail (w != NULL);
#line 487 "../src/prompt-box.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 487 "../src/prompt-box.vala"
	g_object_set_data_full ((GObject*) w, "prompt-box-widget", _tmp0_, g_object_unref);
#line 488 "../src/prompt-box.vala"
	if (add_style_class) {
#line 489 "../src/prompt-box.vala"
		slick_greeter_add_style_class (w);
#line 1934 "prompt-box.c"
	}
#line 491 "../src/prompt-box.vala"
	self->last_row = self->last_row + 1;
#line 492 "../src/prompt-box.vala"
	_tmp1_ = self->box_grid;
#line 492 "../src/prompt-box.vala"
	gtk_grid_attach (_tmp1_, w, PROMPT_BOX_COL_ENTRIES_START, self->last_row, PROMPT_BOX_COL_ENTRIES_WIDTH, 1);
#line 494 "../src/prompt-box.vala"
	prompt_box_update_prompt_visibility (self, w);
#line 495 "../src/prompt-box.vala"
	gtk_widget_queue_resize ((GtkWidget*) self);
#line 1946 "prompt-box.c"
}

void
prompt_box_add_message (PromptBox* self,
                        const gchar* text,
                        gboolean is_error)
{
	FadingLabel* label = NULL;
	FadingLabel* _tmp0_;
	FadingLabel* _tmp1_;
	PangoFontDescription* _tmp2_;
	PangoFontDescription* _tmp3_;
	GdkRGBA color = {0};
	GdkRGBA _tmp4_ = {0};
	FadingLabel* _tmp5_;
	GdkRGBA _tmp6_;
	FadingLabel* _tmp7_;
	FadingLabel* _tmp8_;
	FadingLabel* _tmp9_;
#line 498 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 498 "../src/prompt-box.vala"
	g_return_if_fail (text != NULL);
#line 500 "../src/prompt-box.vala"
	_tmp0_ = fading_label_new (text);
#line 500 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp0_);
#line 500 "../src/prompt-box.vala"
	label = _tmp0_;
#line 502 "../src/prompt-box.vala"
	_tmp1_ = label;
#line 502 "../src/prompt-box.vala"
	_tmp2_ = pango_font_description_from_string ("Ubuntu Bold 10");
#line 502 "../src/prompt-box.vala"
	_tmp3_ = _tmp2_;
#line 502 "../src/prompt-box.vala"
	gtk_widget_override_font ((GtkWidget*) _tmp1_, _tmp3_);
#line 502 "../src/prompt-box.vala"
	__vala_PangoFontDescription_free0 (_tmp3_);
#line 504 "../src/prompt-box.vala"
	_tmp4_.red = (gdouble) 1.0f;
#line 504 "../src/prompt-box.vala"
	_tmp4_.green = (gdouble) 1.0f;
#line 504 "../src/prompt-box.vala"
	_tmp4_.blue = (gdouble) 1.0f;
#line 504 "../src/prompt-box.vala"
	_tmp4_.alpha = (gdouble) 1.0f;
#line 504 "../src/prompt-box.vala"
	color = _tmp4_;
#line 505 "../src/prompt-box.vala"
	if (is_error) {
#line 506 "../src/prompt-box.vala"
		gdk_rgba_parse (&color, "#ffd64d");
#line 2000 "prompt-box.c"
	}
#line 507 "../src/prompt-box.vala"
	_tmp5_ = label;
#line 507 "../src/prompt-box.vala"
	_tmp6_ = color;
#line 507 "../src/prompt-box.vala"
	gtk_widget_override_color ((GtkWidget*) _tmp5_, GTK_STATE_FLAG_NORMAL, &_tmp6_);
#line 509 "../src/prompt-box.vala"
	_tmp7_ = label;
#line 509 "../src/prompt-box.vala"
	gtk_label_set_xalign ((GtkLabel*) _tmp7_, 0.0f);
#line 510 "../src/prompt-box.vala"
	_tmp8_ = label;
#line 510 "../src/prompt-box.vala"
	g_object_set_data_full ((GObject*) _tmp8_, "prompt-box-is-error", (gpointer) ((gintptr) is_error), NULL);
#line 512 "../src/prompt-box.vala"
	_tmp9_ = label;
#line 512 "../src/prompt-box.vala"
	prompt_box_attach_item (self, (GtkWidget*) _tmp9_, TRUE);
#line 514 "../src/prompt-box.vala"
	if (is_error) {
#line 515 "../src/prompt-box.vala"
		prompt_box_set_has_errors (self, TRUE);
#line 2024 "prompt-box.c"
	}
#line 498 "../src/prompt-box.vala"
	_g_object_unref0 (label);
#line 2028 "prompt-box.c"
}

static Block4Data*
block4_data_ref (Block4Data* _data4_)
{
#line 518 "../src/prompt-box.vala"
	g_atomic_int_inc (&_data4_->_ref_count_);
#line 518 "../src/prompt-box.vala"
	return _data4_;
#line 2038 "prompt-box.c"
}

static void
block4_data_unref (void * _userdata_)
{
	Block4Data* _data4_;
	_data4_ = (Block4Data*) _userdata_;
#line 518 "../src/prompt-box.vala"
	if (g_atomic_int_dec_and_test (&_data4_->_ref_count_)) {
#line 2048 "prompt-box.c"
		PromptBox* self;
#line 518 "../src/prompt-box.vala"
		self = _data4_->self;
#line 518 "../src/prompt-box.vala"
		_g_object_unref0 (_data4_->entry);
#line 518 "../src/prompt-box.vala"
		_g_object_unref0 (self);
#line 518 "../src/prompt-box.vala"
		g_slice_free (Block4Data, _data4_);
#line 2058 "prompt-box.c"
	}
}

static void
__lambda30_ (PromptBox* self,
             GtkWidget* w)
{
#line 521 "../src/prompt-box.vala"
	g_return_if_fail (w != NULL);
#line 523 "../src/prompt-box.vala"
	if (IS_DASH_ENTRY (w)) {
#line 2070 "prompt-box.c"
		DashEntry* e = NULL;
		DashEntry* _tmp0_;
		DashEntry* _tmp1_;
#line 525 "../src/prompt-box.vala"
		_tmp0_ = _g_object_ref0 (IS_DASH_ENTRY (w) ? ((DashEntry*) w) : NULL);
#line 525 "../src/prompt-box.vala"
		e = _tmp0_;
#line 526 "../src/prompt-box.vala"
		_tmp1_ = e;
#line 526 "../src/prompt-box.vala"
		if (_tmp1_ != NULL) {
#line 2082 "prompt-box.c"
			DashEntry* _tmp2_;
#line 527 "../src/prompt-box.vala"
			_tmp2_ = e;
#line 527 "../src/prompt-box.vala"
			dash_entry_set_can_respond (_tmp2_, FALSE);
#line 2088 "prompt-box.c"
		}
#line 523 "../src/prompt-box.vala"
		_g_object_unref0 (e);
#line 2092 "prompt-box.c"
	}
}

static void
___lambda30__gtk_callback (GtkWidget* widget,
                           gpointer self)
{
#line 521 "../src/prompt-box.vala"
	__lambda30_ ((PromptBox*) self, widget);
#line 2102 "prompt-box.c"
}

static gboolean
string_contains (const gchar* self,
                 const gchar* needle)
{
	gchar* _tmp0_;
	gboolean result;
#line 1584 "glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, FALSE);
#line 1584 "glib-2.0.vapi"
	g_return_val_if_fail (needle != NULL, FALSE);
#line 1585 "glib-2.0.vapi"
	_tmp0_ = strstr ((gchar*) self, (gchar*) needle);
#line 1585 "glib-2.0.vapi"
	result = _tmp0_ != NULL;
#line 1585 "glib-2.0.vapi"
	return result;
#line 2121 "prompt-box.c"
}

static glong
string_strnlen (gchar* str,
                glong maxlen)
{
	gchar* end = NULL;
	gchar* _tmp0_;
	gchar* _tmp1_;
	glong result;
#line 1501 "glib-2.0.vapi"
	_tmp0_ = memchr (str, 0, (gsize) maxlen);
#line 1501 "glib-2.0.vapi"
	end = _tmp0_;
#line 1502 "glib-2.0.vapi"
	_tmp1_ = end;
#line 1502 "glib-2.0.vapi"
	if (_tmp1_ == NULL) {
#line 1503 "glib-2.0.vapi"
		result = maxlen;
#line 1503 "glib-2.0.vapi"
		return result;
#line 2144 "prompt-box.c"
	} else {
		gchar* _tmp2_;
#line 1505 "glib-2.0.vapi"
		_tmp2_ = end;
#line 1505 "glib-2.0.vapi"
		result = (glong) (_tmp2_ - str);
#line 1505 "glib-2.0.vapi"
		return result;
#line 2153 "prompt-box.c"
	}
}

static gchar*
string_substring (const gchar* self,
                  glong offset,
                  glong len)
{
	glong string_length = 0L;
	gboolean _tmp0_ = FALSE;
	gchar* _tmp3_;
	gchar* result;
#line 1512 "glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1514 "glib-2.0.vapi"
	if (offset >= ((glong) 0)) {
#line 1514 "glib-2.0.vapi"
		_tmp0_ = len >= ((glong) 0);
#line 2172 "prompt-box.c"
	} else {
#line 1514 "glib-2.0.vapi"
		_tmp0_ = FALSE;
#line 2176 "prompt-box.c"
	}
#line 1514 "glib-2.0.vapi"
	if (_tmp0_) {
#line 1516 "glib-2.0.vapi"
		string_length = string_strnlen ((gchar*) self, offset + len);
#line 2182 "prompt-box.c"
	} else {
		gint _tmp1_;
		gint _tmp2_;
#line 1518 "glib-2.0.vapi"
		_tmp1_ = strlen (self);
#line 1518 "glib-2.0.vapi"
		_tmp2_ = _tmp1_;
#line 1518 "glib-2.0.vapi"
		string_length = (glong) _tmp2_;
#line 2192 "prompt-box.c"
	}
#line 1521 "glib-2.0.vapi"
	if (offset < ((glong) 0)) {
#line 1522 "glib-2.0.vapi"
		offset = string_length + offset;
#line 1523 "glib-2.0.vapi"
		g_return_val_if_fail (offset >= ((glong) 0), NULL);
#line 2200 "prompt-box.c"
	} else {
#line 1525 "glib-2.0.vapi"
		g_return_val_if_fail (offset <= string_length, NULL);
#line 2204 "prompt-box.c"
	}
#line 1527 "glib-2.0.vapi"
	if (len < ((glong) 0)) {
#line 1528 "glib-2.0.vapi"
		len = string_length - offset;
#line 2210 "prompt-box.c"
	}
#line 1530 "glib-2.0.vapi"
	g_return_val_if_fail ((offset + len) <= string_length, NULL);
#line 1531 "glib-2.0.vapi"
	_tmp3_ = g_strndup (((gchar*) self) + offset, (gsize) len);
#line 1531 "glib-2.0.vapi"
	result = _tmp3_;
#line 1531 "glib-2.0.vapi"
	return result;
#line 2220 "prompt-box.c"
}

static gint
string_index_of_nth_char (const gchar* self,
                          glong c)
{
	gchar* _tmp0_;
	gint result;
#line 1333 "glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, -1);
#line 1334 "glib-2.0.vapi"
	_tmp0_ = g_utf8_offset_to_pointer (self, c);
#line 1334 "glib-2.0.vapi"
	result = (gint) (_tmp0_ - ((gchar*) self));
#line 1334 "glib-2.0.vapi"
	return result;
#line 2237 "prompt-box.c"
}

static gboolean
___lambda31_ (Block4Data* _data4_,
              GtkWidget* widget,
              GdkEventButton* event)
{
	PromptBox* self;
	gboolean result;
#line 561 "../src/prompt-box.vala"
	self = _data4_->self;
#line 561 "../src/prompt-box.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 561 "../src/prompt-box.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 562 "../src/prompt-box.vala"
	if (event->button == ((guint) 1)) {
#line 2255 "prompt-box.c"
		DashEntry* _tmp0_;
#line 563 "../src/prompt-box.vala"
		_tmp0_ = _data4_->entry;
#line 563 "../src/prompt-box.vala"
		prompt_box_show_toggle_visibility_icon (self, (GtkEntry*) _tmp0_);
#line 2261 "prompt-box.c"
	}
#line 564 "../src/prompt-box.vala"
	result = FALSE;
#line 564 "../src/prompt-box.vala"
	return result;
#line 2267 "prompt-box.c"
}

static gboolean
____lambda31__gtk_widget_button_release_event (GtkWidget* _sender,
                                               GdkEventButton* event,
                                               gpointer self)
{
	gboolean result;
	result = ___lambda31_ (self, _sender, event);
#line 561 "../src/prompt-box.vala"
	return result;
#line 2279 "prompt-box.c"
}

static gboolean
___lambda32_ (Block4Data* _data4_,
              GtkWidget* widget,
              GdkEventKey* event)
{
	PromptBox* self;
	gboolean result;
#line 566 "../src/prompt-box.vala"
	self = _data4_->self;
#line 566 "../src/prompt-box.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 566 "../src/prompt-box.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 567 "../src/prompt-box.vala"
	switch (event->keyval) {
#line 567 "../src/prompt-box.vala"
		case GDK_KEY_Left:
#line 567 "../src/prompt-box.vala"
		case GDK_KEY_KP_Left:
#line 567 "../src/prompt-box.vala"
		case GDK_KEY_Right:
#line 567 "../src/prompt-box.vala"
		case GDK_KEY_KP_Right:
#line 2305 "prompt-box.c"
		{
			DashEntry* _tmp0_;
#line 572 "../src/prompt-box.vala"
			_tmp0_ = _data4_->entry;
#line 572 "../src/prompt-box.vala"
			prompt_box_show_toggle_visibility_icon (self, (GtkEntry*) _tmp0_);
#line 573 "../src/prompt-box.vala"
			result = FALSE;
#line 573 "../src/prompt-box.vala"
			return result;
#line 2316 "prompt-box.c"
		}
#line 567 "../src/prompt-box.vala"
		case GDK_KEY_F8:
#line 2320 "prompt-box.c"
		{
#line 575 "../src/prompt-box.vala"
			if ((event->state & GDK_MOD1_MASK) == GDK_MOD1_MASK) {
#line 2324 "prompt-box.c"
				DashEntry* _tmp1_;
				DashEntry* _tmp2_;
				DashEntry* _tmp3_;
#line 576 "../src/prompt-box.vala"
				_tmp1_ = _data4_->entry;
#line 576 "../src/prompt-box.vala"
				_tmp2_ = _data4_->entry;
#line 576 "../src/prompt-box.vala"
				gtk_entry_set_visibility ((GtkEntry*) _tmp1_, !gtk_entry_get_visibility ((GtkEntry*) _tmp2_));
#line 577 "../src/prompt-box.vala"
				_tmp3_ = _data4_->entry;
#line 577 "../src/prompt-box.vala"
				prompt_box_show_toggle_visibility_icon (self, (GtkEntry*) _tmp3_);
#line 578 "../src/prompt-box.vala"
				result = TRUE;
#line 578 "../src/prompt-box.vala"
				return result;
#line 2342 "prompt-box.c"
			}
#line 580 "../src/prompt-box.vala"
			break;
#line 2346 "prompt-box.c"
		}
		default:
#line 567 "../src/prompt-box.vala"
		break;
#line 2351 "prompt-box.c"
	}
#line 582 "../src/prompt-box.vala"
	result = GTK_WIDGET_CLASS (prompt_box_parent_class)->key_press_event ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_FADABLE_BOX, FadableBox), event);
#line 582 "../src/prompt-box.vala"
	return result;
#line 2357 "prompt-box.c"
}

static gboolean
____lambda32__gtk_widget_key_press_event (GtkWidget* _sender,
                                          GdkEventKey* event,
                                          gpointer self)
{
	gboolean result;
	result = ___lambda32_ (self, _sender, event);
#line 566 "../src/prompt-box.vala"
	return result;
#line 2369 "prompt-box.c"
}

static void
_prompt_box_entry_icon_press_cb_gtk_entry_icon_press (GtkEntry* _sender,
                                                      GtkEntryIconPosition icon_pos,
                                                      GdkEvent* event,
                                                      gpointer self)
{
#line 584 "../src/prompt-box.vala"
	prompt_box_entry_icon_press_cb ((PromptBox*) self, _sender, icon_pos, event);
#line 2380 "prompt-box.c"
}

static void
_prompt_box_entry_activate_cb_dash_entry_respond (DashEntry* _sender,
                                                  gpointer self)
{
#line 587 "../src/prompt-box.vala"
	prompt_box_entry_activate_cb ((PromptBox*) self);
#line 2389 "prompt-box.c"
}

DashEntry*
prompt_box_add_prompt (PromptBox* self,
                       const gchar* text,
                       const gchar* accessible_text,
                       gboolean is_secret)
{
	Block4Data* _data4_;
	DashEntry* _tmp0_;
	DashEntry* _tmp1_;
	AtkObject* accessible = NULL;
	DashEntry* _tmp13_;
	AtkObject* _tmp14_;
	AtkObject* _tmp15_;
	DashEntry* _tmp23_;
	DashEntry* _tmp24_;
	DashEntry* _tmp25_;
	DashEntry* _tmp26_;
	DashEntry* result;
#line 518 "../src/prompt-box.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 518 "../src/prompt-box.vala"
	g_return_val_if_fail (text != NULL, NULL);
#line 518 "../src/prompt-box.vala"
	_data4_ = g_slice_new0 (Block4Data);
#line 518 "../src/prompt-box.vala"
	_data4_->_ref_count_ = 1;
#line 518 "../src/prompt-box.vala"
	_data4_->self = g_object_ref (self);
#line 521 "../src/prompt-box.vala"
	prompt_box_foreach_prompt_widget (self, ___lambda30__gtk_callback, self);
#line 531 "../src/prompt-box.vala"
	_tmp0_ = dash_entry_new ();
#line 531 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp0_);
#line 531 "../src/prompt-box.vala"
	_data4_->entry = _tmp0_;
#line 532 "../src/prompt-box.vala"
	_tmp1_ = _data4_->entry;
#line 532 "../src/prompt-box.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp1_, FALSE);
#line 534 "../src/prompt-box.vala"
	if (string_contains (text, "\n")) {
#line 2434 "prompt-box.c"
		DashEntry* _tmp2_;
#line 536 "../src/prompt-box.vala"
		prompt_box_add_message (self, text, FALSE);
#line 537 "../src/prompt-box.vala"
		_tmp2_ = _data4_->entry;
#line 537 "../src/prompt-box.vala"
		dash_entry_set_constant_placeholder_text (_tmp2_, "");
#line 2442 "prompt-box.c"
	} else {
		gchar* placeholder = NULL;
		gchar* _tmp3_;
		gboolean _tmp4_ = FALSE;
		const gchar* _tmp5_;
		DashEntry* _tmp11_;
		const gchar* _tmp12_;
#line 542 "../src/prompt-box.vala"
		_tmp3_ = g_strdup (text);
#line 542 "../src/prompt-box.vala"
		placeholder = _tmp3_;
#line 543 "../src/prompt-box.vala"
		_tmp5_ = placeholder;
#line 543 "../src/prompt-box.vala"
		if (g_str_has_suffix (_tmp5_, ":")) {
#line 543 "../src/prompt-box.vala"
			_tmp4_ = TRUE;
#line 2460 "prompt-box.c"
		} else {
			const gchar* _tmp6_;
#line 543 "../src/prompt-box.vala"
			_tmp6_ = placeholder;
#line 543 "../src/prompt-box.vala"
			_tmp4_ = g_str_has_suffix (_tmp6_, "：");
#line 2467 "prompt-box.c"
		}
#line 543 "../src/prompt-box.vala"
		if (_tmp4_) {
#line 2471 "prompt-box.c"
			gint len = 0;
			const gchar* _tmp7_;
			const gchar* _tmp8_;
			const gchar* _tmp9_;
			gchar* _tmp10_;
#line 545 "../src/prompt-box.vala"
			_tmp7_ = placeholder;
#line 545 "../src/prompt-box.vala"
			len = g_utf8_strlen (_tmp7_, (gssize) -1);
#line 546 "../src/prompt-box.vala"
			_tmp8_ = placeholder;
#line 546 "../src/prompt-box.vala"
			_tmp9_ = placeholder;
#line 546 "../src/prompt-box.vala"
			_tmp10_ = string_substring (_tmp8_, (glong) 0, (glong) string_index_of_nth_char (_tmp9_, (glong) (len - 1)));
#line 546 "../src/prompt-box.vala"
			_g_free0 (placeholder);
#line 546 "../src/prompt-box.vala"
			placeholder = _tmp10_;
#line 2491 "prompt-box.c"
		}
#line 548 "../src/prompt-box.vala"
		_tmp11_ = _data4_->entry;
#line 548 "../src/prompt-box.vala"
		_tmp12_ = placeholder;
#line 548 "../src/prompt-box.vala"
		dash_entry_set_constant_placeholder_text (_tmp11_, _tmp12_);
#line 534 "../src/prompt-box.vala"
		_g_free0 (placeholder);
#line 2501 "prompt-box.c"
	}
#line 551 "../src/prompt-box.vala"
	_tmp13_ = _data4_->entry;
#line 551 "../src/prompt-box.vala"
	_tmp14_ = gtk_widget_get_accessible ((GtkWidget*) _tmp13_);
#line 551 "../src/prompt-box.vala"
	_tmp15_ = _g_object_ref0 (_tmp14_);
#line 551 "../src/prompt-box.vala"
	accessible = _tmp15_;
#line 552 "../src/prompt-box.vala"
	if (accessible_text != NULL) {
#line 2513 "prompt-box.c"
		AtkObject* _tmp16_;
#line 553 "../src/prompt-box.vala"
		_tmp16_ = accessible;
#line 553 "../src/prompt-box.vala"
		atk_object_set_name (_tmp16_, accessible_text);
#line 2519 "prompt-box.c"
	} else {
		AtkObject* _tmp17_;
#line 555 "../src/prompt-box.vala"
		_tmp17_ = accessible;
#line 555 "../src/prompt-box.vala"
		atk_object_set_name (_tmp17_, text);
#line 2526 "prompt-box.c"
	}
#line 557 "../src/prompt-box.vala"
	if (is_secret) {
#line 2530 "prompt-box.c"
		DashEntry* _tmp18_;
		DashEntry* _tmp19_;
		DashEntry* _tmp20_;
		DashEntry* _tmp21_;
		DashEntry* _tmp22_;
#line 559 "../src/prompt-box.vala"
		_tmp18_ = _data4_->entry;
#line 559 "../src/prompt-box.vala"
		gtk_entry_set_visibility ((GtkEntry*) _tmp18_, FALSE);
#line 560 "../src/prompt-box.vala"
		_tmp19_ = _data4_->entry;
#line 560 "../src/prompt-box.vala"
		g_object_set ((GtkEntry*) _tmp19_, "caps-lock-warning", TRUE, NULL);
#line 561 "../src/prompt-box.vala"
		_tmp20_ = _data4_->entry;
#line 561 "../src/prompt-box.vala"
		g_signal_connect_data ((GtkWidget*) _tmp20_, "button-release-event", (GCallback) ____lambda31__gtk_widget_button_release_event, block4_data_ref (_data4_), (GClosureNotify) block4_data_unref, 0);
#line 566 "../src/prompt-box.vala"
		_tmp21_ = _data4_->entry;
#line 566 "../src/prompt-box.vala"
		g_signal_connect_data ((GtkWidget*) _tmp21_, "key-press-event", (GCallback) ____lambda32__gtk_widget_key_press_event, block4_data_ref (_data4_), (GClosureNotify) block4_data_unref, 0);
#line 584 "../src/prompt-box.vala"
		_tmp22_ = _data4_->entry;
#line 584 "../src/prompt-box.vala"
		g_signal_connect_object ((GtkEntry*) _tmp22_, "icon-press", (GCallback) _prompt_box_entry_icon_press_cb_gtk_entry_icon_press, self, 0);
#line 2556 "prompt-box.c"
	}
#line 587 "../src/prompt-box.vala"
	_tmp23_ = _data4_->entry;
#line 587 "../src/prompt-box.vala"
	g_signal_connect_object (_tmp23_, "respond", (GCallback) _prompt_box_entry_activate_cb_dash_entry_respond, self, 0);
#line 589 "../src/prompt-box.vala"
	_tmp24_ = _data4_->entry;
#line 589 "../src/prompt-box.vala"
	prompt_box_attach_item (self, (GtkWidget*) _tmp24_, TRUE);
#line 591 "../src/prompt-box.vala"
	_tmp25_ = _data4_->entry;
#line 591 "../src/prompt-box.vala"
	_tmp26_ = _g_object_ref0 (_tmp25_);
#line 591 "../src/prompt-box.vala"
	result = _tmp26_;
#line 591 "../src/prompt-box.vala"
	_g_object_unref0 (accessible);
#line 591 "../src/prompt-box.vala"
	block4_data_unref (_data4_);
#line 591 "../src/prompt-box.vala"
	_data4_ = NULL;
#line 591 "../src/prompt-box.vala"
	return result;
#line 2580 "prompt-box.c"
}

void
prompt_box_show_toggle_visibility_icon (PromptBox* self,
                                        GtkEntry* entry)
{
#line 594 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 594 "../src/prompt-box.vala"
	g_return_if_fail (entry != NULL);
#line 596 "../src/prompt-box.vala"
	if (gtk_entry_get_visibility (entry)) {
#line 597 "../src/prompt-box.vala"
		gtk_entry_set_icon_from_icon_name (entry, GTK_ENTRY_ICON_PRIMARY, "xsi-view-conceal-symbolic");
#line 2595 "prompt-box.c"
	} else {
#line 600 "../src/prompt-box.vala"
		gtk_entry_set_icon_from_icon_name (entry, GTK_ENTRY_ICON_PRIMARY, "xsi-view-reveal-symbolic");
#line 2599 "prompt-box.c"
	}
}

void
prompt_box_entry_icon_press_cb (PromptBox* self,
                                GtkEntry* entry,
                                GtkEntryIconPosition position,
                                GdkEvent* event)
{
#line 604 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 604 "../src/prompt-box.vala"
	g_return_if_fail (entry != NULL);
#line 604 "../src/prompt-box.vala"
	g_return_if_fail (event != NULL);
#line 606 "../src/prompt-box.vala"
	gtk_entry_set_visibility (entry, !gtk_entry_get_visibility (entry));
#line 607 "../src/prompt-box.vala"
	prompt_box_show_toggle_visibility_icon (self, entry);
#line 2619 "prompt-box.c"
}

static Block5Data*
block5_data_ref (Block5Data* _data5_)
{
#line 610 "../src/prompt-box.vala"
	g_atomic_int_inc (&_data5_->_ref_count_);
#line 610 "../src/prompt-box.vala"
	return _data5_;
#line 2629 "prompt-box.c"
}

static void
block5_data_unref (void * _userdata_)
{
	Block5Data* _data5_;
	_data5_ = (Block5Data*) _userdata_;
#line 610 "../src/prompt-box.vala"
	if (g_atomic_int_dec_and_test (&_data5_->_ref_count_)) {
#line 2639 "prompt-box.c"
		PromptBox* self;
#line 610 "../src/prompt-box.vala"
		self = _data5_->self;
#line 610 "../src/prompt-box.vala"
		_g_object_unref0 (_data5_->combo);
#line 610 "../src/prompt-box.vala"
		_g_object_unref0 (self);
#line 610 "../src/prompt-box.vala"
		g_slice_free (Block5Data, _data5_);
#line 2649 "prompt-box.c"
	}
}

static void
__lambda34_ (Block5Data* _data5_,
             const gchar* text)
{
	PromptBox* self;
	GtkComboBoxText* _tmp0_;
#line 624 "../src/prompt-box.vala"
	self = _data5_->self;
#line 624 "../src/prompt-box.vala"
	g_return_if_fail (text != NULL);
#line 624 "../src/prompt-box.vala"
	_tmp0_ = _data5_->combo;
#line 624 "../src/prompt-box.vala"
	gtk_combo_box_text_append_text (_tmp0_, text);
#line 2667 "prompt-box.c"
}

static void
___lambda34__gfunc (gconstpointer data,
                    gpointer self)
{
#line 624 "../src/prompt-box.vala"
	__lambda34_ (self, (const gchar*) data);
#line 2676 "prompt-box.c"
}

static gint
vala_g_ptr_array_get_length (GPtrArray* self)
{
	gint result;
#line 5954 "glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, -1);
#line 5955 "glib-2.0.vapi"
	result = (gint) self->len;
#line 5955 "glib-2.0.vapi"
	return result;
#line 2689 "prompt-box.c"
}

GtkComboBox*
prompt_box_add_combo (PromptBox* self,
                      GPtrArray* texts,
                      gboolean read_only)
{
	Block5Data* _data5_;
	GtkComboBoxText* _tmp2_;
	GtkStyleContext* _tmp3_;
	GtkComboBoxText* _tmp4_;
	GtkWidget* _tmp5_;
	GtkStyleContext* _tmp6_;
	GtkComboBoxText* _tmp7_;
	GtkWidget* _tmp8_;
	const gchar* _tmp9_;
	PangoFontDescription* _tmp10_;
	PangoFontDescription* _tmp11_;
	GtkComboBoxText* _tmp12_;
	gint _tmp13_;
	gint _tmp14_;
	GtkComboBoxText* _tmp16_;
	GtkComboBox* _tmp17_;
	GtkComboBox* result;
#line 610 "../src/prompt-box.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 610 "../src/prompt-box.vala"
	g_return_val_if_fail (texts != NULL, NULL);
#line 610 "../src/prompt-box.vala"
	_data5_ = g_slice_new0 (Block5Data);
#line 610 "../src/prompt-box.vala"
	_data5_->_ref_count_ = 1;
#line 610 "../src/prompt-box.vala"
	_data5_->self = g_object_ref (self);
#line 613 "../src/prompt-box.vala"
	if (read_only) {
#line 2726 "prompt-box.c"
		GtkComboBoxText* _tmp0_;
#line 614 "../src/prompt-box.vala"
		_tmp0_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
#line 614 "../src/prompt-box.vala"
		g_object_ref_sink (_tmp0_);
#line 614 "../src/prompt-box.vala"
		_g_object_unref0 (_data5_->combo);
#line 614 "../src/prompt-box.vala"
		_data5_->combo = _tmp0_;
#line 2736 "prompt-box.c"
	} else {
		GtkComboBoxText* _tmp1_;
#line 616 "../src/prompt-box.vala"
		_tmp1_ = (GtkComboBoxText*) gtk_combo_box_text_new_with_entry ();
#line 616 "../src/prompt-box.vala"
		g_object_ref_sink (_tmp1_);
#line 616 "../src/prompt-box.vala"
		_g_object_unref0 (_data5_->combo);
#line 616 "../src/prompt-box.vala"
		_data5_->combo = _tmp1_;
#line 2747 "prompt-box.c"
	}
#line 618 "../src/prompt-box.vala"
	_tmp2_ = _data5_->combo;
#line 618 "../src/prompt-box.vala"
	_tmp3_ = gtk_widget_get_style_context ((GtkWidget*) _tmp2_);
#line 618 "../src/prompt-box.vala"
	gtk_style_context_add_class (_tmp3_, "lightdm-combo");
#line 619 "../src/prompt-box.vala"
	_tmp4_ = _data5_->combo;
#line 619 "../src/prompt-box.vala"
	_tmp5_ = gtk_bin_get_child ((GtkBin*) _tmp4_);
#line 619 "../src/prompt-box.vala"
	_tmp6_ = gtk_widget_get_style_context (_tmp5_);
#line 619 "../src/prompt-box.vala"
	gtk_style_context_add_class (_tmp6_, "lightdm-combo");
#line 620 "../src/prompt-box.vala"
	_tmp7_ = _data5_->combo;
#line 620 "../src/prompt-box.vala"
	_tmp8_ = gtk_bin_get_child ((GtkBin*) _tmp7_);
#line 620 "../src/prompt-box.vala"
	_tmp9_ = dash_entry_font;
#line 620 "../src/prompt-box.vala"
	_tmp10_ = pango_font_description_from_string (_tmp9_);
#line 620 "../src/prompt-box.vala"
	_tmp11_ = _tmp10_;
#line 620 "../src/prompt-box.vala"
	gtk_widget_override_font (_tmp8_, _tmp11_);
#line 620 "../src/prompt-box.vala"
	__vala_PangoFontDescription_free0 (_tmp11_);
#line 622 "../src/prompt-box.vala"
	_tmp12_ = _data5_->combo;
#line 622 "../src/prompt-box.vala"
	prompt_box_attach_item (self, (GtkWidget*) _tmp12_, FALSE);
#line 624 "../src/prompt-box.vala"
	g_ptr_array_foreach (texts, ___lambda34__gfunc, _data5_);
#line 626 "../src/prompt-box.vala"
	_tmp13_ = vala_g_ptr_array_get_length (texts);
#line 626 "../src/prompt-box.vala"
	_tmp14_ = _tmp13_;
#line 626 "../src/prompt-box.vala"
	if (_tmp14_ > 0) {
#line 2789 "prompt-box.c"
		GtkComboBoxText* _tmp15_;
#line 627 "../src/prompt-box.vala"
		_tmp15_ = _data5_->combo;
#line 627 "../src/prompt-box.vala"
		gtk_combo_box_set_active ((GtkComboBox*) _tmp15_, 0);
#line 2795 "prompt-box.c"
	}
#line 629 "../src/prompt-box.vala"
	_tmp16_ = _data5_->combo;
#line 629 "../src/prompt-box.vala"
	_tmp17_ = _g_object_ref0 ((GtkComboBox*) _tmp16_);
#line 629 "../src/prompt-box.vala"
	result = _tmp17_;
#line 629 "../src/prompt-box.vala"
	block5_data_unref (_data5_);
#line 629 "../src/prompt-box.vala"
	_data5_ = NULL;
#line 629 "../src/prompt-box.vala"
	return result;
#line 2809 "prompt-box.c"
}

static Block6Data*
block6_data_ref (Block6Data* _data6_)
{
#line 632 "../src/prompt-box.vala"
	g_atomic_int_inc (&_data6_->_ref_count_);
#line 632 "../src/prompt-box.vala"
	return _data6_;
#line 2819 "prompt-box.c"
}

static void
block6_data_unref (void * _userdata_)
{
	Block6Data* _data6_;
	_data6_ = (Block6Data*) _userdata_;
#line 632 "../src/prompt-box.vala"
	if (g_atomic_int_dec_and_test (&_data6_->_ref_count_)) {
#line 2829 "prompt-box.c"
		PromptBox* self;
#line 632 "../src/prompt-box.vala"
		self = _data6_->self;
#line 632 "../src/prompt-box.vala"
		_data6_->response = (_vala_array_free (_data6_->response, _data6_->response_length1, (GDestroyNotify) g_free), NULL);
#line 632 "../src/prompt-box.vala"
		_g_object_unref0 (self);
#line 632 "../src/prompt-box.vala"
		g_slice_free (Block6Data, _data6_);
#line 2839 "prompt-box.c"
	}
}

static void
_vala_array_add1 (gchar** * array,
                  gint* length,
                  gint* size,
                  gchar* value)
{
#line 642 "../src/prompt-box.vala"
	if ((*length) == (*size)) {
#line 642 "../src/prompt-box.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 642 "../src/prompt-box.vala"
		*array = g_renew (gchar*, *array, (*size) + 1);
#line 2855 "prompt-box.c"
	}
#line 642 "../src/prompt-box.vala"
	(*array)[(*length)++] = value;
#line 642 "../src/prompt-box.vala"
	(*array)[*length] = NULL;
#line 2861 "prompt-box.c"
}

static void
__lambda33_ (Block6Data* _data6_,
             GtkWidget* w)
{
	PromptBox* self;
#line 636 "../src/prompt-box.vala"
	self = _data6_->self;
#line 636 "../src/prompt-box.vala"
	g_return_if_fail (w != NULL);
#line 638 "../src/prompt-box.vala"
	if (G_TYPE_CHECK_INSTANCE_TYPE (w, gtk_entry_get_type ())) {
#line 2875 "prompt-box.c"
		GtkEntry* e = NULL;
		GtkEntry* _tmp0_;
		GtkEntry* _tmp1_;
#line 640 "../src/prompt-box.vala"
		_tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (w, gtk_entry_get_type ()) ? ((GtkEntry*) w) : NULL);
#line 640 "../src/prompt-box.vala"
		e = _tmp0_;
#line 641 "../src/prompt-box.vala"
		_tmp1_ = e;
#line 641 "../src/prompt-box.vala"
		if (_tmp1_ != NULL) {
#line 2887 "prompt-box.c"
			GtkEntry* _tmp2_;
			const gchar* _tmp3_;
			const gchar* _tmp4_;
			gchar* _tmp5_;
#line 642 "../src/prompt-box.vala"
			_tmp2_ = e;
#line 642 "../src/prompt-box.vala"
			_tmp3_ = gtk_entry_get_text (_tmp2_);
#line 642 "../src/prompt-box.vala"
			_tmp4_ = _tmp3_;
#line 642 "../src/prompt-box.vala"
			_tmp5_ = g_strdup (_tmp4_);
#line 642 "../src/prompt-box.vala"
			_vala_array_add1 (&_data6_->response, &_data6_->response_length1, &_data6_->_response_size_, _tmp5_);
#line 2902 "prompt-box.c"
		}
#line 638 "../src/prompt-box.vala"
		_g_object_unref0 (e);
#line 2906 "prompt-box.c"
	}
}

static void
___lambda33__gtk_callback (GtkWidget* widget,
                           gpointer self)
{
#line 636 "../src/prompt-box.vala"
	__lambda33_ (self, widget);
#line 2916 "prompt-box.c"
}

void
prompt_box_entry_activate_cb (PromptBox* self)
{
	Block6Data* _data6_;
	gchar** _tmp0_;
#line 632 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 632 "../src/prompt-box.vala"
	_data6_ = g_slice_new0 (Block6Data);
#line 632 "../src/prompt-box.vala"
	_data6_->_ref_count_ = 1;
#line 632 "../src/prompt-box.vala"
	_data6_->self = g_object_ref (self);
#line 634 "../src/prompt-box.vala"
	_tmp0_ = g_new0 (gchar*, 0 + 1);
#line 634 "../src/prompt-box.vala"
	_data6_->response = _tmp0_;
#line 634 "../src/prompt-box.vala"
	_data6_->response_length1 = 0;
#line 634 "../src/prompt-box.vala"
	_data6_->_response_size_ = _data6_->response_length1;
#line 636 "../src/prompt-box.vala"
	prompt_box_foreach_prompt_widget (self, ___lambda33__gtk_callback, _data6_);
#line 645 "../src/prompt-box.vala"
	g_signal_emit (self, prompt_box_signals[PROMPT_BOX_RESPOND_SIGNAL], 0, _data6_->response, (gint) _data6_->response_length1);
#line 632 "../src/prompt-box.vala"
	block6_data_unref (_data6_);
#line 632 "../src/prompt-box.vala"
	_data6_ = NULL;
#line 2948 "prompt-box.c"
}

static void
_prompt_box_button_clicked_cb_gtk_button_clicked (GtkButton* _sender,
                                                  gpointer self)
{
#line 655 "../src/prompt-box.vala"
	prompt_box_button_clicked_cb ((PromptBox*) self, _sender);
#line 2957 "prompt-box.c"
}

void
prompt_box_add_button (PromptBox* self,
                       const gchar* text,
                       const gchar* accessible_text)
{
	DashButton* button = NULL;
	DashButton* _tmp0_;
	AtkObject* accessible = NULL;
	AtkObject* _tmp1_;
	AtkObject* _tmp2_;
#line 648 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 648 "../src/prompt-box.vala"
	g_return_if_fail (text != NULL);
#line 650 "../src/prompt-box.vala"
	_tmp0_ = dash_button_new (text);
#line 650 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp0_);
#line 650 "../src/prompt-box.vala"
	button = _tmp0_;
#line 652 "../src/prompt-box.vala"
	_tmp1_ = gtk_widget_get_accessible ((GtkWidget*) button);
#line 652 "../src/prompt-box.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 652 "../src/prompt-box.vala"
	accessible = _tmp2_;
#line 653 "../src/prompt-box.vala"
	atk_object_set_name (accessible, accessible_text);
#line 655 "../src/prompt-box.vala"
	g_signal_connect_object ((GtkButton*) button, "clicked", (GCallback) _prompt_box_button_clicked_cb_gtk_button_clicked, self, 0);
#line 657 "../src/prompt-box.vala"
	prompt_box_attach_item (self, (GtkWidget*) button, TRUE);
#line 648 "../src/prompt-box.vala"
	_g_object_unref0 (accessible);
#line 648 "../src/prompt-box.vala"
	_g_object_unref0 (button);
#line 2996 "prompt-box.c"
}

static void
prompt_box_button_clicked_cb (PromptBox* self,
                              GtkButton* button)
{
#line 660 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 660 "../src/prompt-box.vala"
	g_return_if_fail (button != NULL);
#line 662 "../src/prompt-box.vala"
	g_signal_emit (self, prompt_box_signals[PROMPT_BOX_LOGIN_SIGNAL], 0);
#line 3009 "prompt-box.c"
}

static Block7Data*
block7_data_ref (Block7Data* _data7_)
{
#line 665 "../src/prompt-box.vala"
	g_atomic_int_inc (&_data7_->_ref_count_);
#line 665 "../src/prompt-box.vala"
	return _data7_;
#line 3019 "prompt-box.c"
}

static void
block7_data_unref (void * _userdata_)
{
	Block7Data* _data7_;
	_data7_ = (Block7Data*) _userdata_;
#line 665 "../src/prompt-box.vala"
	if (g_atomic_int_dec_and_test (&_data7_->_ref_count_)) {
#line 3029 "prompt-box.c"
		PromptBox* self;
#line 665 "../src/prompt-box.vala"
		self = _data7_->self;
#line 665 "../src/prompt-box.vala"
		_g_object_unref0 (_data7_->best);
#line 665 "../src/prompt-box.vala"
		_g_object_unref0 (self);
#line 665 "../src/prompt-box.vala"
		g_slice_free (Block7Data, _data7_);
#line 3039 "prompt-box.c"
	}
}

static void
__lambda35_ (Block7Data* _data7_,
             GtkWidget* w)
{
	PromptBox* self;
	GtkWidget* _tmp0_;
	GtkEntry* e = NULL;
	GtkEntry* _tmp1_;
	GtkButton* b = NULL;
	GtkButton* _tmp2_;
	GtkComboBox* c = NULL;
	GtkComboBox* _tmp3_;
	gboolean _tmp4_ = FALSE;
	gboolean _tmp5_ = FALSE;
	gboolean _tmp6_ = FALSE;
	GtkEntry* _tmp7_;
#line 669 "../src/prompt-box.vala"
	self = _data7_->self;
#line 669 "../src/prompt-box.vala"
	g_return_if_fail (w != NULL);
#line 671 "../src/prompt-box.vala"
	if (_data7_->done) {
#line 672 "../src/prompt-box.vala"
		return;
#line 3067 "prompt-box.c"
	}
#line 673 "../src/prompt-box.vala"
	_tmp0_ = _g_object_ref0 (w);
#line 673 "../src/prompt-box.vala"
	_g_object_unref0 (_data7_->best);
#line 673 "../src/prompt-box.vala"
	_data7_->best = _tmp0_;
#line 674 "../src/prompt-box.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (w, gtk_entry_get_type ()) ? ((GtkEntry*) w) : NULL);
#line 674 "../src/prompt-box.vala"
	e = _tmp1_;
#line 675 "../src/prompt-box.vala"
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (w, gtk_button_get_type ()) ? ((GtkButton*) w) : NULL);
#line 675 "../src/prompt-box.vala"
	b = _tmp2_;
#line 676 "../src/prompt-box.vala"
	_tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (w, gtk_combo_box_get_type ()) ? ((GtkComboBox*) w) : NULL);
#line 676 "../src/prompt-box.vala"
	c = _tmp3_;
#line 679 "../src/prompt-box.vala"
	_tmp7_ = e;
#line 679 "../src/prompt-box.vala"
	if (_tmp7_ != NULL) {
#line 3091 "prompt-box.c"
		GtkEntry* _tmp8_;
		const gchar* _tmp9_;
		const gchar* _tmp10_;
#line 679 "../src/prompt-box.vala"
		_tmp8_ = e;
#line 679 "../src/prompt-box.vala"
		_tmp9_ = gtk_entry_get_text (_tmp8_);
#line 679 "../src/prompt-box.vala"
		_tmp10_ = _tmp9_;
#line 679 "../src/prompt-box.vala"
		_tmp6_ = g_strcmp0 (_tmp10_, "") == 0;
#line 3103 "prompt-box.c"
	} else {
#line 679 "../src/prompt-box.vala"
		_tmp6_ = FALSE;
#line 3107 "prompt-box.c"
	}
#line 679 "../src/prompt-box.vala"
	if (_tmp6_) {
#line 679 "../src/prompt-box.vala"
		_tmp5_ = TRUE;
#line 3113 "prompt-box.c"
	} else {
		GtkButton* _tmp11_;
#line 679 "../src/prompt-box.vala"
		_tmp11_ = b;
#line 679 "../src/prompt-box.vala"
		_tmp5_ = _tmp11_ != NULL;
#line 3120 "prompt-box.c"
	}
#line 679 "../src/prompt-box.vala"
	if (_tmp5_) {
#line 679 "../src/prompt-box.vala"
		_tmp4_ = TRUE;
#line 3126 "prompt-box.c"
	} else {
		GtkComboBox* _tmp12_;
#line 679 "../src/prompt-box.vala"
		_tmp12_ = c;
#line 679 "../src/prompt-box.vala"
		_tmp4_ = _tmp12_ != NULL;
#line 3133 "prompt-box.c"
	}
#line 679 "../src/prompt-box.vala"
	if (_tmp4_) {
#line 680 "../src/prompt-box.vala"
		_data7_->done = TRUE;
#line 3139 "prompt-box.c"
	}
#line 669 "../src/prompt-box.vala"
	_g_object_unref0 (c);
#line 669 "../src/prompt-box.vala"
	_g_object_unref0 (b);
#line 669 "../src/prompt-box.vala"
	_g_object_unref0 (e);
#line 3147 "prompt-box.c"
}

static void
___lambda35__gtk_callback (GtkWidget* widget,
                           gpointer self)
{
#line 669 "../src/prompt-box.vala"
	__lambda35_ (self, widget);
#line 3156 "prompt-box.c"
}

static void
prompt_box_real_grab_focus (GtkWidget* base)
{
	PromptBox * self;
	Block7Data* _data7_;
	GtkWidget* _tmp0_;
#line 665 "../src/prompt-box.vala"
	self = (PromptBox*) base;
#line 665 "../src/prompt-box.vala"
	_data7_ = g_slice_new0 (Block7Data);
#line 665 "../src/prompt-box.vala"
	_data7_->_ref_count_ = 1;
#line 665 "../src/prompt-box.vala"
	_data7_->self = g_object_ref (self);
#line 667 "../src/prompt-box.vala"
	_data7_->done = FALSE;
#line 668 "../src/prompt-box.vala"
	_data7_->best = NULL;
#line 669 "../src/prompt-box.vala"
	prompt_box_foreach_prompt_widget (self, ___lambda35__gtk_callback, _data7_);
#line 682 "../src/prompt-box.vala"
	_tmp0_ = _data7_->best;
#line 682 "../src/prompt-box.vala"
	if (_tmp0_ != NULL) {
#line 3183 "prompt-box.c"
		GtkWidget* _tmp1_;
#line 683 "../src/prompt-box.vala"
		_tmp1_ = _data7_->best;
#line 683 "../src/prompt-box.vala"
		gtk_widget_grab_focus (_tmp1_);
#line 3189 "prompt-box.c"
	}
#line 665 "../src/prompt-box.vala"
	block7_data_unref (_data7_);
#line 665 "../src/prompt-box.vala"
	_data7_ = NULL;
#line 3195 "prompt-box.c"
}

static void
prompt_box_real_size_allocate (GtkWidget* base,
                               GtkAllocation* allocation)
{
	PromptBox * self;
	GtkAllocation _tmp0_;
	GtkGrid* _tmp1_;
	GtkAllocation _tmp2_;
	gint small_height = 0;
	GtkWidget* _tmp3_;
	gint _tmp4_ = 0;
	GtkWidget* _tmp5_;
	GtkAllocation _tmp6_;
#line 686 "../src/prompt-box.vala"
	self = (PromptBox*) base;
#line 686 "../src/prompt-box.vala"
	g_return_if_fail (allocation != NULL);
#line 688 "../src/prompt-box.vala"
	_tmp0_ = *allocation;
#line 688 "../src/prompt-box.vala"
	GTK_WIDGET_CLASS (prompt_box_parent_class)->size_allocate ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_FADABLE_BOX, FadableBox), &_tmp0_);
#line 689 "../src/prompt-box.vala"
	_tmp1_ = self->box_grid;
#line 689 "../src/prompt-box.vala"
	_tmp2_ = *allocation;
#line 689 "../src/prompt-box.vala"
	gtk_widget_size_allocate ((GtkWidget*) _tmp1_, &_tmp2_);
#line 692 "../src/prompt-box.vala"
	_tmp3_ = self->small_box_widget;
#line 692 "../src/prompt-box.vala"
	gtk_widget_get_preferred_height (_tmp3_, NULL, &_tmp4_);
#line 692 "../src/prompt-box.vala"
	small_height = _tmp4_;
#line 693 "../src/prompt-box.vala"
	(*allocation).height = small_height;
#line 694 "../src/prompt-box.vala"
	_tmp5_ = self->small_box_widget;
#line 694 "../src/prompt-box.vala"
	_tmp6_ = *allocation;
#line 694 "../src/prompt-box.vala"
	gtk_widget_size_allocate (_tmp5_, &_tmp6_);
#line 696 "../src/prompt-box.vala"
	prompt_box_update_visibility (self);
#line 3241 "prompt-box.c"
}

static void
prompt_box_real_draw_full_alpha (FadableBox* base,
                                 cairo_t* c)
{
	PromptBox * self;
	gint x = 0;
	gint y = 0;
	GtkWidget* _tmp0_;
	gint _tmp1_ = 0;
	gint _tmp2_ = 0;
	GtkAllocation alloc = {0};
	GtkAllocation zone_alloc = {0};
	GtkAllocation _tmp3_ = {0};
	GtkWidget* _tmp4_;
	GtkAllocation _tmp5_ = {0};
	GtkAllocation _tmp6_;
	GtkAllocation _tmp7_;
	GtkFixed* _tmp8_;
	GtkGrid* _tmp9_;
	GtkFixed* _tmp13_;
	GtkWidget* _tmp14_;
#line 699 "../src/prompt-box.vala"
	self = (PromptBox*) base;
#line 699 "../src/prompt-box.vala"
	g_return_if_fail (c != NULL);
#line 704 "../src/prompt-box.vala"
	_tmp0_ = self->priv->zone;
#line 704 "../src/prompt-box.vala"
	gtk_widget_translate_coordinates (_tmp0_, (GtkWidget*) self, 0, 0, &_tmp1_, &_tmp2_);
#line 704 "../src/prompt-box.vala"
	x = _tmp1_;
#line 704 "../src/prompt-box.vala"
	y = _tmp2_;
#line 707 "../src/prompt-box.vala"
	gtk_widget_get_allocation ((GtkWidget*) self, &_tmp3_);
#line 707 "../src/prompt-box.vala"
	alloc = _tmp3_;
#line 708 "../src/prompt-box.vala"
	_tmp4_ = self->priv->zone;
#line 708 "../src/prompt-box.vala"
	gtk_widget_get_allocation (_tmp4_, &_tmp5_);
#line 708 "../src/prompt-box.vala"
	zone_alloc = _tmp5_;
#line 711 "../src/prompt-box.vala"
	cairo_save (c);
#line 712 "../src/prompt-box.vala"
	_tmp6_ = zone_alloc;
#line 712 "../src/prompt-box.vala"
	_tmp7_ = zone_alloc;
#line 712 "../src/prompt-box.vala"
	cairo_rectangle (c, (gdouble) x, (gdouble) y, (gdouble) _tmp6_.width, (gdouble) _tmp7_.height);
#line 713 "../src/prompt-box.vala"
	cairo_clip (c);
#line 714 "../src/prompt-box.vala"
	_tmp8_ = self->priv->fixed;
#line 714 "../src/prompt-box.vala"
	_tmp9_ = self->box_grid;
#line 714 "../src/prompt-box.vala"
	gtk_container_propagate_draw ((GtkContainer*) _tmp8_, (GtkWidget*) _tmp9_, c);
#line 715 "../src/prompt-box.vala"
	cairo_restore (c);
#line 718 "../src/prompt-box.vala"
	cairo_save (c);
#line 719 "../src/prompt-box.vala"
	if (y > 0) {
#line 3309 "prompt-box.c"
		GtkAllocation _tmp10_;
#line 720 "../src/prompt-box.vala"
		_tmp10_ = zone_alloc;
#line 720 "../src/prompt-box.vala"
		cairo_rectangle (c, (gdouble) x, (gdouble) 0, (gdouble) _tmp10_.width, (gdouble) y);
#line 3315 "prompt-box.c"
	} else {
		GtkAllocation _tmp11_;
		GtkAllocation _tmp12_;
#line 722 "../src/prompt-box.vala"
		_tmp11_ = zone_alloc;
#line 722 "../src/prompt-box.vala"
		_tmp12_ = zone_alloc;
#line 722 "../src/prompt-box.vala"
		cairo_rectangle (c, (gdouble) x, (gdouble) (y + _tmp11_.height), (gdouble) _tmp12_.width, (gdouble) (-y));
#line 3325 "prompt-box.c"
	}
#line 723 "../src/prompt-box.vala"
	cairo_clip (c);
#line 724 "../src/prompt-box.vala"
	_tmp13_ = self->priv->fixed;
#line 724 "../src/prompt-box.vala"
	_tmp14_ = self->small_box_widget;
#line 724 "../src/prompt-box.vala"
	gtk_container_propagate_draw ((GtkContainer*) _tmp13_, _tmp14_, c);
#line 725 "../src/prompt-box.vala"
	cairo_restore (c);
#line 3337 "prompt-box.c"
}

void
prompt_box_set_avatar_path (PromptBox* self,
                            const gchar* path)
{
	UserAvatar* _tmp0_;
	UserAvatar* _tmp2_;
#line 728 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 730 "../src/prompt-box.vala"
	_tmp0_ = self->priv->avatar_image;
#line 730 "../src/prompt-box.vala"
	if (_tmp0_ != NULL) {
#line 3352 "prompt-box.c"
		UserAvatar* _tmp1_;
#line 731 "../src/prompt-box.vala"
		_tmp1_ = self->priv->avatar_image;
#line 731 "../src/prompt-box.vala"
		user_avatar_set_avatar_path (_tmp1_, path);
#line 3358 "prompt-box.c"
	}
#line 732 "../src/prompt-box.vala"
	_tmp2_ = self->priv->small_avatar_image;
#line 732 "../src/prompt-box.vala"
	if (_tmp2_ != NULL) {
#line 3364 "prompt-box.c"
		UserAvatar* _tmp3_;
#line 733 "../src/prompt-box.vala"
		_tmp3_ = self->priv->small_avatar_image;
#line 733 "../src/prompt-box.vala"
		user_avatar_set_avatar_path (_tmp3_, path);
#line 3370 "prompt-box.c"
	}
}

void
prompt_box_hide_avatar (PromptBox* self)
{
	UserAvatar* _tmp0_;
#line 736 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 738 "../src/prompt-box.vala"
	_tmp0_ = self->priv->avatar_image;
#line 738 "../src/prompt-box.vala"
	gtk_widget_hide ((GtkWidget*) _tmp0_);
#line 3384 "prompt-box.c"
}

gboolean
prompt_box_get_has_errors (PromptBox* self)
{
	gboolean result;
#line 28 "../src/prompt-box.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 28 "../src/prompt-box.vala"
	result = self->priv->_has_errors;
#line 28 "../src/prompt-box.vala"
	return result;
#line 3397 "prompt-box.c"
}

void
prompt_box_set_has_errors (PromptBox* self,
                           gboolean value)
{
	gboolean old_value;
#line 28 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 28 "../src/prompt-box.vala"
	old_value = prompt_box_get_has_errors (self);
#line 28 "../src/prompt-box.vala"
	if (old_value != value) {
#line 28 "../src/prompt-box.vala"
		self->priv->_has_errors = value;
#line 28 "../src/prompt-box.vala"
		g_object_notify_by_pspec ((GObject *) self, prompt_box_properties[PROMPT_BOX_HAS_ERRORS_PROPERTY]);
#line 3415 "prompt-box.c"
	}
}

const gchar*
prompt_box_get_id (PromptBox* self)
{
	const gchar* result;
	const gchar* _tmp0_;
#line 29 "../src/prompt-box.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 29 "../src/prompt-box.vala"
	_tmp0_ = self->priv->_id;
#line 29 "../src/prompt-box.vala"
	result = _tmp0_;
#line 29 "../src/prompt-box.vala"
	return result;
#line 3432 "prompt-box.c"
}

static void
prompt_box_set_id (PromptBox* self,
                   const gchar* value)
{
	gchar* old_value;
#line 29 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 29 "../src/prompt-box.vala"
	old_value = prompt_box_get_id (self);
#line 29 "../src/prompt-box.vala"
	if (g_strcmp0 (value, old_value) != 0) {
#line 3446 "prompt-box.c"
		gchar* _tmp0_;
#line 29 "../src/prompt-box.vala"
		_tmp0_ = g_strdup (value);
#line 29 "../src/prompt-box.vala"
		_g_free0 (self->priv->_id);
#line 29 "../src/prompt-box.vala"
		self->priv->_id = _tmp0_;
#line 29 "../src/prompt-box.vala"
		g_object_notify_by_pspec ((GObject *) self, prompt_box_properties[PROMPT_BOX_ID_PROPERTY]);
#line 3456 "prompt-box.c"
	}
}

const gchar*
prompt_box_get_label (PromptBox* self)
{
	const gchar* result;
	FadingLabel* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
#line 33 "../src/prompt-box.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 33 "../src/prompt-box.vala"
	_tmp0_ = self->name_label;
#line 33 "../src/prompt-box.vala"
	_tmp1_ = gtk_label_get_label ((GtkLabel*) _tmp0_);
#line 33 "../src/prompt-box.vala"
	_tmp2_ = _tmp1_;
#line 33 "../src/prompt-box.vala"
	result = _tmp2_;
#line 33 "../src/prompt-box.vala"
	return result;
#line 3479 "prompt-box.c"
}

void
prompt_box_set_label (PromptBox* self,
                      const gchar* value)
{
	FadingLabel* _tmp0_;
	FadingLabel* _tmp1_;
#line 34 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 36 "../src/prompt-box.vala"
	_tmp0_ = self->name_label;
#line 36 "../src/prompt-box.vala"
	gtk_label_set_label ((GtkLabel*) _tmp0_, value);
#line 37 "../src/prompt-box.vala"
	_tmp1_ = self->small_name_label;
#line 37 "../src/prompt-box.vala"
	gtk_label_set_label ((GtkLabel*) _tmp1_, value);
#line 34 "../src/prompt-box.vala"
	g_object_notify_by_pspec ((GObject *) self, prompt_box_properties[PROMPT_BOX_LABEL_PROPERTY]);
#line 3500 "prompt-box.c"
}

gdouble
prompt_box_get_position (PromptBox* self)
{
	gdouble result;
#line 41 "../src/prompt-box.vala"
	g_return_val_if_fail (self != NULL, -1.0);
#line 41 "../src/prompt-box.vala"
	result = self->priv->_position;
#line 41 "../src/prompt-box.vala"
	return result;
#line 3513 "prompt-box.c"
}

void
prompt_box_set_position (PromptBox* self,
                         gdouble value)
{
	gdouble old_value;
#line 41 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 41 "../src/prompt-box.vala"
	old_value = prompt_box_get_position (self);
#line 41 "../src/prompt-box.vala"
	if (old_value != value) {
#line 41 "../src/prompt-box.vala"
		self->priv->_position = value;
#line 41 "../src/prompt-box.vala"
		g_object_notify_by_pspec ((GObject *) self, prompt_box_properties[PROMPT_BOX_POSITION_PROPERTY]);
#line 3531 "prompt-box.c"
	}
}

static void
g_cclosure_user_marshal_VOID__BOXED_INT (GClosure * closure,
                                         GValue * return_value,
                                         guint n_param_values,
                                         const GValue * param_values,
                                         gpointer invocation_hint,
                                         gpointer marshal_data)
{
	typedef void (*GMarshalFunc_VOID__BOXED_INT) (gpointer data1, gpointer arg_1, gint arg_2, gpointer data2);
	register GMarshalFunc_VOID__BOXED_INT callback;
	register GCClosure * cc;
	register gpointer data1;
	register gpointer data2;
	cc = (GCClosure *) closure;
#line 21 "../src/prompt-box.vala"
	g_return_if_fail (n_param_values == 3);
#line 21 "../src/prompt-box.vala"
	if (G_CCLOSURE_SWAP_DATA (closure)) {
#line 21 "../src/prompt-box.vala"
		data1 = closure->data;
#line 21 "../src/prompt-box.vala"
		data2 = param_values->data[0].v_pointer;
#line 3557 "prompt-box.c"
	} else {
#line 21 "../src/prompt-box.vala"
		data1 = param_values->data[0].v_pointer;
#line 21 "../src/prompt-box.vala"
		data2 = closure->data;
#line 3563 "prompt-box.c"
	}
#line 21 "../src/prompt-box.vala"
	callback = (GMarshalFunc_VOID__BOXED_INT) (marshal_data ? marshal_data : cc->callback);
#line 21 "../src/prompt-box.vala"
	callback (data1, g_value_get_boxed (param_values + 1), g_value_get_int (param_values + 2), data2);
#line 3569 "prompt-box.c"
}

static gboolean
_prompt_box___lambda36_ (PromptBox* self)
{
	gboolean result;
#line 171 "../src/prompt-box.vala"
	g_signal_emit (self, prompt_box_signals[PROMPT_BOX_NAME_CLICKED_SIGNAL], 0);
#line 172 "../src/prompt-box.vala"
	result = TRUE;
#line 172 "../src/prompt-box.vala"
	return result;
#line 3582 "prompt-box.c"
}

static gboolean
__prompt_box___lambda36__gtk_widget_button_release_event (GtkWidget* _sender,
                                                          GdkEventButton* event,
                                                          gpointer self)
{
	gboolean result;
	result = _prompt_box___lambda36_ ((PromptBox*) self);
#line 169 "../src/prompt-box.vala"
	return result;
#line 3594 "prompt-box.c"
}

static void
_prompt_box_update_visibility_g_object_notify (GObject* _sender,
                                               GParamSpec* pspec,
                                               gpointer self)
{
#line 182 "../src/prompt-box.vala"
	prompt_box_update_visibility ((PromptBox*) self);
#line 3604 "prompt-box.c"
}

static GObject *
prompt_box_constructor (GType type,
                        guint n_construct_properties,
                        GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	PromptBox * self;
	GtkFixed* _tmp0_;
	GtkFixed* _tmp1_;
	GtkFixed* _tmp2_;
	GtkGrid* _tmp3_;
	GtkGrid* _tmp4_;
	GtkGrid* _tmp5_;
	GtkGrid* _tmp6_;
	GtkGrid* _tmp7_;
	GtkGrid* _tmp8_;
	ActiveIndicator* _tmp9_;
	ActiveIndicator* _tmp10_;
	ActiveIndicator* _tmp11_;
	ActiveIndicator* _tmp12_;
	GtkGrid* _tmp13_;
	ActiveIndicator* _tmp14_;
	ActiveIndicator* dummy_indicator = NULL;
	ActiveIndicator* _tmp15_;
	ActiveIndicator* _tmp16_;
	GtkGrid* _tmp17_;
	ActiveIndicator* _tmp18_;
	GtkGrid* _tmp19_;
	GtkGrid* _tmp20_;
	GtkGrid* _tmp21_;
	GtkGrid* _tmp22_;
	GtkGrid* small_box_grid = NULL;
	GtkGrid* _tmp23_;
	GtkGrid* _tmp24_;
	GtkGrid* _tmp25_;
	GtkGrid* _tmp26_;
	GtkGrid* _tmp27_;
	ActiveIndicator* _tmp28_;
	ActiveIndicator* _tmp29_;
	ActiveIndicator* _tmp30_;
	ActiveIndicator* _tmp31_;
	GtkGrid* _tmp32_;
	ActiveIndicator* _tmp33_;
	GtkGrid* small_name_grid = NULL;
	GtkGrid* _tmp34_;
	GtkGrid* _tmp35_;
	GtkGrid* _tmp36_;
	ActiveIndicator* small_dummy_indicator = NULL;
	ActiveIndicator* _tmp37_;
	ActiveIndicator* _tmp38_;
	GtkGrid* _tmp39_;
	ActiveIndicator* _tmp40_;
	GtkEventBox* small_box_eventbox = NULL;
	GtkEventBox* _tmp41_;
	GtkEventBox* _tmp42_;
	GtkEventBox* _tmp43_;
	GtkEventBox* _tmp44_;
	GtkGrid* _tmp45_;
	GtkEventBox* _tmp46_;
	GtkEventBox* _tmp47_;
	GtkWidget* _tmp48_;
	GtkFixed* _tmp49_;
	GtkWidget* _tmp50_;
	GtkFixed* _tmp51_;
	GtkGrid* _tmp52_;
#line 93 "../src/prompt-box.vala"
	parent_class = G_OBJECT_CLASS (prompt_box_parent_class);
#line 93 "../src/prompt-box.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 93 "../src/prompt-box.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PROMPT_BOX, PromptBox);
#line 96 "../src/prompt-box.vala"
	gtk_container_set_resize_mode ((GtkContainer*) self, GTK_RESIZE_QUEUE);
#line 98 "../src/prompt-box.vala"
	prompt_box_set_start_row (self);
#line 99 "../src/prompt-box.vala"
	prompt_box_reset_last_row (self);
#line 100 "../src/prompt-box.vala"
	g_object_set ((GtkWidget*) self, "expand", TRUE, NULL);
#line 102 "../src/prompt-box.vala"
	_tmp0_ = (GtkFixed*) gtk_fixed_new ();
#line 102 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp0_);
#line 102 "../src/prompt-box.vala"
	_g_object_unref0 (self->priv->fixed);
#line 102 "../src/prompt-box.vala"
	self->priv->fixed = _tmp0_;
#line 103 "../src/prompt-box.vala"
	_tmp1_ = self->priv->fixed;
#line 103 "../src/prompt-box.vala"
	gtk_widget_show ((GtkWidget*) _tmp1_);
#line 104 "../src/prompt-box.vala"
	_tmp2_ = self->priv->fixed;
#line 104 "../src/prompt-box.vala"
	gtk_container_add ((GtkContainer*) self, (GtkWidget*) _tmp2_);
#line 106 "../src/prompt-box.vala"
	_tmp3_ = (GtkGrid*) gtk_grid_new ();
#line 106 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp3_);
#line 106 "../src/prompt-box.vala"
	_g_object_unref0 (self->box_grid);
#line 106 "../src/prompt-box.vala"
	self->box_grid = _tmp3_;
#line 107 "../src/prompt-box.vala"
	_tmp4_ = self->box_grid;
#line 107 "../src/prompt-box.vala"
	gtk_grid_set_column_spacing (_tmp4_, 4);
#line 108 "../src/prompt-box.vala"
	_tmp5_ = self->box_grid;
#line 108 "../src/prompt-box.vala"
	gtk_grid_set_row_spacing (_tmp5_, 3);
#line 109 "../src/prompt-box.vala"
	_tmp6_ = self->box_grid;
#line 109 "../src/prompt-box.vala"
	gtk_widget_set_margin_top ((GtkWidget*) _tmp6_, GREETER_LIST_BORDER);
#line 110 "../src/prompt-box.vala"
	_tmp7_ = self->box_grid;
#line 110 "../src/prompt-box.vala"
	gtk_widget_set_margin_bottom ((GtkWidget*) _tmp7_, 4);
#line 111 "../src/prompt-box.vala"
	_tmp8_ = self->box_grid;
#line 111 "../src/prompt-box.vala"
	g_object_set ((GtkWidget*) _tmp8_, "expand", TRUE, NULL);
#line 128 "../src/prompt-box.vala"
	_tmp9_ = active_indicator_new ();
#line 128 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp9_);
#line 128 "../src/prompt-box.vala"
	_g_object_unref0 (self->priv->active_indicator);
#line 128 "../src/prompt-box.vala"
	self->priv->active_indicator = _tmp9_;
#line 129 "../src/prompt-box.vala"
	_tmp10_ = self->priv->active_indicator;
#line 129 "../src/prompt-box.vala"
	gtk_widget_set_valign ((GtkWidget*) _tmp10_, GTK_ALIGN_START);
#line 130 "../src/prompt-box.vala"
	_tmp11_ = self->priv->active_indicator;
#line 130 "../src/prompt-box.vala"
	gtk_widget_set_margin_top ((GtkWidget*) _tmp11_, ((grid_size - ACTIVE_INDICATOR_HEIGHT) / 2) + ACTIVE_INDICATOR_MARGIN);
#line 131 "../src/prompt-box.vala"
	_tmp12_ = self->priv->active_indicator;
#line 131 "../src/prompt-box.vala"
	gtk_widget_show ((GtkWidget*) _tmp12_);
#line 132 "../src/prompt-box.vala"
	_tmp13_ = self->box_grid;
#line 132 "../src/prompt-box.vala"
	_tmp14_ = self->priv->active_indicator;
#line 132 "../src/prompt-box.vala"
	gtk_grid_attach (_tmp13_, (GtkWidget*) _tmp14_, PROMPT_BOX_COL_ACTIVE, self->last_row, 1, 1);
#line 135 "../src/prompt-box.vala"
	_tmp15_ = active_indicator_new ();
#line 135 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp15_);
#line 135 "../src/prompt-box.vala"
	dummy_indicator = _tmp15_;
#line 136 "../src/prompt-box.vala"
	_tmp16_ = dummy_indicator;
#line 136 "../src/prompt-box.vala"
	gtk_widget_show ((GtkWidget*) _tmp16_);
#line 137 "../src/prompt-box.vala"
	_tmp17_ = self->box_grid;
#line 137 "../src/prompt-box.vala"
	_tmp18_ = dummy_indicator;
#line 137 "../src/prompt-box.vala"
	gtk_grid_attach (_tmp17_, (GtkWidget*) _tmp18_, PROMPT_BOX_COL_SPACER, self->last_row, 1, 1);
#line 139 "../src/prompt-box.vala"
	_tmp19_ = self->box_grid;
#line 139 "../src/prompt-box.vala"
	gtk_widget_show ((GtkWidget*) _tmp19_);
#line 142 "../src/prompt-box.vala"
	_tmp20_ = prompt_box_create_name_grid (self);
#line 142 "../src/prompt-box.vala"
	_g_object_unref0 (self->name_grid);
#line 142 "../src/prompt-box.vala"
	self->name_grid = _tmp20_;
#line 143 "../src/prompt-box.vala"
	_tmp21_ = self->box_grid;
#line 143 "../src/prompt-box.vala"
	_tmp22_ = self->name_grid;
#line 143 "../src/prompt-box.vala"
	gtk_grid_attach (_tmp21_, (GtkWidget*) _tmp22_, PROMPT_BOX_COL_CONTENT, self->last_row, 1, 1);
#line 147 "../src/prompt-box.vala"
	_tmp23_ = (GtkGrid*) gtk_grid_new ();
#line 147 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp23_);
#line 147 "../src/prompt-box.vala"
	small_box_grid = _tmp23_;
#line 148 "../src/prompt-box.vala"
	_tmp24_ = small_box_grid;
#line 148 "../src/prompt-box.vala"
	gtk_grid_set_column_spacing (_tmp24_, 4);
#line 149 "../src/prompt-box.vala"
	_tmp25_ = small_box_grid;
#line 149 "../src/prompt-box.vala"
	gtk_grid_set_row_spacing (_tmp25_, 6);
#line 150 "../src/prompt-box.vala"
	_tmp26_ = small_box_grid;
#line 150 "../src/prompt-box.vala"
	gtk_widget_set_hexpand ((GtkWidget*) _tmp26_, TRUE);
#line 151 "../src/prompt-box.vala"
	_tmp27_ = small_box_grid;
#line 151 "../src/prompt-box.vala"
	gtk_widget_show ((GtkWidget*) _tmp27_);
#line 153 "../src/prompt-box.vala"
	_tmp28_ = active_indicator_new ();
#line 153 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp28_);
#line 153 "../src/prompt-box.vala"
	_g_object_unref0 (self->priv->small_active_indicator);
#line 153 "../src/prompt-box.vala"
	self->priv->small_active_indicator = _tmp28_;
#line 154 "../src/prompt-box.vala"
	_tmp29_ = self->priv->small_active_indicator;
#line 154 "../src/prompt-box.vala"
	gtk_widget_set_valign ((GtkWidget*) _tmp29_, GTK_ALIGN_START);
#line 155 "../src/prompt-box.vala"
	_tmp30_ = self->priv->small_active_indicator;
#line 155 "../src/prompt-box.vala"
	gtk_widget_set_margin_top ((GtkWidget*) _tmp30_, (grid_size - ACTIVE_INDICATOR_HEIGHT) / 2);
#line 156 "../src/prompt-box.vala"
	_tmp31_ = self->priv->small_active_indicator;
#line 156 "../src/prompt-box.vala"
	gtk_widget_show ((GtkWidget*) _tmp31_);
#line 157 "../src/prompt-box.vala"
	_tmp32_ = small_box_grid;
#line 157 "../src/prompt-box.vala"
	_tmp33_ = self->priv->small_active_indicator;
#line 157 "../src/prompt-box.vala"
	gtk_grid_attach (_tmp32_, (GtkWidget*) _tmp33_, 0, 0, 1, 1);
#line 159 "../src/prompt-box.vala"
	_tmp34_ = prompt_box_create_small_name_grid (self);
#line 159 "../src/prompt-box.vala"
	small_name_grid = _tmp34_;
#line 160 "../src/prompt-box.vala"
	_tmp35_ = small_box_grid;
#line 160 "../src/prompt-box.vala"
	_tmp36_ = small_name_grid;
#line 160 "../src/prompt-box.vala"
	gtk_grid_attach (_tmp35_, (GtkWidget*) _tmp36_, 1, 0, 1, 1);
#line 163 "../src/prompt-box.vala"
	_tmp37_ = active_indicator_new ();
#line 163 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp37_);
#line 163 "../src/prompt-box.vala"
	small_dummy_indicator = _tmp37_;
#line 164 "../src/prompt-box.vala"
	_tmp38_ = small_dummy_indicator;
#line 164 "../src/prompt-box.vala"
	gtk_widget_show ((GtkWidget*) _tmp38_);
#line 165 "../src/prompt-box.vala"
	_tmp39_ = small_box_grid;
#line 165 "../src/prompt-box.vala"
	_tmp40_ = small_dummy_indicator;
#line 165 "../src/prompt-box.vala"
	gtk_grid_attach (_tmp39_, (GtkWidget*) _tmp40_, 3, 0, 1, 1);
#line 167 "../src/prompt-box.vala"
	_tmp41_ = (GtkEventBox*) gtk_event_box_new ();
#line 167 "../src/prompt-box.vala"
	g_object_ref_sink (_tmp41_);
#line 167 "../src/prompt-box.vala"
	small_box_eventbox = _tmp41_;
#line 168 "../src/prompt-box.vala"
	_tmp42_ = small_box_eventbox;
#line 168 "../src/prompt-box.vala"
	gtk_event_box_set_visible_window (_tmp42_, FALSE);
#line 169 "../src/prompt-box.vala"
	_tmp43_ = small_box_eventbox;
#line 169 "../src/prompt-box.vala"
	g_signal_connect_object ((GtkWidget*) _tmp43_, "button-release-event", (GCallback) __prompt_box___lambda36__gtk_widget_button_release_event, self, 0);
#line 174 "../src/prompt-box.vala"
	_tmp44_ = small_box_eventbox;
#line 174 "../src/prompt-box.vala"
	_tmp45_ = small_box_grid;
#line 174 "../src/prompt-box.vala"
	gtk_container_add ((GtkContainer*) _tmp44_, (GtkWidget*) _tmp45_);
#line 175 "../src/prompt-box.vala"
	_tmp46_ = small_box_eventbox;
#line 175 "../src/prompt-box.vala"
	gtk_widget_show ((GtkWidget*) _tmp46_);
#line 176 "../src/prompt-box.vala"
	_tmp47_ = small_box_eventbox;
#line 176 "../src/prompt-box.vala"
	_tmp48_ = _g_object_ref0 ((GtkWidget*) _tmp47_);
#line 176 "../src/prompt-box.vala"
	_g_object_unref0 (self->small_box_widget);
#line 176 "../src/prompt-box.vala"
	self->small_box_widget = _tmp48_;
#line 178 "../src/prompt-box.vala"
	_tmp49_ = self->priv->fixed;
#line 178 "../src/prompt-box.vala"
	_tmp50_ = self->small_box_widget;
#line 178 "../src/prompt-box.vala"
	gtk_container_add ((GtkContainer*) _tmp49_, _tmp50_);
#line 179 "../src/prompt-box.vala"
	_tmp51_ = self->priv->fixed;
#line 179 "../src/prompt-box.vala"
	_tmp52_ = self->box_grid;
#line 179 "../src/prompt-box.vala"
	gtk_container_add ((GtkContainer*) _tmp51_, (GtkWidget*) _tmp52_);
#line 182 "../src/prompt-box.vala"
	g_signal_connect_object ((GObject*) self, "notify::position", (GCallback) _prompt_box_update_visibility_g_object_notify, self, 0);
#line 93 "../src/prompt-box.vala"
	_g_object_unref0 (small_box_eventbox);
#line 93 "../src/prompt-box.vala"
	_g_object_unref0 (small_dummy_indicator);
#line 93 "../src/prompt-box.vala"
	_g_object_unref0 (small_name_grid);
#line 93 "../src/prompt-box.vala"
	_g_object_unref0 (small_box_grid);
#line 93 "../src/prompt-box.vala"
	_g_object_unref0 (dummy_indicator);
#line 93 "../src/prompt-box.vala"
	return obj;
#line 3921 "prompt-box.c"
}

static void
prompt_box_class_init (PromptBoxClass * klass,
                       gpointer klass_data)
{
#line 21 "../src/prompt-box.vala"
	prompt_box_parent_class = g_type_class_peek_parent (klass);
#line 21 "../src/prompt-box.vala"
	g_type_class_adjust_private_offset (klass, &PromptBox_private_offset);
#line 21 "../src/prompt-box.vala"
	((PromptBoxClass *) klass)->create_name_grid = (GtkGrid* (*) (PromptBox*)) prompt_box_real_create_name_grid;
#line 21 "../src/prompt-box.vala"
	((PromptBoxClass *) klass)->create_small_name_grid = (GtkGrid* (*) (PromptBox*)) prompt_box_real_create_small_name_grid;
#line 21 "../src/prompt-box.vala"
	((PromptBoxClass *) klass)->set_start_row = (void (*) (PromptBox*)) prompt_box_real_set_start_row;
#line 21 "../src/prompt-box.vala"
	((PromptBoxClass *) klass)->reset_last_row = (void (*) (PromptBox*)) prompt_box_real_reset_last_row;
#line 21 "../src/prompt-box.vala"
	((GtkWidgetClass *) klass)->get_preferred_height = (void (*) (GtkWidget*, gint*, gint*)) prompt_box_real_get_preferred_height;
#line 21 "../src/prompt-box.vala"
	((PromptBoxClass *) klass)->add_static_prompts = (void (*) (PromptBox*)) prompt_box_real_add_static_prompts;
#line 21 "../src/prompt-box.vala"
	((GtkWidgetClass *) klass)->grab_focus = (void (*) (GtkWidget*)) prompt_box_real_grab_focus;
#line 21 "../src/prompt-box.vala"
	((GtkWidgetClass *) klass)->size_allocate = (void (*) (GtkWidget*, GtkAllocation*)) prompt_box_real_size_allocate;
#line 21 "../src/prompt-box.vala"
	((FadableBoxClass *) klass)->draw_full_alpha = (void (*) (FadableBox*, cairo_t*)) prompt_box_real_draw_full_alpha;
#line 21 "../src/prompt-box.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_prompt_box_get_property;
#line 21 "../src/prompt-box.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_prompt_box_set_property;
#line 21 "../src/prompt-box.vala"
	G_OBJECT_CLASS (klass)->constructor = prompt_box_constructor;
#line 21 "../src/prompt-box.vala"
	G_OBJECT_CLASS (klass)->finalize = prompt_box_finalize;
#line 21 "../src/prompt-box.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROMPT_BOX_HAS_ERRORS_PROPERTY, prompt_box_properties[PROMPT_BOX_HAS_ERRORS_PROPERTY] = g_param_spec_boolean ("has-errors", "has-errors", "has-errors", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 21 "../src/prompt-box.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROMPT_BOX_ID_PROPERTY, prompt_box_properties[PROMPT_BOX_ID_PROPERTY] = g_param_spec_string ("id", "id", "id", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
#line 21 "../src/prompt-box.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROMPT_BOX_LABEL_PROPERTY, prompt_box_properties[PROMPT_BOX_LABEL_PROPERTY] = g_param_spec_string ("label", "label", "label", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 21 "../src/prompt-box.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), PROMPT_BOX_POSITION_PROPERTY, prompt_box_properties[PROMPT_BOX_POSITION_PROPERTY] = g_param_spec_double ("position", "position", "position", -G_MAXDOUBLE, G_MAXDOUBLE, (gdouble) 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 21 "../src/prompt-box.vala"
	prompt_box_signals[PROMPT_BOX_RESPOND_SIGNAL] = g_signal_new ("respond", TYPE_PROMPT_BOX, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__BOXED_INT, G_TYPE_NONE, 2, G_TYPE_STRV, G_TYPE_INT);
#line 21 "../src/prompt-box.vala"
	prompt_box_signals[PROMPT_BOX_LOGIN_SIGNAL] = g_signal_new ("login", TYPE_PROMPT_BOX, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 21 "../src/prompt-box.vala"
	prompt_box_signals[PROMPT_BOX_SHOW_OPTIONS_SIGNAL] = g_signal_new ("show-options", TYPE_PROMPT_BOX, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 21 "../src/prompt-box.vala"
	prompt_box_signals[PROMPT_BOX_NAME_CLICKED_SIGNAL] = g_signal_new ("name-clicked", TYPE_PROMPT_BOX, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 3974 "prompt-box.c"
}

static void
prompt_box_instance_init (PromptBox * self,
                          gpointer klass)
{
#line 21 "../src/prompt-box.vala"
	self->priv = prompt_box_get_instance_private (self);
#line 28 "../src/prompt-box.vala"
	self->priv->_has_errors = FALSE;
#line 41 "../src/prompt-box.vala"
	self->priv->_position = (gdouble) 0;
#line 86 "../src/prompt-box.vala"
	self->priv->prompt_visibility = PROMPT_BOX_PROMPT_VISIBILITY_HIDDEN;
#line 3989 "prompt-box.c"
}

static void
prompt_box_finalize (GObject * obj)
{
	PromptBox * self;
#line 21 "../src/prompt-box.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_PROMPT_BOX, PromptBox);
#line 29 "../src/prompt-box.vala"
	_g_free0 (self->priv->_id);
#line 43 "../src/prompt-box.vala"
	_g_object_unref0 (self->priv->fixed);
#line 44 "../src/prompt-box.vala"
	_g_object_unref0 (self->priv->zone);
#line 47 "../src/prompt-box.vala"
	_g_object_unref0 (self->box_grid);
#line 48 "../src/prompt-box.vala"
	_g_object_unref0 (self->name_grid);
#line 49 "../src/prompt-box.vala"
	_g_object_unref0 (self->priv->active_indicator);
#line 50 "../src/prompt-box.vala"
	_g_object_unref0 (self->name_label);
#line 51 "../src/prompt-box.vala"
	_g_object_unref0 (self->option_button);
#line 52 "../src/prompt-box.vala"
	_g_object_unref0 (self->priv->option_image);
#line 53 "../src/prompt-box.vala"
	_g_object_unref0 (self->priv->message_image);
#line 54 "../src/prompt-box.vala"
	_g_object_unref0 (self->priv->avatar_image);
#line 57 "../src/prompt-box.vala"
	_g_object_unref0 (self->small_box_widget);
#line 58 "../src/prompt-box.vala"
	_g_object_unref0 (self->priv->small_active_indicator);
#line 59 "../src/prompt-box.vala"
	_g_object_unref0 (self->small_name_label);
#line 60 "../src/prompt-box.vala"
	_g_object_unref0 (self->priv->small_message_image);
#line 61 "../src/prompt-box.vala"
	_g_object_unref0 (self->priv->small_avatar_image);
#line 21 "../src/prompt-box.vala"
	G_OBJECT_CLASS (prompt_box_parent_class)->finalize (obj);
#line 4032 "prompt-box.c"
}

static GType
prompt_box_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (PromptBoxClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) prompt_box_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (PromptBox), 0, (GInstanceInitFunc) prompt_box_instance_init, NULL };
	GType prompt_box_type_id;
	prompt_box_type_id = g_type_register_static (TYPE_FADABLE_BOX, "PromptBox", &g_define_type_info, 0);
	PromptBox_private_offset = g_type_add_instance_private (prompt_box_type_id, sizeof (PromptBoxPrivate));
	return prompt_box_type_id;
}

GType
prompt_box_get_type (void)
{
	static volatile gsize prompt_box_type_id__once = 0;
	if (g_once_init_enter (&prompt_box_type_id__once)) {
		GType prompt_box_type_id;
		prompt_box_type_id = prompt_box_get_type_once ();
		g_once_init_leave (&prompt_box_type_id__once, prompt_box_type_id);
	}
	return prompt_box_type_id__once;
}

static void
_vala_prompt_box_get_property (GObject * object,
                               guint property_id,
                               GValue * value,
                               GParamSpec * pspec)
{
	PromptBox * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_PROMPT_BOX, PromptBox);
#line 21 "../src/prompt-box.vala"
	switch (property_id) {
#line 21 "../src/prompt-box.vala"
		case PROMPT_BOX_HAS_ERRORS_PROPERTY:
#line 21 "../src/prompt-box.vala"
		g_value_set_boolean (value, prompt_box_get_has_errors (self));
#line 21 "../src/prompt-box.vala"
		break;
#line 21 "../src/prompt-box.vala"
		case PROMPT_BOX_ID_PROPERTY:
#line 21 "../src/prompt-box.vala"
		g_value_set_string (value, prompt_box_get_id (self));
#line 21 "../src/prompt-box.vala"
		break;
#line 21 "../src/prompt-box.vala"
		case PROMPT_BOX_LABEL_PROPERTY:
#line 21 "../src/prompt-box.vala"
		g_value_set_string (value, prompt_box_get_label (self));
#line 21 "../src/prompt-box.vala"
		break;
#line 21 "../src/prompt-box.vala"
		case PROMPT_BOX_POSITION_PROPERTY:
#line 21 "../src/prompt-box.vala"
		g_value_set_double (value, prompt_box_get_position (self));
#line 21 "../src/prompt-box.vala"
		break;
#line 4091 "prompt-box.c"
		default:
#line 21 "../src/prompt-box.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 21 "../src/prompt-box.vala"
		break;
#line 4097 "prompt-box.c"
	}
}

static void
_vala_prompt_box_set_property (GObject * object,
                               guint property_id,
                               const GValue * value,
                               GParamSpec * pspec)
{
	PromptBox * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_PROMPT_BOX, PromptBox);
#line 21 "../src/prompt-box.vala"
	switch (property_id) {
#line 21 "../src/prompt-box.vala"
		case PROMPT_BOX_HAS_ERRORS_PROPERTY:
#line 21 "../src/prompt-box.vala"
		prompt_box_set_has_errors (self, g_value_get_boolean (value));
#line 21 "../src/prompt-box.vala"
		break;
#line 21 "../src/prompt-box.vala"
		case PROMPT_BOX_ID_PROPERTY:
#line 21 "../src/prompt-box.vala"
		prompt_box_set_id (self, g_value_get_string (value));
#line 21 "../src/prompt-box.vala"
		break;
#line 21 "../src/prompt-box.vala"
		case PROMPT_BOX_LABEL_PROPERTY:
#line 21 "../src/prompt-box.vala"
		prompt_box_set_label (self, g_value_get_string (value));
#line 21 "../src/prompt-box.vala"
		break;
#line 21 "../src/prompt-box.vala"
		case PROMPT_BOX_POSITION_PROPERTY:
#line 21 "../src/prompt-box.vala"
		prompt_box_set_position (self, g_value_get_double (value));
#line 21 "../src/prompt-box.vala"
		break;
#line 4135 "prompt-box.c"
		default:
#line 21 "../src/prompt-box.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 21 "../src/prompt-box.vala"
		break;
#line 4141 "prompt-box.c"
	}
}

static inline gpointer
active_indicator_get_instance_private (ActiveIndicator* self)
{
	return G_STRUCT_MEMBER_P (self, ActiveIndicator_private_offset);
}

static void
active_indicator_real_get_preferred_width (GtkWidget* base,
                                           gint* min,
                                           gint* nat)
{
	ActiveIndicator * self;
	gint _vala_min = 0;
	gint _vala_nat = 0;
#line 764 "../src/prompt-box.vala"
	self = (ActiveIndicator*) base;
#line 766 "../src/prompt-box.vala"
	_vala_min = ACTIVE_INDICATOR_WIDTH;
#line 767 "../src/prompt-box.vala"
	_vala_nat = _vala_min;
#line 764 "../src/prompt-box.vala"
	if (min) {
#line 764 "../src/prompt-box.vala"
		*min = _vala_min;
#line 4169 "prompt-box.c"
	}
#line 764 "../src/prompt-box.vala"
	if (nat) {
#line 764 "../src/prompt-box.vala"
		*nat = _vala_nat;
#line 4175 "prompt-box.c"
	}
}

static void
active_indicator_real_get_preferred_height (GtkWidget* base,
                                            gint* min,
                                            gint* nat)
{
	ActiveIndicator * self;
	gint _vala_min = 0;
	gint _vala_nat = 0;
#line 770 "../src/prompt-box.vala"
	self = (ActiveIndicator*) base;
#line 772 "../src/prompt-box.vala"
	_vala_min = ACTIVE_INDICATOR_HEIGHT;
#line 773 "../src/prompt-box.vala"
	_vala_nat = _vala_min;
#line 770 "../src/prompt-box.vala"
	if (min) {
#line 770 "../src/prompt-box.vala"
		*min = _vala_min;
#line 4197 "prompt-box.c"
	}
#line 770 "../src/prompt-box.vala"
	if (nat) {
#line 770 "../src/prompt-box.vala"
		*nat = _vala_nat;
#line 4203 "prompt-box.c"
	}
}

static gboolean
active_indicator_real_draw (GtkWidget* base,
                            cairo_t* c)
{
	ActiveIndicator * self;
	gboolean _tmp0_;
	gboolean result;
#line 776 "../src/prompt-box.vala"
	self = (ActiveIndicator*) base;
#line 776 "../src/prompt-box.vala"
	g_return_val_if_fail (c != NULL, FALSE);
#line 778 "../src/prompt-box.vala"
	_tmp0_ = self->priv->_active;
#line 778 "../src/prompt-box.vala"
	if (!_tmp0_) {
#line 779 "../src/prompt-box.vala"
		result = FALSE;
#line 779 "../src/prompt-box.vala"
		return result;
#line 4226 "prompt-box.c"
	}
#line 780 "../src/prompt-box.vala"
	result = GTK_WIDGET_CLASS (active_indicator_parent_class)->draw ((GtkWidget*) G_TYPE_CHECK_INSTANCE_CAST (self, gtk_image_get_type (), GtkImage), c);
#line 780 "../src/prompt-box.vala"
	return result;
#line 4232 "prompt-box.c"
}

ActiveIndicator*
active_indicator_construct (GType object_type)
{
	ActiveIndicator * self = NULL;
#line 742 "../src/prompt-box.vala"
	self = (ActiveIndicator*) g_object_new (object_type, NULL);
#line 742 "../src/prompt-box.vala"
	return self;
#line 4243 "prompt-box.c"
}

ActiveIndicator*
active_indicator_new (void)
{
#line 742 "../src/prompt-box.vala"
	return active_indicator_construct (TYPE_ACTIVE_INDICATOR);
#line 4251 "prompt-box.c"
}

gboolean
active_indicator_get_active (ActiveIndicator* self)
{
	gboolean result;
#line 744 "../src/prompt-box.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 744 "../src/prompt-box.vala"
	result = self->priv->_active;
#line 744 "../src/prompt-box.vala"
	return result;
#line 4264 "prompt-box.c"
}

void
active_indicator_set_active (ActiveIndicator* self,
                             gboolean value)
{
	gboolean old_value;
#line 744 "../src/prompt-box.vala"
	g_return_if_fail (self != NULL);
#line 744 "../src/prompt-box.vala"
	old_value = active_indicator_get_active (self);
#line 744 "../src/prompt-box.vala"
	if (old_value != value) {
#line 744 "../src/prompt-box.vala"
		self->priv->_active = value;
#line 744 "../src/prompt-box.vala"
		g_object_notify_by_pspec ((GObject *) self, active_indicator_properties[ACTIVE_INDICATOR_ACTIVE_PROPERTY]);
#line 4282 "prompt-box.c"
	}
}

static void
_active_indicator___lambda24_ (ActiveIndicator* self)
{
#line 760 "../src/prompt-box.vala"
	gtk_widget_queue_draw ((GtkWidget*) self);
#line 4291 "prompt-box.c"
}

static void
__active_indicator___lambda24__g_object_notify (GObject* _sender,
                                                GParamSpec* pspec,
                                                gpointer self)
{
#line 760 "../src/prompt-box.vala"
	_active_indicator___lambda24_ ((ActiveIndicator*) self);
#line 4301 "prompt-box.c"
}

static GObject *
active_indicator_constructor (GType type,
                              guint n_construct_properties,
                              GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	ActiveIndicator * self;
	gchar* filename = NULL;
	gchar* _tmp0_;
	GError* _inner_error0_ = NULL;
#line 749 "../src/prompt-box.vala"
	parent_class = G_OBJECT_CLASS (active_indicator_parent_class);
#line 749 "../src/prompt-box.vala"
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
#line 749 "../src/prompt-box.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ACTIVE_INDICATOR, ActiveIndicator);
#line 751 "../src/prompt-box.vala"
	_tmp0_ = g_build_filename (PKGDATADIR, "active.png", NULL);
#line 751 "../src/prompt-box.vala"
	filename = _tmp0_;
#line 4325 "prompt-box.c"
	{
		GdkPixbuf* _tmp1_ = NULL;
		const gchar* _tmp2_;
		GdkPixbuf* _tmp3_;
#line 754 "../src/prompt-box.vala"
		_tmp2_ = filename;
#line 754 "../src/prompt-box.vala"
		_tmp3_ = gdk_pixbuf_new_from_file (_tmp2_, &_inner_error0_);
#line 754 "../src/prompt-box.vala"
		_tmp1_ = _tmp3_;
#line 754 "../src/prompt-box.vala"
		if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 4338 "prompt-box.c"
			goto __catch0_g_error;
		}
#line 754 "../src/prompt-box.vala"
		g_object_set ((GtkImage*) self, "pixbuf", _tmp1_, NULL);
#line 752 "../src/prompt-box.vala"
		_g_object_unref0 (_tmp1_);
#line 4345 "prompt-box.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
		GError* _tmp4_;
		const gchar* _tmp5_;
#line 752 "../src/prompt-box.vala"
		e = _inner_error0_;
#line 752 "../src/prompt-box.vala"
		_inner_error0_ = NULL;
#line 758 "../src/prompt-box.vala"
		_tmp4_ = e;
#line 758 "../src/prompt-box.vala"
		_tmp5_ = _tmp4_->message;
#line 758 "../src/prompt-box.vala"
		g_debug ("prompt-box.vala:758: Could not load active image: %s", _tmp5_);
#line 752 "../src/prompt-box.vala"
		_g_error_free0 (e);
#line 4365 "prompt-box.c"
	}
	__finally0:
#line 752 "../src/prompt-box.vala"
	if (G_UNLIKELY (_inner_error0_ != NULL)) {
#line 752 "../src/prompt-box.vala"
		_g_free0 (filename);
#line 752 "../src/prompt-box.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
#line 752 "../src/prompt-box.vala"
		g_clear_error (&_inner_error0_);
#line 4376 "prompt-box.c"
	}
#line 760 "../src/prompt-box.vala"
	g_signal_connect_object ((GObject*) self, "notify::active", (GCallback) __active_indicator___lambda24__g_object_notify, self, 0);
#line 761 "../src/prompt-box.vala"
	g_object_set ((GtkMisc*) self, "xalign", 0.0f, NULL);
#line 749 "../src/prompt-box.vala"
	_g_free0 (filename);
#line 749 "../src/prompt-box.vala"
	return obj;
#line 4386 "prompt-box.c"
}

static void
active_indicator_class_init (ActiveIndicatorClass * klass,
                             gpointer klass_data)
{
#line 742 "../src/prompt-box.vala"
	active_indicator_parent_class = g_type_class_peek_parent (klass);
#line 742 "../src/prompt-box.vala"
	g_type_class_adjust_private_offset (klass, &ActiveIndicator_private_offset);
#line 742 "../src/prompt-box.vala"
	((GtkWidgetClass *) klass)->get_preferred_width = (void (*) (GtkWidget*, gint*, gint*)) active_indicator_real_get_preferred_width;
#line 742 "../src/prompt-box.vala"
	((GtkWidgetClass *) klass)->get_preferred_height = (void (*) (GtkWidget*, gint*, gint*)) active_indicator_real_get_preferred_height;
#line 742 "../src/prompt-box.vala"
	((GtkWidgetClass *) klass)->draw = (gboolean (*) (GtkWidget*, cairo_t*)) active_indicator_real_draw;
#line 742 "../src/prompt-box.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_active_indicator_get_property;
#line 742 "../src/prompt-box.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_active_indicator_set_property;
#line 742 "../src/prompt-box.vala"
	G_OBJECT_CLASS (klass)->constructor = active_indicator_constructor;
#line 742 "../src/prompt-box.vala"
	G_OBJECT_CLASS (klass)->finalize = active_indicator_finalize;
#line 742 "../src/prompt-box.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), ACTIVE_INDICATOR_ACTIVE_PROPERTY, active_indicator_properties[ACTIVE_INDICATOR_ACTIVE_PROPERTY] = g_param_spec_boolean ("active", "active", "active", FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 4413 "prompt-box.c"
}

static void
active_indicator_instance_init (ActiveIndicator * self,
                                gpointer klass)
{
#line 742 "../src/prompt-box.vala"
	self->priv = active_indicator_get_instance_private (self);
#line 4422 "prompt-box.c"
}

static void
active_indicator_finalize (GObject * obj)
{
	ActiveIndicator * self;
#line 742 "../src/prompt-box.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ACTIVE_INDICATOR, ActiveIndicator);
#line 742 "../src/prompt-box.vala"
	G_OBJECT_CLASS (active_indicator_parent_class)->finalize (obj);
#line 4433 "prompt-box.c"
}

static GType
active_indicator_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (ActiveIndicatorClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) active_indicator_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ActiveIndicator), 0, (GInstanceInitFunc) active_indicator_instance_init, NULL };
	GType active_indicator_type_id;
	active_indicator_type_id = g_type_register_static (gtk_image_get_type (), "ActiveIndicator", &g_define_type_info, 0);
	ActiveIndicator_private_offset = g_type_add_instance_private (active_indicator_type_id, sizeof (ActiveIndicatorPrivate));
	return active_indicator_type_id;
}

GType
active_indicator_get_type (void)
{
	static volatile gsize active_indicator_type_id__once = 0;
	if (g_once_init_enter (&active_indicator_type_id__once)) {
		GType active_indicator_type_id;
		active_indicator_type_id = active_indicator_get_type_once ();
		g_once_init_leave (&active_indicator_type_id__once, active_indicator_type_id);
	}
	return active_indicator_type_id__once;
}

static void
_vala_active_indicator_get_property (GObject * object,
                                     guint property_id,
                                     GValue * value,
                                     GParamSpec * pspec)
{
	ActiveIndicator * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_ACTIVE_INDICATOR, ActiveIndicator);
#line 742 "../src/prompt-box.vala"
	switch (property_id) {
#line 742 "../src/prompt-box.vala"
		case ACTIVE_INDICATOR_ACTIVE_PROPERTY:
#line 742 "../src/prompt-box.vala"
		g_value_set_boolean (value, active_indicator_get_active (self));
#line 742 "../src/prompt-box.vala"
		break;
#line 4474 "prompt-box.c"
		default:
#line 742 "../src/prompt-box.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 742 "../src/prompt-box.vala"
		break;
#line 4480 "prompt-box.c"
	}
}

static void
_vala_active_indicator_set_property (GObject * object,
                                     guint property_id,
                                     const GValue * value,
                                     GParamSpec * pspec)
{
	ActiveIndicator * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_ACTIVE_INDICATOR, ActiveIndicator);
#line 742 "../src/prompt-box.vala"
	switch (property_id) {
#line 742 "../src/prompt-box.vala"
		case ACTIVE_INDICATOR_ACTIVE_PROPERTY:
#line 742 "../src/prompt-box.vala"
		active_indicator_set_active (self, g_value_get_boolean (value));
#line 742 "../src/prompt-box.vala"
		break;
#line 4500 "prompt-box.c"
		default:
#line 742 "../src/prompt-box.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 742 "../src/prompt-box.vala"
		break;
#line 4506 "prompt-box.c"
	}
}

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

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

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

