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

/* Copyright 2017 Siddhartha Das (bablu.boy@gmail.com)
*
* This file is part of Bookworm and provides the pop over
* menu for user preferences for font, profile, zoom, etc
*
* Bookworm is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* Bookworm 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 Bookworm. If not, see http://www.gnu.org/licenses/.
*/

#include <glib-object.h>
#include <gtk/gtk.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.h>
#include <webkit2/webkit2.h>
#include <float.h>
#include <math.h>
#include <granite.h>
#include <gobject/gvaluecollector.h>

#define BOOKWORM_APP_CONSTANTS_TOOLTIP_TEXT_FOR_FONT_SIZE_INCREASE _ ("Increase font size (Ctrl + Shift + '+')")
#define BOOKWORM_APP_CONSTANTS_TOOLTIP_TEXT_FOR_FONT_SIZE_DECREASE _ ("Decrease font size (Ctrl + '-')")
#define BOOKWORM_APP_CONSTANTS_SPACING_BUTTONS 6
#define BOOKWORM_APP_CONSTANTS_TOOLTIP_TEXT_FOR_READING_LEFT_ALIGN _ ("Align left")
#define BOOKWORM_APP_CONSTANTS_TOOLTIP_TEXT_FOR_READING_RIGHT_ALIGN _ ("Align right")
#define BOOKWORM_APP_CONSTANTS_TEXT_FOR_PROFILE_BUTTON_LABEL _ ("Profile")
#define BOOKWORM_APP_CONSTANTS_TOOLTIP_TEXT_FOR_PROFILE _ ("Apply theme for this colour profile")
#define BOOKWORM_APP_CONSTANTS_RESOURCE_PREFIX "/com/github/babluboy/bookworm/"
#define BOOKWORM_APP_CONSTANTS_LESS_LINE_WIDTH_IMAGE_LOCATION BOOKWORM_APP_CONSTANTS_RESOURCE_PREFIX "16-bookworm-width-less.png"
#define BOOKWORM_APP_CONSTANTS_TOOLTIP_TEXT_FOR_LINE_WIDTH_DECREASE _ ("Decrease line width")
#define BOOKWORM_APP_CONSTANTS_MORE_LINE_WIDTH_IMAGE_LOCATION BOOKWORM_APP_CONSTANTS_RESOURCE_PREFIX "16-bookworm-width-more.png"
#define BOOKWORM_APP_CONSTANTS_TOOLTIP_TEXT_FOR_LINE_WIDTH_INCREASE _ ("Increase line width")
#define BOOKWORM_APP_CONSTANTS_LESS_LINE_HEIGHT_IMAGE_LOCATION BOOKWORM_APP_CONSTANTS_RESOURCE_PREFIX "16-bookworm-line-height-less.png"
#define BOOKWORM_APP_CONSTANTS_TOOLTIP_TEXT_FOR_LINE_HEIGHT_DECREASE _ ("Decrease line spacing")
#define BOOKWORM_APP_CONSTANTS_MORE_LINE_HEIGHT_IMAGE_LOCATION BOOKWORM_APP_CONSTANTS_RESOURCE_PREFIX "16-bookworm-line-height-more.png"
#define BOOKWORM_APP_CONSTANTS_TOOLTIP_TEXT_FOR_LINE_HEIGHT_INCREASE _ ("Increase line spacing")
#define BOOKWORM_APP_CONSTANTS_SPACING_WIDGETS 12
#define BOOKWORM_APP_CONSTANTS_ZOOM_CHANGE_VALUE 0.1
#define BOOKWORM_APP_CONSTANTS_MARGIN_CHANGE_VALUE 1
#define BOOKWORM_APP_CONSTANTS_LINE_HEIGHT_CHANGE_VALUE 10
#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 BOOKWORM_APP_TYPE_PREFERENCES_MENU (bookworm_app_preferences_menu_get_type ())
#define BOOKWORM_APP_PREFERENCES_MENU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOOKWORM_APP_TYPE_PREFERENCES_MENU, BookwormAppPreferencesMenu))
#define BOOKWORM_APP_PREFERENCES_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOOKWORM_APP_TYPE_PREFERENCES_MENU, BookwormAppPreferencesMenuClass))
#define BOOKWORM_APP_IS_PREFERENCES_MENU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOOKWORM_APP_TYPE_PREFERENCES_MENU))
#define BOOKWORM_APP_IS_PREFERENCES_MENU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOOKWORM_APP_TYPE_PREFERENCES_MENU))
#define BOOKWORM_APP_PREFERENCES_MENU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOOKWORM_APP_TYPE_PREFERENCES_MENU, BookwormAppPreferencesMenuClass))

typedef struct _BookwormAppPreferencesMenu BookwormAppPreferencesMenu;
typedef struct _BookwormAppPreferencesMenuClass BookwormAppPreferencesMenuClass;
typedef struct _BookwormAppPreferencesMenuPrivate BookwormAppPreferencesMenuPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define BOOKWORM_APP_TYPE_SETTINGS (bookworm_app_settings_get_type ())
#define BOOKWORM_APP_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOOKWORM_APP_TYPE_SETTINGS, BookwormAppSettings))
#define BOOKWORM_APP_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOOKWORM_APP_TYPE_SETTINGS, BookwormAppSettingsClass))
#define BOOKWORM_APP_IS_SETTINGS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOOKWORM_APP_TYPE_SETTINGS))
#define BOOKWORM_APP_IS_SETTINGS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOOKWORM_APP_TYPE_SETTINGS))
#define BOOKWORM_APP_SETTINGS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOOKWORM_APP_TYPE_SETTINGS, BookwormAppSettingsClass))

typedef struct _BookwormAppSettings BookwormAppSettings;
typedef struct _BookwormAppSettingsClass BookwormAppSettingsClass;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
typedef struct _BookwormAppParamSpecPreferencesMenu BookwormAppParamSpecPreferencesMenu;

struct _BookwormAppPreferencesMenu {
	GTypeInstance parent_instance;
	volatile int ref_count;
	BookwormAppPreferencesMenuPrivate * priv;
};

struct _BookwormAppPreferencesMenuClass {
	GTypeClass parent_class;
	void (*finalize) (BookwormAppPreferencesMenu *self);
};

struct _BookwormAppParamSpecPreferencesMenu {
	GParamSpec parent_instance;
};

static gpointer bookworm_app_preferences_menu_parent_class = NULL;
VALA_EXTERN GtkPopover* bookworm_app_preferences_menu_prefPopover;
GtkPopover* bookworm_app_preferences_menu_prefPopover = NULL;
VALA_EXTERN GtkImage* bookworm_app_bookworm_pref_menu_icon_text_large;
VALA_EXTERN GtkImage* bookworm_app_bookworm_pref_menu_icon_text_small;
VALA_EXTERN GtkImage* bookworm_app_bookworm_pref_menu_icon_align_left;
VALA_EXTERN GtkImage* bookworm_app_bookworm_pref_menu_icon_align_right;
VALA_EXTERN WebKitWebView* bookworm_app_app_window_aWebView;
VALA_EXTERN BookwormAppSettings* bookworm_app_bookworm_settings;

VALA_EXTERN gpointer bookworm_app_preferences_menu_ref (gpointer instance);
VALA_EXTERN void bookworm_app_preferences_menu_unref (gpointer instance);
VALA_EXTERN GParamSpec* bookworm_app_param_spec_preferences_menu (const gchar* name,
                                                      const gchar* nick,
                                                      const gchar* blurb,
                                                      GType object_type,
                                                      GParamFlags flags);
VALA_EXTERN void bookworm_app_value_set_preferences_menu (GValue* value,
                                              gpointer v_object);
VALA_EXTERN void bookworm_app_value_take_preferences_menu (GValue* value,
                                               gpointer v_object);
VALA_EXTERN gpointer bookworm_app_value_get_preferences_menu (const GValue* value);
VALA_EXTERN GType bookworm_app_preferences_menu_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (BookwormAppPreferencesMenu, bookworm_app_preferences_menu_unref)
VALA_EXTERN GtkPopover* bookworm_app_preferences_menu_createPrefPopOver (GtkButton* popWidget);
static void __lambda4_ (void);
static void ___lambda4__gtk_button_clicked (GtkButton* _sender,
                                     gpointer self);
static void __lambda65_ (void);
static void ___lambda65__gtk_button_clicked (GtkButton* _sender,
                                      gpointer self);
static void __lambda66_ (void);
VALA_EXTERN GType bookworm_app_settings_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (BookwormAppSettings, g_object_unref)
VALA_EXTERN void bookworm_app_settings_set_reading_profile (BookwormAppSettings* self,
                                                const gchar* value);
VALA_EXTERN void bookworm_app_content_handler_refreshCurrentPage (void);
static void ___lambda66__gtk_button_clicked (GtkButton* _sender,
                                      gpointer self);
static void __lambda67_ (void);
static void ___lambda67__gtk_button_clicked (GtkButton* _sender,
                                      gpointer self);
static void __lambda68_ (void);
static void ___lambda68__gtk_button_clicked (GtkButton* _sender,
                                      gpointer self);
static void __lambda69_ (void);
VALA_EXTERN const gchar* bookworm_app_settings_get_reading_width (BookwormAppSettings* self);
VALA_EXTERN void bookworm_app_settings_set_reading_width (BookwormAppSettings* self,
                                              const gchar* value);
static void ___lambda69__gtk_button_clicked (GtkButton* _sender,
                                      gpointer self);
static void __lambda70_ (void);
static void ___lambda70__gtk_button_clicked (GtkButton* _sender,
                                      gpointer self);
static void __lambda71_ (void);
VALA_EXTERN const gchar* bookworm_app_settings_get_reading_line_height (BookwormAppSettings* self);
VALA_EXTERN void bookworm_app_settings_set_reading_line_height (BookwormAppSettings* self,
                                                    const gchar* value);
static void ___lambda71__gtk_button_clicked (GtkButton* _sender,
                                      gpointer self);
static void __lambda72_ (void);
static void ___lambda72__gtk_button_clicked (GtkButton* _sender,
                                      gpointer self);
static void __lambda73_ (void);
VALA_EXTERN void bookworm_app_settings_set_text_alignment (BookwormAppSettings* self,
                                               const gchar* value);
static void ___lambda73__gtk_button_clicked (GtkButton* _sender,
                                      gpointer self);
static void __lambda74_ (void);
static void ___lambda74__gtk_button_clicked (GtkButton* _sender,
                                      gpointer self);
static void __lambda75_ (void);
static void ___lambda75__gtk_popover_closed (GtkPopover* _sender,
                                      gpointer self);
VALA_EXTERN BookwormAppPreferencesMenu* bookworm_app_preferences_menu_new (void);
VALA_EXTERN BookwormAppPreferencesMenu* bookworm_app_preferences_menu_construct (GType object_type);
static void bookworm_app_preferences_menu_finalize (BookwormAppPreferencesMenu * obj);
static GType bookworm_app_preferences_menu_get_type_once (void);

VALA_EXTERN const gchar* BOOKWORM_APP_CONSTANTS_BOOKWORM_READING_MODE[5];

static gpointer
_g_object_ref0 (gpointer self)
{
#line 26 "../src/prefpopover.vala"
	return self ? g_object_ref (self) : NULL;
#line 200 "prefpopover.c"
}

static void
__lambda4_ (void)
{
	WebKitWebView* _tmp0_;
	WebKitWebView* _tmp1_;
#line 154 "../src/prefpopover.vala"
	_tmp0_ = bookworm_app_app_window_aWebView;
#line 154 "../src/prefpopover.vala"
	_tmp1_ = bookworm_app_app_window_aWebView;
#line 154 "../src/prefpopover.vala"
	webkit_web_view_set_zoom_level (_tmp0_, webkit_web_view_get_zoom_level (_tmp1_) + BOOKWORM_APP_CONSTANTS_ZOOM_CHANGE_VALUE);
#line 214 "prefpopover.c"
}

static void
___lambda4__gtk_button_clicked (GtkButton* _sender,
                                gpointer self)
{
#line 153 "../src/prefpopover.vala"
	__lambda4_ ();
#line 223 "prefpopover.c"
}

static void
__lambda65_ (void)
{
	WebKitWebView* _tmp0_;
	WebKitWebView* _tmp1_;
#line 160 "../src/prefpopover.vala"
	_tmp0_ = bookworm_app_app_window_aWebView;
#line 160 "../src/prefpopover.vala"
	_tmp1_ = bookworm_app_app_window_aWebView;
#line 160 "../src/prefpopover.vala"
	webkit_web_view_set_zoom_level (_tmp0_, webkit_web_view_get_zoom_level (_tmp1_) - BOOKWORM_APP_CONSTANTS_ZOOM_CHANGE_VALUE);
#line 237 "prefpopover.c"
}

static void
___lambda65__gtk_button_clicked (GtkButton* _sender,
                                 gpointer self)
{
#line 159 "../src/prefpopover.vala"
	__lambda65_ ();
#line 246 "prefpopover.c"
}

static void
__lambda66_ (void)
{
	BookwormAppSettings* _tmp0_;
	const gchar* _tmp1_;
#line 166 "../src/prefpopover.vala"
	_tmp0_ = bookworm_app_bookworm_settings;
#line 166 "../src/prefpopover.vala"
	_tmp1_ = BOOKWORM_APP_CONSTANTS_BOOKWORM_READING_MODE[0];
#line 166 "../src/prefpopover.vala"
	bookworm_app_settings_set_reading_profile (_tmp0_, _tmp1_);
#line 168 "../src/prefpopover.vala"
	bookworm_app_content_handler_refreshCurrentPage ();
#line 262 "prefpopover.c"
}

static void
___lambda66__gtk_button_clicked (GtkButton* _sender,
                                 gpointer self)
{
#line 165 "../src/prefpopover.vala"
	__lambda66_ ();
#line 271 "prefpopover.c"
}

static void
__lambda67_ (void)
{
	BookwormAppSettings* _tmp0_;
	const gchar* _tmp1_;
#line 172 "../src/prefpopover.vala"
	_tmp0_ = bookworm_app_bookworm_settings;
#line 172 "../src/prefpopover.vala"
	_tmp1_ = BOOKWORM_APP_CONSTANTS_BOOKWORM_READING_MODE[1];
#line 172 "../src/prefpopover.vala"
	bookworm_app_settings_set_reading_profile (_tmp0_, _tmp1_);
#line 174 "../src/prefpopover.vala"
	bookworm_app_content_handler_refreshCurrentPage ();
#line 287 "prefpopover.c"
}

static void
___lambda67__gtk_button_clicked (GtkButton* _sender,
                                 gpointer self)
{
#line 171 "../src/prefpopover.vala"
	__lambda67_ ();
#line 296 "prefpopover.c"
}

static void
__lambda68_ (void)
{
	BookwormAppSettings* _tmp0_;
	const gchar* _tmp1_;
#line 178 "../src/prefpopover.vala"
	_tmp0_ = bookworm_app_bookworm_settings;
#line 178 "../src/prefpopover.vala"
	_tmp1_ = BOOKWORM_APP_CONSTANTS_BOOKWORM_READING_MODE[2];
#line 178 "../src/prefpopover.vala"
	bookworm_app_settings_set_reading_profile (_tmp0_, _tmp1_);
#line 180 "../src/prefpopover.vala"
	bookworm_app_content_handler_refreshCurrentPage ();
#line 312 "prefpopover.c"
}

static void
___lambda68__gtk_button_clicked (GtkButton* _sender,
                                 gpointer self)
{
#line 177 "../src/prefpopover.vala"
	__lambda68_ ();
#line 321 "prefpopover.c"
}

static void
__lambda69_ (void)
{
	BookwormAppSettings* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
#line 184 "../src/prefpopover.vala"
	_tmp0_ = bookworm_app_bookworm_settings;
#line 184 "../src/prefpopover.vala"
	_tmp1_ = bookworm_app_settings_get_reading_width (_tmp0_);
#line 184 "../src/prefpopover.vala"
	_tmp2_ = _tmp1_;
#line 184 "../src/prefpopover.vala"
	if (atoi (_tmp2_) <= 40) {
#line 338 "prefpopover.c"
		BookwormAppSettings* _tmp3_;
		BookwormAppSettings* _tmp4_;
		const gchar* _tmp5_;
		const gchar* _tmp6_;
		gchar* _tmp7_;
		gchar* _tmp8_;
#line 185 "../src/prefpopover.vala"
		_tmp3_ = bookworm_app_bookworm_settings;
#line 185 "../src/prefpopover.vala"
		_tmp4_ = bookworm_app_bookworm_settings;
#line 185 "../src/prefpopover.vala"
		_tmp5_ = bookworm_app_settings_get_reading_width (_tmp4_);
#line 185 "../src/prefpopover.vala"
		_tmp6_ = _tmp5_;
#line 185 "../src/prefpopover.vala"
		_tmp7_ = g_strdup_printf ("%i", atoi (_tmp6_) + BOOKWORM_APP_CONSTANTS_MARGIN_CHANGE_VALUE);
#line 185 "../src/prefpopover.vala"
		_tmp8_ = _tmp7_;
#line 185 "../src/prefpopover.vala"
		bookworm_app_settings_set_reading_width (_tmp3_, _tmp8_);
#line 185 "../src/prefpopover.vala"
		_g_free0 (_tmp8_);
#line 190 "../src/prefpopover.vala"
		bookworm_app_content_handler_refreshCurrentPage ();
#line 363 "prefpopover.c"
	}
}

static void
___lambda69__gtk_button_clicked (GtkButton* _sender,
                                 gpointer self)
{
#line 183 "../src/prefpopover.vala"
	__lambda69_ ();
#line 373 "prefpopover.c"
}

static void
__lambda70_ (void)
{
	BookwormAppSettings* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
#line 195 "../src/prefpopover.vala"
	_tmp0_ = bookworm_app_bookworm_settings;
#line 195 "../src/prefpopover.vala"
	_tmp1_ = bookworm_app_settings_get_reading_width (_tmp0_);
#line 195 "../src/prefpopover.vala"
	_tmp2_ = _tmp1_;
#line 195 "../src/prefpopover.vala"
	if (atoi (_tmp2_) >= 1) {
#line 390 "prefpopover.c"
		BookwormAppSettings* _tmp3_;
		BookwormAppSettings* _tmp4_;
		const gchar* _tmp5_;
		const gchar* _tmp6_;
		gchar* _tmp7_;
		gchar* _tmp8_;
#line 196 "../src/prefpopover.vala"
		_tmp3_ = bookworm_app_bookworm_settings;
#line 196 "../src/prefpopover.vala"
		_tmp4_ = bookworm_app_bookworm_settings;
#line 196 "../src/prefpopover.vala"
		_tmp5_ = bookworm_app_settings_get_reading_width (_tmp4_);
#line 196 "../src/prefpopover.vala"
		_tmp6_ = _tmp5_;
#line 196 "../src/prefpopover.vala"
		_tmp7_ = g_strdup_printf ("%i", atoi (_tmp6_) - BOOKWORM_APP_CONSTANTS_MARGIN_CHANGE_VALUE);
#line 196 "../src/prefpopover.vala"
		_tmp8_ = _tmp7_;
#line 196 "../src/prefpopover.vala"
		bookworm_app_settings_set_reading_width (_tmp3_, _tmp8_);
#line 196 "../src/prefpopover.vala"
		_g_free0 (_tmp8_);
#line 201 "../src/prefpopover.vala"
		bookworm_app_content_handler_refreshCurrentPage ();
#line 415 "prefpopover.c"
	}
}

static void
___lambda70__gtk_button_clicked (GtkButton* _sender,
                                 gpointer self)
{
#line 194 "../src/prefpopover.vala"
	__lambda70_ ();
#line 425 "prefpopover.c"
}

static void
__lambda71_ (void)
{
	BookwormAppSettings* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
#line 206 "../src/prefpopover.vala"
	_tmp0_ = bookworm_app_bookworm_settings;
#line 206 "../src/prefpopover.vala"
	_tmp1_ = bookworm_app_settings_get_reading_line_height (_tmp0_);
#line 206 "../src/prefpopover.vala"
	_tmp2_ = _tmp1_;
#line 206 "../src/prefpopover.vala"
	if (atoi (_tmp2_) >= 100) {
#line 442 "prefpopover.c"
		BookwormAppSettings* _tmp3_;
		BookwormAppSettings* _tmp4_;
		const gchar* _tmp5_;
		const gchar* _tmp6_;
		gchar* _tmp7_;
		gchar* _tmp8_;
#line 207 "../src/prefpopover.vala"
		_tmp3_ = bookworm_app_bookworm_settings;
#line 207 "../src/prefpopover.vala"
		_tmp4_ = bookworm_app_bookworm_settings;
#line 207 "../src/prefpopover.vala"
		_tmp5_ = bookworm_app_settings_get_reading_line_height (_tmp4_);
#line 207 "../src/prefpopover.vala"
		_tmp6_ = _tmp5_;
#line 207 "../src/prefpopover.vala"
		_tmp7_ = g_strdup_printf ("%i", atoi (_tmp6_) - BOOKWORM_APP_CONSTANTS_LINE_HEIGHT_CHANGE_VALUE);
#line 207 "../src/prefpopover.vala"
		_tmp8_ = _tmp7_;
#line 207 "../src/prefpopover.vala"
		bookworm_app_settings_set_reading_line_height (_tmp3_, _tmp8_);
#line 207 "../src/prefpopover.vala"
		_g_free0 (_tmp8_);
#line 212 "../src/prefpopover.vala"
		bookworm_app_content_handler_refreshCurrentPage ();
#line 467 "prefpopover.c"
	}
}

static void
___lambda71__gtk_button_clicked (GtkButton* _sender,
                                 gpointer self)
{
#line 205 "../src/prefpopover.vala"
	__lambda71_ ();
#line 477 "prefpopover.c"
}

static void
__lambda72_ (void)
{
	BookwormAppSettings* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
#line 217 "../src/prefpopover.vala"
	_tmp0_ = bookworm_app_bookworm_settings;
#line 217 "../src/prefpopover.vala"
	_tmp1_ = bookworm_app_settings_get_reading_line_height (_tmp0_);
#line 217 "../src/prefpopover.vala"
	_tmp2_ = _tmp1_;
#line 217 "../src/prefpopover.vala"
	if (atoi (_tmp2_) <= 500) {
#line 494 "prefpopover.c"
		BookwormAppSettings* _tmp3_;
		BookwormAppSettings* _tmp4_;
		const gchar* _tmp5_;
		const gchar* _tmp6_;
		gchar* _tmp7_;
		gchar* _tmp8_;
#line 218 "../src/prefpopover.vala"
		_tmp3_ = bookworm_app_bookworm_settings;
#line 218 "../src/prefpopover.vala"
		_tmp4_ = bookworm_app_bookworm_settings;
#line 218 "../src/prefpopover.vala"
		_tmp5_ = bookworm_app_settings_get_reading_line_height (_tmp4_);
#line 218 "../src/prefpopover.vala"
		_tmp6_ = _tmp5_;
#line 218 "../src/prefpopover.vala"
		_tmp7_ = g_strdup_printf ("%i", atoi (_tmp6_) + BOOKWORM_APP_CONSTANTS_LINE_HEIGHT_CHANGE_VALUE);
#line 218 "../src/prefpopover.vala"
		_tmp8_ = _tmp7_;
#line 218 "../src/prefpopover.vala"
		bookworm_app_settings_set_reading_line_height (_tmp3_, _tmp8_);
#line 218 "../src/prefpopover.vala"
		_g_free0 (_tmp8_);
#line 223 "../src/prefpopover.vala"
		bookworm_app_content_handler_refreshCurrentPage ();
#line 519 "prefpopover.c"
	}
}

static void
___lambda72__gtk_button_clicked (GtkButton* _sender,
                                 gpointer self)
{
#line 216 "../src/prefpopover.vala"
	__lambda72_ ();
#line 529 "prefpopover.c"
}

static void
__lambda73_ (void)
{
	BookwormAppSettings* _tmp0_;
#line 228 "../src/prefpopover.vala"
	_tmp0_ = bookworm_app_bookworm_settings;
#line 228 "../src/prefpopover.vala"
	bookworm_app_settings_set_text_alignment (_tmp0_, "left");
#line 230 "../src/prefpopover.vala"
	bookworm_app_content_handler_refreshCurrentPage ();
#line 542 "prefpopover.c"
}

static void
___lambda73__gtk_button_clicked (GtkButton* _sender,
                                 gpointer self)
{
#line 227 "../src/prefpopover.vala"
	__lambda73_ ();
#line 551 "prefpopover.c"
}

static void
__lambda74_ (void)
{
	BookwormAppSettings* _tmp0_;
#line 234 "../src/prefpopover.vala"
	_tmp0_ = bookworm_app_bookworm_settings;
#line 234 "../src/prefpopover.vala"
	bookworm_app_settings_set_text_alignment (_tmp0_, "right");
#line 236 "../src/prefpopover.vala"
	bookworm_app_content_handler_refreshCurrentPage ();
#line 564 "prefpopover.c"
}

static void
___lambda74__gtk_button_clicked (GtkButton* _sender,
                                 gpointer self)
{
#line 233 "../src/prefpopover.vala"
	__lambda74_ ();
#line 573 "prefpopover.c"
}

static void
__lambda75_ (void)
{
	WebKitWebView* _tmp0_;
#line 241 "../src/prefpopover.vala"
	_tmp0_ = bookworm_app_app_window_aWebView;
#line 241 "../src/prefpopover.vala"
	gtk_widget_grab_focus ((GtkWidget*) _tmp0_);
#line 584 "prefpopover.c"
}

static void
___lambda75__gtk_popover_closed (GtkPopover* _sender,
                                 gpointer self)
{
#line 239 "../src/prefpopover.vala"
	__lambda75_ ();
#line 593 "prefpopover.c"
}

GtkPopover*
bookworm_app_preferences_menu_createPrefPopOver (GtkButton* popWidget)
{
	GtkPopover* _tmp0_;
	GtkPopover* _tmp3_;
	GString* profileNameText = NULL;
	GString* _tmp4_;
	GtkButton* textLargerButton = NULL;
	GtkButton* _tmp5_;
	GtkButton* _tmp6_;
	GtkImage* _tmp7_;
	GtkButton* _tmp8_;
	GtkButton* _tmp9_;
	GtkButton* _tmp10_;
	GtkButton* textSmallerButton = NULL;
	GtkButton* _tmp11_;
	GtkButton* _tmp12_;
	GtkImage* _tmp13_;
	GtkButton* _tmp14_;
	GtkButton* _tmp15_;
	GtkButton* _tmp16_;
	GtkBox* textSizeBox = NULL;
	GtkBox* _tmp17_;
	GtkBox* _tmp18_;
	GtkButton* _tmp19_;
	GtkBox* _tmp20_;
	GtkButton* _tmp21_;
	GtkBox* _tmp22_;
	GtkButton* alignLeftButton = NULL;
	GtkButton* _tmp23_;
	GtkButton* _tmp24_;
	GtkImage* _tmp25_;
	GtkButton* _tmp26_;
	GtkButton* _tmp27_;
	GtkButton* _tmp28_;
	GtkButton* alignRightButton = NULL;
	GtkButton* _tmp29_;
	GtkButton* _tmp30_;
	GtkImage* _tmp31_;
	GtkButton* _tmp32_;
	GtkButton* _tmp33_;
	GtkButton* _tmp34_;
	GtkBox* textAlignBox = NULL;
	GtkBox* _tmp35_;
	GtkBox* _tmp36_;
	GtkButton* _tmp37_;
	GtkBox* _tmp38_;
	GtkButton* _tmp39_;
	GtkBox* _tmp40_;
	GtkButton* profileButton1 = NULL;
	GtkButton* _tmp41_;
	GtkButton* _tmp42_;
	GtkStyleContext* _tmp43_;
	GString* _tmp44_;
	GtkButton* _tmp45_;
	GString* _tmp46_;
	GString* _tmp47_;
	const gchar* _tmp48_;
	GtkButton* _tmp49_;
	GtkButton* _tmp50_;
	GtkButton* _tmp51_;
	GtkButton* profileButton2 = NULL;
	GtkButton* _tmp52_;
	GtkButton* _tmp53_;
	GtkStyleContext* _tmp54_;
	GString* _tmp55_;
	GtkButton* _tmp56_;
	GString* _tmp57_;
	GString* _tmp58_;
	const gchar* _tmp59_;
	GtkButton* _tmp60_;
	GtkButton* _tmp61_;
	GtkButton* _tmp62_;
	GtkButton* profileButton3 = NULL;
	GtkButton* _tmp63_;
	GtkButton* _tmp64_;
	GtkStyleContext* _tmp65_;
	GString* _tmp66_;
	GtkButton* _tmp67_;
	GString* _tmp68_;
	GString* _tmp69_;
	const gchar* _tmp70_;
	GtkButton* _tmp71_;
	GtkButton* _tmp72_;
	GtkButton* _tmp73_;
	GtkBox* profileBox = NULL;
	GtkBox* _tmp74_;
	GtkBox* _tmp75_;
	GtkButton* _tmp76_;
	GtkBox* _tmp77_;
	GtkButton* _tmp78_;
	GtkBox* _tmp79_;
	GtkButton* _tmp80_;
	GtkBox* _tmp81_;
	GtkImage* icon_width_indent_less = NULL;
	GtkImage* _tmp82_;
	GtkImage* _tmp83_;
	GtkButton* marginDecreaseButton = NULL;
	GtkButton* _tmp84_;
	GtkButton* _tmp85_;
	GtkImage* _tmp86_;
	GtkButton* _tmp87_;
	GtkButton* _tmp88_;
	GtkButton* _tmp89_;
	GtkImage* icon_width_indent_more = NULL;
	GtkImage* _tmp90_;
	GtkImage* _tmp91_;
	GtkButton* marginIncreaseButton = NULL;
	GtkButton* _tmp92_;
	GtkButton* _tmp93_;
	GtkImage* _tmp94_;
	GtkButton* _tmp95_;
	GtkButton* _tmp96_;
	GtkButton* _tmp97_;
	GtkBox* marginBox = NULL;
	GtkBox* _tmp98_;
	GtkBox* _tmp99_;
	GtkButton* _tmp100_;
	GtkBox* _tmp101_;
	GtkButton* _tmp102_;
	GtkBox* _tmp103_;
	GtkImage* icon_line_height_less = NULL;
	GtkImage* _tmp104_;
	GtkImage* _tmp105_;
	GtkButton* heightDecreaseButton = NULL;
	GtkButton* _tmp106_;
	GtkButton* _tmp107_;
	GtkImage* _tmp108_;
	GtkButton* _tmp109_;
	GtkButton* _tmp110_;
	GtkButton* _tmp111_;
	GtkImage* icon_line_height_more = NULL;
	GtkImage* _tmp112_;
	GtkImage* _tmp113_;
	GtkButton* heightIncreaseButton = NULL;
	GtkButton* _tmp114_;
	GtkButton* _tmp115_;
	GtkImage* _tmp116_;
	GtkButton* _tmp117_;
	GtkButton* _tmp118_;
	GtkButton* _tmp119_;
	GtkBox* lineHeightBox = NULL;
	GtkBox* _tmp120_;
	GtkBox* _tmp121_;
	GtkButton* _tmp122_;
	GtkBox* _tmp123_;
	GtkButton* _tmp124_;
	GtkBox* _tmp125_;
	GtkBox* prefBox = NULL;
	GtkBox* _tmp126_;
	GtkBox* _tmp127_;
	GtkBox* _tmp128_;
	GtkBox* _tmp129_;
	GtkBox* _tmp130_;
	GtkSeparator* _tmp131_;
	GtkSeparator* _tmp132_;
	GtkBox* _tmp133_;
	GtkBox* _tmp134_;
	GtkBox* _tmp135_;
	GtkSeparator* _tmp136_;
	GtkSeparator* _tmp137_;
	GtkBox* _tmp138_;
	GtkBox* _tmp139_;
	GtkBox* _tmp140_;
	GtkSeparator* _tmp141_;
	GtkSeparator* _tmp142_;
	GtkBox* _tmp143_;
	GtkBox* _tmp144_;
	GtkBox* _tmp145_;
	GtkSeparator* _tmp146_;
	GtkSeparator* _tmp147_;
	GtkBox* _tmp148_;
	GtkBox* _tmp149_;
	GtkPopover* _tmp150_;
	GtkBox* _tmp151_;
	GtkButton* _tmp152_;
	GtkButton* _tmp153_;
	GtkButton* _tmp154_;
	GtkButton* _tmp155_;
	GtkButton* _tmp156_;
	GtkButton* _tmp157_;
	GtkButton* _tmp158_;
	GtkButton* _tmp159_;
	GtkButton* _tmp160_;
	GtkButton* _tmp161_;
	GtkButton* _tmp162_;
	GtkPopover* _tmp163_;
	GtkPopover* _tmp164_;
	GtkPopover* _tmp165_;
	GtkPopover* result;
#line 23 "../src/prefpopover.vala"
	g_return_val_if_fail (popWidget != NULL, NULL);
#line 24 "../src/prefpopover.vala"
	g_debug ("prefpopover.vala:24: [START] [FUNCTION:createPrefPopOver]");
#line 25 "../src/prefpopover.vala"
	_tmp0_ = bookworm_app_preferences_menu_prefPopover;
#line 25 "../src/prefpopover.vala"
	if (_tmp0_ != NULL) {
#line 794 "prefpopover.c"
		GtkPopover* _tmp1_;
		GtkPopover* _tmp2_;
#line 26 "../src/prefpopover.vala"
		_tmp1_ = bookworm_app_preferences_menu_prefPopover;
#line 26 "../src/prefpopover.vala"
		_tmp2_ = _g_object_ref0 (_tmp1_);
#line 26 "../src/prefpopover.vala"
		result = _tmp2_;
#line 26 "../src/prefpopover.vala"
		return result;
#line 805 "prefpopover.c"
	}
#line 28 "../src/prefpopover.vala"
	_tmp3_ = (GtkPopover*) gtk_popover_new ((GtkWidget*) popWidget);
#line 28 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp3_);
#line 28 "../src/prefpopover.vala"
	_g_object_unref0 (bookworm_app_preferences_menu_prefPopover);
#line 28 "../src/prefpopover.vala"
	bookworm_app_preferences_menu_prefPopover = _tmp3_;
#line 30 "../src/prefpopover.vala"
	_tmp4_ = g_string_new ("");
#line 30 "../src/prefpopover.vala"
	profileNameText = _tmp4_;
#line 32 "../src/prefpopover.vala"
	_tmp5_ = (GtkButton*) gtk_button_new ();
#line 32 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp5_);
#line 32 "../src/prefpopover.vala"
	textLargerButton = _tmp5_;
#line 33 "../src/prefpopover.vala"
	_tmp6_ = textLargerButton;
#line 33 "../src/prefpopover.vala"
	_tmp7_ = bookworm_app_bookworm_pref_menu_icon_text_large;
#line 33 "../src/prefpopover.vala"
	gtk_button_set_image (_tmp6_, (GtkWidget*) _tmp7_);
#line 34 "../src/prefpopover.vala"
	_tmp8_ = textLargerButton;
#line 34 "../src/prefpopover.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp8_, GTK_ALIGN_START);
#line 35 "../src/prefpopover.vala"
	_tmp9_ = textLargerButton;
#line 35 "../src/prefpopover.vala"
	gtk_button_set_relief (_tmp9_, GTK_RELIEF_NONE);
#line 36 "../src/prefpopover.vala"
	_tmp10_ = textLargerButton;
#line 36 "../src/prefpopover.vala"
	gtk_widget_set_tooltip_markup ((GtkWidget*) _tmp10_, BOOKWORM_APP_CONSTANTS_TOOLTIP_TEXT_FOR_FONT_SIZE_INCREASE);
#line 38 "../src/prefpopover.vala"
	_tmp11_ = (GtkButton*) gtk_button_new ();
#line 38 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp11_);
#line 38 "../src/prefpopover.vala"
	textSmallerButton = _tmp11_;
#line 39 "../src/prefpopover.vala"
	_tmp12_ = textSmallerButton;
#line 39 "../src/prefpopover.vala"
	_tmp13_ = bookworm_app_bookworm_pref_menu_icon_text_small;
#line 39 "../src/prefpopover.vala"
	gtk_button_set_image (_tmp12_, (GtkWidget*) _tmp13_);
#line 40 "../src/prefpopover.vala"
	_tmp14_ = textSmallerButton;
#line 40 "../src/prefpopover.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp14_, GTK_ALIGN_END);
#line 41 "../src/prefpopover.vala"
	_tmp15_ = textSmallerButton;
#line 41 "../src/prefpopover.vala"
	gtk_button_set_relief (_tmp15_, GTK_RELIEF_NONE);
#line 42 "../src/prefpopover.vala"
	_tmp16_ = textSmallerButton;
#line 42 "../src/prefpopover.vala"
	gtk_widget_set_tooltip_markup ((GtkWidget*) _tmp16_, BOOKWORM_APP_CONSTANTS_TOOLTIP_TEXT_FOR_FONT_SIZE_DECREASE);
#line 44 "../src/prefpopover.vala"
	_tmp17_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, BOOKWORM_APP_CONSTANTS_SPACING_BUTTONS);
#line 44 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp17_);
#line 44 "../src/prefpopover.vala"
	textSizeBox = _tmp17_;
#line 45 "../src/prefpopover.vala"
	_tmp18_ = textSizeBox;
#line 45 "../src/prefpopover.vala"
	_tmp19_ = textSmallerButton;
#line 45 "../src/prefpopover.vala"
	gtk_box_pack_start (_tmp18_, (GtkWidget*) _tmp19_, FALSE, FALSE, (guint) 0);
#line 46 "../src/prefpopover.vala"
	_tmp20_ = textSizeBox;
#line 46 "../src/prefpopover.vala"
	_tmp21_ = textLargerButton;
#line 46 "../src/prefpopover.vala"
	gtk_box_pack_end (_tmp20_, (GtkWidget*) _tmp21_, FALSE, FALSE, (guint) 0);
#line 47 "../src/prefpopover.vala"
	_tmp22_ = textSizeBox;
#line 47 "../src/prefpopover.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp22_, GTK_ALIGN_CENTER);
#line 49 "../src/prefpopover.vala"
	_tmp23_ = (GtkButton*) gtk_button_new ();
#line 49 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp23_);
#line 49 "../src/prefpopover.vala"
	alignLeftButton = _tmp23_;
#line 50 "../src/prefpopover.vala"
	_tmp24_ = alignLeftButton;
#line 50 "../src/prefpopover.vala"
	_tmp25_ = bookworm_app_bookworm_pref_menu_icon_align_left;
#line 50 "../src/prefpopover.vala"
	gtk_button_set_image (_tmp24_, (GtkWidget*) _tmp25_);
#line 51 "../src/prefpopover.vala"
	_tmp26_ = alignLeftButton;
#line 51 "../src/prefpopover.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp26_, GTK_ALIGN_START);
#line 52 "../src/prefpopover.vala"
	_tmp27_ = alignLeftButton;
#line 52 "../src/prefpopover.vala"
	gtk_button_set_relief (_tmp27_, GTK_RELIEF_NONE);
#line 53 "../src/prefpopover.vala"
	_tmp28_ = alignLeftButton;
#line 53 "../src/prefpopover.vala"
	gtk_widget_set_tooltip_markup ((GtkWidget*) _tmp28_, BOOKWORM_APP_CONSTANTS_TOOLTIP_TEXT_FOR_READING_LEFT_ALIGN);
#line 55 "../src/prefpopover.vala"
	_tmp29_ = (GtkButton*) gtk_button_new ();
#line 55 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp29_);
#line 55 "../src/prefpopover.vala"
	alignRightButton = _tmp29_;
#line 56 "../src/prefpopover.vala"
	_tmp30_ = alignRightButton;
#line 56 "../src/prefpopover.vala"
	_tmp31_ = bookworm_app_bookworm_pref_menu_icon_align_right;
#line 56 "../src/prefpopover.vala"
	gtk_button_set_image (_tmp30_, (GtkWidget*) _tmp31_);
#line 57 "../src/prefpopover.vala"
	_tmp32_ = alignRightButton;
#line 57 "../src/prefpopover.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp32_, GTK_ALIGN_END);
#line 58 "../src/prefpopover.vala"
	_tmp33_ = alignRightButton;
#line 58 "../src/prefpopover.vala"
	gtk_button_set_relief (_tmp33_, GTK_RELIEF_NONE);
#line 59 "../src/prefpopover.vala"
	_tmp34_ = alignRightButton;
#line 59 "../src/prefpopover.vala"
	gtk_widget_set_tooltip_markup ((GtkWidget*) _tmp34_, BOOKWORM_APP_CONSTANTS_TOOLTIP_TEXT_FOR_READING_RIGHT_ALIGN);
#line 61 "../src/prefpopover.vala"
	_tmp35_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, BOOKWORM_APP_CONSTANTS_SPACING_BUTTONS);
#line 61 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp35_);
#line 61 "../src/prefpopover.vala"
	textAlignBox = _tmp35_;
#line 62 "../src/prefpopover.vala"
	_tmp36_ = textAlignBox;
#line 62 "../src/prefpopover.vala"
	_tmp37_ = alignLeftButton;
#line 62 "../src/prefpopover.vala"
	gtk_box_pack_start (_tmp36_, (GtkWidget*) _tmp37_, FALSE, FALSE, (guint) 0);
#line 63 "../src/prefpopover.vala"
	_tmp38_ = textAlignBox;
#line 63 "../src/prefpopover.vala"
	_tmp39_ = alignRightButton;
#line 63 "../src/prefpopover.vala"
	gtk_box_pack_end (_tmp38_, (GtkWidget*) _tmp39_, FALSE, FALSE, (guint) 0);
#line 64 "../src/prefpopover.vala"
	_tmp40_ = textAlignBox;
#line 64 "../src/prefpopover.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp40_, GTK_ALIGN_CENTER);
#line 66 "../src/prefpopover.vala"
	_tmp41_ = (GtkButton*) gtk_button_new ();
#line 66 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp41_);
#line 66 "../src/prefpopover.vala"
	profileButton1 = _tmp41_;
#line 67 "../src/prefpopover.vala"
	_tmp42_ = profileButton1;
#line 67 "../src/prefpopover.vala"
	_tmp43_ = gtk_widget_get_style_context ((GtkWidget*) _tmp42_);
#line 67 "../src/prefpopover.vala"
	gtk_style_context_add_class (_tmp43_, "PROFILE_BUTTON_1");
#line 68 "../src/prefpopover.vala"
	_tmp44_ = profileNameText;
#line 68 "../src/prefpopover.vala"
	g_string_assign (_tmp44_, BOOKWORM_APP_CONSTANTS_TEXT_FOR_PROFILE_BUTTON_LABEL);
#line 69 "../src/prefpopover.vala"
	_tmp45_ = profileButton1;
#line 69 "../src/prefpopover.vala"
	_tmp46_ = profileNameText;
#line 69 "../src/prefpopover.vala"
	_tmp47_ = g_string_append (_tmp46_, " 1");
#line 69 "../src/prefpopover.vala"
	_tmp48_ = _tmp47_->str;
#line 69 "../src/prefpopover.vala"
	gtk_button_set_label (_tmp45_, _tmp48_);
#line 70 "../src/prefpopover.vala"
	_tmp49_ = profileButton1;
#line 70 "../src/prefpopover.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp49_, GTK_ALIGN_START);
#line 71 "../src/prefpopover.vala"
	_tmp50_ = profileButton1;
#line 71 "../src/prefpopover.vala"
	gtk_button_set_relief (_tmp50_, GTK_RELIEF_NONE);
#line 72 "../src/prefpopover.vala"
	_tmp51_ = profileButton1;
#line 72 "../src/prefpopover.vala"
	gtk_widget_set_tooltip_markup ((GtkWidget*) _tmp51_, BOOKWORM_APP_CONSTANTS_TOOLTIP_TEXT_FOR_PROFILE);
#line 74 "../src/prefpopover.vala"
	_tmp52_ = (GtkButton*) gtk_button_new ();
#line 74 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp52_);
#line 74 "../src/prefpopover.vala"
	profileButton2 = _tmp52_;
#line 75 "../src/prefpopover.vala"
	_tmp53_ = profileButton2;
#line 75 "../src/prefpopover.vala"
	_tmp54_ = gtk_widget_get_style_context ((GtkWidget*) _tmp53_);
#line 75 "../src/prefpopover.vala"
	gtk_style_context_add_class (_tmp54_, "PROFILE_BUTTON_2");
#line 76 "../src/prefpopover.vala"
	_tmp55_ = profileNameText;
#line 76 "../src/prefpopover.vala"
	g_string_assign (_tmp55_, BOOKWORM_APP_CONSTANTS_TEXT_FOR_PROFILE_BUTTON_LABEL);
#line 77 "../src/prefpopover.vala"
	_tmp56_ = profileButton2;
#line 77 "../src/prefpopover.vala"
	_tmp57_ = profileNameText;
#line 77 "../src/prefpopover.vala"
	_tmp58_ = g_string_append (_tmp57_, " 2");
#line 77 "../src/prefpopover.vala"
	_tmp59_ = _tmp58_->str;
#line 77 "../src/prefpopover.vala"
	gtk_button_set_label (_tmp56_, _tmp59_);
#line 78 "../src/prefpopover.vala"
	_tmp60_ = profileButton2;
#line 78 "../src/prefpopover.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp60_, GTK_ALIGN_START);
#line 79 "../src/prefpopover.vala"
	_tmp61_ = profileButton2;
#line 79 "../src/prefpopover.vala"
	gtk_button_set_relief (_tmp61_, GTK_RELIEF_NONE);
#line 80 "../src/prefpopover.vala"
	_tmp62_ = profileButton2;
#line 80 "../src/prefpopover.vala"
	gtk_widget_set_tooltip_markup ((GtkWidget*) _tmp62_, BOOKWORM_APP_CONSTANTS_TOOLTIP_TEXT_FOR_PROFILE);
#line 82 "../src/prefpopover.vala"
	_tmp63_ = (GtkButton*) gtk_button_new ();
#line 82 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp63_);
#line 82 "../src/prefpopover.vala"
	profileButton3 = _tmp63_;
#line 83 "../src/prefpopover.vala"
	_tmp64_ = profileButton3;
#line 83 "../src/prefpopover.vala"
	_tmp65_ = gtk_widget_get_style_context ((GtkWidget*) _tmp64_);
#line 83 "../src/prefpopover.vala"
	gtk_style_context_add_class (_tmp65_, "PROFILE_BUTTON_3");
#line 84 "../src/prefpopover.vala"
	_tmp66_ = profileNameText;
#line 84 "../src/prefpopover.vala"
	g_string_assign (_tmp66_, BOOKWORM_APP_CONSTANTS_TEXT_FOR_PROFILE_BUTTON_LABEL);
#line 85 "../src/prefpopover.vala"
	_tmp67_ = profileButton3;
#line 85 "../src/prefpopover.vala"
	_tmp68_ = profileNameText;
#line 85 "../src/prefpopover.vala"
	_tmp69_ = g_string_append (_tmp68_, " 3");
#line 85 "../src/prefpopover.vala"
	_tmp70_ = _tmp69_->str;
#line 85 "../src/prefpopover.vala"
	gtk_button_set_label (_tmp67_, _tmp70_);
#line 86 "../src/prefpopover.vala"
	_tmp71_ = profileButton3;
#line 86 "../src/prefpopover.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp71_, GTK_ALIGN_END);
#line 87 "../src/prefpopover.vala"
	_tmp72_ = profileButton3;
#line 87 "../src/prefpopover.vala"
	gtk_button_set_relief (_tmp72_, GTK_RELIEF_NONE);
#line 88 "../src/prefpopover.vala"
	_tmp73_ = profileButton3;
#line 88 "../src/prefpopover.vala"
	gtk_widget_set_tooltip_markup ((GtkWidget*) _tmp73_, BOOKWORM_APP_CONSTANTS_TOOLTIP_TEXT_FOR_PROFILE);
#line 90 "../src/prefpopover.vala"
	_tmp74_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, BOOKWORM_APP_CONSTANTS_SPACING_BUTTONS);
#line 90 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp74_);
#line 90 "../src/prefpopover.vala"
	profileBox = _tmp74_;
#line 91 "../src/prefpopover.vala"
	_tmp75_ = profileBox;
#line 91 "../src/prefpopover.vala"
	_tmp76_ = profileButton1;
#line 91 "../src/prefpopover.vala"
	gtk_box_pack_start (_tmp75_, (GtkWidget*) _tmp76_, FALSE, FALSE, (guint) 0);
#line 92 "../src/prefpopover.vala"
	_tmp77_ = profileBox;
#line 92 "../src/prefpopover.vala"
	_tmp78_ = profileButton2;
#line 92 "../src/prefpopover.vala"
	gtk_box_pack_start (_tmp77_, (GtkWidget*) _tmp78_, FALSE, FALSE, (guint) 0);
#line 93 "../src/prefpopover.vala"
	_tmp79_ = profileBox;
#line 93 "../src/prefpopover.vala"
	_tmp80_ = profileButton3;
#line 93 "../src/prefpopover.vala"
	gtk_box_pack_end (_tmp79_, (GtkWidget*) _tmp80_, FALSE, FALSE, (guint) 0);
#line 94 "../src/prefpopover.vala"
	_tmp81_ = profileBox;
#line 94 "../src/prefpopover.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp81_, GTK_ALIGN_CENTER);
#line 96 "../src/prefpopover.vala"
	_tmp82_ = (GtkImage*) gtk_image_new ();
#line 96 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp82_);
#line 96 "../src/prefpopover.vala"
	icon_width_indent_less = _tmp82_;
#line 97 "../src/prefpopover.vala"
	_tmp83_ = icon_width_indent_less;
#line 97 "../src/prefpopover.vala"
	gtk_image_set_from_resource (_tmp83_, BOOKWORM_APP_CONSTANTS_LESS_LINE_WIDTH_IMAGE_LOCATION);
#line 98 "../src/prefpopover.vala"
	_tmp84_ = (GtkButton*) gtk_button_new ();
#line 98 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp84_);
#line 98 "../src/prefpopover.vala"
	marginDecreaseButton = _tmp84_;
#line 99 "../src/prefpopover.vala"
	_tmp85_ = marginDecreaseButton;
#line 99 "../src/prefpopover.vala"
	_tmp86_ = icon_width_indent_less;
#line 99 "../src/prefpopover.vala"
	gtk_button_set_image (_tmp85_, (GtkWidget*) _tmp86_);
#line 100 "../src/prefpopover.vala"
	_tmp87_ = marginDecreaseButton;
#line 100 "../src/prefpopover.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp87_, GTK_ALIGN_START);
#line 101 "../src/prefpopover.vala"
	_tmp88_ = marginDecreaseButton;
#line 101 "../src/prefpopover.vala"
	gtk_button_set_relief (_tmp88_, GTK_RELIEF_NONE);
#line 102 "../src/prefpopover.vala"
	_tmp89_ = marginDecreaseButton;
#line 102 "../src/prefpopover.vala"
	gtk_widget_set_tooltip_markup ((GtkWidget*) _tmp89_, BOOKWORM_APP_CONSTANTS_TOOLTIP_TEXT_FOR_LINE_WIDTH_DECREASE);
#line 104 "../src/prefpopover.vala"
	_tmp90_ = (GtkImage*) gtk_image_new ();
#line 104 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp90_);
#line 104 "../src/prefpopover.vala"
	icon_width_indent_more = _tmp90_;
#line 105 "../src/prefpopover.vala"
	_tmp91_ = icon_width_indent_more;
#line 105 "../src/prefpopover.vala"
	gtk_image_set_from_resource (_tmp91_, BOOKWORM_APP_CONSTANTS_MORE_LINE_WIDTH_IMAGE_LOCATION);
#line 106 "../src/prefpopover.vala"
	_tmp92_ = (GtkButton*) gtk_button_new ();
#line 106 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp92_);
#line 106 "../src/prefpopover.vala"
	marginIncreaseButton = _tmp92_;
#line 107 "../src/prefpopover.vala"
	_tmp93_ = marginIncreaseButton;
#line 107 "../src/prefpopover.vala"
	_tmp94_ = icon_width_indent_more;
#line 107 "../src/prefpopover.vala"
	gtk_button_set_image (_tmp93_, (GtkWidget*) _tmp94_);
#line 108 "../src/prefpopover.vala"
	_tmp95_ = marginIncreaseButton;
#line 108 "../src/prefpopover.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp95_, GTK_ALIGN_END);
#line 109 "../src/prefpopover.vala"
	_tmp96_ = marginIncreaseButton;
#line 109 "../src/prefpopover.vala"
	gtk_button_set_relief (_tmp96_, GTK_RELIEF_NONE);
#line 110 "../src/prefpopover.vala"
	_tmp97_ = marginIncreaseButton;
#line 110 "../src/prefpopover.vala"
	gtk_widget_set_tooltip_markup ((GtkWidget*) _tmp97_, BOOKWORM_APP_CONSTANTS_TOOLTIP_TEXT_FOR_LINE_WIDTH_INCREASE);
#line 112 "../src/prefpopover.vala"
	_tmp98_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, BOOKWORM_APP_CONSTANTS_SPACING_BUTTONS);
#line 112 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp98_);
#line 112 "../src/prefpopover.vala"
	marginBox = _tmp98_;
#line 113 "../src/prefpopover.vala"
	_tmp99_ = marginBox;
#line 113 "../src/prefpopover.vala"
	_tmp100_ = marginIncreaseButton;
#line 113 "../src/prefpopover.vala"
	gtk_box_pack_start (_tmp99_, (GtkWidget*) _tmp100_, FALSE, FALSE, (guint) 0);
#line 114 "../src/prefpopover.vala"
	_tmp101_ = marginBox;
#line 114 "../src/prefpopover.vala"
	_tmp102_ = marginDecreaseButton;
#line 114 "../src/prefpopover.vala"
	gtk_box_pack_end (_tmp101_, (GtkWidget*) _tmp102_, FALSE, FALSE, (guint) 0);
#line 115 "../src/prefpopover.vala"
	_tmp103_ = marginBox;
#line 115 "../src/prefpopover.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp103_, GTK_ALIGN_CENTER);
#line 117 "../src/prefpopover.vala"
	_tmp104_ = (GtkImage*) gtk_image_new ();
#line 117 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp104_);
#line 117 "../src/prefpopover.vala"
	icon_line_height_less = _tmp104_;
#line 118 "../src/prefpopover.vala"
	_tmp105_ = icon_line_height_less;
#line 118 "../src/prefpopover.vala"
	gtk_image_set_from_resource (_tmp105_, BOOKWORM_APP_CONSTANTS_LESS_LINE_HEIGHT_IMAGE_LOCATION);
#line 119 "../src/prefpopover.vala"
	_tmp106_ = (GtkButton*) gtk_button_new ();
#line 119 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp106_);
#line 119 "../src/prefpopover.vala"
	heightDecreaseButton = _tmp106_;
#line 120 "../src/prefpopover.vala"
	_tmp107_ = heightDecreaseButton;
#line 120 "../src/prefpopover.vala"
	_tmp108_ = icon_line_height_less;
#line 120 "../src/prefpopover.vala"
	gtk_button_set_image (_tmp107_, (GtkWidget*) _tmp108_);
#line 121 "../src/prefpopover.vala"
	_tmp109_ = heightDecreaseButton;
#line 121 "../src/prefpopover.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp109_, GTK_ALIGN_START);
#line 122 "../src/prefpopover.vala"
	_tmp110_ = heightDecreaseButton;
#line 122 "../src/prefpopover.vala"
	gtk_button_set_relief (_tmp110_, GTK_RELIEF_NONE);
#line 123 "../src/prefpopover.vala"
	_tmp111_ = heightDecreaseButton;
#line 123 "../src/prefpopover.vala"
	gtk_widget_set_tooltip_markup ((GtkWidget*) _tmp111_, BOOKWORM_APP_CONSTANTS_TOOLTIP_TEXT_FOR_LINE_HEIGHT_DECREASE);
#line 125 "../src/prefpopover.vala"
	_tmp112_ = (GtkImage*) gtk_image_new ();
#line 125 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp112_);
#line 125 "../src/prefpopover.vala"
	icon_line_height_more = _tmp112_;
#line 126 "../src/prefpopover.vala"
	_tmp113_ = icon_line_height_more;
#line 126 "../src/prefpopover.vala"
	gtk_image_set_from_resource (_tmp113_, BOOKWORM_APP_CONSTANTS_MORE_LINE_HEIGHT_IMAGE_LOCATION);
#line 127 "../src/prefpopover.vala"
	_tmp114_ = (GtkButton*) gtk_button_new ();
#line 127 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp114_);
#line 127 "../src/prefpopover.vala"
	heightIncreaseButton = _tmp114_;
#line 128 "../src/prefpopover.vala"
	_tmp115_ = heightIncreaseButton;
#line 128 "../src/prefpopover.vala"
	_tmp116_ = icon_line_height_more;
#line 128 "../src/prefpopover.vala"
	gtk_button_set_image (_tmp115_, (GtkWidget*) _tmp116_);
#line 129 "../src/prefpopover.vala"
	_tmp117_ = heightIncreaseButton;
#line 129 "../src/prefpopover.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp117_, GTK_ALIGN_START);
#line 130 "../src/prefpopover.vala"
	_tmp118_ = heightIncreaseButton;
#line 130 "../src/prefpopover.vala"
	gtk_button_set_relief (_tmp118_, GTK_RELIEF_NONE);
#line 131 "../src/prefpopover.vala"
	_tmp119_ = heightIncreaseButton;
#line 131 "../src/prefpopover.vala"
	gtk_widget_set_tooltip_markup ((GtkWidget*) _tmp119_, BOOKWORM_APP_CONSTANTS_TOOLTIP_TEXT_FOR_LINE_HEIGHT_INCREASE);
#line 133 "../src/prefpopover.vala"
	_tmp120_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, BOOKWORM_APP_CONSTANTS_SPACING_BUTTONS);
#line 133 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp120_);
#line 133 "../src/prefpopover.vala"
	lineHeightBox = _tmp120_;
#line 134 "../src/prefpopover.vala"
	_tmp121_ = lineHeightBox;
#line 134 "../src/prefpopover.vala"
	_tmp122_ = heightIncreaseButton;
#line 134 "../src/prefpopover.vala"
	gtk_box_pack_start (_tmp121_, (GtkWidget*) _tmp122_, FALSE, FALSE, (guint) 0);
#line 135 "../src/prefpopover.vala"
	_tmp123_ = lineHeightBox;
#line 135 "../src/prefpopover.vala"
	_tmp124_ = heightDecreaseButton;
#line 135 "../src/prefpopover.vala"
	gtk_box_pack_end (_tmp123_, (GtkWidget*) _tmp124_, FALSE, FALSE, (guint) 0);
#line 136 "../src/prefpopover.vala"
	_tmp125_ = lineHeightBox;
#line 136 "../src/prefpopover.vala"
	gtk_widget_set_halign ((GtkWidget*) _tmp125_, GTK_ALIGN_CENTER);
#line 138 "../src/prefpopover.vala"
	_tmp126_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, BOOKWORM_APP_CONSTANTS_SPACING_BUTTONS);
#line 138 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp126_);
#line 138 "../src/prefpopover.vala"
	prefBox = _tmp126_;
#line 139 "../src/prefpopover.vala"
	_tmp127_ = prefBox;
#line 139 "../src/prefpopover.vala"
	gtk_container_set_border_width ((GtkContainer*) _tmp127_, (guint) BOOKWORM_APP_CONSTANTS_SPACING_WIDGETS);
#line 140 "../src/prefpopover.vala"
	_tmp128_ = prefBox;
#line 140 "../src/prefpopover.vala"
	_tmp129_ = textSizeBox;
#line 140 "../src/prefpopover.vala"
	gtk_box_pack_start (_tmp128_, (GtkWidget*) _tmp129_, FALSE, FALSE, (guint) 0);
#line 141 "../src/prefpopover.vala"
	_tmp130_ = prefBox;
#line 141 "../src/prefpopover.vala"
	_tmp131_ = (GtkSeparator*) gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
#line 141 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp131_);
#line 141 "../src/prefpopover.vala"
	_tmp132_ = _tmp131_;
#line 141 "../src/prefpopover.vala"
	gtk_box_pack_start (_tmp130_, (GtkWidget*) _tmp132_, TRUE, TRUE, (guint) 0);
#line 141 "../src/prefpopover.vala"
	_g_object_unref0 (_tmp132_);
#line 142 "../src/prefpopover.vala"
	_tmp133_ = prefBox;
#line 142 "../src/prefpopover.vala"
	_tmp134_ = textAlignBox;
#line 142 "../src/prefpopover.vala"
	gtk_box_pack_start (_tmp133_, (GtkWidget*) _tmp134_, FALSE, FALSE, (guint) 0);
#line 143 "../src/prefpopover.vala"
	_tmp135_ = prefBox;
#line 143 "../src/prefpopover.vala"
	_tmp136_ = (GtkSeparator*) gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
#line 143 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp136_);
#line 143 "../src/prefpopover.vala"
	_tmp137_ = _tmp136_;
#line 143 "../src/prefpopover.vala"
	gtk_box_pack_start (_tmp135_, (GtkWidget*) _tmp137_, TRUE, TRUE, (guint) 0);
#line 143 "../src/prefpopover.vala"
	_g_object_unref0 (_tmp137_);
#line 144 "../src/prefpopover.vala"
	_tmp138_ = prefBox;
#line 144 "../src/prefpopover.vala"
	_tmp139_ = marginBox;
#line 144 "../src/prefpopover.vala"
	gtk_box_pack_start (_tmp138_, (GtkWidget*) _tmp139_, FALSE, FALSE, (guint) 0);
#line 145 "../src/prefpopover.vala"
	_tmp140_ = prefBox;
#line 145 "../src/prefpopover.vala"
	_tmp141_ = (GtkSeparator*) gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
#line 145 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp141_);
#line 145 "../src/prefpopover.vala"
	_tmp142_ = _tmp141_;
#line 145 "../src/prefpopover.vala"
	gtk_box_pack_start (_tmp140_, (GtkWidget*) _tmp142_, TRUE, TRUE, (guint) 0);
#line 145 "../src/prefpopover.vala"
	_g_object_unref0 (_tmp142_);
#line 146 "../src/prefpopover.vala"
	_tmp143_ = prefBox;
#line 146 "../src/prefpopover.vala"
	_tmp144_ = lineHeightBox;
#line 146 "../src/prefpopover.vala"
	gtk_box_pack_start (_tmp143_, (GtkWidget*) _tmp144_, FALSE, FALSE, (guint) 0);
#line 147 "../src/prefpopover.vala"
	_tmp145_ = prefBox;
#line 147 "../src/prefpopover.vala"
	_tmp146_ = (GtkSeparator*) gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
#line 147 "../src/prefpopover.vala"
	g_object_ref_sink (_tmp146_);
#line 147 "../src/prefpopover.vala"
	_tmp147_ = _tmp146_;
#line 147 "../src/prefpopover.vala"
	gtk_box_pack_start (_tmp145_, (GtkWidget*) _tmp147_, TRUE, TRUE, (guint) 0);
#line 147 "../src/prefpopover.vala"
	_g_object_unref0 (_tmp147_);
#line 148 "../src/prefpopover.vala"
	_tmp148_ = prefBox;
#line 148 "../src/prefpopover.vala"
	_tmp149_ = profileBox;
#line 148 "../src/prefpopover.vala"
	gtk_box_pack_start (_tmp148_, (GtkWidget*) _tmp149_, FALSE, FALSE, (guint) 0);
#line 150 "../src/prefpopover.vala"
	_tmp150_ = bookworm_app_preferences_menu_prefPopover;
#line 150 "../src/prefpopover.vala"
	_tmp151_ = prefBox;
#line 150 "../src/prefpopover.vala"
	gtk_container_add ((GtkContainer*) _tmp150_, (GtkWidget*) _tmp151_);
#line 153 "../src/prefpopover.vala"
	_tmp152_ = textLargerButton;
#line 153 "../src/prefpopover.vala"
	g_signal_connect (_tmp152_, "clicked", (GCallback) ___lambda4__gtk_button_clicked, NULL);
#line 159 "../src/prefpopover.vala"
	_tmp153_ = textSmallerButton;
#line 159 "../src/prefpopover.vala"
	g_signal_connect (_tmp153_, "clicked", (GCallback) ___lambda65__gtk_button_clicked, NULL);
#line 165 "../src/prefpopover.vala"
	_tmp154_ = profileButton1;
#line 165 "../src/prefpopover.vala"
	g_signal_connect (_tmp154_, "clicked", (GCallback) ___lambda66__gtk_button_clicked, NULL);
#line 171 "../src/prefpopover.vala"
	_tmp155_ = profileButton2;
#line 171 "../src/prefpopover.vala"
	g_signal_connect (_tmp155_, "clicked", (GCallback) ___lambda67__gtk_button_clicked, NULL);
#line 177 "../src/prefpopover.vala"
	_tmp156_ = profileButton3;
#line 177 "../src/prefpopover.vala"
	g_signal_connect (_tmp156_, "clicked", (GCallback) ___lambda68__gtk_button_clicked, NULL);
#line 183 "../src/prefpopover.vala"
	_tmp157_ = marginDecreaseButton;
#line 183 "../src/prefpopover.vala"
	g_signal_connect (_tmp157_, "clicked", (GCallback) ___lambda69__gtk_button_clicked, NULL);
#line 194 "../src/prefpopover.vala"
	_tmp158_ = marginIncreaseButton;
#line 194 "../src/prefpopover.vala"
	g_signal_connect (_tmp158_, "clicked", (GCallback) ___lambda70__gtk_button_clicked, NULL);
#line 205 "../src/prefpopover.vala"
	_tmp159_ = heightDecreaseButton;
#line 205 "../src/prefpopover.vala"
	g_signal_connect (_tmp159_, "clicked", (GCallback) ___lambda71__gtk_button_clicked, NULL);
#line 216 "../src/prefpopover.vala"
	_tmp160_ = heightIncreaseButton;
#line 216 "../src/prefpopover.vala"
	g_signal_connect (_tmp160_, "clicked", (GCallback) ___lambda72__gtk_button_clicked, NULL);
#line 227 "../src/prefpopover.vala"
	_tmp161_ = alignLeftButton;
#line 227 "../src/prefpopover.vala"
	g_signal_connect (_tmp161_, "clicked", (GCallback) ___lambda73__gtk_button_clicked, NULL);
#line 233 "../src/prefpopover.vala"
	_tmp162_ = alignRightButton;
#line 233 "../src/prefpopover.vala"
	g_signal_connect (_tmp162_, "clicked", (GCallback) ___lambda74__gtk_button_clicked, NULL);
#line 239 "../src/prefpopover.vala"
	_tmp163_ = bookworm_app_preferences_menu_prefPopover;
#line 239 "../src/prefpopover.vala"
	g_signal_connect (_tmp163_, "closed", (GCallback) ___lambda75__gtk_popover_closed, NULL);
#line 244 "../src/prefpopover.vala"
	g_debug ("prefpopover.vala:244: [END] [FUNCTION:createPrefPopOver]");
#line 245 "../src/prefpopover.vala"
	_tmp164_ = bookworm_app_preferences_menu_prefPopover;
#line 245 "../src/prefpopover.vala"
	_tmp165_ = _g_object_ref0 (_tmp164_);
#line 245 "../src/prefpopover.vala"
	result = _tmp165_;
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (prefBox);
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (lineHeightBox);
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (heightIncreaseButton);
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (icon_line_height_more);
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (heightDecreaseButton);
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (icon_line_height_less);
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (marginBox);
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (marginIncreaseButton);
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (icon_width_indent_more);
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (marginDecreaseButton);
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (icon_width_indent_less);
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (profileBox);
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (profileButton3);
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (profileButton2);
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (profileButton1);
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (textAlignBox);
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (alignRightButton);
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (alignLeftButton);
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (textSizeBox);
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (textSmallerButton);
#line 245 "../src/prefpopover.vala"
	_g_object_unref0 (textLargerButton);
#line 245 "../src/prefpopover.vala"
	_g_string_free0 (profileNameText);
#line 245 "../src/prefpopover.vala"
	return result;
#line 1477 "prefpopover.c"
}

BookwormAppPreferencesMenu*
bookworm_app_preferences_menu_construct (GType object_type)
{
	BookwormAppPreferencesMenu* self = NULL;
#line 20 "../src/prefpopover.vala"
	self = (BookwormAppPreferencesMenu*) g_type_create_instance (object_type);
#line 20 "../src/prefpopover.vala"
	return self;
#line 1488 "prefpopover.c"
}

BookwormAppPreferencesMenu*
bookworm_app_preferences_menu_new (void)
{
#line 20 "../src/prefpopover.vala"
	return bookworm_app_preferences_menu_construct (BOOKWORM_APP_TYPE_PREFERENCES_MENU);
#line 1496 "prefpopover.c"
}

static void
bookworm_app_value_preferences_menu_init (GValue* value)
{
#line 20 "../src/prefpopover.vala"
	value->data[0].v_pointer = NULL;
#line 1504 "prefpopover.c"
}

static void
bookworm_app_value_preferences_menu_free_value (GValue* value)
{
#line 20 "../src/prefpopover.vala"
	if (value->data[0].v_pointer) {
#line 20 "../src/prefpopover.vala"
		bookworm_app_preferences_menu_unref (value->data[0].v_pointer);
#line 1514 "prefpopover.c"
	}
}

static void
bookworm_app_value_preferences_menu_copy_value (const GValue* src_value,
                                                GValue* dest_value)
{
#line 20 "../src/prefpopover.vala"
	if (src_value->data[0].v_pointer) {
#line 20 "../src/prefpopover.vala"
		dest_value->data[0].v_pointer = bookworm_app_preferences_menu_ref (src_value->data[0].v_pointer);
#line 1526 "prefpopover.c"
	} else {
#line 20 "../src/prefpopover.vala"
		dest_value->data[0].v_pointer = NULL;
#line 1530 "prefpopover.c"
	}
}

static gpointer
bookworm_app_value_preferences_menu_peek_pointer (const GValue* value)
{
#line 20 "../src/prefpopover.vala"
	return value->data[0].v_pointer;
#line 1539 "prefpopover.c"
}

static gchar*
bookworm_app_value_preferences_menu_collect_value (GValue* value,
                                                   guint n_collect_values,
                                                   GTypeCValue* collect_values,
                                                   guint collect_flags)
{
#line 20 "../src/prefpopover.vala"
	if (collect_values[0].v_pointer) {
#line 1550 "prefpopover.c"
		BookwormAppPreferencesMenu * object;
		object = collect_values[0].v_pointer;
#line 20 "../src/prefpopover.vala"
		if (object->parent_instance.g_class == NULL) {
#line 20 "../src/prefpopover.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 1557 "prefpopover.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 20 "../src/prefpopover.vala"
			return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 1561 "prefpopover.c"
		}
#line 20 "../src/prefpopover.vala"
		value->data[0].v_pointer = bookworm_app_preferences_menu_ref (object);
#line 1565 "prefpopover.c"
	} else {
#line 20 "../src/prefpopover.vala"
		value->data[0].v_pointer = NULL;
#line 1569 "prefpopover.c"
	}
#line 20 "../src/prefpopover.vala"
	return NULL;
#line 1573 "prefpopover.c"
}

static gchar*
bookworm_app_value_preferences_menu_lcopy_value (const GValue* value,
                                                 guint n_collect_values,
                                                 GTypeCValue* collect_values,
                                                 guint collect_flags)
{
	BookwormAppPreferencesMenu ** object_p;
	object_p = collect_values[0].v_pointer;
#line 20 "../src/prefpopover.vala"
	if (!object_p) {
#line 20 "../src/prefpopover.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 1588 "prefpopover.c"
	}
#line 20 "../src/prefpopover.vala"
	if (!value->data[0].v_pointer) {
#line 20 "../src/prefpopover.vala"
		*object_p = NULL;
#line 1594 "prefpopover.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 20 "../src/prefpopover.vala"
		*object_p = value->data[0].v_pointer;
#line 1598 "prefpopover.c"
	} else {
#line 20 "../src/prefpopover.vala"
		*object_p = bookworm_app_preferences_menu_ref (value->data[0].v_pointer);
#line 1602 "prefpopover.c"
	}
#line 20 "../src/prefpopover.vala"
	return NULL;
#line 1606 "prefpopover.c"
}

GParamSpec*
bookworm_app_param_spec_preferences_menu (const gchar* name,
                                          const gchar* nick,
                                          const gchar* blurb,
                                          GType object_type,
                                          GParamFlags flags)
{
	BookwormAppParamSpecPreferencesMenu* spec;
#line 20 "../src/prefpopover.vala"
	g_return_val_if_fail (g_type_is_a (object_type, BOOKWORM_APP_TYPE_PREFERENCES_MENU), NULL);
#line 20 "../src/prefpopover.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 20 "../src/prefpopover.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 20 "../src/prefpopover.vala"
	return G_PARAM_SPEC (spec);
#line 1625 "prefpopover.c"
}

gpointer
bookworm_app_value_get_preferences_menu (const GValue* value)
{
#line 20 "../src/prefpopover.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, BOOKWORM_APP_TYPE_PREFERENCES_MENU), NULL);
#line 20 "../src/prefpopover.vala"
	return value->data[0].v_pointer;
#line 1635 "prefpopover.c"
}

void
bookworm_app_value_set_preferences_menu (GValue* value,
                                         gpointer v_object)
{
	BookwormAppPreferencesMenu * old;
#line 20 "../src/prefpopover.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, BOOKWORM_APP_TYPE_PREFERENCES_MENU));
#line 20 "../src/prefpopover.vala"
	old = value->data[0].v_pointer;
#line 20 "../src/prefpopover.vala"
	if (v_object) {
#line 20 "../src/prefpopover.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, BOOKWORM_APP_TYPE_PREFERENCES_MENU));
#line 20 "../src/prefpopover.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 20 "../src/prefpopover.vala"
		value->data[0].v_pointer = v_object;
#line 20 "../src/prefpopover.vala"
		bookworm_app_preferences_menu_ref (value->data[0].v_pointer);
#line 1657 "prefpopover.c"
	} else {
#line 20 "../src/prefpopover.vala"
		value->data[0].v_pointer = NULL;
#line 1661 "prefpopover.c"
	}
#line 20 "../src/prefpopover.vala"
	if (old) {
#line 20 "../src/prefpopover.vala"
		bookworm_app_preferences_menu_unref (old);
#line 1667 "prefpopover.c"
	}
}

void
bookworm_app_value_take_preferences_menu (GValue* value,
                                          gpointer v_object)
{
	BookwormAppPreferencesMenu * old;
#line 20 "../src/prefpopover.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, BOOKWORM_APP_TYPE_PREFERENCES_MENU));
#line 20 "../src/prefpopover.vala"
	old = value->data[0].v_pointer;
#line 20 "../src/prefpopover.vala"
	if (v_object) {
#line 20 "../src/prefpopover.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, BOOKWORM_APP_TYPE_PREFERENCES_MENU));
#line 20 "../src/prefpopover.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 20 "../src/prefpopover.vala"
		value->data[0].v_pointer = v_object;
#line 1688 "prefpopover.c"
	} else {
#line 20 "../src/prefpopover.vala"
		value->data[0].v_pointer = NULL;
#line 1692 "prefpopover.c"
	}
#line 20 "../src/prefpopover.vala"
	if (old) {
#line 20 "../src/prefpopover.vala"
		bookworm_app_preferences_menu_unref (old);
#line 1698 "prefpopover.c"
	}
}

static void
bookworm_app_preferences_menu_class_init (BookwormAppPreferencesMenuClass * klass,
                                          gpointer klass_data)
{
#line 20 "../src/prefpopover.vala"
	bookworm_app_preferences_menu_parent_class = g_type_class_peek_parent (klass);
#line 20 "../src/prefpopover.vala"
	((BookwormAppPreferencesMenuClass *) klass)->finalize = bookworm_app_preferences_menu_finalize;
#line 1710 "prefpopover.c"
}

static void
bookworm_app_preferences_menu_instance_init (BookwormAppPreferencesMenu * self,
                                             gpointer klass)
{
#line 20 "../src/prefpopover.vala"
	self->ref_count = 1;
#line 1719 "prefpopover.c"
}

static void
bookworm_app_preferences_menu_finalize (BookwormAppPreferencesMenu * obj)
{
	BookwormAppPreferencesMenu * self;
#line 20 "../src/prefpopover.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOOKWORM_APP_TYPE_PREFERENCES_MENU, BookwormAppPreferencesMenu);
#line 20 "../src/prefpopover.vala"
	g_signal_handlers_destroy (self);
#line 1730 "prefpopover.c"
}

static GType
bookworm_app_preferences_menu_get_type_once (void)
{
	static const GTypeValueTable g_define_type_value_table = { bookworm_app_value_preferences_menu_init, bookworm_app_value_preferences_menu_free_value, bookworm_app_value_preferences_menu_copy_value, bookworm_app_value_preferences_menu_peek_pointer, "p", bookworm_app_value_preferences_menu_collect_value, "p", bookworm_app_value_preferences_menu_lcopy_value };
	static const GTypeInfo g_define_type_info = { sizeof (BookwormAppPreferencesMenuClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) bookworm_app_preferences_menu_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BookwormAppPreferencesMenu), 0, (GInstanceInitFunc) bookworm_app_preferences_menu_instance_init, &g_define_type_value_table };
	static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
	GType bookworm_app_preferences_menu_type_id;
	bookworm_app_preferences_menu_type_id = g_type_register_fundamental (g_type_fundamental_next (), "BookwormAppPreferencesMenu", &g_define_type_info, &g_define_type_fundamental_info, 0);
	return bookworm_app_preferences_menu_type_id;
}

GType
bookworm_app_preferences_menu_get_type (void)
{
	static volatile gsize bookworm_app_preferences_menu_type_id__once = 0;
	if (g_once_init_enter (&bookworm_app_preferences_menu_type_id__once)) {
		GType bookworm_app_preferences_menu_type_id;
		bookworm_app_preferences_menu_type_id = bookworm_app_preferences_menu_get_type_once ();
		g_once_init_leave (&bookworm_app_preferences_menu_type_id__once, bookworm_app_preferences_menu_type_id);
	}
	return bookworm_app_preferences_menu_type_id__once;
}

gpointer
bookworm_app_preferences_menu_ref (gpointer instance)
{
	BookwormAppPreferencesMenu * self;
	self = instance;
#line 20 "../src/prefpopover.vala"
	g_atomic_int_inc (&self->ref_count);
#line 20 "../src/prefpopover.vala"
	return instance;
#line 1765 "prefpopover.c"
}

void
bookworm_app_preferences_menu_unref (gpointer instance)
{
	BookwormAppPreferencesMenu * self;
	self = instance;
#line 20 "../src/prefpopover.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 20 "../src/prefpopover.vala"
		BOOKWORM_APP_PREFERENCES_MENU_GET_CLASS (self)->finalize (self);
#line 20 "../src/prefpopover.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 1779 "prefpopover.c"
	}
}

