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

/*
 * Copyright 2011-2021 elementary, Inc. (https://elementary.io)
 *           2020 José Expósito <jose.exposito89@gmail.com>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public
 * License along with this program; if not, write to the
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301 USA.
 */

#include "mouse-touchpad.h"
#include <glib-object.h>
#include <gio/gio.h>
#include <glib.h>
#include <glib/gi18n-lib.h>
#include <switchboard.h>
#include <gtk/gtk.h>
#include <granite-7.h>
#include <stdlib.h>
#include <string.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif

enum  {
	MOUSE_TOUCHPAD_GESTURES_VIEW_0_PROPERTY,
	MOUSE_TOUCHPAD_GESTURES_VIEW_NUM_PROPERTIES
};
static GParamSpec* mouse_touchpad_gestures_view_properties[MOUSE_TOUCHPAD_GESTURES_VIEW_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block4Data Block4Data;
#define _g_free0(var) (var = (g_free (var), NULL))

struct _Block4Data {
	int _ref_count_;
	MouseTouchpadGesturesView* self;
	GSettings* glib_settings;
	MouseTouchpadToucheggSettings* touchegg_settings;
};

static gpointer mouse_touchpad_gestures_view_parent_class = NULL;

static GObject * mouse_touchpad_gestures_view_constructor (GType type,
                                                    guint n_construct_properties,
                                                    GObjectConstructParam * construct_properties);
static Block4Data* block4_data_ref (Block4Data* _data4_);
static void block4_data_unref (void * _userdata_);
static void _mouse_touchpad_gestures_view____lambda14_ (Block4Data* _data4_);
static void __mouse_touchpad_gestures_view____lambda14__g_settings_changed (GSettings* _sender,
                                                                     const gchar* key,
                                                                     gpointer self);
static void _mouse_touchpad_gestures_view____lambda15_ (Block4Data* _data4_);
static void __mouse_touchpad_gestures_view____lambda15__g_settings_changed (GSettings* _sender,
                                                                     const gchar* key,
                                                                     gpointer self);
static GType mouse_touchpad_gestures_view_get_type_once (void);

MouseTouchpadGesturesView*
mouse_touchpad_gestures_view_construct (GType object_type)
{
	MouseTouchpadGesturesView * self = NULL;
	GThemedIcon* _tmp0_;
	GThemedIcon* _tmp1_;
	_tmp0_ = (GThemedIcon*) g_themed_icon_new ("mouse-touchpad-gestures");
	_tmp1_ = _tmp0_;
	self = (MouseTouchpadGesturesView*) g_object_new (object_type, "icon", _tmp1_, "title", _ ("Gestures"), NULL);
	_g_object_unref0 (_tmp1_);
	return self;
}

MouseTouchpadGesturesView*
mouse_touchpad_gestures_view_new (void)
{
	return mouse_touchpad_gestures_view_construct (MOUSE_TOUCHPAD_TYPE_GESTURES_VIEW);
}

static Block4Data*
block4_data_ref (Block4Data* _data4_)
{
	g_atomic_int_inc (&_data4_->_ref_count_);
	return _data4_;
}

static void
block4_data_unref (void * _userdata_)
{
	Block4Data* _data4_;
	_data4_ = (Block4Data*) _userdata_;
	if (g_atomic_int_dec_and_test (&_data4_->_ref_count_)) {
		MouseTouchpadGesturesView* self;
		self = _data4_->self;
		_g_object_unref0 (_data4_->touchegg_settings);
		_g_object_unref0 (_data4_->glib_settings);
		_g_object_unref0 (self);
		g_slice_free (Block4Data, _data4_);
	}
}

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

static void
_mouse_touchpad_gestures_view____lambda14_ (Block4Data* _data4_)
{
	MouseTouchpadGesturesView* self;
	MouseTouchpadToucheggSettings* _tmp0_;
	GSettings* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	self = _data4_->self;
	_tmp0_ = _data4_->touchegg_settings;
	_tmp1_ = _data4_->glib_settings;
	_tmp2_ = g_settings_get_string (_tmp1_, "three-finger-swipe-up");
	_tmp3_ = _tmp2_;
	mouse_touchpad_touchegg_settings_set_maximize_settings (_tmp0_, g_strcmp0 (_tmp3_, "toggle-maximized") == 0, 3);
	_g_free0 (_tmp3_);
}

static void
__mouse_touchpad_gestures_view____lambda14__g_settings_changed (GSettings* _sender,
                                                                const gchar* key,
                                                                gpointer self)
{
	_mouse_touchpad_gestures_view____lambda14_ (self);
}

static void
_mouse_touchpad_gestures_view____lambda15_ (Block4Data* _data4_)
{
	MouseTouchpadGesturesView* self;
	MouseTouchpadToucheggSettings* _tmp0_;
	GSettings* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	self = _data4_->self;
	_tmp0_ = _data4_->touchegg_settings;
	_tmp1_ = _data4_->glib_settings;
	_tmp2_ = g_settings_get_string (_tmp1_, "four-finger-swipe-up");
	_tmp3_ = _tmp2_;
	mouse_touchpad_touchegg_settings_set_maximize_settings (_tmp0_, g_strcmp0 (_tmp3_, "toggle-maximized") == 0, 4);
	_g_free0 (_tmp3_);
}

static void
__mouse_touchpad_gestures_view____lambda15__g_settings_changed (GSettings* _sender,
                                                                const gchar* key,
                                                                gpointer self)
{
	_mouse_touchpad_gestures_view____lambda15_ (self);
}

static GObject *
mouse_touchpad_gestures_view_constructor (GType type,
                                          guint n_construct_properties,
                                          GObjectConstructParam * construct_properties)
{
	GObject * obj;
	GObjectClass * parent_class;
	MouseTouchpadGesturesView * self;
	Block4Data* _data4_;
	GtkComboBoxText* three_swipe_horizontal_combo = NULL;
	GtkComboBoxText* _tmp0_ = NULL;
	GtkComboBoxText* _tmp1_;
	GtkComboBoxText* _tmp2_;
	GtkComboBoxText* _tmp3_;
	GtkComboBoxText* _tmp4_;
	GtkLabel* three_swipe_horizontal_label = NULL;
	GtkComboBoxText* _tmp5_;
	GtkWidget* _tmp6_;
	GtkLabel* _tmp7_ = NULL;
	GtkComboBoxText* four_swipe_horizontal_combo = NULL;
	GtkComboBoxText* _tmp8_;
	GtkComboBoxText* _tmp9_;
	GtkComboBoxText* _tmp10_;
	GtkComboBoxText* _tmp11_;
	GtkComboBoxText* _tmp12_;
	GtkLabel* four_swipe_horizontal_label = NULL;
	GtkComboBoxText* _tmp13_;
	GtkWidget* _tmp14_;
	GtkLabel* _tmp15_ = NULL;
	GtkGrid* horizontal_swipe_grid = NULL;
	GtkGrid* _tmp16_ = NULL;
	GtkGrid* _tmp17_;
	GtkLabel* _tmp18_;
	GtkGrid* _tmp19_;
	GtkComboBoxText* _tmp20_;
	GtkGrid* _tmp21_;
	GtkLabel* _tmp22_;
	GtkGrid* _tmp23_;
	GtkComboBoxText* _tmp24_;
	GraniteHeaderLabel* horizontal_swipe_header = NULL;
	GtkGrid* _tmp25_;
	GtkWidget* _tmp26_;
	GraniteHeaderLabel* _tmp27_ = NULL;
	GtkComboBoxText* three_swipe_up_combo = NULL;
	GtkComboBoxText* _tmp28_ = NULL;
	GtkComboBoxText* _tmp29_;
	GtkComboBoxText* _tmp30_;
	GtkLabel* three_swipe_up_label = NULL;
	GtkComboBoxText* _tmp31_;
	GtkWidget* _tmp32_;
	GtkLabel* _tmp33_ = NULL;
	GtkComboBoxText* four_swipe_up_combo = NULL;
	GtkComboBoxText* _tmp34_;
	GtkComboBoxText* _tmp35_;
	GtkComboBoxText* _tmp36_;
	GtkLabel* four_swipe_up_label = NULL;
	GtkComboBoxText* _tmp37_;
	GtkWidget* _tmp38_;
	GtkLabel* _tmp39_ = NULL;
	GtkGrid* swipe_up_grid = NULL;
	GtkGrid* _tmp40_ = NULL;
	GtkGrid* _tmp41_;
	GtkLabel* _tmp42_;
	GtkGrid* _tmp43_;
	GtkComboBoxText* _tmp44_;
	GtkGrid* _tmp45_;
	GtkLabel* _tmp46_;
	GtkGrid* _tmp47_;
	GtkComboBoxText* _tmp48_;
	GraniteHeaderLabel* swipe_up_header = NULL;
	GtkGrid* _tmp49_;
	GtkWidget* _tmp50_;
	GraniteHeaderLabel* _tmp51_ = NULL;
	GtkComboBoxText* three_pinch_combo = NULL;
	GtkComboBoxText* _tmp52_ = NULL;
	GtkComboBoxText* _tmp53_;
	GtkComboBoxText* _tmp54_;
	GtkLabel* three_pinch_label = NULL;
	GtkComboBoxText* _tmp55_;
	GtkWidget* _tmp56_;
	GtkLabel* _tmp57_ = NULL;
	GtkComboBoxText* four_pinch_combo = NULL;
	GtkComboBoxText* _tmp58_;
	GtkComboBoxText* _tmp59_;
	GtkComboBoxText* _tmp60_;
	GtkLabel* four_pinch_label = NULL;
	GtkComboBoxText* _tmp61_;
	GtkWidget* _tmp62_;
	GtkLabel* _tmp63_ = NULL;
	GtkGrid* pinch_grid = NULL;
	GtkGrid* _tmp64_ = NULL;
	GtkGrid* _tmp65_;
	GtkLabel* _tmp66_;
	GtkGrid* _tmp67_;
	GtkComboBoxText* _tmp68_;
	GtkGrid* _tmp69_;
	GtkLabel* _tmp70_;
	GtkGrid* _tmp71_;
	GtkComboBoxText* _tmp72_;
	GraniteHeaderLabel* pinch_header = NULL;
	GtkGrid* _tmp73_;
	GtkWidget* _tmp74_;
	GraniteHeaderLabel* _tmp75_ = NULL;
	GtkBox* content_area = NULL;
	GtkBox* _tmp76_;
	GtkBox* _tmp77_;
	GraniteHeaderLabel* _tmp78_;
	GtkBox* _tmp79_;
	GtkGrid* _tmp80_;
	GtkBox* _tmp81_;
	GraniteHeaderLabel* _tmp82_;
	GtkBox* _tmp83_;
	GtkGrid* _tmp84_;
	GtkBox* _tmp85_;
	GraniteHeaderLabel* _tmp86_;
	GtkBox* _tmp87_;
	GtkGrid* _tmp88_;
	GtkBox* _tmp89_;
	GSettings* _tmp90_;
	GSettings* _tmp91_;
	GtkComboBoxText* _tmp92_;
	GSettings* _tmp93_;
	GtkComboBoxText* _tmp94_;
	GSettings* _tmp95_;
	GtkComboBoxText* _tmp96_;
	GSettings* _tmp97_;
	GtkComboBoxText* _tmp98_;
	GSettings* _tmp99_;
	GtkComboBoxText* _tmp100_;
	GSettings* _tmp101_;
	GtkComboBoxText* _tmp102_;
	MouseTouchpadToucheggSettings* _tmp103_;
	MouseTouchpadToucheggSettings* _tmp104_;
	MouseTouchpadToucheggSettings* _tmp105_;
	gboolean _tmp106_;
	gboolean _tmp107_;
	parent_class = G_OBJECT_CLASS (mouse_touchpad_gestures_view_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, MOUSE_TOUCHPAD_TYPE_GESTURES_VIEW, MouseTouchpadGesturesView);
	_data4_ = g_slice_new0 (Block4Data);
	_data4_->_ref_count_ = 1;
	_data4_->self = g_object_ref (self);
	switchboard_settings_page_set_show_end_title_buttons ((SwitchboardSettingsPage*) self, TRUE);
	_tmp0_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
	gtk_widget_set_hexpand ((GtkWidget*) _tmp0_, TRUE);
	g_object_ref_sink (_tmp0_);
	three_swipe_horizontal_combo = _tmp0_;
	_tmp1_ = three_swipe_horizontal_combo;
	gtk_combo_box_text_append (_tmp1_, "none", _ ("Do nothing"));
	_tmp2_ = three_swipe_horizontal_combo;
	gtk_combo_box_text_append (_tmp2_, "switch-to-workspace", _ ("Switch to workspace"));
	_tmp3_ = three_swipe_horizontal_combo;
	gtk_combo_box_text_append (_tmp3_, "move-to-workspace", _ ("Move active window to workspace"));
	_tmp4_ = three_swipe_horizontal_combo;
	gtk_combo_box_text_append (_tmp4_, "switch-windows", _ ("Cycle windows"));
	_tmp5_ = three_swipe_horizontal_combo;
	_tmp6_ = _g_object_ref0 ((GtkWidget*) _tmp5_);
	_tmp7_ = (GtkLabel*) gtk_label_new (_ ("Three fingers:"));
	gtk_widget_set_halign ((GtkWidget*) _tmp7_, GTK_ALIGN_END);
	gtk_label_set_mnemonic_widget (_tmp7_, _tmp6_);
	_g_object_unref0 (_tmp6_);
	g_object_ref_sink (_tmp7_);
	three_swipe_horizontal_label = _tmp7_;
	_tmp8_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
	g_object_ref_sink (_tmp8_);
	four_swipe_horizontal_combo = _tmp8_;
	_tmp9_ = four_swipe_horizontal_combo;
	gtk_combo_box_text_append (_tmp9_, "none", _ ("Do nothing"));
	_tmp10_ = four_swipe_horizontal_combo;
	gtk_combo_box_text_append (_tmp10_, "switch-to-workspace", _ ("Switch to workspace"));
	_tmp11_ = four_swipe_horizontal_combo;
	gtk_combo_box_text_append (_tmp11_, "move-to-workspace", _ ("Move active window to workspace"));
	_tmp12_ = four_swipe_horizontal_combo;
	gtk_combo_box_text_append (_tmp12_, "switch-windows", _ ("Cycle windows"));
	_tmp13_ = four_swipe_horizontal_combo;
	_tmp14_ = _g_object_ref0 ((GtkWidget*) _tmp13_);
	_tmp15_ = (GtkLabel*) gtk_label_new (_ ("Four fingers:"));
	gtk_widget_set_halign ((GtkWidget*) _tmp15_, GTK_ALIGN_END);
	gtk_label_set_mnemonic_widget (_tmp15_, _tmp14_);
	_g_object_unref0 (_tmp14_);
	g_object_ref_sink (_tmp15_);
	four_swipe_horizontal_label = _tmp15_;
	_tmp16_ = (GtkGrid*) gtk_grid_new ();
	g_object_set ((GtkAccessible*) _tmp16_, "accessible-role", GTK_ACCESSIBLE_ROLE_GROUP, NULL);
	gtk_grid_set_column_spacing (_tmp16_, 6);
	gtk_grid_set_row_spacing (_tmp16_, 12);
	g_object_ref_sink (_tmp16_);
	horizontal_swipe_grid = _tmp16_;
	_tmp17_ = horizontal_swipe_grid;
	_tmp18_ = three_swipe_horizontal_label;
	gtk_grid_attach (_tmp17_, (GtkWidget*) _tmp18_, 0, 1, 1, 1);
	_tmp19_ = horizontal_swipe_grid;
	_tmp20_ = three_swipe_horizontal_combo;
	gtk_grid_attach (_tmp19_, (GtkWidget*) _tmp20_, 1, 1, 1, 1);
	_tmp21_ = horizontal_swipe_grid;
	_tmp22_ = four_swipe_horizontal_label;
	gtk_grid_attach (_tmp21_, (GtkWidget*) _tmp22_, 0, 2, 1, 1);
	_tmp23_ = horizontal_swipe_grid;
	_tmp24_ = four_swipe_horizontal_combo;
	gtk_grid_attach (_tmp23_, (GtkWidget*) _tmp24_, 1, 2, 1, 1);
	_tmp25_ = horizontal_swipe_grid;
	_tmp26_ = _g_object_ref0 ((GtkWidget*) _tmp25_);
	_tmp27_ = granite_header_label_new (_ ("Swipe Horizontally"));
	granite_header_label_set_mnemonic_widget (_tmp27_, _tmp26_);
	_g_object_unref0 (_tmp26_);
	g_object_ref_sink (_tmp27_);
	horizontal_swipe_header = _tmp27_;
	_tmp28_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
	gtk_widget_set_hexpand ((GtkWidget*) _tmp28_, TRUE);
	g_object_ref_sink (_tmp28_);
	three_swipe_up_combo = _tmp28_;
	_tmp29_ = three_swipe_up_combo;
	gtk_combo_box_text_append (_tmp29_, "none", _ ("Do nothing"));
	_tmp30_ = three_swipe_up_combo;
	gtk_combo_box_text_append (_tmp30_, "multitasking-view", _ ("Multitasking View"));
	_tmp31_ = three_swipe_up_combo;
	_tmp32_ = _g_object_ref0 ((GtkWidget*) _tmp31_);
	_tmp33_ = (GtkLabel*) gtk_label_new (_ ("Three fingers:"));
	gtk_widget_set_halign ((GtkWidget*) _tmp33_, GTK_ALIGN_END);
	gtk_label_set_mnemonic_widget (_tmp33_, _tmp32_);
	_g_object_unref0 (_tmp32_);
	g_object_ref_sink (_tmp33_);
	three_swipe_up_label = _tmp33_;
	_tmp34_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
	g_object_ref_sink (_tmp34_);
	four_swipe_up_combo = _tmp34_;
	_tmp35_ = four_swipe_up_combo;
	gtk_combo_box_text_append (_tmp35_, "none", _ ("Do nothing"));
	_tmp36_ = four_swipe_up_combo;
	gtk_combo_box_text_append (_tmp36_, "multitasking-view", _ ("Multitasking View"));
	_tmp37_ = four_swipe_up_combo;
	_tmp38_ = _g_object_ref0 ((GtkWidget*) _tmp37_);
	_tmp39_ = (GtkLabel*) gtk_label_new (_ ("Four fingers:"));
	gtk_widget_set_halign ((GtkWidget*) _tmp39_, GTK_ALIGN_END);
	gtk_label_set_mnemonic_widget (_tmp39_, _tmp38_);
	_g_object_unref0 (_tmp38_);
	g_object_ref_sink (_tmp39_);
	four_swipe_up_label = _tmp39_;
	_tmp40_ = (GtkGrid*) gtk_grid_new ();
	g_object_set ((GtkAccessible*) _tmp40_, "accessible-role", GTK_ACCESSIBLE_ROLE_GROUP, NULL);
	gtk_grid_set_column_spacing (_tmp40_, 6);
	gtk_grid_set_row_spacing (_tmp40_, 12);
	g_object_ref_sink (_tmp40_);
	swipe_up_grid = _tmp40_;
	_tmp41_ = swipe_up_grid;
	_tmp42_ = three_swipe_up_label;
	gtk_grid_attach (_tmp41_, (GtkWidget*) _tmp42_, 0, 4, 1, 1);
	_tmp43_ = swipe_up_grid;
	_tmp44_ = three_swipe_up_combo;
	gtk_grid_attach (_tmp43_, (GtkWidget*) _tmp44_, 1, 4, 1, 1);
	_tmp45_ = swipe_up_grid;
	_tmp46_ = four_swipe_up_label;
	gtk_grid_attach (_tmp45_, (GtkWidget*) _tmp46_, 0, 5, 1, 1);
	_tmp47_ = swipe_up_grid;
	_tmp48_ = four_swipe_up_combo;
	gtk_grid_attach (_tmp47_, (GtkWidget*) _tmp48_, 1, 5, 1, 1);
	_tmp49_ = swipe_up_grid;
	_tmp50_ = _g_object_ref0 ((GtkWidget*) _tmp49_);
	_tmp51_ = granite_header_label_new (_ ("Swipe Up"));
	gtk_widget_set_margin_top ((GtkWidget*) _tmp51_, 12);
	granite_header_label_set_mnemonic_widget (_tmp51_, _tmp50_);
	_g_object_unref0 (_tmp50_);
	g_object_ref_sink (_tmp51_);
	swipe_up_header = _tmp51_;
	_tmp52_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
	gtk_widget_set_hexpand ((GtkWidget*) _tmp52_, TRUE);
	g_object_ref_sink (_tmp52_);
	three_pinch_combo = _tmp52_;
	_tmp53_ = three_pinch_combo;
	gtk_combo_box_text_append (_tmp53_, "none", _ ("Do nothing"));
	_tmp54_ = three_pinch_combo;
	gtk_combo_box_text_append (_tmp54_, "zoom", _ ("Zoom"));
	_tmp55_ = three_pinch_combo;
	_tmp56_ = _g_object_ref0 ((GtkWidget*) _tmp55_);
	_tmp57_ = (GtkLabel*) gtk_label_new (_ ("Three fingers:"));
	gtk_widget_set_halign ((GtkWidget*) _tmp57_, GTK_ALIGN_END);
	gtk_label_set_mnemonic_widget (_tmp57_, _tmp56_);
	_g_object_unref0 (_tmp56_);
	g_object_ref_sink (_tmp57_);
	three_pinch_label = _tmp57_;
	_tmp58_ = (GtkComboBoxText*) gtk_combo_box_text_new ();
	g_object_ref_sink (_tmp58_);
	four_pinch_combo = _tmp58_;
	_tmp59_ = four_pinch_combo;
	gtk_combo_box_text_append (_tmp59_, "none", _ ("Do nothing"));
	_tmp60_ = four_pinch_combo;
	gtk_combo_box_text_append (_tmp60_, "zoom", _ ("Zoom"));
	_tmp61_ = four_pinch_combo;
	_tmp62_ = _g_object_ref0 ((GtkWidget*) _tmp61_);
	_tmp63_ = (GtkLabel*) gtk_label_new (_ ("Four fingers:"));
	gtk_widget_set_halign ((GtkWidget*) _tmp63_, GTK_ALIGN_END);
	gtk_label_set_mnemonic_widget (_tmp63_, _tmp62_);
	_g_object_unref0 (_tmp62_);
	g_object_ref_sink (_tmp63_);
	four_pinch_label = _tmp63_;
	_tmp64_ = (GtkGrid*) gtk_grid_new ();
	g_object_set ((GtkAccessible*) _tmp64_, "accessible-role", GTK_ACCESSIBLE_ROLE_GROUP, NULL);
	gtk_grid_set_column_spacing (_tmp64_, 6);
	gtk_grid_set_row_spacing (_tmp64_, 12);
	g_object_ref_sink (_tmp64_);
	pinch_grid = _tmp64_;
	_tmp65_ = pinch_grid;
	_tmp66_ = three_pinch_label;
	gtk_grid_attach (_tmp65_, (GtkWidget*) _tmp66_, 0, 7, 1, 1);
	_tmp67_ = pinch_grid;
	_tmp68_ = three_pinch_combo;
	gtk_grid_attach (_tmp67_, (GtkWidget*) _tmp68_, 1, 7, 1, 1);
	_tmp69_ = pinch_grid;
	_tmp70_ = four_pinch_label;
	gtk_grid_attach (_tmp69_, (GtkWidget*) _tmp70_, 0, 8, 1, 1);
	_tmp71_ = pinch_grid;
	_tmp72_ = four_pinch_combo;
	gtk_grid_attach (_tmp71_, (GtkWidget*) _tmp72_, 1, 8, 1, 1);
	_tmp73_ = pinch_grid;
	_tmp74_ = _g_object_ref0 ((GtkWidget*) _tmp73_);
	_tmp75_ = granite_header_label_new (_ ("Pinch"));
	gtk_widget_set_margin_top ((GtkWidget*) _tmp75_, 12);
	granite_header_label_set_mnemonic_widget (_tmp75_, _tmp74_);
	_g_object_unref0 (_tmp74_);
	g_object_ref_sink (_tmp75_);
	pinch_header = _tmp75_;
	_tmp76_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
	g_object_ref_sink (_tmp76_);
	content_area = _tmp76_;
	_tmp77_ = content_area;
	_tmp78_ = horizontal_swipe_header;
	gtk_box_append (_tmp77_, (GtkWidget*) _tmp78_);
	_tmp79_ = content_area;
	_tmp80_ = horizontal_swipe_grid;
	gtk_box_append (_tmp79_, (GtkWidget*) _tmp80_);
	_tmp81_ = content_area;
	_tmp82_ = swipe_up_header;
	gtk_box_append (_tmp81_, (GtkWidget*) _tmp82_);
	_tmp83_ = content_area;
	_tmp84_ = swipe_up_grid;
	gtk_box_append (_tmp83_, (GtkWidget*) _tmp84_);
	_tmp85_ = content_area;
	_tmp86_ = pinch_header;
	gtk_box_append (_tmp85_, (GtkWidget*) _tmp86_);
	_tmp87_ = content_area;
	_tmp88_ = pinch_grid;
	gtk_box_append (_tmp87_, (GtkWidget*) _tmp88_);
	_tmp89_ = content_area;
	switchboard_settings_page_set_child ((SwitchboardSettingsPage*) self, (GtkWidget*) _tmp89_);
	_tmp90_ = g_settings_new ("io.elementary.desktop.wm.gestures");
	_data4_->glib_settings = _tmp90_;
	_tmp91_ = _data4_->glib_settings;
	_tmp92_ = three_swipe_horizontal_combo;
	g_settings_bind (_tmp91_, "three-finger-swipe-horizontal", (GObject*) _tmp92_, "active-id", G_SETTINGS_BIND_DEFAULT);
	_tmp93_ = _data4_->glib_settings;
	_tmp94_ = four_swipe_horizontal_combo;
	g_settings_bind (_tmp93_, "four-finger-swipe-horizontal", (GObject*) _tmp94_, "active-id", G_SETTINGS_BIND_DEFAULT);
	_tmp95_ = _data4_->glib_settings;
	_tmp96_ = three_swipe_up_combo;
	g_settings_bind (_tmp95_, "three-finger-swipe-up", (GObject*) _tmp96_, "active-id", G_SETTINGS_BIND_DEFAULT);
	_tmp97_ = _data4_->glib_settings;
	_tmp98_ = four_swipe_up_combo;
	g_settings_bind (_tmp97_, "four-finger-swipe-up", (GObject*) _tmp98_, "active-id", G_SETTINGS_BIND_DEFAULT);
	_tmp99_ = _data4_->glib_settings;
	_tmp100_ = three_pinch_combo;
	g_settings_bind (_tmp99_, "three-finger-pinch", (GObject*) _tmp100_, "active-id", G_SETTINGS_BIND_DEFAULT);
	_tmp101_ = _data4_->glib_settings;
	_tmp102_ = four_pinch_combo;
	g_settings_bind (_tmp101_, "four-finger-pinch", (GObject*) _tmp102_, "active-id", G_SETTINGS_BIND_DEFAULT);
	_tmp103_ = mouse_touchpad_touchegg_settings_new ();
	_data4_->touchegg_settings = _tmp103_;
	_tmp104_ = _data4_->touchegg_settings;
	mouse_touchpad_touchegg_settings_parse_config (_tmp104_);
	_tmp105_ = _data4_->touchegg_settings;
	_tmp106_ = mouse_touchpad_touchegg_settings_get_errors (_tmp105_);
	_tmp107_ = _tmp106_;
	if (!_tmp107_) {
		GtkComboBoxText* _tmp108_;
		GtkComboBoxText* _tmp109_;
		MouseTouchpadToucheggSettings* _tmp110_;
		GSettings* _tmp111_;
		gchar* _tmp112_;
		gchar* _tmp113_;
		MouseTouchpadToucheggSettings* _tmp114_;
		GSettings* _tmp115_;
		gchar* _tmp116_;
		gchar* _tmp117_;
		GSettings* _tmp118_;
		GSettings* _tmp119_;
		_tmp108_ = three_swipe_up_combo;
		gtk_combo_box_text_append (_tmp108_, "toggle-maximized", _ ("Toggle maximized"));
		_tmp109_ = four_swipe_up_combo;
		gtk_combo_box_text_append (_tmp109_, "toggle-maximized", _ ("Toggle maximized"));
		_tmp110_ = _data4_->touchegg_settings;
		_tmp111_ = _data4_->glib_settings;
		_tmp112_ = g_settings_get_string (_tmp111_, "three-finger-swipe-up");
		_tmp113_ = _tmp112_;
		mouse_touchpad_touchegg_settings_set_maximize_settings (_tmp110_, g_strcmp0 (_tmp113_, "toggle-maximized") == 0, 3);
		_g_free0 (_tmp113_);
		_tmp114_ = _data4_->touchegg_settings;
		_tmp115_ = _data4_->glib_settings;
		_tmp116_ = g_settings_get_string (_tmp115_, "four-finger-swipe-up");
		_tmp117_ = _tmp116_;
		mouse_touchpad_touchegg_settings_set_maximize_settings (_tmp114_, g_strcmp0 (_tmp117_, "toggle-maximized") == 0, 4);
		_g_free0 (_tmp117_);
		_tmp118_ = _data4_->glib_settings;
		g_signal_connect_data (_tmp118_, "changed::three-finger-swipe-up", (GCallback) __mouse_touchpad_gestures_view____lambda14__g_settings_changed, block4_data_ref (_data4_), (GClosureNotify) block4_data_unref, 0);
		_tmp119_ = _data4_->glib_settings;
		g_signal_connect_data (_tmp119_, "changed::four-finger-swipe-up", (GCallback) __mouse_touchpad_gestures_view____lambda15__g_settings_changed, block4_data_ref (_data4_), (GClosureNotify) block4_data_unref, 0);
	}
	_g_object_unref0 (content_area);
	_g_object_unref0 (pinch_header);
	_g_object_unref0 (pinch_grid);
	_g_object_unref0 (four_pinch_label);
	_g_object_unref0 (four_pinch_combo);
	_g_object_unref0 (three_pinch_label);
	_g_object_unref0 (three_pinch_combo);
	_g_object_unref0 (swipe_up_header);
	_g_object_unref0 (swipe_up_grid);
	_g_object_unref0 (four_swipe_up_label);
	_g_object_unref0 (four_swipe_up_combo);
	_g_object_unref0 (three_swipe_up_label);
	_g_object_unref0 (three_swipe_up_combo);
	_g_object_unref0 (horizontal_swipe_header);
	_g_object_unref0 (horizontal_swipe_grid);
	_g_object_unref0 (four_swipe_horizontal_label);
	_g_object_unref0 (four_swipe_horizontal_combo);
	_g_object_unref0 (three_swipe_horizontal_label);
	_g_object_unref0 (three_swipe_horizontal_combo);
	block4_data_unref (_data4_);
	_data4_ = NULL;
	return obj;
}

static void
mouse_touchpad_gestures_view_class_init (MouseTouchpadGesturesViewClass * klass,
                                         gpointer klass_data)
{
	mouse_touchpad_gestures_view_parent_class = g_type_class_peek_parent (klass);
	G_OBJECT_CLASS (klass)->constructor = mouse_touchpad_gestures_view_constructor;
}

static void
mouse_touchpad_gestures_view_instance_init (MouseTouchpadGesturesView * self,
                                            gpointer klass)
{
}

static GType
mouse_touchpad_gestures_view_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (MouseTouchpadGesturesViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) mouse_touchpad_gestures_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MouseTouchpadGesturesView), 0, (GInstanceInitFunc) mouse_touchpad_gestures_view_instance_init, NULL };
	GType mouse_touchpad_gestures_view_type_id;
	mouse_touchpad_gestures_view_type_id = g_type_register_static (SWITCHBOARD_TYPE_SETTINGS_PAGE, "MouseTouchpadGesturesView", &g_define_type_info, 0);
	return mouse_touchpad_gestures_view_type_id;
}

GType
mouse_touchpad_gestures_view_get_type (void)
{
	static volatile gsize mouse_touchpad_gestures_view_type_id__once = 0;
	if (g_once_init_enter (&mouse_touchpad_gestures_view_type_id__once)) {
		GType mouse_touchpad_gestures_view_type_id;
		mouse_touchpad_gestures_view_type_id = mouse_touchpad_gestures_view_get_type_once ();
		g_once_init_leave (&mouse_touchpad_gestures_view_type_id__once, mouse_touchpad_gestures_view_type_id);
	}
	return mouse_touchpad_gestures_view_type_id__once;
}

