/* midori-speeddial.c generated by valac 0.26.2, the Vala compiler
 * generated from midori-speeddial.vala, do not modify */

/*
 Copyright (C) 2011-2013 Christian Dywan <christian@twotoats.de>

 This library is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
 License as published by the Free Software Foundation; either
 version 2.1 of the License, or (at your option) any later version.

 See the file COPYING for the full license text.
*/

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include "webkit/webkit.h"
#include <glib/gstdio.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
#include <float.h>
#include <math.h>
#include <gobject/gvaluecollector.h>


#define MIDORI_TYPE_SPEED_DIAL (midori_speed_dial_get_type ())
#define MIDORI_SPEED_DIAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MIDORI_TYPE_SPEED_DIAL, MidoriSpeedDial))
#define MIDORI_SPEED_DIAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MIDORI_TYPE_SPEED_DIAL, MidoriSpeedDialClass))
#define MIDORI_IS_SPEED_DIAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MIDORI_TYPE_SPEED_DIAL))
#define MIDORI_IS_SPEED_DIAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MIDORI_TYPE_SPEED_DIAL))
#define MIDORI_SPEED_DIAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MIDORI_TYPE_SPEED_DIAL, MidoriSpeedDialClass))

typedef struct _MidoriSpeedDial MidoriSpeedDial;
typedef struct _MidoriSpeedDialClass MidoriSpeedDialClass;
typedef struct _MidoriSpeedDialPrivate MidoriSpeedDialPrivate;

#define MIDORI_SPEED_DIAL_TYPE_SPEC (midori_speed_dial_spec_get_type ())
#define MIDORI_SPEED_DIAL_SPEC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MIDORI_SPEED_DIAL_TYPE_SPEC, MidoriSpeedDialSpec))
#define MIDORI_SPEED_DIAL_SPEC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MIDORI_SPEED_DIAL_TYPE_SPEC, MidoriSpeedDialSpecClass))
#define MIDORI_SPEED_DIAL_IS_SPEC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MIDORI_SPEED_DIAL_TYPE_SPEC))
#define MIDORI_SPEED_DIAL_IS_SPEC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MIDORI_SPEED_DIAL_TYPE_SPEC))
#define MIDORI_SPEED_DIAL_SPEC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MIDORI_SPEED_DIAL_TYPE_SPEC, MidoriSpeedDialSpecClass))

typedef struct _MidoriSpeedDialSpec MidoriSpeedDialSpec;
typedef struct _MidoriSpeedDialSpecClass MidoriSpeedDialSpecClass;
#define _g_free0(var) (var = (g_free (var), NULL))
#define __g_list_free__midori_speed_dial_spec_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__midori_speed_dial_spec_unref0_ (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _midori_speed_dial_spec_unref0(var) ((var == NULL) ? NULL : (var = (midori_speed_dial_spec_unref (var), NULL)))
#define _g_key_file_free0(var) ((var == NULL) ? NULL : (var = (g_key_file_free (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
typedef struct _MidoriSpeedDialSpecPrivate MidoriSpeedDialSpecPrivate;
typedef struct _MidoriSpeedDialParamSpecSpec MidoriSpeedDialParamSpecSpec;

typedef enum  {
	MIDORI_SPEED_DIAL_ERROR_INVALID_MESSAGE,
	MIDORI_SPEED_DIAL_ERROR_NO_ACTION,
	MIDORI_SPEED_DIAL_ERROR_NO_ID,
	MIDORI_SPEED_DIAL_ERROR_NO_URL,
	MIDORI_SPEED_DIAL_ERROR_NO_TITLE,
	MIDORI_SPEED_DIAL_ERROR_NO_ID2,
	MIDORI_SPEED_DIAL_ERROR_INVALID_ACTION
} MidoriSpeedDialError;
#define MIDORI_SPEED_DIAL_ERROR midori_speed_dial_error_quark ()
struct _MidoriSpeedDial {
	GObject parent_instance;
	MidoriSpeedDialPrivate * priv;
	GKeyFile* keyfile;
};

struct _MidoriSpeedDialClass {
	GObjectClass parent_class;
};

struct _MidoriSpeedDialPrivate {
	gchar* filename;
	gchar* html;
	GList* thumb_queue;
	WebKitWebView* thumb_view;
	MidoriSpeedDialSpec* spec;
	gboolean _close_buttons_left;
};

struct _MidoriSpeedDialSpec {
	GTypeInstance parent_instance;
	volatile int ref_count;
	MidoriSpeedDialSpecPrivate * priv;
	gchar* dial_id;
	gchar* uri;
};

struct _MidoriSpeedDialSpecClass {
	GTypeClass parent_class;
	void (*finalize) (MidoriSpeedDialSpec *self);
};

struct _MidoriSpeedDialParamSpecSpec {
	GParamSpec parent_instance;
};


static gpointer midori_speed_dial_parent_class = NULL;
static gpointer midori_speed_dial_spec_parent_class = NULL;

gchar* katze_mkdir_with_parents (const gchar* pathname, gint mode);
gchar* sokoke_js_script_eval (void* ctx, const gchar* script, void* _error_);
GQuark midori_speed_dial_error_quark (void);
GType midori_speed_dial_get_type (void) G_GNUC_CONST;
gpointer midori_speed_dial_spec_ref (gpointer instance);
void midori_speed_dial_spec_unref (gpointer instance);
GParamSpec* midori_speed_dial_param_spec_spec (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void midori_speed_dial_value_set_spec (GValue* value, gpointer v_object);
void midori_speed_dial_value_take_spec (GValue* value, gpointer v_object);
gpointer midori_speed_dial_value_get_spec (const GValue* value);
GType midori_speed_dial_spec_get_type (void) G_GNUC_CONST;
#define MIDORI_SPEED_DIAL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), MIDORI_TYPE_SPEED_DIAL, MidoriSpeedDialPrivate))
enum  {
	MIDORI_SPEED_DIAL_DUMMY_PROPERTY,
	MIDORI_SPEED_DIAL_CLOSE_BUTTONS_LEFT
};
static void _midori_speed_dial_spec_unref0_ (gpointer var);
static void _g_list_free__midori_speed_dial_spec_unref0_ (GList* self);
MidoriSpeedDial* midori_speed_dial_new (const gchar* new_filename, const gchar* fallback);
MidoriSpeedDial* midori_speed_dial_construct (GType object_type, const gchar* new_filename, const gchar* fallback);
static gchar* midori_speed_dial_build_thumbnail_path (MidoriSpeedDial* self, const gchar* filename);
gchar* midori_speed_dial_get_next_free_slot (MidoriSpeedDial* self, guint* count);
void midori_speed_dial_add (MidoriSpeedDial* self, const gchar* uri, const gchar* title, GdkPixbuf* img);
void midori_speed_dial_save_message (MidoriSpeedDial* self, const gchar* message, GError** error);
void midori_speed_dial_add_with_id (MidoriSpeedDial* self, const gchar* id, const gchar* uri, const gchar* title, GdkPixbuf* img);
const gchar* midori_paths_get_cache_dir (void);
static void midori_speed_dial_save (MidoriSpeedDial* self);
const gchar* midori_speed_dial_get_html (MidoriSpeedDial* self, GError** error);
gchar* midori_paths_get_res_filename (const gchar* filename);
gboolean midori_paths_is_readonly (void);
gboolean midori_speed_dial_get_close_buttons_left (MidoriSpeedDial* self);
static void midori_speed_dial_get_thumb (MidoriSpeedDial* self, const gchar* dial_id, const gchar* uri);
static void midori_speed_dial_load_status (MidoriSpeedDial* self, GObject* thumb_view_, GParamSpec* pspec);
static void _midori_speed_dial_load_status_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
static gboolean midori_speed_dial_save_thumbnail (MidoriSpeedDial* self);
static gboolean _midori_speed_dial_save_thumbnail_gsource_func (gpointer self);
MidoriSpeedDialSpec* midori_speed_dial_spec_new (const gchar* dial_id, const gchar* uri);
MidoriSpeedDialSpec* midori_speed_dial_spec_construct (GType object_type, const gchar* dial_id, const gchar* uri);
void midori_speed_dial_set_close_buttons_left (MidoriSpeedDial* self, gboolean value);
enum  {
	MIDORI_SPEED_DIAL_SPEC_DUMMY_PROPERTY
};
static void midori_speed_dial_spec_finalize (MidoriSpeedDialSpec* obj);
static void midori_speed_dial_finalize (GObject* obj);
static void _vala_midori_speed_dial_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_midori_speed_dial_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
static gint _vala_array_length (gpointer array);


GQuark midori_speed_dial_error_quark (void) {
	return g_quark_from_static_string ("midori_speed_dial_error-quark");
}


static void _midori_speed_dial_spec_unref0_ (gpointer var) {
#line 34 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	(var == NULL) ? NULL : (var = (midori_speed_dial_spec_unref (var), NULL));
#line 170 "midori-speeddial.c"
}


static void _g_list_free__midori_speed_dial_spec_unref0_ (GList* self) {
#line 34 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_list_foreach (self, (GFunc) _midori_speed_dial_spec_unref0_, NULL);
#line 34 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_list_free (self);
#line 179 "midori-speeddial.c"
}


static gchar string_get (const gchar* self, glong index) {
	gchar result = '\0';
	glong _tmp0_ = 0L;
	gchar _tmp1_ = '\0';
#line 996 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, '\0');
#line 997 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp0_ = index;
#line 997 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp1_ = ((gchar*) self)[_tmp0_];
#line 997 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	result = _tmp1_;
#line 997 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	return result;
#line 197 "midori-speeddial.c"
}


MidoriSpeedDial* midori_speed_dial_construct (GType object_type, const gchar* new_filename, const gchar* fallback) {
	MidoriSpeedDial * self = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	GKeyFile* _tmp2_ = NULL;
	GError * _inner_error_ = NULL;
#line 53 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_val_if_fail (new_filename != NULL, NULL);
#line 53 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self = (MidoriSpeedDial*) g_object_new (object_type, NULL);
#line 54 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp0_ = new_filename;
#line 54 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 54 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_free0 (self->priv->filename);
#line 54 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self->priv->filename = _tmp1_;
#line 55 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	__g_list_free__midori_speed_dial_spec_unref0_0 (self->priv->thumb_queue);
#line 55 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self->priv->thumb_queue = NULL;
#line 56 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp2_ = g_key_file_new ();
#line 56 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_key_file_free0 (self->keyfile);
#line 56 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self->keyfile = _tmp2_;
#line 229 "midori-speeddial.c"
	{
		GKeyFile* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
#line 58 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp3_ = self->keyfile;
#line 58 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp4_ = self->priv->filename;
#line 58 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_key_file_load_from_file (_tmp3_, _tmp4_, G_KEY_FILE_NONE, &_inner_error_);
#line 58 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 241 "midori-speeddial.c"
			goto __catch26_g_error;
		}
	}
	goto __finally26;
	__catch26_g_error:
	{
		GError* io_error = NULL;
		gchar* json = NULL;
		gsize len = 0UL;
		GString* script = NULL;
		gsize _tmp13_ = 0UL;
		GString* _tmp14_ = NULL;
		GString* _tmp15_ = NULL;
		GString* _tmp16_ = NULL;
		const gchar* _tmp17_ = NULL;
		gsize _tmp18_ = 0UL;
		GString* _tmp19_ = NULL;
		const gchar* _tmp32_ = NULL;
		gchar* _tmp33_ = NULL;
		gchar* _tmp34_ = NULL;
		gchar* _tmp35_ = NULL;
		gchar* _tmp36_ = NULL;
		GKeyFile* _tmp37_ = NULL;
		gsize _tmp38_;
		gchar** _tmp39_ = NULL;
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		io_error = _inner_error_;
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_inner_error_ = NULL;
#line 271 "midori-speeddial.c"
		{
			gchar* _tmp5_ = NULL;
			const gchar* _tmp6_ = NULL;
			gchar* _tmp7_ = NULL;
			gchar* _tmp10_ = NULL;
			gsize _tmp11_ = 0UL;
#line 64 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp6_ = fallback;
#line 64 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp7_ = g_strdup (_tmp6_);
#line 64 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp5_ = _tmp7_;
#line 64 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			if (_tmp5_ == NULL) {
#line 286 "midori-speeddial.c"
				const gchar* _tmp8_ = NULL;
				gchar* _tmp9_ = NULL;
#line 64 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp8_ = self->priv->filename;
#line 64 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp9_ = g_strconcat (_tmp8_, ".json", NULL);
#line 64 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_g_free0 (_tmp5_);
#line 64 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp5_ = _tmp9_;
#line 297 "midori-speeddial.c"
			}
#line 64 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			g_file_get_contents (_tmp5_, &_tmp10_, &_tmp11_, &_inner_error_);
#line 64 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_free0 (json);
#line 64 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			json = _tmp10_;
#line 64 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			len = _tmp11_;
#line 64 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 64 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_g_free0 (_tmp5_);
#line 311 "midori-speeddial.c"
				goto __catch27_g_error;
			}
#line 63 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_free0 (_tmp5_);
#line 316 "midori-speeddial.c"
		}
		goto __finally27;
		__catch27_g_error:
		{
			GError* fallback_error = NULL;
			gchar* _tmp12_ = NULL;
#line 63 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			fallback_error = _inner_error_;
#line 63 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_inner_error_ = NULL;
#line 68 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp12_ = g_strdup ("'{}'");
#line 68 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_free0 (json);
#line 68 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			json = _tmp12_;
#line 69 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			len = (gsize) 4;
#line 63 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_error_free0 (fallback_error);
#line 337 "midori-speeddial.c"
		}
		__finally27:
#line 63 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 63 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_free0 (json);
#line 63 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_error_free0 (io_error);
#line 63 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_free0 (json);
#line 63 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_error_free0 (io_error);
#line 63 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 63 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			g_clear_error (&_inner_error_);
#line 63 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			return NULL;
#line 356 "midori-speeddial.c"
		}
#line 72 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp13_ = len;
#line 72 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp14_ = g_string_sized_new (_tmp13_);
#line 72 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		script = _tmp14_;
#line 73 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp15_ = script;
#line 73 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_string_append (_tmp15_, "var json = JSON.parse (");
#line 74 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp16_ = script;
#line 74 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp17_ = json;
#line 74 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp18_ = len;
#line 74 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_string_append_len (_tmp16_, _tmp17_, (gssize) _tmp18_);
#line 75 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp19_ = script;
#line 75 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_string_append (_tmp19_, "\n" \
"        );\n" \
"        var keyfile = '';\n" \
"        for (var i in json['shortcuts']) {\n" \
"        var tile = json['shortcuts'][i];\n" \
"        keyfile += '[Dial ' + tile['id'].substring (1) + ']\\n'\n" \
"                +  'uri=' + tile['href'] + '\\n'\n" \
"                +  'img=' + tile['img'] + '\\n'\n" \
"                +  'title=' + tile['title'] + '\\n\\n';\n" \
"        }\n" \
"        var columns = json['width'] ? json['width'] : 3;\n" \
"        var rows = json['shortcuts'] ? json['shortcuts'].length / colu" \
"mns : 0;\n" \
"        keyfile += '[settings]\\n'\n" \
"                +  'columns=' + columns + '\\n'\n" \
"                +  'rows=' + (rows > 3 ? rows : 3) + '\\n\\n';\n" \
"        keyfile;\n" \
"                    ");
#line 380 "midori-speeddial.c"
		{
			GKeyFile* _tmp20_ = NULL;
			GString* _tmp21_ = NULL;
			const gchar* _tmp22_ = NULL;
			gchar* _tmp23_ = NULL;
			gchar* _tmp24_ = NULL;
#line 94 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp20_ = self->keyfile;
#line 94 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp21_ = script;
#line 94 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp22_ = _tmp21_->str;
#line 94 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp23_ = sokoke_js_script_eval (NULL, _tmp22_, NULL);
#line 94 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp24_ = _tmp23_;
#line 94 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			g_key_file_load_from_data (_tmp20_, _tmp24_, (gsize) (-1), 0, &_inner_error_);
#line 94 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_free0 (_tmp24_);
#line 94 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 403 "midori-speeddial.c"
				goto __catch28_g_error;
			}
		}
		goto __finally28;
		__catch28_g_error:
		{
			GError* eval_error = NULL;
			gchar* _tmp25_ = NULL;
			const gchar* _tmp26_ = NULL;
			gchar* _tmp27_ = NULL;
			GError* _tmp30_ = NULL;
			const gchar* _tmp31_ = NULL;
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			eval_error = _inner_error_;
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_inner_error_ = NULL;
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp26_ = fallback;
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp27_ = g_strdup (_tmp26_);
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp25_ = _tmp27_;
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			if (_tmp25_ == NULL) {
#line 428 "midori-speeddial.c"
				const gchar* _tmp28_ = NULL;
				gchar* _tmp29_ = NULL;
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp28_ = self->priv->filename;
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp29_ = g_strconcat (_tmp28_, ".json", NULL);
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_g_free0 (_tmp25_);
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp25_ = _tmp29_;
#line 439 "midori-speeddial.c"
			}
#line 99 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp30_ = eval_error;
#line 99 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp31_ = _tmp30_->message;
#line 99 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			g_critical ("midori-speeddial.vala:99: Failed to parse %s as speed dial JSON: %s", _tmp25_, _tmp31_);
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_free0 (_tmp25_);
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_error_free0 (eval_error);
#line 451 "midori-speeddial.c"
		}
		__finally28:
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_string_free0 (script);
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_free0 (json);
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_error_free0 (io_error);
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_string_free0 (script);
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_free0 (json);
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_error_free0 (io_error);
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			g_clear_error (&_inner_error_);
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			return NULL;
#line 474 "midori-speeddial.c"
		}
#line 102 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp32_ = g_get_user_cache_dir ();
#line 102 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp33_ = g_build_path (G_DIR_SEPARATOR_S, _tmp32_, PACKAGE_NAME, "thumbnails", NULL);
#line 102 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp34_ = _tmp33_;
#line 102 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp35_ = katze_mkdir_with_parents (_tmp34_, 0700);
#line 102 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp36_ = _tmp35_;
#line 102 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (_tmp36_);
#line 102 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (_tmp34_);
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp37_ = self->keyfile;
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp39_ = g_key_file_get_groups (_tmp37_, &_tmp38_);
#line 494 "midori-speeddial.c"
		{
			gchar** tile_collection = NULL;
			gint tile_collection_length1 = 0;
			gint _tile_collection_size_ = 0;
			gint tile_it = 0;
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			tile_collection = _tmp39_;
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			tile_collection_length1 = _tmp38_;
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			for (tile_it = 0; tile_it < _tmp38_; tile_it = tile_it + 1) {
#line 506 "midori-speeddial.c"
				gchar* _tmp40_ = NULL;
				gchar* tile = NULL;
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp40_ = g_strdup (tile_collection[tile_it]);
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				tile = _tmp40_;
#line 513 "midori-speeddial.c"
				{
					{
						gchar* img = NULL;
						GKeyFile* _tmp41_ = NULL;
						const gchar* _tmp42_ = NULL;
						gchar* _tmp43_ = NULL;
						GKeyFile* _tmp44_ = NULL;
						const gchar* _tmp45_ = NULL;
						gchar* uri = NULL;
						GKeyFile* _tmp46_ = NULL;
						const gchar* _tmp47_ = NULL;
						gchar* _tmp48_ = NULL;
						gboolean _tmp49_ = FALSE;
						gboolean _tmp50_ = FALSE;
						const gchar* _tmp51_ = NULL;
#line 109 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_tmp41_ = self->keyfile;
#line 109 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_tmp42_ = tile;
#line 109 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_tmp43_ = g_key_file_get_string (_tmp41_, _tmp42_, "img", &_inner_error_);
#line 109 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						img = _tmp43_;
#line 109 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 539 "midori-speeddial.c"
							goto __catch29_g_error;
						}
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_tmp44_ = self->keyfile;
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_tmp45_ = tile;
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						g_key_file_remove_key (_tmp44_, _tmp45_, "img", &_inner_error_);
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_g_free0 (img);
#line 552 "midori-speeddial.c"
							goto __catch29_g_error;
						}
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_tmp46_ = self->keyfile;
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_tmp47_ = tile;
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_tmp48_ = g_key_file_get_string (_tmp46_, _tmp47_, "uri", &_inner_error_);
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						uri = _tmp48_;
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_g_free0 (img);
#line 567 "midori-speeddial.c"
							goto __catch29_g_error;
						}
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_tmp51_ = img;
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						if (_tmp51_ != NULL) {
#line 574 "midori-speeddial.c"
							const gchar* _tmp52_ = NULL;
							gchar _tmp53_ = '\0';
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp52_ = uri;
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp53_ = string_get (_tmp52_, (glong) 0);
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp50_ = _tmp53_ != '\0';
#line 583 "midori-speeddial.c"
						} else {
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp50_ = FALSE;
#line 587 "midori-speeddial.c"
						}
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						if (_tmp50_) {
#line 591 "midori-speeddial.c"
							const gchar* _tmp54_ = NULL;
							gchar _tmp55_ = '\0';
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp54_ = uri;
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp55_ = string_get (_tmp54_, (glong) 0);
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp49_ = _tmp55_ != '#';
#line 600 "midori-speeddial.c"
						} else {
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp49_ = FALSE;
#line 604 "midori-speeddial.c"
						}
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						if (_tmp49_) {
#line 608 "midori-speeddial.c"
							guchar* decoded = NULL;
							const gchar* _tmp56_ = NULL;
							size_t _tmp57_;
							guchar* _tmp58_ = NULL;
							gint decoded_length1 = 0;
							gint _decoded_size_ = 0;
							const gchar* _tmp59_ = NULL;
							gchar* _tmp60_ = NULL;
							gchar* _tmp61_ = NULL;
							guchar* _tmp62_ = NULL;
							gint _tmp62__length1 = 0;
#line 113 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp56_ = img;
#line 113 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp58_ = g_base64_decode (_tmp56_, &_tmp57_);
#line 113 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							decoded = _tmp58_;
#line 113 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							decoded_length1 = _tmp57_;
#line 113 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_decoded_size_ = decoded_length1;
#line 114 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp59_ = uri;
#line 114 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp60_ = midori_speed_dial_build_thumbnail_path (self, _tmp59_);
#line 114 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp61_ = _tmp60_;
#line 114 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp62_ = decoded;
#line 114 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp62__length1 = decoded_length1;
#line 114 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							g_file_set_contents (_tmp61_, (const char*) _tmp62_, (size_t) _tmp62__length1, &_inner_error_);
#line 114 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_g_free0 (_tmp61_);
#line 114 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 114 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								decoded = (g_free (decoded), NULL);
#line 114 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (uri);
#line 114 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (img);
#line 652 "midori-speeddial.c"
								goto __catch29_g_error;
							}
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							decoded = (g_free (decoded), NULL);
#line 657 "midori-speeddial.c"
						}
#line 108 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (uri);
#line 108 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (img);
#line 663 "midori-speeddial.c"
					}
					goto __finally29;
					__catch29_g_error:
					{
						GError* img_error = NULL;
#line 108 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						img_error = _inner_error_;
#line 108 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_inner_error_ = NULL;
#line 108 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_error_free0 (img_error);
#line 675 "midori-speeddial.c"
					}
					__finally29:
#line 108 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 108 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (tile);
#line 108 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						tile_collection = (_vala_array_free (tile_collection, tile_collection_length1, (GDestroyNotify) g_free), NULL);
#line 108 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_string_free0 (script);
#line 108 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (json);
#line 108 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_error_free0 (io_error);
#line 108 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (tile);
#line 108 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						tile_collection = (_vala_array_free (tile_collection, tile_collection_length1, (GDestroyNotify) g_free), NULL);
#line 108 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_string_free0 (script);
#line 108 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (json);
#line 108 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_error_free0 (io_error);
#line 108 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 108 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						g_clear_error (&_inner_error_);
#line 108 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						return NULL;
#line 706 "midori-speeddial.c"
					}
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_g_free0 (tile);
#line 710 "midori-speeddial.c"
				}
			}
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			tile_collection = (_vala_array_free (tile_collection, tile_collection_length1, (GDestroyNotify) g_free), NULL);
#line 715 "midori-speeddial.c"
		}
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_string_free0 (script);
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (json);
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_error_free0 (io_error);
#line 723 "midori-speeddial.c"
	}
	__finally26:
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_clear_error (&_inner_error_);
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		return NULL;
#line 734 "midori-speeddial.c"
	}
#line 53 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	return self;
#line 738 "midori-speeddial.c"
}


MidoriSpeedDial* midori_speed_dial_new (const gchar* new_filename, const gchar* fallback) {
#line 53 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	return midori_speed_dial_construct (MIDORI_TYPE_SPEED_DIAL, new_filename, fallback);
#line 745 "midori-speeddial.c"
}


gchar* midori_speed_dial_get_next_free_slot (MidoriSpeedDial* self, guint* count) {
	guint _vala_count = 0U;
	gchar* result = NULL;
	guint slot_count = 0U;
	GKeyFile* _tmp0_ = NULL;
	gsize _tmp1_;
	gchar** _tmp2_ = NULL;
	guint _tmp9_ = 0U;
	guint slot = 0U;
	guint _tmp18_ = 0U;
	gchar* _tmp19_ = NULL;
	GError * _inner_error_ = NULL;
#line 124 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	slot_count = (guint) 0;
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp0_ = self->keyfile;
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp2_ = g_key_file_get_groups (_tmp0_, &_tmp1_);
#line 769 "midori-speeddial.c"
	{
		gchar** tile_collection = NULL;
		gint tile_collection_length1 = 0;
		gint _tile_collection_size_ = 0;
		gint tile_it = 0;
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		tile_collection = _tmp2_;
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		tile_collection_length1 = _tmp1_;
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		for (tile_it = 0; tile_it < _tmp1_; tile_it = tile_it + 1) {
#line 781 "midori-speeddial.c"
			gchar* _tmp3_ = NULL;
			gchar* tile = NULL;
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp3_ = g_strdup (tile_collection[tile_it]);
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			tile = _tmp3_;
#line 788 "midori-speeddial.c"
			{
				{
					gboolean _tmp4_ = FALSE;
					GKeyFile* _tmp5_ = NULL;
					const gchar* _tmp6_ = NULL;
					gboolean _tmp7_ = FALSE;
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp5_ = self->keyfile;
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp6_ = tile;
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp7_ = g_key_file_has_key (_tmp5_, _tmp6_, "uri", &_inner_error_);
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp4_ = _tmp7_;
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						if (_inner_error_->domain == G_KEY_FILE_ERROR) {
#line 807 "midori-speeddial.c"
							goto __catch30_g_key_file_error;
						}
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (tile);
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						tile_collection = (_vala_array_free (tile_collection, tile_collection_length1, (GDestroyNotify) g_free), NULL);
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						g_clear_error (&_inner_error_);
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						return NULL;
#line 820 "midori-speeddial.c"
					}
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					if (_tmp4_) {
#line 824 "midori-speeddial.c"
						guint _tmp8_ = 0U;
#line 129 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_tmp8_ = slot_count;
#line 129 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						slot_count = _tmp8_ + 1;
#line 830 "midori-speeddial.c"
					}
				}
				goto __finally30;
				__catch30_g_key_file_error:
				{
					GError* _error_ = NULL;
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_error_ = _inner_error_;
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_inner_error_ = NULL;
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_g_error_free0 (_error_);
#line 843 "midori-speeddial.c"
				}
				__finally30:
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_g_free0 (tile);
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					tile_collection = (_vala_array_free (tile_collection, tile_collection_length1, (GDestroyNotify) g_free), NULL);
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					g_clear_error (&_inner_error_);
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					return NULL;
#line 858 "midori-speeddial.c"
				}
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_g_free0 (tile);
#line 862 "midori-speeddial.c"
			}
		}
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		tile_collection = (_vala_array_free (tile_collection, tile_collection_length1, (GDestroyNotify) g_free), NULL);
#line 867 "midori-speeddial.c"
	}
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp9_ = slot_count;
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_vala_count = _tmp9_;
#line 135 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	slot = (guint) 1;
#line 136 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	while (TRUE) {
#line 877 "midori-speeddial.c"
		guint _tmp10_ = 0U;
		guint _tmp11_ = 0U;
		gchar* tile = NULL;
		guint _tmp12_ = 0U;
		gchar* _tmp13_ = NULL;
		GKeyFile* _tmp14_ = NULL;
		const gchar* _tmp15_ = NULL;
		gboolean _tmp16_ = FALSE;
		guint _tmp17_ = 0U;
#line 136 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp10_ = slot;
#line 136 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp11_ = slot_count;
#line 136 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		if (!(_tmp10_ <= _tmp11_)) {
#line 136 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			break;
#line 895 "midori-speeddial.c"
		}
#line 137 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp12_ = slot;
#line 137 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp13_ = g_strdup_printf ("Dial %u", _tmp12_);
#line 137 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		tile = _tmp13_;
#line 138 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp14_ = self->keyfile;
#line 138 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp15_ = tile;
#line 138 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp16_ = g_key_file_has_group (_tmp14_, _tmp15_);
#line 138 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		if (!_tmp16_) {
#line 139 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			result = tile;
#line 139 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			if (count) {
#line 139 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				*count = _vala_count;
#line 917 "midori-speeddial.c"
			}
#line 139 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			return result;
#line 921 "midori-speeddial.c"
		}
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp17_ = slot;
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		slot = _tmp17_ + 1;
#line 136 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (tile);
#line 929 "midori-speeddial.c"
	}
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp18_ = slot_count;
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp19_ = g_strdup_printf ("Dial %u", _tmp18_ + 1);
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	result = _tmp19_;
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (count) {
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		*count = _vala_count;
#line 941 "midori-speeddial.c"
	}
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	return result;
#line 945 "midori-speeddial.c"
}


static glong string_strnlen (gchar* str, glong maxlen) {
	glong result = 0L;
	gchar* end = NULL;
	gchar* _tmp0_ = NULL;
	glong _tmp1_ = 0L;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 1197 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp0_ = str;
#line 1197 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp1_ = maxlen;
#line 1197 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
#line 1197 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	end = _tmp2_;
#line 1198 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp3_ = end;
#line 1198 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp3_ == NULL) {
#line 968 "midori-speeddial.c"
		glong _tmp4_ = 0L;
#line 1199 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp4_ = maxlen;
#line 1199 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		result = _tmp4_;
#line 1199 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		return result;
#line 976 "midori-speeddial.c"
	} else {
		gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
#line 1201 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp5_ = end;
#line 1201 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp6_ = str;
#line 1201 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		result = (glong) (_tmp5_ - _tmp6_);
#line 1201 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		return result;
#line 988 "midori-speeddial.c"
	}
}


static gchar* string_substring (const gchar* self, glong offset, glong len) {
	gchar* result = NULL;
	glong string_length = 0L;
	gboolean _tmp0_ = FALSE;
	glong _tmp1_ = 0L;
	glong _tmp8_ = 0L;
	glong _tmp14_ = 0L;
	glong _tmp17_ = 0L;
	glong _tmp18_ = 0L;
	glong _tmp19_ = 0L;
	glong _tmp20_ = 0L;
	glong _tmp21_ = 0L;
	gchar* _tmp22_ = NULL;
#line 1208 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1210 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp1_ = offset;
#line 1210 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp1_ >= ((glong) 0)) {
#line 1012 "midori-speeddial.c"
		glong _tmp2_ = 0L;
#line 1210 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp2_ = len;
#line 1210 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp0_ = _tmp2_ >= ((glong) 0);
#line 1018 "midori-speeddial.c"
	} else {
#line 1210 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp0_ = FALSE;
#line 1022 "midori-speeddial.c"
	}
#line 1210 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp0_) {
#line 1026 "midori-speeddial.c"
		glong _tmp3_ = 0L;
		glong _tmp4_ = 0L;
		glong _tmp5_ = 0L;
#line 1212 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp3_ = offset;
#line 1212 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp4_ = len;
#line 1212 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_);
#line 1212 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		string_length = _tmp5_;
#line 1038 "midori-speeddial.c"
	} else {
		gint _tmp6_ = 0;
		gint _tmp7_ = 0;
#line 1214 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp6_ = strlen (self);
#line 1214 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp7_ = _tmp6_;
#line 1214 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		string_length = (glong) _tmp7_;
#line 1048 "midori-speeddial.c"
	}
#line 1217 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp8_ = offset;
#line 1217 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp8_ < ((glong) 0)) {
#line 1054 "midori-speeddial.c"
		glong _tmp9_ = 0L;
		glong _tmp10_ = 0L;
		glong _tmp11_ = 0L;
#line 1218 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp9_ = string_length;
#line 1218 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp10_ = offset;
#line 1218 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		offset = _tmp9_ + _tmp10_;
#line 1219 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp11_ = offset;
#line 1219 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL);
#line 1068 "midori-speeddial.c"
	} else {
		glong _tmp12_ = 0L;
		glong _tmp13_ = 0L;
#line 1221 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp12_ = offset;
#line 1221 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp13_ = string_length;
#line 1221 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL);
#line 1078 "midori-speeddial.c"
	}
#line 1223 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp14_ = len;
#line 1223 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (_tmp14_ < ((glong) 0)) {
#line 1084 "midori-speeddial.c"
		glong _tmp15_ = 0L;
		glong _tmp16_ = 0L;
#line 1224 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp15_ = string_length;
#line 1224 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp16_ = offset;
#line 1224 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		len = _tmp15_ - _tmp16_;
#line 1093 "midori-speeddial.c"
	}
#line 1226 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp17_ = offset;
#line 1226 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp18_ = len;
#line 1226 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp19_ = string_length;
#line 1226 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL);
#line 1227 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp20_ = offset;
#line 1227 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp21_ = len;
#line 1227 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_);
#line 1227 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	result = _tmp22_;
#line 1227 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	return result;
#line 1113 "midori-speeddial.c"
}


void midori_speed_dial_add (MidoriSpeedDial* self, const gchar* uri, const gchar* title, GdkPixbuf* img) {
	gchar* id = NULL;
	gchar* _tmp0_ = NULL;
	guint slot = 0U;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gint _tmp3_ = 0;
	guint _tmp4_ = 0U;
	GError * _inner_error_ = NULL;
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_if_fail (self != NULL);
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_if_fail (uri != NULL);
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_if_fail (title != NULL);
#line 147 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp0_ = midori_speed_dial_get_next_free_slot (self, NULL);
#line 147 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	id = _tmp0_;
#line 148 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp1_ = string_substring (id, (glong) 5, (glong) (-1));
#line 148 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp2_ = _tmp1_;
#line 148 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp3_ = atoi (_tmp2_);
#line 148 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp4_ = (guint) _tmp3_;
#line 148 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_free0 (_tmp2_);
#line 148 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	slot = _tmp4_;
#line 1148 "midori-speeddial.c"
	{
		const gchar* _tmp5_ = NULL;
		gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp5_ = uri;
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp6_ = g_strdup_printf ("speed_dial-save-add %u %s", slot, _tmp5_);
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp7_ = _tmp6_;
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		midori_speed_dial_save_message (self, _tmp7_, &_inner_error_);
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (_tmp7_);
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1165 "midori-speeddial.c"
			goto __catch31_g_error;
		}
	}
	goto __finally31;
	__catch31_g_error:
	{
		GError* _error_ = NULL;
		GError* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_error_ = _inner_error_;
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_inner_error_ = NULL;
#line 153 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp8_ = _error_;
#line 153 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp9_ = _tmp8_->message;
#line 153 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_critical ("midori-speeddial.vala:153: Failed to add speed dial thumbnail: %s", _tmp9_);
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_error_free0 (_error_);
#line 1187 "midori-speeddial.c"
	}
	__finally31:
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (id);
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_clear_error (&_inner_error_);
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		return;
#line 1200 "midori-speeddial.c"
	}
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_free0 (id);
#line 1204 "midori-speeddial.c"
}


void midori_speed_dial_add_with_id (MidoriSpeedDial* self, const gchar* id, const gchar* uri, const gchar* title, GdkPixbuf* img) {
	GKeyFile* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	GKeyFile* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gchar* filename = NULL;
	const gchar* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	GError * _inner_error_ = NULL;
#line 157 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_if_fail (self != NULL);
#line 157 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_if_fail (id != NULL);
#line 157 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_if_fail (uri != NULL);
#line 157 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_if_fail (title != NULL);
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp0_ = self->keyfile;
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp1_ = id;
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp2_ = uri;
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_key_file_set_string (_tmp0_, _tmp1_, "uri", _tmp2_);
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp3_ = self->keyfile;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp4_ = id;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp5_ = title;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_key_file_set_string (_tmp3_, _tmp4_, "title", _tmp5_);
#line 161 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp6_ = midori_paths_get_cache_dir ();
#line 161 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp7_ = g_build_path (G_DIR_SEPARATOR_S, _tmp6_, "thumbnails", NULL);
#line 161 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp8_ = _tmp7_;
#line 161 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp9_ = katze_mkdir_with_parents (_tmp8_, 0700);
#line 161 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp10_ = _tmp9_;
#line 161 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_free0 (_tmp10_);
#line 161 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_free0 (_tmp8_);
#line 163 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp11_ = uri;
#line 163 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp12_ = midori_speed_dial_build_thumbnail_path (self, _tmp11_);
#line 163 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	filename = _tmp12_;
#line 1268 "midori-speeddial.c"
	{
		GdkPixbuf* _tmp13_ = NULL;
#line 165 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp13_ = img;
#line 165 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		gdk_pixbuf_save (_tmp13_, filename, "png", &_inner_error_, NULL, "compression", "7", NULL, NULL);
#line 165 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1277 "midori-speeddial.c"
			goto __catch32_g_error;
		}
	}
	goto __finally32;
	__catch32_g_error:
	{
		GError* _error_ = NULL;
		GError* _tmp14_ = NULL;
		const gchar* _tmp15_ = NULL;
#line 164 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_error_ = _inner_error_;
#line 164 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_inner_error_ = NULL;
#line 168 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp14_ = _error_;
#line 168 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp15_ = _tmp14_->message;
#line 168 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_critical ("midori-speeddial.vala:168: Failed to save speed dial thumbnail: %s", _tmp15_);
#line 164 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_error_free0 (_error_);
#line 1299 "midori-speeddial.c"
	}
	__finally32:
#line 164 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 164 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (filename);
#line 164 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 164 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_clear_error (&_inner_error_);
#line 164 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		return;
#line 1312 "midori-speeddial.c"
	}
#line 170 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	midori_speed_dial_save (self);
#line 157 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_free0 (filename);
#line 1318 "midori-speeddial.c"
}


static gchar* midori_speed_dial_build_thumbnail_path (MidoriSpeedDial* self, const gchar* filename) {
	gchar* result = NULL;
	gchar* thumbnail = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_val_if_fail (filename != NULL, NULL);
#line 174 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp0_ = filename;
#line 174 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp1_ = g_compute_checksum_for_string (G_CHECKSUM_MD5, _tmp0_, (gsize) (-1));
#line 174 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp2_ = _tmp1_;
#line 174 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp3_ = g_strconcat (_tmp2_, ".png", NULL);
#line 174 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp4_ = _tmp3_;
#line 174 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_free0 (_tmp2_);
#line 174 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	thumbnail = _tmp4_;
#line 175 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp5_ = midori_paths_get_cache_dir ();
#line 175 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp6_ = g_build_filename (_tmp5_, "thumbnails", thumbnail, NULL);
#line 175 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	result = _tmp6_;
#line 175 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_free0 (thumbnail);
#line 175 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	return result;
#line 1360 "midori-speeddial.c"
}


static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
	gchar* result = NULL;
	GError * _inner_error_ = NULL;
#line 1282 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1282 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (old != NULL, NULL);
#line 1282 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (replacement != NULL, NULL);
#line 1373 "midori-speeddial.c"
	{
		GRegex* regex = NULL;
		const gchar* _tmp0_ = NULL;
		gchar* _tmp1_ = NULL;
		gchar* _tmp2_ = NULL;
		GRegex* _tmp3_ = NULL;
		GRegex* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		GRegex* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp0_ = old;
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp1_ = g_regex_escape_string (_tmp0_, -1);
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp2_ = _tmp1_;
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_);
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp4_ = _tmp3_;
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_g_free0 (_tmp2_);
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		regex = _tmp4_;
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 1404 "midori-speeddial.c"
				goto __catch33_g_regex_error;
			}
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			return NULL;
#line 1413 "midori-speeddial.c"
		}
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp6_ = regex;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp7_ = replacement;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) (-1), 0, _tmp7_, 0, &_inner_error_);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp5_ = _tmp8_;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 1429 "midori-speeddial.c"
				goto __catch33_g_regex_error;
			}
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			return NULL;
#line 1440 "midori-speeddial.c"
		}
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp9_ = _tmp5_;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp5_ = NULL;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		result = _tmp9_;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_g_free0 (_tmp5_);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_g_regex_unref0 (regex);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		return result;
#line 1454 "midori-speeddial.c"
	}
	goto __finally33;
	__catch33_g_regex_error:
	{
		GError* e = NULL;
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		e = _inner_error_;
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_inner_error_ = NULL;
#line 1287 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		g_assert_not_reached ();
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_g_error_free0 (e);
#line 1468 "midori-speeddial.c"
	}
	__finally33:
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		g_clear_error (&_inner_error_);
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		return NULL;
#line 1479 "midori-speeddial.c"
	}
}


const gchar* midori_speed_dial_get_html (MidoriSpeedDial* self, GError** error) {
	const gchar* result = NULL;
	gboolean load_missing = FALSE;
	const gchar* _tmp0_ = NULL;
	gchar* head = NULL;
	gchar* filename = NULL;
	gchar* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
	GKeyFile* _tmp4_ = NULL;
	const gchar* _tmp107_ = NULL;
	GError * _inner_error_ = NULL;
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 179 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	load_missing = TRUE;
#line 181 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp0_ = self->priv->html;
#line 181 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (_tmp0_ != NULL) {
#line 1503 "midori-speeddial.c"
		const gchar* _tmp1_ = NULL;
#line 182 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp1_ = self->priv->html;
#line 182 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		result = _tmp1_;
#line 182 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		return result;
#line 1511 "midori-speeddial.c"
	}
#line 184 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	head = NULL;
#line 185 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp2_ = midori_paths_get_res_filename ("speeddial-head.html");
#line 185 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	filename = _tmp2_;
#line 186 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp4_ = self->keyfile;
#line 186 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (_tmp4_ != NULL) {
#line 1523 "midori-speeddial.c"
		gboolean _tmp5_ = FALSE;
		const gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
		gboolean _tmp8_ = FALSE;
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp6_ = filename;
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp8_ = g_file_get_contents (_tmp6_, &_tmp7_, NULL, &_inner_error_);
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (head);
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		head = _tmp7_;
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp5_ = _tmp8_;
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			g_propagate_error (error, _inner_error_);
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_free0 (filename);
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_free0 (head);
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			return NULL;
#line 1548 "midori-speeddial.c"
		}
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp3_ = _tmp5_;
#line 1552 "midori-speeddial.c"
	} else {
#line 186 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp3_ = FALSE;
#line 1556 "midori-speeddial.c"
	}
#line 186 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (_tmp3_) {
#line 1560 "midori-speeddial.c"
		gchar* header = NULL;
		const gchar* _tmp9_ = NULL;
		const gchar* _tmp10_ = NULL;
		gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
		const gchar* _tmp13_ = NULL;
		gchar* _tmp14_ = NULL;
		gchar* _tmp15_ = NULL;
		const gchar* _tmp16_ = NULL;
		gchar* _tmp17_ = NULL;
		gchar* _tmp18_ = NULL;
		const gchar* _tmp19_ = NULL;
		gchar* _tmp20_ = NULL;
		gchar* _tmp21_ = NULL;
		GString* markup = NULL;
		const gchar* _tmp22_ = NULL;
		GString* _tmp23_ = NULL;
		guint slot_count = 0U;
		gchar* dial_id = NULL;
		guint _tmp24_ = 0U;
		gchar* _tmp25_ = NULL;
		guint next_slot = 0U;
		const gchar* _tmp26_ = NULL;
		gchar* _tmp27_ = NULL;
		gchar* _tmp28_ = NULL;
		gint _tmp29_ = 0;
		guint _tmp30_ = 0U;
		guint grid_index = 0U;
		guint slot_size = 0U;
		guint _tmp35_ = 0U;
		const gchar* _tmp36_ = NULL;
		gboolean _tmp37_ = FALSE;
		const gchar* _tmp38_ = NULL;
		gboolean _tmp39_ = FALSE;
		GString* _tmp40_ = NULL;
		guint _tmp41_ = 0U;
		guint _tmp42_ = 0U;
		guint div_factor = 0U;
		gboolean _tmp43_ = FALSE;
		guint _tmp44_ = 0U;
		guint _tmp45_ = 0U;
		guint margin = 0U;
		guint _tmp47_ = 0U;
		guint _tmp48_ = 0U;
		guint _tmp49_ = 0U;
		guint _tmp50_ = 0U;
		GString* _tmp52_ = NULL;
		guint _tmp53_ = 0U;
		gboolean _tmp54_ = FALSE;
		GKeyFile* _tmp56_ = NULL;
		gsize _tmp57_;
		gchar** _tmp58_ = NULL;
		GString* _tmp99_ = NULL;
		guint _tmp100_ = 0U;
		const gchar* _tmp101_ = NULL;
		GString* _tmp102_ = NULL;
		GString* _tmp103_ = NULL;
		const gchar* _tmp104_ = NULL;
		gchar* _tmp105_ = NULL;
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp9_ = head;
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp10_ = _ ("Speed Dial");
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp11_ = string_replace (_tmp9_, "{title}", _tmp10_);
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp12_ = _tmp11_;
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp13_ = _ ("Click to add a shortcut");
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp14_ = string_replace (_tmp12_, "{click_to_add}", _tmp13_);
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp15_ = _tmp14_;
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp16_ = _ ("Enter shortcut address");
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp17_ = string_replace (_tmp15_, "{enter_shortcut_address}", _tmp16_);
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp18_ = _tmp17_;
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp19_ = _ ("Are you sure you want to delete this shortcut?");
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp20_ = string_replace (_tmp18_, "{are_you_sure}", _tmp19_);
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp21_ = _tmp20_;
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (_tmp18_);
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (_tmp15_);
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (_tmp12_);
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		header = _tmp21_;
#line 192 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp22_ = header;
#line 192 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp23_ = g_string_new (_tmp22_);
#line 192 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		markup = _tmp23_;
#line 194 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		slot_count = (guint) 1;
#line 195 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp25_ = midori_speed_dial_get_next_free_slot (self, &_tmp24_);
#line 195 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		slot_count = _tmp24_;
#line 195 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		dial_id = _tmp25_;
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp26_ = dial_id;
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp27_ = string_substring (_tmp26_, (glong) 5, (glong) (-1));
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp28_ = _tmp27_;
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp29_ = atoi (_tmp28_);
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp30_ = (guint) _tmp29_;
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (_tmp28_);
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		next_slot = _tmp30_;
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		grid_index = (guint) 3;
#line 200 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		while (TRUE) {
#line 1686 "midori-speeddial.c"
			guint _tmp31_ = 0U;
			guint _tmp32_ = 0U;
			guint _tmp33_ = 0U;
			guint _tmp34_ = 0U;
#line 200 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp31_ = grid_index;
#line 200 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp32_ = grid_index;
#line 200 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp33_ = slot_count;
#line 200 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			if (!((_tmp31_ * _tmp32_) < _tmp33_)) {
#line 200 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				break;
#line 1701 "midori-speeddial.c"
			}
#line 201 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp34_ = grid_index;
#line 201 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			grid_index = _tmp34_ + 1;
#line 1707 "midori-speeddial.c"
		}
#line 204 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp35_ = grid_index;
#line 204 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		slot_size = 100 / _tmp35_;
#line 210 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp37_ = midori_paths_is_readonly ();
#line 210 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		if (_tmp37_) {
#line 210 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp36_ = "";
#line 1719 "midori-speeddial.c"
		} else {
#line 210 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp36_ = "<noscript>";
#line 1723 "midori-speeddial.c"
		}
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp39_ = midori_paths_is_readonly ();
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		if (_tmp39_) {
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp38_ = "";
#line 1731 "midori-speeddial.c"
		} else {
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp38_ = "</noscript>";
#line 1735 "midori-speeddial.c"
		}
#line 207 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp40_ = markup;
#line 207 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp41_ = slot_size;
#line 207 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp42_ = slot_size;
#line 207 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_string_append_printf (_tmp40_, "%s<style>.cross { display:none }</style>%s" "<style> div.shortcut { height: %d%%; width: %d%%; }</style>\n", _tmp36_, _tmp38_, _tmp41_ + 1, _tmp42_ - 4);
#line 217 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp44_ = slot_size;
#line 217 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp45_ = grid_index;
#line 217 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		if ((_tmp44_ * _tmp45_) >= ((guint) 100)) {
#line 1751 "midori-speeddial.c"
			guint _tmp46_ = 0U;
#line 217 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp46_ = grid_index;
#line 217 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp43_ = _tmp46_ > ((guint) 4);
#line 1757 "midori-speeddial.c"
		} else {
#line 217 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp43_ = FALSE;
#line 1761 "midori-speeddial.c"
		}
#line 217 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		if (_tmp43_) {
#line 218 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			div_factor = (guint) 8;
#line 1767 "midori-speeddial.c"
		} else {
#line 220 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			div_factor = (guint) 2;
#line 1771 "midori-speeddial.c"
		}
#line 221 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp47_ = slot_size;
#line 221 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp48_ = grid_index;
#line 221 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp49_ = div_factor;
#line 221 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		margin = (100 - ((_tmp47_ - 4) * _tmp48_)) / _tmp49_;
#line 222 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp50_ = margin;
#line 222 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		if (_tmp50_ > ((guint) 9)) {
#line 1785 "midori-speeddial.c"
			guint _tmp51_ = 0U;
#line 223 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp51_ = margin;
#line 223 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			margin = _tmp51_ % 10;
#line 1791 "midori-speeddial.c"
		}
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp52_ = markup;
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp53_ = margin;
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_string_append_printf (_tmp52_, "<style> body { overflow:hidden } #content { margin-left: %u%%; }</styl" \
"e>", _tmp53_);
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp54_ = self->priv->_close_buttons_left;
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		if (_tmp54_) {
#line 1803 "midori-speeddial.c"
			GString* _tmp55_ = NULL;
#line 228 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp55_ = markup;
#line 228 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			g_string_append_printf (_tmp55_, "<style>.cross { left: -14px }</style>");
#line 1809 "midori-speeddial.c"
		}
#line 231 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp56_ = self->keyfile;
#line 231 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp58_ = g_key_file_get_groups (_tmp56_, &_tmp57_);
#line 1815 "midori-speeddial.c"
		{
			gchar** tile_collection = NULL;
			gint tile_collection_length1 = 0;
			gint _tile_collection_size_ = 0;
			gint tile_it = 0;
#line 231 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			tile_collection = _tmp58_;
#line 231 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			tile_collection_length1 = _tmp57_;
#line 231 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			for (tile_it = 0; tile_it < _tmp57_; tile_it = tile_it + 1) {
#line 1827 "midori-speeddial.c"
				gchar* _tmp59_ = NULL;
				gchar* tile = NULL;
#line 231 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp59_ = g_strdup (tile_collection[tile_it]);
#line 231 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				tile = _tmp59_;
#line 1834 "midori-speeddial.c"
				{
					{
						gchar* uri = NULL;
						GKeyFile* _tmp60_ = NULL;
						const gchar* _tmp61_ = NULL;
						gchar* _tmp62_ = NULL;
						gboolean _tmp63_ = FALSE;
						gboolean _tmp64_ = FALSE;
						const gchar* _tmp65_ = NULL;
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_tmp60_ = self->keyfile;
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_tmp61_ = tile;
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_tmp62_ = g_key_file_get_string (_tmp60_, _tmp61_, "uri", &_inner_error_);
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						uri = _tmp62_;
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							if (_inner_error_->domain == G_KEY_FILE_ERROR) {
#line 1856 "midori-speeddial.c"
								goto __catch34_g_key_file_error;
							}
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_g_free0 (tile);
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							tile_collection = (_vala_array_free (tile_collection, tile_collection_length1, (GDestroyNotify) g_free), NULL);
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_g_free0 (dial_id);
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_g_string_free0 (markup);
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_g_free0 (header);
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_g_free0 (filename);
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_g_free0 (head);
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							g_clear_error (&_inner_error_);
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							return NULL;
#line 1879 "midori-speeddial.c"
						}
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_tmp65_ = uri;
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						if (_tmp65_ != NULL) {
#line 1885 "midori-speeddial.c"
							const gchar* _tmp66_ = NULL;
							const gchar* _tmp67_ = NULL;
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp66_ = uri;
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp67_ = strstr (_tmp66_, "://");
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp64_ = _tmp67_ != NULL;
#line 1894 "midori-speeddial.c"
						} else {
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp64_ = FALSE;
#line 1898 "midori-speeddial.c"
						}
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						if (_tmp64_) {
#line 1902 "midori-speeddial.c"
							const gchar* _tmp68_ = NULL;
							gboolean _tmp69_ = FALSE;
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp68_ = tile;
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp69_ = g_str_has_prefix (_tmp68_, "Dial ");
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp63_ = _tmp69_;
#line 1911 "midori-speeddial.c"
						} else {
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp63_ = FALSE;
#line 1915 "midori-speeddial.c"
						}
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						if (_tmp63_) {
#line 1919 "midori-speeddial.c"
							gchar* title = NULL;
							GKeyFile* _tmp70_ = NULL;
							const gchar* _tmp71_ = NULL;
							gchar* _tmp72_ = NULL;
							gchar* thumb_filename = NULL;
							const gchar* _tmp73_ = NULL;
							gchar* _tmp74_ = NULL;
							guint slot = 0U;
							const gchar* _tmp75_ = NULL;
							gchar* _tmp76_ = NULL;
							gchar* _tmp77_ = NULL;
							gint _tmp78_ = 0;
							guint _tmp79_ = 0U;
							gchar* encoded = NULL;
							const gchar* _tmp88_ = NULL;
							const gchar* _tmp89_ = NULL;
							const gchar* _tmp90_ = NULL;
							const gchar* _tmp91_ = NULL;
							GString* _tmp92_ = NULL;
							guint _tmp93_ = 0U;
							const gchar* _tmp94_ = NULL;
							const gchar* _tmp95_ = NULL;
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp70_ = self->keyfile;
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp71_ = tile;
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp72_ = g_key_file_get_string (_tmp70_, _tmp71_, "title", &_inner_error_);
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							title = _tmp72_;
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (uri);
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								if (_inner_error_->domain == G_KEY_FILE_ERROR) {
#line 1956 "midori-speeddial.c"
									goto __catch34_g_key_file_error;
								}
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (uri);
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (tile);
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								tile_collection = (_vala_array_free (tile_collection, tile_collection_length1, (GDestroyNotify) g_free), NULL);
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (dial_id);
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_string_free0 (markup);
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (header);
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (filename);
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (head);
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								g_clear_error (&_inner_error_);
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								return NULL;
#line 1981 "midori-speeddial.c"
							}
#line 236 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp73_ = uri;
#line 236 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp74_ = midori_speed_dial_build_thumbnail_path (self, _tmp73_);
#line 236 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							thumb_filename = _tmp74_;
#line 237 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp75_ = tile;
#line 237 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp76_ = string_substring (_tmp75_, (glong) 5, (glong) (-1));
#line 237 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp77_ = _tmp76_;
#line 237 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp78_ = atoi (_tmp77_);
#line 237 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp79_ = (guint) _tmp78_;
#line 237 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_g_free0 (_tmp77_);
#line 237 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							slot = _tmp79_;
#line 2003 "midori-speeddial.c"
							{
								guint8* thumb = NULL;
								gint thumb_length1 = 0;
								gint _thumb_size_ = 0;
								const gchar* _tmp80_ = NULL;
								guint8* _tmp81_ = NULL;
								size_t _tmp82_;
								guint8* _tmp83_ = NULL;
								gint _tmp83__length1 = 0;
								gchar* _tmp84_ = NULL;
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_tmp80_ = thumb_filename;
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								g_file_get_contents (_tmp80_, (gchar**) (&_tmp81_), &_tmp82_, &_inner_error_);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								thumb = (g_free (thumb), NULL);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								thumb = _tmp81_;
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								thumb_length1 = _tmp82_;
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_thumb_size_ = thumb_length1;
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									thumb = (g_free (thumb), NULL);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									if (_inner_error_->domain == G_FILE_ERROR) {
#line 2032 "midori-speeddial.c"
										goto __catch35_g_file_error;
									}
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									thumb = (g_free (thumb), NULL);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									_g_free0 (encoded);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									_g_free0 (thumb_filename);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									_g_free0 (title);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									_g_free0 (uri);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									_g_free0 (tile);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									tile_collection = (_vala_array_free (tile_collection, tile_collection_length1, (GDestroyNotify) g_free), NULL);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									_g_free0 (dial_id);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									_g_string_free0 (markup);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									_g_free0 (header);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									_g_free0 (filename);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									_g_free0 (head);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									g_clear_error (&_inner_error_);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									return NULL;
#line 2065 "midori-speeddial.c"
								}
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_tmp83_ = thumb;
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_tmp83__length1 = thumb_length1;
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_tmp84_ = g_base64_encode (_tmp83_, _tmp83__length1);
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (encoded);
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								encoded = _tmp84_;
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								thumb = (g_free (thumb), NULL);
#line 2079 "midori-speeddial.c"
							}
							goto __finally35;
							__catch35_g_file_error:
							{
								GError* _error_ = NULL;
								gboolean _tmp85_ = FALSE;
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_error_ = _inner_error_;
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_inner_error_ = NULL;
#line 245 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (encoded);
#line 245 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								encoded = NULL;
#line 246 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_tmp85_ = load_missing;
#line 246 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								if (_tmp85_) {
#line 2098 "midori-speeddial.c"
									const gchar* _tmp86_ = NULL;
									const gchar* _tmp87_ = NULL;
#line 247 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									_tmp86_ = tile;
#line 247 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									_tmp87_ = uri;
#line 247 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									midori_speed_dial_get_thumb (self, _tmp86_, _tmp87_);
#line 2107 "midori-speeddial.c"
								}
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_error_free0 (_error_);
#line 2111 "midori-speeddial.c"
							}
							__finally35:
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (encoded);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (thumb_filename);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (title);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (uri);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								if (_inner_error_->domain == G_KEY_FILE_ERROR) {
#line 2126 "midori-speeddial.c"
									goto __catch34_g_key_file_error;
								}
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (encoded);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (thumb_filename);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (title);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (uri);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (tile);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								tile_collection = (_vala_array_free (tile_collection, tile_collection_length1, (GDestroyNotify) g_free), NULL);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (dial_id);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_string_free0 (markup);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (header);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (filename);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_g_free0 (head);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								g_clear_error (&_inner_error_);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								return NULL;
#line 2157 "midori-speeddial.c"
							}
#line 255 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp89_ = encoded;
#line 255 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp88_ = _tmp89_;
#line 255 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							if (_tmp88_ == NULL) {
#line 255 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_tmp88_ = "";
#line 2167 "midori-speeddial.c"
							}
#line 255 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp91_ = title;
#line 255 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp90_ = _tmp91_;
#line 255 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							if (_tmp90_ == NULL) {
#line 255 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_tmp90_ = "";
#line 2177 "midori-speeddial.c"
							}
#line 249 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp92_ = markup;
#line 249 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp93_ = slot;
#line 249 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp94_ = uri;
#line 249 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp95_ = title;
#line 249 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							g_string_append_printf (_tmp92_, "\n" \
"                                <div class=\"shortcut\" id=\"%u\"><div" \
" class=\"preview\">\n" \
"                                <a class=\"cross\" href=\"#\"></a>\n" \
"                                <a href=\"%s\"><img src=\"data:image/p" \
"ng;base64,%s\" title='%s'></a>\n" \
"                                </div><input type=\"text\" class=\"tit" \
"le selectable\" value=\"%s\"></div>\n" \
"                                ", _tmp93_, _tmp94_, _tmp88_, _tmp95_, _tmp90_);
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_g_free0 (encoded);
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_g_free0 (thumb_filename);
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_g_free0 (title);
#line 2195 "midori-speeddial.c"
						} else {
							const gchar* _tmp96_ = NULL;
#line 257 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							_tmp96_ = tile;
#line 257 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
							if (g_strcmp0 (_tmp96_, "settings") != 0) {
#line 2202 "midori-speeddial.c"
								GKeyFile* _tmp97_ = NULL;
								const gchar* _tmp98_ = NULL;
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_tmp97_ = self->keyfile;
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								_tmp98_ = tile;
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								g_key_file_remove_group (_tmp97_, _tmp98_, &_inner_error_);
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
								if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									_g_free0 (uri);
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									if (_inner_error_->domain == G_KEY_FILE_ERROR) {
#line 2217 "midori-speeddial.c"
										goto __catch34_g_key_file_error;
									}
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									_g_free0 (uri);
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									_g_free0 (tile);
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									tile_collection = (_vala_array_free (tile_collection, tile_collection_length1, (GDestroyNotify) g_free), NULL);
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									_g_free0 (dial_id);
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									_g_string_free0 (markup);
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									_g_free0 (header);
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									_g_free0 (filename);
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									_g_free0 (head);
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									g_clear_error (&_inner_error_);
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
									return NULL;
#line 2242 "midori-speeddial.c"
								}
							}
						}
#line 232 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (uri);
#line 2248 "midori-speeddial.c"
					}
					goto __finally34;
					__catch34_g_key_file_error:
					{
						GError* _error_ = NULL;
#line 232 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_error_ = _inner_error_;
#line 232 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_inner_error_ = NULL;
#line 232 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_error_free0 (_error_);
#line 2260 "midori-speeddial.c"
					}
					__finally34:
#line 232 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 232 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						g_propagate_error (error, _inner_error_);
#line 232 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (tile);
#line 232 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						tile_collection = (_vala_array_free (tile_collection, tile_collection_length1, (GDestroyNotify) g_free), NULL);
#line 232 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (dial_id);
#line 232 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_string_free0 (markup);
#line 232 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (header);
#line 232 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (filename);
#line 232 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (head);
#line 232 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						return NULL;
#line 2283 "midori-speeddial.c"
					}
#line 231 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_g_free0 (tile);
#line 2287 "midori-speeddial.c"
				}
			}
#line 231 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			tile_collection = (_vala_array_free (tile_collection, tile_collection_length1, (GDestroyNotify) g_free), NULL);
#line 2292 "midori-speeddial.c"
		}
#line 263 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp99_ = markup;
#line 263 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp100_ = next_slot;
#line 263 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp101_ = _ ("Click to add a shortcut");
#line 263 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_string_append_printf (_tmp99_, "\n" \
"                    <div class=\"shortcut\" id=\"%u\"><div class=\"pre" \
"view new\">\n" \
"                    <a class=\"add\" href=\"#\"></a>\n" \
"                    </div><div class=\"title\">%s</div></div>\n" \
"                    ", _tmp100_, _tmp101_);
#line 269 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp102_ = markup;
#line 269 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_string_append_printf (_tmp102_, "</div>\n</body>\n</html>\n");
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp103_ = markup;
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp104_ = _tmp103_->str;
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp105_ = g_strdup (_tmp104_);
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (self->priv->html);
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		self->priv->html = _tmp105_;
#line 186 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (dial_id);
#line 186 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_string_free0 (markup);
#line 186 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (header);
#line 2322 "midori-speeddial.c"
	} else {
		gchar* _tmp106_ = NULL;
#line 273 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp106_ = g_strdup ("");
#line 273 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (self->priv->html);
#line 273 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		self->priv->html = _tmp106_;
#line 2331 "midori-speeddial.c"
	}
#line 275 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp107_ = self->priv->html;
#line 275 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	result = _tmp107_;
#line 275 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_free0 (filename);
#line 275 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_free0 (head);
#line 275 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	return result;
#line 2343 "midori-speeddial.c"
}


void midori_speed_dial_save_message (MidoriSpeedDial* self, const gchar* message, GError** error) {
	const gchar* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gchar* msg = NULL;
	const gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar** parts = NULL;
	const gchar* _tmp6_ = NULL;
	gchar** _tmp7_ = NULL;
	gchar** _tmp8_ = NULL;
	gint parts_length1 = 0;
	gint _parts_size_ = 0;
	gchar** _tmp9_ = NULL;
	gint _tmp9__length1 = 0;
	const gchar* _tmp10_ = NULL;
	gchar* action = NULL;
	gchar** _tmp12_ = NULL;
	gint _tmp12__length1 = 0;
	const gchar* _tmp13_ = NULL;
	gchar* _tmp14_ = NULL;
	gchar** _tmp15_ = NULL;
	gint _tmp15__length1 = 0;
	const gchar* _tmp16_ = NULL;
	gchar* dial_id = NULL;
	gchar** _tmp18_ = NULL;
	gint _tmp18__length1 = 0;
	const gchar* _tmp19_ = NULL;
	gchar* _tmp20_ = NULL;
	const gchar* _tmp21_ = NULL;
	GError * _inner_error_ = NULL;
#line 278 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_if_fail (self != NULL);
#line 278 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_if_fail (message != NULL);
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp0_ = message;
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp1_ = g_str_has_prefix (_tmp0_, "speed_dial-save-");
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (!_tmp1_) {
#line 2387 "midori-speeddial.c"
		const gchar* _tmp2_ = NULL;
		GError* _tmp3_ = NULL;
#line 280 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp2_ = message;
#line 280 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp3_ = g_error_new (MIDORI_SPEED_DIAL_ERROR, MIDORI_SPEED_DIAL_ERROR_INVALID_MESSAGE, "Invalid message '%s'", _tmp2_);
#line 280 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_inner_error_ = _tmp3_;
#line 280 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_propagate_error (error, _inner_error_);
#line 280 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		return;
#line 2400 "midori-speeddial.c"
	}
#line 282 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp4_ = message;
#line 282 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp5_ = string_substring (_tmp4_, (glong) 16, (glong) (-1));
#line 282 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	msg = _tmp5_;
#line 283 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp6_ = msg;
#line 283 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp8_ = _tmp7_ = g_strsplit (_tmp6_, " ", 3);
#line 283 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	parts = _tmp8_;
#line 283 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	parts_length1 = _vala_array_length (_tmp7_);
#line 283 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_parts_size_ = parts_length1;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp9_ = parts;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp9__length1 = parts_length1;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp10_ = _tmp9_[0];
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (_tmp10_ == NULL) {
#line 2426 "midori-speeddial.c"
		GError* _tmp11_ = NULL;
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp11_ = g_error_new_literal (MIDORI_SPEED_DIAL_ERROR, MIDORI_SPEED_DIAL_ERROR_NO_ACTION, "No action.");
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_inner_error_ = _tmp11_;
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_propagate_error (error, _inner_error_);
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		parts = (_vala_array_free (parts, parts_length1, (GDestroyNotify) g_free), NULL);
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (msg);
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		return;
#line 2440 "midori-speeddial.c"
	}
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp12_ = parts;
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp12__length1 = parts_length1;
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp13_ = _tmp12_[0];
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp14_ = g_strdup (_tmp13_);
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	action = _tmp14_;
#line 288 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp15_ = parts;
#line 288 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp15__length1 = parts_length1;
#line 288 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp16_ = _tmp15_[1];
#line 288 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (_tmp16_ == NULL) {
#line 2460 "midori-speeddial.c"
		GError* _tmp17_ = NULL;
#line 289 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp17_ = g_error_new_literal (MIDORI_SPEED_DIAL_ERROR, MIDORI_SPEED_DIAL_ERROR_NO_ID, "No ID argument.");
#line 289 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_inner_error_ = _tmp17_;
#line 289 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_propagate_error (error, _inner_error_);
#line 289 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (action);
#line 289 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		parts = (_vala_array_free (parts, parts_length1, (GDestroyNotify) g_free), NULL);
#line 289 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (msg);
#line 289 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		return;
#line 2476 "midori-speeddial.c"
	}
#line 290 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp18_ = parts;
#line 290 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp18__length1 = parts_length1;
#line 290 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp19_ = _tmp18_[1];
#line 290 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp20_ = g_strconcat ("Dial ", _tmp19_, NULL);
#line 290 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	dial_id = _tmp20_;
#line 292 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp21_ = action;
#line 292 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (g_strcmp0 (_tmp21_, "delete") == 0) {
#line 2492 "midori-speeddial.c"
		gchar* uri = NULL;
		GKeyFile* _tmp22_ = NULL;
		const gchar* _tmp23_ = NULL;
		gchar* _tmp24_ = NULL;
		gchar* file_path = NULL;
		const gchar* _tmp25_ = NULL;
		gchar* _tmp26_ = NULL;
		GKeyFile* _tmp27_ = NULL;
		const gchar* _tmp28_ = NULL;
		const gchar* _tmp29_ = NULL;
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp22_ = self->keyfile;
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp23_ = dial_id;
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp24_ = g_key_file_get_string (_tmp22_, _tmp23_, "uri", &_inner_error_);
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		uri = _tmp24_;
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			g_propagate_error (error, _inner_error_);
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_free0 (dial_id);
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_free0 (action);
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			parts = (_vala_array_free (parts, parts_length1, (GDestroyNotify) g_free), NULL);
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_free0 (msg);
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			return;
#line 2525 "midori-speeddial.c"
		}
#line 294 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp25_ = uri;
#line 294 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp26_ = midori_speed_dial_build_thumbnail_path (self, _tmp25_);
#line 294 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		file_path = _tmp26_;
#line 295 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp27_ = self->keyfile;
#line 295 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp28_ = dial_id;
#line 295 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_key_file_remove_group (_tmp27_, _tmp28_, &_inner_error_);
#line 295 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 295 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			g_propagate_error (error, _inner_error_);
#line 295 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_free0 (file_path);
#line 295 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_free0 (uri);
#line 295 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_free0 (dial_id);
#line 295 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_free0 (action);
#line 295 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			parts = (_vala_array_free (parts, parts_length1, (GDestroyNotify) g_free), NULL);
#line 295 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_g_free0 (msg);
#line 295 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			return;
#line 2557 "midori-speeddial.c"
		}
#line 296 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp29_ = file_path;
#line 296 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_unlink (_tmp29_);
#line 292 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (file_path);
#line 292 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (uri);
#line 2567 "midori-speeddial.c"
	} else {
		const gchar* _tmp30_ = NULL;
#line 298 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp30_ = action;
#line 298 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		if (g_strcmp0 (_tmp30_, "add") == 0) {
#line 2574 "midori-speeddial.c"
			gchar** _tmp31_ = NULL;
			gint _tmp31__length1 = 0;
			const gchar* _tmp32_ = NULL;
			GKeyFile* _tmp34_ = NULL;
			const gchar* _tmp35_ = NULL;
			gchar** _tmp36_ = NULL;
			gint _tmp36__length1 = 0;
			const gchar* _tmp37_ = NULL;
			const gchar* _tmp38_ = NULL;
			gchar** _tmp39_ = NULL;
			gint _tmp39__length1 = 0;
			const gchar* _tmp40_ = NULL;
#line 299 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp31_ = parts;
#line 299 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp31__length1 = parts_length1;
#line 299 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp32_ = _tmp31_[2];
#line 299 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			if (_tmp32_ == NULL) {
#line 2595 "midori-speeddial.c"
				GError* _tmp33_ = NULL;
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp33_ = g_error_new_literal (MIDORI_SPEED_DIAL_ERROR, MIDORI_SPEED_DIAL_ERROR_NO_URL, "No URL argument.");
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_inner_error_ = _tmp33_;
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				g_propagate_error (error, _inner_error_);
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_g_free0 (dial_id);
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_g_free0 (action);
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				parts = (_vala_array_free (parts, parts_length1, (GDestroyNotify) g_free), NULL);
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_g_free0 (msg);
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				return;
#line 2613 "midori-speeddial.c"
			}
#line 301 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp34_ = self->keyfile;
#line 301 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp35_ = dial_id;
#line 301 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp36_ = parts;
#line 301 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp36__length1 = parts_length1;
#line 301 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp37_ = _tmp36_[2];
#line 301 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			g_key_file_set_string (_tmp34_, _tmp35_, "uri", _tmp37_);
#line 302 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp38_ = dial_id;
#line 302 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp39_ = parts;
#line 302 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp39__length1 = parts_length1;
#line 302 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp40_ = _tmp39_[2];
#line 302 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			midori_speed_dial_get_thumb (self, _tmp38_, _tmp40_);
#line 2637 "midori-speeddial.c"
		} else {
			const gchar* _tmp41_ = NULL;
#line 304 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp41_ = action;
#line 304 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			if (g_strcmp0 (_tmp41_, "rename") == 0) {
#line 2644 "midori-speeddial.c"
				gchar** _tmp42_ = NULL;
				gint _tmp42__length1 = 0;
				const gchar* _tmp43_ = NULL;
				gchar* title = NULL;
				gchar** _tmp45_ = NULL;
				gint _tmp45__length1 = 0;
				const gchar* _tmp46_ = NULL;
				gchar* _tmp47_ = NULL;
				GKeyFile* _tmp48_ = NULL;
				const gchar* _tmp49_ = NULL;
				const gchar* _tmp50_ = NULL;
#line 305 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp42_ = parts;
#line 305 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp42__length1 = parts_length1;
#line 305 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp43_ = _tmp42_[2];
#line 305 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				if (_tmp43_ == NULL) {
#line 2664 "midori-speeddial.c"
					GError* _tmp44_ = NULL;
#line 306 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp44_ = g_error_new_literal (MIDORI_SPEED_DIAL_ERROR, MIDORI_SPEED_DIAL_ERROR_NO_TITLE, "No title argument.");
#line 306 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_inner_error_ = _tmp44_;
#line 306 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					g_propagate_error (error, _inner_error_);
#line 306 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_g_free0 (dial_id);
#line 306 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_g_free0 (action);
#line 306 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					parts = (_vala_array_free (parts, parts_length1, (GDestroyNotify) g_free), NULL);
#line 306 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_g_free0 (msg);
#line 306 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					return;
#line 2682 "midori-speeddial.c"
				}
#line 307 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp45_ = parts;
#line 307 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp45__length1 = parts_length1;
#line 307 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp46_ = _tmp45_[2];
#line 307 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp47_ = g_strdup (_tmp46_);
#line 307 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				title = _tmp47_;
#line 308 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp48_ = self->keyfile;
#line 308 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp49_ = dial_id;
#line 308 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp50_ = title;
#line 308 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				g_key_file_set_string (_tmp48_, _tmp49_, "title", _tmp50_);
#line 304 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_g_free0 (title);
#line 2704 "midori-speeddial.c"
			} else {
				const gchar* _tmp51_ = NULL;
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp51_ = action;
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				if (g_strcmp0 (_tmp51_, "swap") == 0) {
#line 2711 "midori-speeddial.c"
					gchar** _tmp52_ = NULL;
					gint _tmp52__length1 = 0;
					const gchar* _tmp53_ = NULL;
					gchar* dial2_id = NULL;
					gchar** _tmp55_ = NULL;
					gint _tmp55__length1 = 0;
					const gchar* _tmp56_ = NULL;
					gchar* _tmp57_ = NULL;
					gchar* uri = NULL;
					GKeyFile* _tmp58_ = NULL;
					const gchar* _tmp59_ = NULL;
					gchar* _tmp60_ = NULL;
					gchar* title = NULL;
					GKeyFile* _tmp61_ = NULL;
					const gchar* _tmp62_ = NULL;
					gchar* _tmp63_ = NULL;
					gchar* uri2 = NULL;
					GKeyFile* _tmp64_ = NULL;
					const gchar* _tmp65_ = NULL;
					gchar* _tmp66_ = NULL;
					gchar* title2 = NULL;
					GKeyFile* _tmp67_ = NULL;
					const gchar* _tmp68_ = NULL;
					gchar* _tmp69_ = NULL;
					GKeyFile* _tmp70_ = NULL;
					const gchar* _tmp71_ = NULL;
					const gchar* _tmp72_ = NULL;
					GKeyFile* _tmp73_ = NULL;
					const gchar* _tmp74_ = NULL;
					const gchar* _tmp75_ = NULL;
					GKeyFile* _tmp76_ = NULL;
					const gchar* _tmp77_ = NULL;
					const gchar* _tmp78_ = NULL;
					GKeyFile* _tmp79_ = NULL;
					const gchar* _tmp80_ = NULL;
					const gchar* _tmp81_ = NULL;
#line 311 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp52_ = parts;
#line 311 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp52__length1 = parts_length1;
#line 311 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp53_ = _tmp52_[2];
#line 311 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					if (_tmp53_ == NULL) {
#line 2756 "midori-speeddial.c"
						GError* _tmp54_ = NULL;
#line 312 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_tmp54_ = g_error_new_literal (MIDORI_SPEED_DIAL_ERROR, MIDORI_SPEED_DIAL_ERROR_NO_ID2, "No ID2 argument.");
#line 312 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_inner_error_ = _tmp54_;
#line 312 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						g_propagate_error (error, _inner_error_);
#line 312 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (dial_id);
#line 312 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (action);
#line 312 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						parts = (_vala_array_free (parts, parts_length1, (GDestroyNotify) g_free), NULL);
#line 312 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (msg);
#line 312 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						return;
#line 2774 "midori-speeddial.c"
					}
#line 313 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp55_ = parts;
#line 313 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp55__length1 = parts_length1;
#line 313 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp56_ = _tmp55_[2];
#line 313 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp57_ = g_strconcat ("Dial ", _tmp56_, NULL);
#line 313 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					dial2_id = _tmp57_;
#line 315 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp58_ = self->keyfile;
#line 315 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp59_ = dial_id;
#line 315 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp60_ = g_key_file_get_string (_tmp58_, _tmp59_, "uri", &_inner_error_);
#line 315 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					uri = _tmp60_;
#line 315 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 315 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						g_propagate_error (error, _inner_error_);
#line 315 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (dial2_id);
#line 315 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (dial_id);
#line 315 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (action);
#line 315 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						parts = (_vala_array_free (parts, parts_length1, (GDestroyNotify) g_free), NULL);
#line 315 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (msg);
#line 315 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						return;
#line 2810 "midori-speeddial.c"
					}
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp61_ = self->keyfile;
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp62_ = dial_id;
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp63_ = g_key_file_get_string (_tmp61_, _tmp62_, "title", &_inner_error_);
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					title = _tmp63_;
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						g_propagate_error (error, _inner_error_);
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (uri);
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (dial2_id);
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (dial_id);
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (action);
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						parts = (_vala_array_free (parts, parts_length1, (GDestroyNotify) g_free), NULL);
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (msg);
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						return;
#line 2838 "midori-speeddial.c"
					}
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp64_ = self->keyfile;
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp65_ = dial2_id;
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp66_ = g_key_file_get_string (_tmp64_, _tmp65_, "uri", &_inner_error_);
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					uri2 = _tmp66_;
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						g_propagate_error (error, _inner_error_);
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (title);
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (uri);
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (dial2_id);
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (dial_id);
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (action);
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						parts = (_vala_array_free (parts, parts_length1, (GDestroyNotify) g_free), NULL);
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (msg);
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						return;
#line 2868 "midori-speeddial.c"
					}
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp67_ = self->keyfile;
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp68_ = dial2_id;
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp69_ = g_key_file_get_string (_tmp67_, _tmp68_, "title", &_inner_error_);
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					title2 = _tmp69_;
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						g_propagate_error (error, _inner_error_);
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (uri2);
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (title);
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (uri);
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (dial2_id);
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (dial_id);
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (action);
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						parts = (_vala_array_free (parts, parts_length1, (GDestroyNotify) g_free), NULL);
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						_g_free0 (msg);
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
						return;
#line 2900 "midori-speeddial.c"
					}
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp70_ = self->keyfile;
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp71_ = dial_id;
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp72_ = uri2;
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					g_key_file_set_string (_tmp70_, _tmp71_, "uri", _tmp72_);
#line 321 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp73_ = self->keyfile;
#line 321 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp74_ = dial2_id;
#line 321 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp75_ = uri;
#line 321 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					g_key_file_set_string (_tmp73_, _tmp74_, "uri", _tmp75_);
#line 322 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp76_ = self->keyfile;
#line 322 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp77_ = dial_id;
#line 322 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp78_ = title2;
#line 322 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					g_key_file_set_string (_tmp76_, _tmp77_, "title", _tmp78_);
#line 323 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp79_ = self->keyfile;
#line 323 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp80_ = dial2_id;
#line 323 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp81_ = title;
#line 323 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					g_key_file_set_string (_tmp79_, _tmp80_, "title", _tmp81_);
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_g_free0 (title2);
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_g_free0 (uri2);
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_g_free0 (title);
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_g_free0 (uri);
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_g_free0 (dial2_id);
#line 2944 "midori-speeddial.c"
				} else {
					const gchar* _tmp82_ = NULL;
					GError* _tmp83_ = NULL;
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp82_ = action;
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_tmp83_ = g_error_new (MIDORI_SPEED_DIAL_ERROR, MIDORI_SPEED_DIAL_ERROR_INVALID_ACTION, "Invalid action '%s'", _tmp82_);
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_inner_error_ = _tmp83_;
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					g_propagate_error (error, _inner_error_);
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_g_free0 (dial_id);
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_g_free0 (action);
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					parts = (_vala_array_free (parts, parts_length1, (GDestroyNotify) g_free), NULL);
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_g_free0 (msg);
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					return;
#line 2966 "midori-speeddial.c"
				}
			}
		}
	}
#line 328 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	midori_speed_dial_save (self);
#line 278 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_free0 (dial_id);
#line 278 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_free0 (action);
#line 278 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	parts = (_vala_array_free (parts, parts_length1, (GDestroyNotify) g_free), NULL);
#line 278 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_free0 (msg);
#line 2981 "midori-speeddial.c"
}


static void midori_speed_dial_save (MidoriSpeedDial* self) {
	GError * _inner_error_ = NULL;
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_if_fail (self != NULL);
#line 332 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_free0 (self->priv->html);
#line 332 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self->priv->html = NULL;
#line 2993 "midori-speeddial.c"
	{
		const gchar* _tmp0_ = NULL;
		GKeyFile* _tmp1_ = NULL;
		gchar* _tmp2_ = NULL;
		gchar* _tmp3_ = NULL;
#line 335 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp0_ = self->priv->filename;
#line 335 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp1_ = self->keyfile;
#line 335 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp2_ = g_key_file_to_data (_tmp1_, NULL, NULL);
#line 335 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp3_ = _tmp2_;
#line 335 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_file_set_contents (_tmp0_, _tmp3_, (gssize) (-1), &_inner_error_);
#line 335 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_free0 (_tmp3_);
#line 335 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3013 "midori-speeddial.c"
			goto __catch36_g_error;
		}
	}
	goto __finally36;
	__catch36_g_error:
	{
		GError* _error_ = NULL;
		GError* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_error_ = _inner_error_;
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_inner_error_ = NULL;
#line 338 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp4_ = _error_;
#line 338 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp5_ = _tmp4_->message;
#line 338 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_critical ("midori-speeddial.vala:338: Failed to update speed dial: %s", _tmp5_);
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_error_free0 (_error_);
#line 3035 "midori-speeddial.c"
	}
	__finally36:
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_clear_error (&_inner_error_);
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		return;
#line 3046 "midori-speeddial.c"
	}
#line 340 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_signal_emit_by_name (self, "refresh");
#line 3050 "midori-speeddial.c"
}


static void _midori_speed_dial_load_status_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 348 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	midori_speed_dial_load_status ((MidoriSpeedDial*) self, _sender, pspec);
#line 3057 "midori-speeddial.c"
}


static gboolean _midori_speed_dial_save_thumbnail_gsource_func (gpointer self) {
	gboolean result;
	result = midori_speed_dial_save_thumbnail ((MidoriSpeedDial*) self);
#line 350 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	return result;
#line 3066 "midori-speeddial.c"
}


static void midori_speed_dial_load_status (MidoriSpeedDial* self, GObject* thumb_view_, GParamSpec* pspec) {
	gboolean _tmp0_ = FALSE;
	WebKitWebView* _tmp1_ = NULL;
	WebKitLoadStatus _tmp2_ = 0;
	WebKitLoadStatus _tmp3_ = 0;
	WebKitWebView* _tmp7_ = NULL;
	guint _tmp8_ = 0U;
	GQuark _tmp9_ = 0U;
#line 344 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_if_fail (self != NULL);
#line 344 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_if_fail (thumb_view_ != NULL);
#line 344 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_if_fail (pspec != NULL);
#line 345 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp1_ = self->priv->thumb_view;
#line 345 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp2_ = webkit_web_view_get_load_status (_tmp1_);
#line 345 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp3_ = _tmp2_;
#line 345 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (_tmp3_ != WEBKIT_LOAD_FINISHED) {
#line 3092 "midori-speeddial.c"
		WebKitWebView* _tmp4_ = NULL;
		WebKitLoadStatus _tmp5_ = 0;
		WebKitLoadStatus _tmp6_ = 0;
#line 346 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp4_ = self->priv->thumb_view;
#line 346 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp5_ = webkit_web_view_get_load_status (_tmp4_);
#line 346 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp6_ = _tmp5_;
#line 346 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp0_ = _tmp6_ != WEBKIT_LOAD_FAILED;
#line 3104 "midori-speeddial.c"
	} else {
#line 345 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp0_ = FALSE;
#line 3108 "midori-speeddial.c"
	}
#line 345 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (_tmp0_) {
#line 347 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		return;
#line 3114 "midori-speeddial.c"
	}
#line 348 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp7_ = self->priv->thumb_view;
#line 348 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_signal_parse_name ("notify::load-status", G_TYPE_OBJECT, &_tmp8_, &_tmp9_, TRUE);
#line 348 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_signal_handlers_disconnect_matched ((GObject*) _tmp7_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_DETAIL | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp8_, _tmp9_, NULL, (GCallback) _midori_speed_dial_load_status_g_object_notify, self);
#line 350 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _midori_speed_dial_save_thumbnail_gsource_func, g_object_ref (self), g_object_unref);
#line 3124 "midori-speeddial.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 358 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	return self ? g_object_ref (self) : NULL;
#line 3131 "midori-speeddial.c"
}


static gpointer _midori_speed_dial_spec_ref0 (gpointer self) {
#line 385 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	return self ? midori_speed_dial_spec_ref (self) : NULL;
#line 3138 "midori-speeddial.c"
}


static gboolean midori_speed_dial_save_thumbnail (MidoriSpeedDial* self) {
	gboolean result = FALSE;
	MidoriSpeedDialSpec* _tmp0_ = NULL;
	GtkOffscreenWindow* offscreen = NULL;
	WebKitWebView* _tmp1_ = NULL;
	GtkContainer* _tmp2_ = NULL;
	GtkContainer* _tmp3_ = NULL;
	GtkOffscreenWindow* _tmp4_ = NULL;
	GdkPixbuf* pixbuf = NULL;
	GtkOffscreenWindow* _tmp5_ = NULL;
	GdkPixbuf* _tmp6_ = NULL;
	gint image_width = 0;
	GdkPixbuf* _tmp7_ = NULL;
	gint _tmp8_ = 0;
	gint image_height = 0;
	GdkPixbuf* _tmp9_ = NULL;
	gint _tmp10_ = 0;
	gint thumb_width = 0;
	gint thumb_height = 0;
	gfloat image_ratio = 0.0F;
	gint _tmp11_ = 0;
	gint _tmp12_ = 0;
	gfloat thumb_ratio = 0.0F;
	gint _tmp13_ = 0;
	gint _tmp14_ = 0;
	gint x_offset = 0;
	gint y_offset = 0;
	gint computed_width = 0;
	gint computed_height = 0;
	gfloat _tmp15_ = 0.0F;
	gfloat _tmp16_ = 0.0F;
	GdkPixbuf* sub = NULL;
	GdkPixbuf* _tmp25_ = NULL;
	GdkPixbuf* _tmp26_ = NULL;
	gint _tmp27_ = 0;
	gint _tmp28_ = 0;
	gint _tmp29_ = 0;
	GdkPixbuf* scaled = NULL;
	GdkPixbuf* _tmp36_ = NULL;
	gint _tmp37_ = 0;
	gint _tmp38_ = 0;
	GdkPixbuf* _tmp39_ = NULL;
	const gchar* _tmp40_ = NULL;
	WebKitWebView* _tmp41_ = NULL;
	const gchar* _tmp42_ = NULL;
	MidoriSpeedDialSpec* _tmp45_ = NULL;
	const gchar* _tmp46_ = NULL;
	MidoriSpeedDialSpec* _tmp47_ = NULL;
	const gchar* _tmp48_ = NULL;
	GdkPixbuf* _tmp49_ = NULL;
	MidoriSpeedDialSpec* _tmp50_ = NULL;
	GList* _tmp51_ = NULL;
	guint _tmp52_ = 0U;
#line 355 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 356 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp0_ = self->priv->spec;
#line 356 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_val_if_fail (_tmp0_ != NULL, FALSE);
#line 358 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp1_ = self->priv->thumb_view;
#line 358 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp2_ = gtk_widget_get_parent ((GtkWidget*) _tmp1_);
#line 358 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp3_ = _tmp2_;
#line 358 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, GTK_TYPE_OFFSCREEN_WINDOW) ? ((GtkOffscreenWindow*) _tmp3_) : NULL);
#line 358 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	offscreen = _tmp4_;
#line 359 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp5_ = offscreen;
#line 359 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp6_ = gtk_offscreen_window_get_pixbuf (_tmp5_);
#line 359 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	pixbuf = _tmp6_;
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp7_ = pixbuf;
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp8_ = gdk_pixbuf_get_width (_tmp7_);
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	image_width = _tmp8_;
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp9_ = pixbuf;
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp10_ = gdk_pixbuf_get_height (_tmp9_);
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	image_height = _tmp10_;
#line 361 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	thumb_width = 240;
#line 361 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	thumb_height = 160;
#line 362 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp11_ = image_width;
#line 362 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp12_ = image_height;
#line 362 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	image_ratio = (gfloat) (_tmp11_ / _tmp12_);
#line 363 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp13_ = thumb_width;
#line 363 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp14_ = thumb_height;
#line 363 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	thumb_ratio = (gfloat) (_tmp13_ / _tmp14_);
#line 365 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp15_ = image_ratio;
#line 365 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp16_ = thumb_ratio;
#line 365 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (_tmp15_ > _tmp16_) {
#line 3251 "midori-speeddial.c"
		gint _tmp17_ = 0;
		gfloat _tmp18_ = 0.0F;
		gint _tmp19_ = 0;
		gint _tmp20_ = 0;
		gint _tmp21_ = 0;
#line 366 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp17_ = image_height;
#line 366 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp18_ = thumb_ratio;
#line 366 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		computed_width = (gint) (_tmp17_ * _tmp18_);
#line 367 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp19_ = image_height;
#line 367 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		computed_height = _tmp19_;
#line 368 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp20_ = image_width;
#line 368 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp21_ = computed_width;
#line 368 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		x_offset = (_tmp20_ - _tmp21_) / 2;
#line 369 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		y_offset = 0;
#line 3275 "midori-speeddial.c"
	} else {
		gint _tmp22_ = 0;
		gint _tmp23_ = 0;
		gfloat _tmp24_ = 0.0F;
#line 372 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp22_ = image_width;
#line 372 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		computed_width = _tmp22_;
#line 373 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp23_ = image_width;
#line 373 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp24_ = thumb_ratio;
#line 373 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		computed_height = (gint) (_tmp23_ / _tmp24_);
#line 374 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		x_offset = 0;
#line 375 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		y_offset = 0;
#line 3294 "midori-speeddial.c"
	}
#line 377 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp25_ = pixbuf;
#line 377 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp26_ = _g_object_ref0 (_tmp25_);
#line 377 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	sub = _tmp26_;
#line 378 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp27_ = y_offset;
#line 378 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp28_ = computed_height;
#line 378 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp29_ = image_height;
#line 378 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if ((_tmp27_ + _tmp28_) <= _tmp29_) {
#line 3310 "midori-speeddial.c"
		GdkPixbuf* _tmp30_ = NULL;
		gint _tmp31_ = 0;
		gint _tmp32_ = 0;
		gint _tmp33_ = 0;
		gint _tmp34_ = 0;
		GdkPixbuf* _tmp35_ = NULL;
#line 379 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp30_ = pixbuf;
#line 379 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp31_ = x_offset;
#line 379 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp32_ = y_offset;
#line 379 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp33_ = computed_width;
#line 379 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp34_ = computed_height;
#line 379 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp35_ = gdk_pixbuf_new_subpixbuf (_tmp30_, _tmp31_, _tmp32_, _tmp33_, _tmp34_);
#line 379 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_object_unref0 (sub);
#line 379 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		sub = _tmp35_;
#line 3333 "midori-speeddial.c"
	}
#line 380 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp36_ = sub;
#line 380 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp37_ = thumb_width;
#line 380 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp38_ = thumb_height;
#line 380 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp39_ = gdk_pixbuf_scale_simple (_tmp36_, _tmp37_, _tmp38_, GDK_INTERP_TILES);
#line 380 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	scaled = _tmp39_;
#line 381 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp41_ = self->priv->thumb_view;
#line 381 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp42_ = webkit_web_view_get_title (_tmp41_);
#line 381 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp40_ = _tmp42_;
#line 381 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (_tmp40_ == NULL) {
#line 3353 "midori-speeddial.c"
		MidoriSpeedDialSpec* _tmp43_ = NULL;
		const gchar* _tmp44_ = NULL;
#line 381 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp43_ = self->priv->spec;
#line 381 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp44_ = _tmp43_->uri;
#line 381 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp40_ = _tmp44_;
#line 3362 "midori-speeddial.c"
	}
#line 381 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp45_ = self->priv->spec;
#line 381 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp46_ = _tmp45_->dial_id;
#line 381 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp47_ = self->priv->spec;
#line 381 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp48_ = _tmp47_->uri;
#line 381 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp49_ = scaled;
#line 381 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	midori_speed_dial_add_with_id (self, _tmp46_, _tmp48_, _tmp40_, _tmp49_);
#line 383 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp50_ = self->priv->spec;
#line 383 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self->priv->thumb_queue = g_list_remove (self->priv->thumb_queue, _tmp50_);
#line 384 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp51_ = self->priv->thumb_queue;
#line 384 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp52_ = g_list_length (_tmp51_);
#line 384 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (_tmp52_ > ((guint) 0)) {
#line 3386 "midori-speeddial.c"
		GList* _tmp53_ = NULL;
		gconstpointer _tmp54_ = NULL;
		MidoriSpeedDialSpec* _tmp55_ = NULL;
		WebKitWebView* _tmp56_ = NULL;
		WebKitWebView* _tmp57_ = NULL;
		MidoriSpeedDialSpec* _tmp58_ = NULL;
		const gchar* _tmp59_ = NULL;
#line 385 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp53_ = self->priv->thumb_queue;
#line 385 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp54_ = g_list_nth_data (_tmp53_, (guint) 0);
#line 385 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp55_ = _midori_speed_dial_spec_ref0 ((MidoriSpeedDialSpec*) _tmp54_);
#line 385 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_midori_speed_dial_spec_unref0 (self->priv->spec);
#line 385 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		self->priv->spec = _tmp55_;
#line 386 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp56_ = self->priv->thumb_view;
#line 386 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_signal_connect_object ((GObject*) _tmp56_, "notify::load-status", (GCallback) _midori_speed_dial_load_status_g_object_notify, self, 0);
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp57_ = self->priv->thumb_view;
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp58_ = self->priv->spec;
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp59_ = _tmp58_->uri;
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		webkit_web_view_load_uri (_tmp57_, _tmp59_);
#line 3416 "midori-speeddial.c"
	}
#line 389 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	result = FALSE;
#line 389 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_object_unref0 (scaled);
#line 389 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_object_unref0 (sub);
#line 389 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_object_unref0 (pixbuf);
#line 389 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_object_unref0 (offscreen);
#line 389 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	return result;
#line 3430 "midori-speeddial.c"
}


static void midori_speed_dial_get_thumb (MidoriSpeedDial* self, const gchar* dial_id, const gchar* uri) {
	WebKitWebView* _tmp0_ = NULL;
	GList* _tmp10_ = NULL;
	const gchar* _tmp15_ = NULL;
	const gchar* _tmp16_ = NULL;
	MidoriSpeedDialSpec* _tmp17_ = NULL;
	GList* _tmp18_ = NULL;
	guint _tmp19_ = 0U;
	GList* _tmp20_ = NULL;
	gconstpointer _tmp21_ = NULL;
	MidoriSpeedDialSpec* _tmp22_ = NULL;
	WebKitWebView* _tmp23_ = NULL;
	WebKitWebView* _tmp24_ = NULL;
	MidoriSpeedDialSpec* _tmp25_ = NULL;
	const gchar* _tmp26_ = NULL;
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_if_fail (self != NULL);
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_if_fail (dial_id != NULL);
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_if_fail (uri != NULL);
#line 395 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp0_ = self->priv->thumb_view;
#line 395 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (_tmp0_ == NULL) {
#line 3459 "midori-speeddial.c"
		WebKitWebView* _tmp1_ = NULL;
		WebKitWebView* _tmp2_ = NULL;
		WebKitWebSettings* _tmp3_ = NULL;
		WebKitWebSettings* _tmp4_ = NULL;
		GtkOffscreenWindow* offscreen = NULL;
		GtkOffscreenWindow* _tmp5_ = NULL;
		GtkOffscreenWindow* _tmp6_ = NULL;
		WebKitWebView* _tmp7_ = NULL;
		WebKitWebView* _tmp8_ = NULL;
		GtkOffscreenWindow* _tmp9_ = NULL;
#line 396 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp1_ = (WebKitWebView*) webkit_web_view_new ();
#line 396 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_object_ref_sink (_tmp1_);
#line 396 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_object_unref0 (self->priv->thumb_view);
#line 396 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		self->priv->thumb_view = _tmp1_;
#line 397 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp2_ = self->priv->thumb_view;
#line 397 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp3_ = webkit_web_view_get_settings (_tmp2_);
#line 397 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp4_ = _tmp3_;
#line 397 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_object_set ((GObject*) _tmp4_, "enable-scripts", FALSE, "enable-plugins", FALSE, "auto-load-images", TRUE, "enable-html5-database", FALSE, "enable-html5-local-storage", FALSE, "enable-java-applet", FALSE, NULL);
#line 404 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp5_ = (GtkOffscreenWindow*) gtk_offscreen_window_new ();
#line 404 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_object_ref_sink (_tmp5_);
#line 404 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		offscreen = _tmp5_;
#line 405 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp6_ = offscreen;
#line 405 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp7_ = self->priv->thumb_view;
#line 405 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		gtk_container_add ((GtkContainer*) _tmp6_, (GtkWidget*) _tmp7_);
#line 406 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp8_ = self->priv->thumb_view;
#line 406 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		gtk_widget_set_size_request ((GtkWidget*) _tmp8_, 800, 600);
#line 407 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_tmp9_ = offscreen;
#line 407 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		gtk_widget_show_all ((GtkWidget*) _tmp9_);
#line 395 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		_g_object_unref0 (offscreen);
#line 3508 "midori-speeddial.c"
	}
#line 411 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp10_ = self->priv->thumb_queue;
#line 3512 "midori-speeddial.c"
	{
		GList* spec__collection = NULL;
		GList* spec__it = NULL;
#line 411 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		spec__collection = _tmp10_;
#line 411 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		for (spec__it = spec__collection; spec__it != NULL; spec__it = spec__it->next) {
#line 3520 "midori-speeddial.c"
			MidoriSpeedDialSpec* _tmp11_ = NULL;
			MidoriSpeedDialSpec* spec_ = NULL;
#line 411 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			_tmp11_ = _midori_speed_dial_spec_ref0 ((MidoriSpeedDialSpec*) spec__it->data);
#line 411 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			spec_ = _tmp11_;
#line 3527 "midori-speeddial.c"
			{
				MidoriSpeedDialSpec* _tmp12_ = NULL;
				const gchar* _tmp13_ = NULL;
				const gchar* _tmp14_ = NULL;
#line 412 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp12_ = spec_;
#line 412 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp13_ = _tmp12_->dial_id;
#line 412 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_tmp14_ = dial_id;
#line 412 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				if (g_strcmp0 (_tmp13_, _tmp14_) == 0) {
#line 413 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					_midori_speed_dial_spec_unref0 (spec_);
#line 413 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
					return;
#line 3544 "midori-speeddial.c"
				}
#line 411 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
				_midori_speed_dial_spec_unref0 (spec_);
#line 3548 "midori-speeddial.c"
			}
		}
	}
#line 415 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp15_ = dial_id;
#line 415 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp16_ = uri;
#line 415 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp17_ = midori_speed_dial_spec_new (_tmp15_, _tmp16_);
#line 415 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self->priv->thumb_queue = g_list_append (self->priv->thumb_queue, _tmp17_);
#line 416 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp18_ = self->priv->thumb_queue;
#line 416 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp19_ = g_list_length (_tmp18_);
#line 416 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (_tmp19_ > ((guint) 1)) {
#line 417 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		return;
#line 3568 "midori-speeddial.c"
	}
#line 419 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp20_ = self->priv->thumb_queue;
#line 419 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp21_ = g_list_nth_data (_tmp20_, (guint) 0);
#line 419 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp22_ = _midori_speed_dial_spec_ref0 ((MidoriSpeedDialSpec*) _tmp21_);
#line 419 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_midori_speed_dial_spec_unref0 (self->priv->spec);
#line 419 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self->priv->spec = _tmp22_;
#line 420 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp23_ = self->priv->thumb_view;
#line 420 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_signal_connect_object ((GObject*) _tmp23_, "notify::load-status", (GCallback) _midori_speed_dial_load_status_g_object_notify, self, 0);
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp24_ = self->priv->thumb_view;
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp25_ = self->priv->spec;
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp26_ = _tmp25_->uri;
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	webkit_web_view_load_uri (_tmp24_, _tmp26_);
#line 3592 "midori-speeddial.c"
}


gboolean midori_speed_dial_get_close_buttons_left (MidoriSpeedDial* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp0_ = self->priv->_close_buttons_left;
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	result = _tmp0_;
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	return result;
#line 3607 "midori-speeddial.c"
}


void midori_speed_dial_set_close_buttons_left (MidoriSpeedDial* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_if_fail (self != NULL);
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp0_ = value;
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self->priv->_close_buttons_left = _tmp0_;
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_object_notify ((GObject *) self, "close-buttons-left");
#line 3621 "midori-speeddial.c"
}


MidoriSpeedDialSpec* midori_speed_dial_spec_construct (GType object_type, const gchar* dial_id, const gchar* uri) {
	MidoriSpeedDialSpec* self = NULL;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_val_if_fail (dial_id != NULL, NULL);
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_val_if_fail (uri != NULL, NULL);
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self = (MidoriSpeedDialSpec*) g_type_create_instance (object_type);
#line 48 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp0_ = dial_id;
#line 48 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 48 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_free0 (self->dial_id);
#line 48 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self->dial_id = _tmp1_;
#line 49 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp2_ = uri;
#line 49 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 49 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_free0 (self->uri);
#line 49 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self->uri = _tmp3_;
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	return self;
#line 3655 "midori-speeddial.c"
}


MidoriSpeedDialSpec* midori_speed_dial_spec_new (const gchar* dial_id, const gchar* uri) {
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	return midori_speed_dial_spec_construct (MIDORI_SPEED_DIAL_TYPE_SPEC, dial_id, uri);
#line 3662 "midori-speeddial.c"
}


static void midori_speed_dial_value_spec_init (GValue* value) {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	value->data[0].v_pointer = NULL;
#line 3669 "midori-speeddial.c"
}


static void midori_speed_dial_value_spec_free_value (GValue* value) {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (value->data[0].v_pointer) {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		midori_speed_dial_spec_unref (value->data[0].v_pointer);
#line 3678 "midori-speeddial.c"
	}
}


static void midori_speed_dial_value_spec_copy_value (const GValue* src_value, GValue* dest_value) {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (src_value->data[0].v_pointer) {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		dest_value->data[0].v_pointer = midori_speed_dial_spec_ref (src_value->data[0].v_pointer);
#line 3688 "midori-speeddial.c"
	} else {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		dest_value->data[0].v_pointer = NULL;
#line 3692 "midori-speeddial.c"
	}
}


static gpointer midori_speed_dial_value_spec_peek_pointer (const GValue* value) {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	return value->data[0].v_pointer;
#line 3700 "midori-speeddial.c"
}


static gchar* midori_speed_dial_value_spec_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (collect_values[0].v_pointer) {
#line 3707 "midori-speeddial.c"
		MidoriSpeedDialSpec* object;
		object = collect_values[0].v_pointer;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		if (object->parent_instance.g_class == NULL) {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 3714 "midori-speeddial.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.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 3718 "midori-speeddial.c"
		}
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		value->data[0].v_pointer = midori_speed_dial_spec_ref (object);
#line 3722 "midori-speeddial.c"
	} else {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		value->data[0].v_pointer = NULL;
#line 3726 "midori-speeddial.c"
	}
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	return NULL;
#line 3730 "midori-speeddial.c"
}


static gchar* midori_speed_dial_value_spec_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	MidoriSpeedDialSpec** object_p;
	object_p = collect_values[0].v_pointer;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (!object_p) {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 3741 "midori-speeddial.c"
	}
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (!value->data[0].v_pointer) {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		*object_p = NULL;
#line 3747 "midori-speeddial.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		*object_p = value->data[0].v_pointer;
#line 3751 "midori-speeddial.c"
	} else {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		*object_p = midori_speed_dial_spec_ref (value->data[0].v_pointer);
#line 3755 "midori-speeddial.c"
	}
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	return NULL;
#line 3759 "midori-speeddial.c"
}


GParamSpec* midori_speed_dial_param_spec_spec (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	MidoriSpeedDialParamSpecSpec* spec;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_val_if_fail (g_type_is_a (object_type, MIDORI_SPEED_DIAL_TYPE_SPEC), NULL);
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	return G_PARAM_SPEC (spec);
#line 3773 "midori-speeddial.c"
}


gpointer midori_speed_dial_value_get_spec (const GValue* value) {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, MIDORI_SPEED_DIAL_TYPE_SPEC), NULL);
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	return value->data[0].v_pointer;
#line 3782 "midori-speeddial.c"
}


void midori_speed_dial_value_set_spec (GValue* value, gpointer v_object) {
	MidoriSpeedDialSpec* old;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, MIDORI_SPEED_DIAL_TYPE_SPEC));
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	old = value->data[0].v_pointer;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (v_object) {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, MIDORI_SPEED_DIAL_TYPE_SPEC));
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		value->data[0].v_pointer = v_object;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		midori_speed_dial_spec_ref (value->data[0].v_pointer);
#line 3802 "midori-speeddial.c"
	} else {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		value->data[0].v_pointer = NULL;
#line 3806 "midori-speeddial.c"
	}
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (old) {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		midori_speed_dial_spec_unref (old);
#line 3812 "midori-speeddial.c"
	}
}


void midori_speed_dial_value_take_spec (GValue* value, gpointer v_object) {
	MidoriSpeedDialSpec* old;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, MIDORI_SPEED_DIAL_TYPE_SPEC));
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	old = value->data[0].v_pointer;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (v_object) {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, MIDORI_SPEED_DIAL_TYPE_SPEC));
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		value->data[0].v_pointer = v_object;
#line 3831 "midori-speeddial.c"
	} else {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		value->data[0].v_pointer = NULL;
#line 3835 "midori-speeddial.c"
	}
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (old) {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		midori_speed_dial_spec_unref (old);
#line 3841 "midori-speeddial.c"
	}
}


static void midori_speed_dial_spec_class_init (MidoriSpeedDialSpecClass * klass) {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	midori_speed_dial_spec_parent_class = g_type_class_peek_parent (klass);
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	((MidoriSpeedDialSpecClass *) klass)->finalize = midori_speed_dial_spec_finalize;
#line 3851 "midori-speeddial.c"
}


static void midori_speed_dial_spec_instance_init (MidoriSpeedDialSpec * self) {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self->ref_count = 1;
#line 3858 "midori-speeddial.c"
}


static void midori_speed_dial_spec_finalize (MidoriSpeedDialSpec* obj) {
	MidoriSpeedDialSpec * self;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, MIDORI_SPEED_DIAL_TYPE_SPEC, MidoriSpeedDialSpec);
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_signal_handlers_destroy (self);
#line 45 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_free0 (self->dial_id);
#line 46 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_free0 (self->uri);
#line 3872 "midori-speeddial.c"
}


GType midori_speed_dial_spec_get_type (void) {
	static volatile gsize midori_speed_dial_spec_type_id__volatile = 0;
	if (g_once_init_enter (&midori_speed_dial_spec_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { midori_speed_dial_value_spec_init, midori_speed_dial_value_spec_free_value, midori_speed_dial_value_spec_copy_value, midori_speed_dial_value_spec_peek_pointer, "p", midori_speed_dial_value_spec_collect_value, "p", midori_speed_dial_value_spec_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (MidoriSpeedDialSpecClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) midori_speed_dial_spec_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MidoriSpeedDialSpec), 0, (GInstanceInitFunc) midori_speed_dial_spec_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 midori_speed_dial_spec_type_id;
		midori_speed_dial_spec_type_id = g_type_register_fundamental (g_type_fundamental_next (), "MidoriSpeedDialSpec", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&midori_speed_dial_spec_type_id__volatile, midori_speed_dial_spec_type_id);
	}
	return midori_speed_dial_spec_type_id__volatile;
}


gpointer midori_speed_dial_spec_ref (gpointer instance) {
	MidoriSpeedDialSpec* self;
	self = instance;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_atomic_int_inc (&self->ref_count);
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	return instance;
#line 3897 "midori-speeddial.c"
}


void midori_speed_dial_spec_unref (gpointer instance) {
	MidoriSpeedDialSpec* self;
	self = instance;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		MIDORI_SPEED_DIAL_SPEC_GET_CLASS (self)->finalize (self);
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 3910 "midori-speeddial.c"
	}
}


static void midori_speed_dial_class_init (MidoriSpeedDialClass * klass) {
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	midori_speed_dial_parent_class = g_type_class_peek_parent (klass);
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_type_class_add_private (klass, sizeof (MidoriSpeedDialPrivate));
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_midori_speed_dial_get_property;
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_midori_speed_dial_set_property;
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	G_OBJECT_CLASS (klass)->finalize = midori_speed_dial_finalize;
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), MIDORI_SPEED_DIAL_CLOSE_BUTTONS_LEFT, g_param_spec_boolean ("close-buttons-left", "close-buttons-left", "close-buttons-left", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	g_signal_new ("refresh", MIDORI_TYPE_SPEED_DIAL, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 3930 "midori-speeddial.c"
}


static void midori_speed_dial_instance_init (MidoriSpeedDial * self) {
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self->priv = MIDORI_SPEED_DIAL_GET_PRIVATE (self);
#line 33 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self->priv->html = NULL;
#line 34 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self->priv->thumb_queue = NULL;
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self->priv->thumb_view = NULL;
#line 37 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self->priv->spec = NULL;
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self->priv->_close_buttons_left = FALSE;
#line 3947 "midori-speeddial.c"
}


static void midori_speed_dial_finalize (GObject* obj) {
	MidoriSpeedDial * self;
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, MIDORI_TYPE_SPEED_DIAL, MidoriSpeedDial);
#line 32 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_free0 (self->priv->filename);
#line 33 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_free0 (self->priv->html);
#line 34 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	__g_list_free__midori_speed_dial_spec_unref0_0 (self->priv->thumb_queue);
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_object_unref0 (self->priv->thumb_view);
#line 37 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_midori_speed_dial_spec_unref0 (self->priv->spec);
#line 40 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	_g_key_file_free0 (self->keyfile);
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	G_OBJECT_CLASS (midori_speed_dial_parent_class)->finalize (obj);
#line 3969 "midori-speeddial.c"
}


GType midori_speed_dial_get_type (void) {
	static volatile gsize midori_speed_dial_type_id__volatile = 0;
	if (g_once_init_enter (&midori_speed_dial_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (MidoriSpeedDialClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) midori_speed_dial_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MidoriSpeedDial), 0, (GInstanceInitFunc) midori_speed_dial_instance_init, NULL };
		GType midori_speed_dial_type_id;
		midori_speed_dial_type_id = g_type_register_static (G_TYPE_OBJECT, "MidoriSpeedDial", &g_define_type_info, 0);
		g_once_init_leave (&midori_speed_dial_type_id__volatile, midori_speed_dial_type_id);
	}
	return midori_speed_dial_type_id__volatile;
}


static void _vala_midori_speed_dial_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	MidoriSpeedDial * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, MIDORI_TYPE_SPEED_DIAL, MidoriSpeedDial);
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	switch (property_id) {
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		case MIDORI_SPEED_DIAL_CLOSE_BUTTONS_LEFT:
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		g_value_set_boolean (value, midori_speed_dial_get_close_buttons_left (self));
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		break;
#line 3996 "midori-speeddial.c"
		default:
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		break;
#line 4002 "midori-speeddial.c"
	}
}


static void _vala_midori_speed_dial_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	MidoriSpeedDial * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, MIDORI_TYPE_SPEED_DIAL, MidoriSpeedDial);
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
	switch (property_id) {
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		case MIDORI_SPEED_DIAL_CLOSE_BUTTONS_LEFT:
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		midori_speed_dial_set_close_buttons_left (self, g_value_get_boolean (value));
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		break;
#line 4018 "midori-speeddial.c"
		default:
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/midori/midori-speeddial.vala"
		break;
#line 4024 "midori-speeddial.c"
	}
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int 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, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}


static gint _vala_array_length (gpointer array) {
	int length;
	length = 0;
	if (array) {
		while (((gpointer*) array)[length]) {
			length++;
		}
	}
	return length;
}



