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

/*
   Copyright (C) 2013 Christian Dywan <christian@twotoasts.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 <gio/gio.h>
#include "midori/midori-stock.h"
#include <gdk-pixbuf/gdk-pixbuf.h>
#include "midori-core.h"
#include <glib/gi18n-lib.h>
#include <gtk/gtk.h>
#include "midori/midori-browser.h"
#include "katze/katze.h"
#include "midori/midori-view.h"
#include <gdk/gdk.h>
#include <pango/pango.h>
#include "midori/midori-extension.h"
#include "midori/midori-panel.h"
#include "midori/midori-app.h"
#include "apps.h"


#define APPS_TYPE_LAUNCHER (apps_launcher_get_type ())
#define APPS_LAUNCHER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), APPS_TYPE_LAUNCHER, AppsLauncher))
#define APPS_LAUNCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), APPS_TYPE_LAUNCHER, AppsLauncherClass))
#define APPS_IS_LAUNCHER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), APPS_TYPE_LAUNCHER))
#define APPS_IS_LAUNCHER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), APPS_TYPE_LAUNCHER))
#define APPS_LAUNCHER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), APPS_TYPE_LAUNCHER, AppsLauncherClass))

typedef struct _AppsLauncher AppsLauncher;
typedef struct _AppsLauncherClass AppsLauncherClass;
typedef struct _AppsLauncherPrivate AppsLauncherPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_key_file_free0(var) ((var == NULL) ? NULL : (var = (g_key_file_free (var), NULL)))
typedef struct _AppsLauncherCreateAppData AppsLauncherCreateAppData;
typedef struct _AppsLauncherCreateProfileData AppsLauncherCreateProfileData;
typedef struct _AppsLauncherCreateData AppsLauncherCreateData;
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))

#define APPS_TYPE_SIDEBAR (apps_sidebar_get_type ())
#define APPS_SIDEBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), APPS_TYPE_SIDEBAR, AppsSidebar))
#define APPS_SIDEBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), APPS_TYPE_SIDEBAR, AppsSidebarClass))
#define APPS_IS_SIDEBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), APPS_TYPE_SIDEBAR))
#define APPS_IS_SIDEBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), APPS_TYPE_SIDEBAR))
#define APPS_SIDEBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), APPS_TYPE_SIDEBAR, AppsSidebarClass))

typedef struct _AppsSidebar AppsSidebar;
typedef struct _AppsSidebarClass AppsSidebarClass;
typedef struct _AppsSidebarPrivate AppsSidebarPrivate;
#define _gtk_tree_path_free0(var) ((var == NULL) ? NULL : (var = (gtk_tree_path_free (var), NULL)))
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))

#define APPS_TYPE_MANAGER (apps_manager_get_type ())
#define APPS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), APPS_TYPE_MANAGER, AppsManager))
#define APPS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), APPS_TYPE_MANAGER, AppsManagerClass))
#define APPS_IS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), APPS_TYPE_MANAGER))
#define APPS_IS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), APPS_TYPE_MANAGER))
#define APPS_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), APPS_TYPE_MANAGER, AppsManagerClass))

typedef struct _AppsManager AppsManager;
typedef struct _AppsManagerClass AppsManagerClass;
typedef struct _AppsManagerPrivate AppsManagerPrivate;
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
typedef struct _AppsManagerPopulateAppsData AppsManagerPopulateAppsData;
typedef struct _Block1Data Block1Data;

#define TYPE_EXTENSIONS_APPS_DESKTOP (extensions_apps_desktop_get_type ())
#define EXTENSIONS_APPS_DESKTOP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_EXTENSIONS_APPS_DESKTOP, ExtensionsAppsDesktop))
#define EXTENSIONS_APPS_DESKTOP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_EXTENSIONS_APPS_DESKTOP, ExtensionsAppsDesktopClass))
#define IS_EXTENSIONS_APPS_DESKTOP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_EXTENSIONS_APPS_DESKTOP))
#define IS_EXTENSIONS_APPS_DESKTOP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_EXTENSIONS_APPS_DESKTOP))
#define EXTENSIONS_APPS_DESKTOP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_EXTENSIONS_APPS_DESKTOP, ExtensionsAppsDesktopClass))

typedef struct _ExtensionsAppsDesktop ExtensionsAppsDesktop;
typedef struct _ExtensionsAppsDesktopClass ExtensionsAppsDesktopClass;
typedef struct _ExtensionsAppsDesktopPrivate ExtensionsAppsDesktopPrivate;
typedef struct _ExtensionsAppsDesktopRunData ExtensionsAppsDesktopRunData;

struct _AppsLauncher {
	GObject parent_instance;
	AppsLauncherPrivate * priv;
	GFile* file;
	gchar* name;
	gchar* icon_name;
	gchar* exec;
	gchar* uri;
};

struct _AppsLauncherClass {
	GObjectClass parent_class;
};

struct _AppsLauncherCreateAppData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	gchar* uri;
	gchar* title;
	GtkWidget* proxy;
	GFile* result;
	gchar* checksum;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	GFile* folder;
	GFile* _tmp2_;
	GFile* _tmp3_;
	GFile* _tmp4_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	GtkWidget* _tmp7_;
	GFile* _tmp8_;
};

struct _AppsLauncherCreateProfileData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GtkWidget* proxy;
	GFile* result;
	gchar* uuid;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* config;
	const gchar* _tmp2_;
	gchar* _tmp3_;
	GFile* folder;
	GFile* _tmp4_;
	GFile* _tmp5_;
	GFile* _tmp6_;
	const gchar* _tmp7_;
	gchar* _tmp8_;
	gchar* _tmp9_;
	GtkWidget* _tmp10_;
	GFile* _tmp11_;
};

struct _AppsLauncherCreateData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	gchar* prefix;
	GFile* folder;
	gchar* uri;
	gchar* title;
	GtkWidget* proxy;
	gchar* name;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* filename;
	const gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* icon_name;
	gchar* _tmp7_;
	gboolean testing;
	GtkWidget* _tmp8_;
	GFile* file;
	GFile* _tmp9_;
	GFile* _tmp10_;
	GFile* _tmp11_;
	GError* exist_error;
	GError* _error_;
	const gchar* _tmp12_;
	GFile* _tmp13_;
	gchar* _tmp14_;
	gchar* _tmp15_;
	GError* _tmp16_;
	const gchar* _tmp17_;
	const gchar* _tmp18_;
	GFile* _tmp19_;
	const gchar* _tmp20_;
	gboolean _tmp21_;
	gchar* _tmp22_;
	gchar* desktop_file;
	const gchar* _tmp23_;
	const gchar* _tmp24_;
	const gchar* _tmp25_;
	const gchar* _tmp26_;
	const gchar* _tmp27_;
	gchar* _tmp28_;
	GFileOutputStream* stream;
	GFile* _tmp29_;
	GFileOutputStream* _tmp30_;
	GFileOutputStream* _tmp31_;
	const gchar* _tmp32_;
	guint8* _tmp33_;
	gint _tmp33__length1;
	guint8* _tmp34_;
	gint _tmp34__length1;
	GFile* data_dir;
	const gchar* _tmp35_;
	GFile* _tmp36_;
	GFile* desktop_dir;
	GFile* _tmp37_;
	GFile* _tmp38_;
	GFile* _tmp39_;
	GError* _vala1_exist_error;
	GFile* _tmp40_;
	GFile* _tmp41_;
	const gchar* _tmp42_;
	gchar* _tmp43_;
	gchar* _tmp44_;
	GFile* _tmp45_;
	GFile* _tmp46_;
	GtkWidget* _tmp47_;
	MidoriBrowser* browser;
	GtkWidget* _tmp48_;
	GtkWidget* _tmp49_;
	MidoriBrowser* _tmp50_;
	MidoriBrowser* _tmp51_;
	const gchar* _tmp52_;
	const gchar* _tmp53_;
	const gchar* _tmp54_;
	gchar* _tmp55_;
	gchar* _tmp56_;
	GError* _vala1__error_;
	const gchar* _tmp57_;
	GFile* _tmp58_;
	gchar* _tmp59_;
	gchar* _tmp60_;
	GError* _tmp61_;
	const gchar* _tmp62_;
	GtkWidget* _tmp63_;
	MidoriBrowser* _vala1_browser;
	GtkWidget* _tmp64_;
	GtkWidget* _tmp65_;
	MidoriBrowser* _tmp66_;
	MidoriBrowser* _tmp67_;
	const gchar* _tmp68_;
	const gchar* _tmp69_;
	GFile* _tmp70_;
	gchar* _tmp71_;
	gchar* _tmp72_;
	GError* _tmp73_;
	const gchar* _tmp74_;
	gchar* _tmp75_;
	gchar* _tmp76_;
	GError * _inner_error_;
};

struct _AppsSidebar {
	GtkVBox parent_instance;
	AppsSidebarPrivate * priv;
};

struct _AppsSidebarClass {
	GtkVBoxClass parent_class;
};

struct _AppsSidebarPrivate {
	GtkToolbar* toolbar;
	GtkListStore* store;
	GtkTreeView* treeview;
	KatzeArray* array;
	GFile* app_folder;
	GFile* profile_folder;
};

struct _AppsManager {
	MidoriExtension parent_instance;
	AppsManagerPrivate * priv;
	KatzeArray* array;
	GFile* app_folder;
	GFile* profile_folder;
	GList* monitors;
	GList* widgets;
};

struct _AppsManagerClass {
	MidoriExtensionClass parent_class;
};

struct _AppsManagerPopulateAppsData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	AppsManager* self;
	GFile* app_folder;
	GFile* _tmp0_;
	GError* exist_error;
	GFileMonitor* monitor;
	GFile* _tmp1_;
	GFileMonitor* _tmp2_;
	GFileMonitor* _tmp3_;
	GFileMonitor* _tmp4_;
	GFileMonitor* _tmp5_;
	GFileEnumerator* enumerator;
	GFile* _tmp6_;
	GFileEnumerator* _tmp7_;
	GList* files;
	GFileEnumerator* _tmp8_;
	GList* _tmp9_;
	GList* _tmp10_;
	GList* _tmp11_;
	GList* info_collection;
	GList* info_it;
	GFileInfo* _tmp12_;
	GFileInfo* info;
	GFile* file;
	GFile* _tmp13_;
	GFileInfo* _tmp14_;
	const gchar* _tmp15_;
	GFile* _tmp16_;
	AppsLauncher* launcher;
	GFile* _tmp17_;
	AppsLauncher* _tmp18_;
	gboolean _tmp19_;
	AppsLauncher* _tmp20_;
	gboolean _tmp21_;
	KatzeArray* _tmp22_;
	AppsLauncher* _tmp23_;
	GError* _error_;
	GFile* _tmp24_;
	gchar* _tmp25_;
	gchar* _tmp26_;
	GError* _tmp27_;
	const gchar* _tmp28_;
	GError* io_error;
	GFile* _tmp29_;
	gchar* _tmp30_;
	gchar* _tmp31_;
	GError* _tmp32_;
	const gchar* _tmp33_;
	GError * _inner_error_;
};

struct _Block1Data {
	int _ref_count_;
	AppsManager* self;
	MidoriBrowser* browser;
};

struct _ExtensionsAppsDesktop {
	MidoriTestJob parent_instance;
	ExtensionsAppsDesktopPrivate * priv;
};

struct _ExtensionsAppsDesktopClass {
	MidoriTestJobClass parent_class;
};

struct _ExtensionsAppsDesktopRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	ExtensionsAppsDesktop* self;
	GCancellable* cancellable;
	gchar* uri;
	gchar* _tmp0_;
	gchar* checksum;
	gchar* _tmp1_;
	GFile* apps;
	GFile* _tmp2_;
	GFile* _tmp3_;
	GFile* _tmp4_;
	GFile* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	GFile* data_dir;
	const gchar* _tmp8_;
	GFile* _tmp9_;
	GFile* desktop_dir;
	GFile* _tmp10_;
	GFile* _tmp11_;
	GFile* _tmp12_;
	gchar* _tmp13_;
	gchar* _tmp14_;
	GFile* folder;
	GFile* _tmp15_;
	AppsLauncher* launcher;
	AppsLauncher* _tmp16_;
	gchar* _tmp17_;
	gchar* _tmp18_;
	const gchar* _tmp19_;
	GFile* _tmp20_;
	GFile* _tmp21_;
	GError * _inner_error_;
};


static gpointer apps_launcher_parent_class = NULL;
static GInitableIface* apps_launcher_g_initable_parent_iface = NULL;
static gpointer apps_sidebar_parent_class = NULL;
static MidoriViewableIface* apps_sidebar_midori_viewable_parent_iface = NULL;
static gpointer apps_manager_parent_class = NULL;
static gpointer extensions_apps_desktop_parent_class = NULL;

#define APPS_APP_PREFIX PACKAGE_NAME " -a "
#define APPS_PROFILE_PREFIX PACKAGE_NAME " -c "
GType apps_launcher_get_type (void) G_GNUC_CONST;
enum  {
	APPS_LAUNCHER_DUMMY_PROPERTY
};
gchar* apps_launcher_get_favicon_name_for_uri (const gchar* prefix, GFile* folder, const gchar* uri, gboolean testing);
gchar* apps_launcher_prepare_desktop_file (const gchar* prefix, const gchar* name, const gchar* uri, const gchar* title, const gchar* icon_name);
GFile* apps_launcher_get_app_folder (void);
static void apps_launcher_create_app_data_free (gpointer _data);
void apps_launcher_create_app (const gchar* uri, const gchar* title, GtkWidget* proxy, GAsyncReadyCallback _callback_, gpointer _user_data_);
GFile* apps_launcher_create_app_finish (GAsyncResult* _res_);
static gboolean apps_launcher_create_app_co (AppsLauncherCreateAppData* _data_);
void apps_launcher_create (const gchar* prefix, GFile* folder, const gchar* uri, const gchar* title, GtkWidget* proxy, GAsyncReadyCallback _callback_, gpointer _user_data_);
void apps_launcher_create_finish (GAsyncResult* _res_);
static void apps_launcher_create_app_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
GFile* apps_launcher_get_profile_folder (void);
static void apps_launcher_create_profile_data_free (gpointer _data);
void apps_launcher_create_profile (GtkWidget* proxy, GAsyncReadyCallback _callback_, gpointer _user_data_);
GFile* apps_launcher_create_profile_finish (GAsyncResult* _res_);
static gboolean apps_launcher_create_profile_co (AppsLauncherCreateProfileData* _data_);
static void apps_launcher_create_profile_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void apps_launcher_create_data_free (gpointer _data);
static gboolean apps_launcher_create_co (AppsLauncherCreateData* _data_);
static void apps_launcher_create_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
AppsLauncher* apps_launcher_new (GFile* file);
AppsLauncher* apps_launcher_construct (GType object_type, GFile* file);
static gboolean apps_launcher_real_init (GInitable* base, GCancellable* cancellable, GError** error);
static void apps_launcher_finalize (GObject* obj);
GType apps_sidebar_get_type (void) G_GNUC_CONST;
#define APPS_SIDEBAR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), APPS_TYPE_SIDEBAR, AppsSidebarPrivate))
enum  {
	APPS_SIDEBAR_DUMMY_PROPERTY
};
static const gchar* apps_sidebar_real_get_stock_id (MidoriViewable* base);
static const gchar* apps_sidebar_real_get_label (MidoriViewable* base);
static GtkWidget* apps_sidebar_real_get_toolbar (MidoriViewable* base);
static void ___lambda4_ (AppsSidebar* self);
static void ____lambda4__gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self);
static void ___lambda5_ (AppsSidebar* self);
static void ____lambda5__gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self);
static void apps_sidebar_row_activated (AppsSidebar* self, GtkTreePath* path, GtkTreeViewColumn* column);
static gboolean apps_sidebar_button_released (AppsSidebar* self, GdkEventButton* event);
AppsSidebar* apps_sidebar_new (KatzeArray* array, GFile* app_folder, GFile* profile_folder);
AppsSidebar* apps_sidebar_construct (GType object_type, KatzeArray* array, GFile* app_folder, GFile* profile_folder);
static gint apps_sidebar_tree_sort_func (AppsSidebar* self, GtkTreeModel* model, GtkTreeIter* a, GtkTreeIter* b);
static gint _apps_sidebar_tree_sort_func_gtk_tree_iter_compare_func (GtkTreeModel* model, GtkTreeIter* a, GtkTreeIter* b, gpointer self);
static void apps_sidebar_on_render_icon (AppsSidebar* self, GtkCellLayout* column, GtkCellRenderer* renderer, GtkTreeModel* model, GtkTreeIter* iter);
static void _apps_sidebar_on_render_icon_gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self);
static void apps_sidebar_on_render_text (AppsSidebar* self, GtkCellLayout* column, GtkCellRenderer* renderer, GtkTreeModel* model, GtkTreeIter* iter);
static void _apps_sidebar_on_render_text_gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self);
static void apps_sidebar_on_render_button (AppsSidebar* self, GtkCellLayout* column, GtkCellRenderer* renderer, GtkTreeModel* model, GtkTreeIter* iter);
static void _apps_sidebar_on_render_button_gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self);
static void _apps_sidebar_row_activated_gtk_tree_view_row_activated (GtkTreeView* _sender, GtkTreePath* path, GtkTreeViewColumn* column, gpointer self);
static gboolean _apps_sidebar_button_released_gtk_widget_button_release_event (GtkWidget* _sender, GdkEventButton* event, gpointer self);
static void apps_sidebar_launcher_added (AppsSidebar* self, GObject* item);
static void _apps_sidebar_launcher_added_katze_array_add_item (KatzeArray* _sender, GObject* item, gpointer self);
static void apps_sidebar_launcher_removed (AppsSidebar* self, GObject* item);
static void _apps_sidebar_launcher_removed_katze_array_remove_item (KatzeArray* _sender, GObject* item, gpointer self);
static void apps_sidebar_finalize (GObject* obj);
GType apps_manager_get_type (void) G_GNUC_CONST;
enum  {
	APPS_MANAGER_DUMMY_PROPERTY
};
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
static void apps_manager_app_changed (AppsManager* self, GFile* file, GFile* other, GFileMonitorEvent event);
static void apps_manager_populate_apps_data_free (gpointer _data);
static void apps_manager_populate_apps (AppsManager* self, GFile* app_folder, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void apps_manager_populate_apps_finish (AppsManager* self, GAsyncResult* _res_);
static gboolean apps_manager_populate_apps_co (AppsManagerPopulateAppsData* _data_);
static void _apps_manager_app_changed_g_file_monitor_changed (GFileMonitor* _sender, GFile* file, GFile* other_file, GFileMonitorEvent event_type, gpointer self);
static void apps_manager_populate_apps_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void apps_manager_browser_added (AppsManager* self, MidoriBrowser* browser);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
static void __lambda6_ (Block1Data* _data1_);
static void ___lambda6__gtk_action_activate (GtkAction* _sender, gpointer self);
static void apps_manager_activated (AppsManager* self, MidoriApp* app);
static void _apps_manager_browser_added_midori_app_add_browser (MidoriApp* _sender, MidoriBrowser* browser, gpointer self);
static void apps_manager_deactivated (AppsManager* self);
AppsManager* apps_manager_new (void);
AppsManager* apps_manager_construct (GType object_type);
static void _apps_manager_activated_midori_extension_activate (MidoriExtension* _sender, MidoriApp* app, gpointer self);
static void _apps_manager_deactivated_midori_extension_deactivate (MidoriExtension* _sender, gpointer self);
static void apps_manager_finalize (GObject* obj);
GType extensions_apps_desktop_get_type (void) G_GNUC_CONST;
enum  {
	EXTENSIONS_APPS_DESKTOP_DUMMY_PROPERTY
};
void extensions_apps_desktop_test (void);
ExtensionsAppsDesktop* extensions_apps_desktop_new (void);
ExtensionsAppsDesktop* extensions_apps_desktop_construct (GType object_type);
static void extensions_apps_desktop_real_run_data_free (gpointer _data);
static void extensions_apps_desktop_real_run (MidoriTestJob* base, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean extensions_apps_desktop_real_run_co (ExtensionsAppsDesktopRunData* _data_);
static void extensions_apps_desktop_run_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _extensions_apps_desktop_test_gcallback (void);


gchar* apps_launcher_get_favicon_name_for_uri (const gchar* prefix, GFile* folder, const gchar* uri, gboolean testing) {
	gchar* result = NULL;
	gchar* icon_name = NULL;
	gchar* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	const gchar* _tmp2_ = NULL;
	GError * _inner_error_ = NULL;
#line 23 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_val_if_fail (prefix != NULL, NULL);
#line 23 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_val_if_fail (folder != NULL, NULL);
#line 23 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_val_if_fail (uri != NULL, NULL);
#line 25 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = g_strdup (MIDORI_STOCK_WEB_BROWSER);
#line 25 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	icon_name = _tmp0_;
#line 27 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = testing;
#line 27 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (_tmp1_ == TRUE) {
#line 28 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		result = icon_name;
#line 28 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		return result;
#line 536 "apps.c"
	}
#line 30 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp2_ = prefix;
#line 30 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (g_strcmp0 (_tmp2_, APPS_PROFILE_PREFIX) != 0) {
#line 542 "apps.c"
		{
			GdkPixbuf* pixbuf = NULL;
			const gchar* _tmp3_ = NULL;
			GdkPixbuf* _tmp4_ = NULL;
			GdkPixbuf* _tmp5_ = NULL;
			gchar* icon_filename = NULL;
			GFile* _tmp7_ = NULL;
			GFile* _tmp8_ = NULL;
			GFile* _tmp9_ = NULL;
			gchar* _tmp10_ = NULL;
			gchar* _tmp11_ = NULL;
			GdkPixbuf* _tmp12_ = NULL;
			const gchar* _tmp13_ = NULL;
			const gchar* _tmp14_ = NULL;
			gchar* _tmp15_ = NULL;
#line 33 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp3_ = uri;
#line 33 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp4_ = midori_paths_get_icon (_tmp3_, NULL);
#line 33 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			pixbuf = _tmp4_;
#line 34 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp5_ = pixbuf;
#line 34 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			if (_tmp5_ == NULL) {
#line 568 "apps.c"
				GError* _tmp6_ = NULL;
#line 35 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp6_ = g_error_new_literal (G_FILE_ERROR, G_FILE_ERROR_EXIST, "No favicon loaded");
#line 35 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_inner_error_ = _tmp6_;
#line 35 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_g_object_unref0 (pixbuf);
#line 576 "apps.c"
				goto __catch0_g_error;
			}
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp7_ = folder;
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp8_ = g_file_get_child (_tmp7_, "icon.png");
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp9_ = _tmp8_;
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp10_ = g_file_get_path (_tmp9_);
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp11_ = _tmp10_;
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_object_unref0 (_tmp9_);
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			icon_filename = _tmp11_;
#line 37 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp12_ = pixbuf;
#line 37 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp13_ = icon_filename;
#line 37 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			gdk_pixbuf_save (_tmp12_, _tmp13_, "png", &_inner_error_, NULL, "compression", "7", NULL, NULL);
#line 37 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 37 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_g_free0 (icon_filename);
#line 37 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_g_object_unref0 (pixbuf);
#line 605 "apps.c"
				goto __catch0_g_error;
			}
#line 42 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp14_ = icon_filename;
#line 42 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp15_ = g_strdup (_tmp14_);
#line 42 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_free0 (icon_name);
#line 42 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			icon_name = _tmp15_;
#line 32 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_free0 (icon_filename);
#line 32 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_object_unref0 (pixbuf);
#line 620 "apps.c"
		}
		goto __finally0;
		__catch0_g_error:
		{
			GError* _error_ = NULL;
			const gchar* _tmp16_ = NULL;
			GFile* _tmp17_ = NULL;
			gchar* _tmp18_ = NULL;
			gchar* _tmp19_ = NULL;
			GError* _tmp20_ = NULL;
			const gchar* _tmp21_ = NULL;
#line 32 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_error_ = _inner_error_;
#line 32 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_inner_error_ = NULL;
#line 46 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp16_ = _ ("Failed to fetch application icon in %s: %s");
#line 46 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp17_ = folder;
#line 46 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp18_ = g_file_get_path (_tmp17_);
#line 46 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp19_ = _tmp18_;
#line 46 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp20_ = _error_;
#line 46 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp21_ = _tmp20_->message;
#line 46 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			g_warning (_tmp16_, _tmp19_, _tmp21_);
#line 46 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_free0 (_tmp19_);
#line 32 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_error_free0 (_error_);
#line 654 "apps.c"
		}
		__finally0:
#line 32 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 32 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_free0 (icon_name);
#line 32 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.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 32 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			g_clear_error (&_inner_error_);
#line 32 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			return NULL;
#line 667 "apps.c"
		}
	}
#line 49 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	result = icon_name;
#line 49 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return result;
#line 674 "apps.c"
}


static gchar* string_delimit (const gchar* self, const gchar* delimiters, gchar new_delimiter) {
	gchar* result = NULL;
	gchar* _result_ = NULL;
	gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar _tmp3_ = '\0';
#line 1123 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1123 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (delimiters != NULL, NULL);
#line 1124 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp0_ = g_strdup (self);
#line 1124 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_result_ = _tmp0_;
#line 1125 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp1_ = _result_;
#line 1125 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp2_ = delimiters;
#line 1125 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp3_ = new_delimiter;
#line 1125 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_strdelimit (_tmp1_, _tmp2_, _tmp3_);
#line 1126 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	result = _result_;
#line 1126 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	return result;
#line 705 "apps.c"
}


gchar* apps_launcher_prepare_desktop_file (const gchar* prefix, const gchar* name, const gchar* uri, const gchar* title, const gchar* icon_name) {
	gchar* result = NULL;
	gchar* exec = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	GKeyFile* keyfile = NULL;
	GKeyFile* _tmp3_ = NULL;
	gchar* entry = NULL;
	gchar* _tmp4_ = NULL;
	GKeyFile* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	GKeyFile* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	GKeyFile* _tmp9_ = NULL;
	const gchar* _tmp10_ = NULL;
	const gchar* _tmp11_ = NULL;
	GKeyFile* _tmp12_ = NULL;
	const gchar* _tmp13_ = NULL;
	const gchar* _tmp14_ = NULL;
	GKeyFile* _tmp15_ = NULL;
	const gchar* _tmp16_ = NULL;
	GKeyFile* _tmp17_ = NULL;
	const gchar* _tmp18_ = NULL;
	const gchar* _tmp19_ = NULL;
	GKeyFile* _tmp20_ = NULL;
	const gchar* _tmp21_ = NULL;
	const gchar* _tmp22_ = NULL;
	gboolean _tmp23_ = FALSE;
	GKeyFile* _tmp29_ = NULL;
	gchar* _tmp30_ = NULL;
#line 52 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_val_if_fail (prefix != NULL, NULL);
#line 52 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 52 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_val_if_fail (uri != NULL, NULL);
#line 52 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_val_if_fail (title != NULL, NULL);
#line 52 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_val_if_fail (icon_name != NULL, NULL);
#line 60 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = prefix;
#line 60 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = uri;
#line 60 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp2_ = g_strconcat (_tmp0_, _tmp1_, NULL);
#line 60 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (exec);
#line 60 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	exec = _tmp2_;
#line 62 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp3_ = g_key_file_new ();
#line 62 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	keyfile = _tmp3_;
#line 63 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp4_ = g_strdup ("Desktop Entry");
#line 63 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	entry = _tmp4_;
#line 65 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp5_ = keyfile;
#line 65 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp6_ = entry;
#line 65 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_key_file_set_string (_tmp5_, _tmp6_, "Version", "1.0");
#line 66 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp7_ = keyfile;
#line 66 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp8_ = entry;
#line 66 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_key_file_set_string (_tmp7_, _tmp8_, "Type", "Application");
#line 67 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp9_ = keyfile;
#line 67 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp10_ = entry;
#line 67 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp11_ = name;
#line 67 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_key_file_set_string (_tmp9_, _tmp10_, "Name", _tmp11_);
#line 68 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp12_ = keyfile;
#line 68 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp13_ = entry;
#line 68 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp14_ = exec;
#line 68 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_key_file_set_string (_tmp12_, _tmp13_, "Exec", _tmp14_);
#line 69 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp15_ = keyfile;
#line 69 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp16_ = entry;
#line 69 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_key_file_set_string (_tmp15_, _tmp16_, "TryExec", PACKAGE_NAME);
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp17_ = keyfile;
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp18_ = entry;
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp19_ = icon_name;
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_key_file_set_string (_tmp17_, _tmp18_, "Icon", _tmp19_);
#line 71 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp20_ = keyfile;
#line 71 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp21_ = entry;
#line 71 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_key_file_set_string (_tmp20_, _tmp21_, "Categories", "Network;");
#line 76 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp22_ = exec;
#line 76 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp23_ = g_str_has_prefix (_tmp22_, APPS_APP_PREFIX);
#line 76 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (_tmp23_) {
#line 822 "apps.c"
		GKeyFile* _tmp24_ = NULL;
		const gchar* _tmp25_ = NULL;
		const gchar* _tmp26_ = NULL;
		gchar* _tmp27_ = NULL;
		gchar* _tmp28_ = NULL;
#line 77 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp24_ = keyfile;
#line 77 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp25_ = entry;
#line 77 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp26_ = uri;
#line 77 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp27_ = string_delimit (_tmp26_, ":.\\/", '_');
#line 77 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp28_ = _tmp27_;
#line 77 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_key_file_set_string (_tmp24_, _tmp25_, "StartupWMClass", _tmp28_);
#line 77 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_free0 (_tmp28_);
#line 842 "apps.c"
	}
#line 79 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp29_ = keyfile;
#line 79 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp30_ = g_key_file_to_data (_tmp29_, NULL, NULL);
#line 79 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	result = _tmp30_;
#line 79 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (entry);
#line 79 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_key_file_free0 (keyfile);
#line 79 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (exec);
#line 79 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return result;
#line 858 "apps.c"
}


GFile* apps_launcher_get_app_folder (void) {
	GFile* result = NULL;
	GFile* data_dir = NULL;
	const gchar* _tmp0_ = NULL;
	GFile* _tmp1_ = NULL;
	GFile* _tmp2_ = NULL;
	GFile* _tmp3_ = NULL;
	GFile* _tmp4_ = NULL;
	GFile* _tmp5_ = NULL;
#line 83 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = midori_paths_get_user_data_dir ();
#line 83 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = g_file_new_for_path (_tmp0_);
#line 83 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp2_ = _tmp1_;
#line 83 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp3_ = g_file_get_child (_tmp2_, PACKAGE_NAME);
#line 83 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp4_ = _tmp3_;
#line 83 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_tmp2_);
#line 83 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	data_dir = _tmp4_;
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp5_ = g_file_get_child (data_dir, "apps");
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	result = _tmp5_;
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (data_dir);
#line 84 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return result;
#line 893 "apps.c"
}


static void apps_launcher_create_app_data_free (gpointer _data) {
	AppsLauncherCreateAppData* _data_;
	_data_ = _data;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->uri);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->title);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->proxy);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->result);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_slice_free (AppsLauncherCreateAppData, _data_);
#line 910 "apps.c"
}


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


void apps_launcher_create_app (const gchar* uri, const gchar* title, GtkWidget* proxy, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	AppsLauncherCreateAppData* _data_;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	GtkWidget* _tmp4_ = NULL;
	GtkWidget* _tmp5_ = NULL;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_ = g_slice_new0 (AppsLauncherCreateAppData);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_async_result = g_simple_async_result_new (NULL, _callback_, _user_data_, apps_launcher_create_app);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, apps_launcher_create_app_data_free);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = uri;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->uri);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->uri = _tmp1_;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp2_ = title;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->title);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->title = _tmp3_;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp4_ = proxy;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp5_ = _g_object_ref0 (_tmp4_);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->proxy);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->proxy = _tmp5_;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_launcher_create_app_co (_data_);
#line 961 "apps.c"
}


GFile* apps_launcher_create_app_finish (GAsyncResult* _res_) {
	GFile* result;
	AppsLauncherCreateAppData* _data_;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	result = _data_->result;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->result = NULL;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return result;
#line 976 "apps.c"
}


static void apps_launcher_create_app_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	AppsLauncherCreateAppData* _data_;
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_ = _user_data_;
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_source_object_ = source_object;
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_res_ = _res_;
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_launcher_create_app_co (_data_);
#line 990 "apps.c"
}


static gboolean apps_launcher_create_app_co (AppsLauncherCreateAppData* _data_) {
#line 87 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	switch (_data_->_state_) {
#line 87 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		case 0:
#line 999 "apps.c"
		goto _state_0;
#line 87 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		case 1:
#line 1003 "apps.c"
		goto _state_1;
		default:
#line 87 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_assert_not_reached ();
#line 1008 "apps.c"
	}
	_state_0:
#line 88 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp0_ = NULL;
#line 88 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp0_ = _data_->uri;
#line 88 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp1_ = NULL;
#line 88 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp1_ = g_compute_checksum_for_string (G_CHECKSUM_MD5, _data_->_tmp0_, (gsize) (-1));
#line 88 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->checksum = _data_->_tmp1_;
#line 89 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp2_ = NULL;
#line 89 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp2_ = apps_launcher_get_app_folder ();
#line 89 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->folder = _data_->_tmp2_;
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp3_ = NULL;
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp3_ = g_file_get_child (_data_->folder, _data_->checksum);
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp4_ = NULL;
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp5_ = NULL;
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp5_ = _data_->uri;
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp6_ = NULL;
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp6_ = _data_->title;
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp7_ = NULL;
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp7_ = _data_->proxy;
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_state_ = 1;
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_launcher_create (APPS_APP_PREFIX, _data_->_tmp4_, _data_->_tmp5_, _data_->_tmp6_, _data_->_tmp7_, apps_launcher_create_app_ready, _data_);
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return FALSE;
#line 1053 "apps.c"
	_state_1:
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_launcher_create_finish (_data_->_res_);
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->_tmp4_);
#line 92 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp8_ = NULL;
#line 92 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp8_ = g_file_get_child (_data_->folder, _data_->checksum);
#line 92 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->result = _data_->_tmp8_;
#line 92 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->folder);
#line 92 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->checksum);
#line 92 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (_data_->_state_ == 0) {
#line 92 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1073 "apps.c"
	} else {
#line 92 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1077 "apps.c"
	}
#line 92 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_object_unref (_data_->_async_result);
#line 92 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return FALSE;
#line 87 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->folder);
#line 87 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->checksum);
#line 87 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (_data_->_state_ == 0) {
#line 87 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1091 "apps.c"
	} else {
#line 87 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1095 "apps.c"
	}
#line 87 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_object_unref (_data_->_async_result);
#line 87 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return FALSE;
#line 1101 "apps.c"
}


GFile* apps_launcher_get_profile_folder (void) {
	GFile* result = NULL;
	GFile* data_dir = NULL;
	const gchar* _tmp0_ = NULL;
	GFile* _tmp1_ = NULL;
	GFile* _tmp2_ = NULL;
	GFile* _tmp3_ = NULL;
	GFile* _tmp4_ = NULL;
	GFile* _tmp5_ = NULL;
#line 96 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = midori_paths_get_user_data_dir ();
#line 96 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = g_file_new_for_path (_tmp0_);
#line 96 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp2_ = _tmp1_;
#line 96 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp3_ = g_file_get_child (_tmp2_, PACKAGE_NAME);
#line 96 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp4_ = _tmp3_;
#line 96 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_tmp2_);
#line 96 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	data_dir = _tmp4_;
#line 97 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp5_ = g_file_get_child (data_dir, "profiles");
#line 97 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	result = _tmp5_;
#line 97 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (data_dir);
#line 97 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return result;
#line 1136 "apps.c"
}


static void apps_launcher_create_profile_data_free (gpointer _data) {
	AppsLauncherCreateProfileData* _data_;
	_data_ = _data;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->proxy);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->result);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_slice_free (AppsLauncherCreateProfileData, _data_);
#line 1149 "apps.c"
}


void apps_launcher_create_profile (GtkWidget* proxy, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	AppsLauncherCreateProfileData* _data_;
	GtkWidget* _tmp0_ = NULL;
	GtkWidget* _tmp1_ = NULL;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_ = g_slice_new0 (AppsLauncherCreateProfileData);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_async_result = g_simple_async_result_new (NULL, _callback_, _user_data_, apps_launcher_create_profile);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, apps_launcher_create_profile_data_free);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = proxy;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->proxy);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->proxy = _tmp1_;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_launcher_create_profile_co (_data_);
#line 1173 "apps.c"
}


GFile* apps_launcher_create_profile_finish (GAsyncResult* _res_) {
	GFile* result;
	AppsLauncherCreateProfileData* _data_;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	result = _data_->result;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->result = NULL;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return result;
#line 1188 "apps.c"
}


static void apps_launcher_create_profile_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	AppsLauncherCreateProfileData* _data_;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_ = _user_data_;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_source_object_ = source_object;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_res_ = _res_;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_launcher_create_profile_co (_data_);
#line 1202 "apps.c"
}


static gboolean apps_launcher_create_profile_co (AppsLauncherCreateProfileData* _data_) {
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	switch (_data_->_state_) {
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		case 0:
#line 1211 "apps.c"
		goto _state_0;
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		case 1:
#line 1215 "apps.c"
		goto _state_1;
		default:
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_assert_not_reached ();
#line 1220 "apps.c"
	}
	_state_0:
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp0_ = NULL;
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp0_ = g_dbus_generate_guid ();
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp1_ = NULL;
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp1_ = g_strdup (_data_->_tmp0_);
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->uuid = _data_->_tmp1_;
#line 102 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp2_ = NULL;
#line 102 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp2_ = midori_paths_get_user_data_dir ();
#line 102 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp3_ = NULL;
#line 102 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp3_ = g_build_path (G_DIR_SEPARATOR_S, _data_->_tmp2_, PACKAGE_NAME, "profiles", _data_->uuid, NULL);
#line 102 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->config = _data_->_tmp3_;
#line 104 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp4_ = NULL;
#line 104 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp4_ = apps_launcher_get_profile_folder ();
#line 104 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->folder = _data_->_tmp4_;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp5_ = NULL;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp5_ = g_file_get_child (_data_->folder, _data_->uuid);
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp6_ = NULL;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp6_ = _data_->_tmp5_;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp7_ = NULL;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp7_ = _ ("Midori (%s)");
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp8_ = NULL;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp8_ = g_strdup_printf (_data_->_tmp7_, _data_->uuid);
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp9_ = NULL;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp9_ = _data_->_tmp8_;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp10_ = NULL;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp10_ = _data_->proxy;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_state_ = 1;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_launcher_create (APPS_PROFILE_PREFIX, _data_->_tmp6_, _data_->config, _data_->_tmp9_, _data_->_tmp10_, apps_launcher_create_profile_ready, _data_);
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return FALSE;
#line 1279 "apps.c"
	_state_1:
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_launcher_create_finish (_data_->_res_);
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->_tmp9_);
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->_tmp6_);
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp11_ = NULL;
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp11_ = g_file_get_child (_data_->folder, _data_->uuid);
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->result = _data_->_tmp11_;
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->folder);
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->config);
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->uuid);
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (_data_->_state_ == 0) {
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1303 "apps.c"
	} else {
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1307 "apps.c"
	}
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_object_unref (_data_->_async_result);
#line 107 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return FALSE;
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->folder);
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->config);
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->uuid);
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (_data_->_state_ == 0) {
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1323 "apps.c"
	} else {
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1327 "apps.c"
	}
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_object_unref (_data_->_async_result);
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return FALSE;
#line 1333 "apps.c"
}


static void apps_launcher_create_data_free (gpointer _data) {
	AppsLauncherCreateData* _data_;
	_data_ = _data;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->prefix);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->folder);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->uri);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->title);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->proxy);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_slice_free (AppsLauncherCreateData, _data_);
#line 1352 "apps.c"
}


void apps_launcher_create (const gchar* prefix, GFile* folder, const gchar* uri, const gchar* title, GtkWidget* proxy, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	AppsLauncherCreateData* _data_;
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	GFile* _tmp2_ = NULL;
	GFile* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	GtkWidget* _tmp8_ = NULL;
	GtkWidget* _tmp9_ = NULL;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_ = g_slice_new0 (AppsLauncherCreateData);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_async_result = g_simple_async_result_new (NULL, _callback_, _user_data_, apps_launcher_create);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, apps_launcher_create_data_free);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = prefix;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->prefix);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->prefix = _tmp1_;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp2_ = folder;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->folder);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->folder = _tmp3_;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp4_ = uri;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp5_ = g_strdup (_tmp4_);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->uri);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->uri = _tmp5_;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp6_ = title;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp7_ = g_strdup (_tmp6_);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->title);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->title = _tmp7_;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp8_ = proxy;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp9_ = _g_object_ref0 (_tmp8_);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->proxy);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->proxy = _tmp9_;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_launcher_create_co (_data_);
#line 1416 "apps.c"
}


void apps_launcher_create_finish (GAsyncResult* _res_) {
	AppsLauncherCreateData* _data_;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 1424 "apps.c"
}


static gchar* string_strip (const gchar* self) {
	gchar* result = NULL;
	gchar* _result_ = NULL;
	gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 1115 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1116 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp0_ = g_strdup (self);
#line 1116 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_result_ = _tmp0_;
#line 1117 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp1_ = _result_;
#line 1117 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_strstrip (_tmp1_);
#line 1118 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	result = _result_;
#line 1118 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	return result;
#line 1447 "apps.c"
}


static void apps_launcher_create_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	AppsLauncherCreateData* _data_;
#line 132 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_ = _user_data_;
#line 132 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_source_object_ = source_object;
#line 132 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_res_ = _res_;
#line 132 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_launcher_create_co (_data_);
#line 1461 "apps.c"
}


static guint8* string_get_data (const gchar* self, int* result_length1) {
	guint8* result;
	guint8* res = NULL;
	gint res_length1 = 0;
	gint _res_size_ = 0;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
	gint _tmp2_ = 0;
	guint8* _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
	guint8* _tmp4_ = NULL;
	gint _tmp4__length1 = 0;
#line 1300 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1301 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	res = (guint8*) self;
#line 1301 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	res_length1 = -1;
#line 1301 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_res_size_ = res_length1;
#line 1302 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp0_ = strlen (self);
#line 1302 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp1_ = _tmp0_;
#line 1302 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	res_length1 = (gint) _tmp1_;
#line 1302 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp2_ = res_length1;
#line 1303 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp3_ = res;
#line 1303 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp3__length1 = res_length1;
#line 1303 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp4_ = _tmp3_;
#line 1303 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	_tmp4__length1 = _tmp3__length1;
#line 1303 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (result_length1) {
#line 1303 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		*result_length1 = _tmp4__length1;
#line 1505 "apps.c"
	}
#line 1303 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	result = _tmp4_;
#line 1303 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	return result;
#line 1511 "apps.c"
}


static gboolean apps_launcher_create_co (AppsLauncherCreateData* _data_) {
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	switch (_data_->_state_) {
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		case 0:
#line 1520 "apps.c"
		goto _state_0;
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		case 1:
#line 1524 "apps.c"
		goto _state_1;
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		case 2:
#line 1528 "apps.c"
		goto _state_2;
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		case 3:
#line 1532 "apps.c"
		goto _state_3;
		default:
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_assert_not_reached ();
#line 1537 "apps.c"
	}
	_state_0:
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp0_ = NULL;
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp0_ = _data_->title;
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp1_ = NULL;
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp1_ = string_delimit (_data_->_tmp0_, "‪/", ' ');
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp2_ = NULL;
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp2_ = _data_->_tmp1_;
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp3_ = NULL;
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp3_ = string_strip (_data_->_tmp2_);
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp4_ = NULL;
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->_tmp2_);
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->name = _data_->_tmp4_;
#line 113 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp5_ = NULL;
#line 113 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp5_ = _data_->name;
#line 113 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp6_ = NULL;
#line 113 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp6_ = midori_download_clean_filename (_data_->_tmp5_);
#line 113 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->filename = _data_->_tmp6_;
#line 114 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp7_ = NULL;
#line 114 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp7_ = g_strdup (MIDORI_STOCK_WEB_BROWSER);
#line 114 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->icon_name = _data_->_tmp7_;
#line 115 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->testing = FALSE;
#line 116 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp8_ = NULL;
#line 116 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp8_ = _data_->proxy;
#line 116 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (_data_->_tmp8_ == NULL) {
#line 117 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->testing = TRUE;
#line 1590 "apps.c"
	}
#line 118 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp9_ = NULL;
#line 118 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp9_ = _data_->folder;
#line 118 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp10_ = NULL;
#line 118 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp10_ = g_file_get_child (_data_->_tmp9_, "desc");
#line 118 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->file = _data_->_tmp10_;
#line 1602 "apps.c"
	{
#line 121 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp11_ = NULL;
#line 121 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp11_ = _data_->folder;
#line 121 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_file_make_directory_with_parents (_data_->_tmp11_, NULL, &_data_->_inner_error_);
#line 121 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 121 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			if (g_error_matches (_data_->_inner_error_, G_IO_ERROR, G_IO_ERROR_EXISTS)) {
#line 1614 "apps.c"
				goto __catch1_g_io_error_exists;
			}
			goto __catch1_g_error;
		}
	}
	goto __finally1;
	__catch1_g_io_error_exists:
	{
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->exist_error = _data_->_inner_error_;
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_inner_error_ = NULL;
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_error_free0 (_data_->exist_error);
#line 1629 "apps.c"
	}
	goto __finally1;
	__catch1_g_error:
	{
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_error_ = _data_->_inner_error_;
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_inner_error_ = NULL;
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp12_ = NULL;
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp12_ = _ ("Failed to create new launcher (%s): %s");
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp13_ = NULL;
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp13_ = _data_->file;
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp14_ = NULL;
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp14_ = g_file_get_path (_data_->_tmp13_);
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp15_ = NULL;
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp15_ = _data_->_tmp14_;
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp16_ = NULL;
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp16_ = _data_->_error_;
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp17_ = NULL;
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp17_ = _data_->_tmp16_->message;
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_warning (_data_->_tmp12_, _data_->_tmp15_, _data_->_tmp17_);
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_free0 (_data_->_tmp15_);
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_error_free0 (_data_->_error_);
#line 1668 "apps.c"
	}
	__finally1:
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (_data_->file);
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_free0 (_data_->icon_name);
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_free0 (_data_->filename);
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_free0 (_data_->name);
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_clear_error (&_data_->_inner_error_);
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		return FALSE;
#line 1687 "apps.c"
	}
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp18_ = NULL;
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp18_ = _data_->prefix;
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp19_ = NULL;
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp19_ = _data_->folder;
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp20_ = NULL;
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp20_ = _data_->uri;
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp21_ = FALSE;
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp21_ = _data_->testing;
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp22_ = NULL;
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp22_ = apps_launcher_get_favicon_name_for_uri (_data_->_tmp18_, _data_->_tmp19_, _data_->_tmp20_, _data_->_tmp21_);
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->icon_name);
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->icon_name = _data_->_tmp22_;
#line 129 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp23_ = NULL;
#line 129 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp23_ = _data_->prefix;
#line 129 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp24_ = NULL;
#line 129 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp24_ = _data_->name;
#line 129 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp25_ = NULL;
#line 129 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp25_ = _data_->uri;
#line 129 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp26_ = NULL;
#line 129 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp26_ = _data_->title;
#line 129 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp27_ = NULL;
#line 129 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp27_ = _data_->icon_name;
#line 129 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp28_ = NULL;
#line 129 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp28_ = apps_launcher_prepare_desktop_file (_data_->_tmp23_, _data_->_tmp24_, _data_->_tmp25_, _data_->_tmp26_, _data_->_tmp27_);
#line 129 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->desktop_file = _data_->_tmp28_;
#line 1739 "apps.c"
	{
#line 132 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp29_ = NULL;
#line 132 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp29_ = _data_->file;
#line 132 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_state_ = 1;
#line 132 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_file_replace_async (_data_->_tmp29_, NULL, FALSE, G_FILE_CREATE_NONE, G_PRIORITY_DEFAULT, NULL, apps_launcher_create_ready, _data_);
#line 132 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		return FALSE;
#line 1751 "apps.c"
		_state_1:
#line 132 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp30_ = NULL;
#line 132 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp30_ = g_file_replace_finish (_data_->_tmp29_, _data_->_res_, &_data_->_inner_error_);
#line 132 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->stream = _data_->_tmp30_;
#line 132 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 1761 "apps.c"
			goto __catch2_g_error;
		}
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp31_ = NULL;
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp31_ = _data_->stream;
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp32_ = NULL;
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp32_ = _data_->desktop_file;
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp33_ = NULL;
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp33__length1 = 0;
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp33_ = string_get_data (_data_->_tmp32_, &_data_->_tmp33__length1);
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp34_ = NULL;
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp34__length1 = 0;
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp34_ = _data_->_tmp33_;
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp34__length1 = _data_->_tmp33__length1;
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_state_ = 2;
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_output_stream_write_async ((GOutputStream*) _data_->_tmp31_, _data_->_tmp34_, (gsize) _data_->_tmp34__length1, G_PRIORITY_DEFAULT, NULL, apps_launcher_create_ready, _data_);
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		return FALSE;
#line 1792 "apps.c"
		_state_2:
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_output_stream_write_finish ((GOutputStream*) _data_->_tmp31_, _data_->_res_, &_data_->_inner_error_);
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_object_unref0 (_data_->stream);
#line 1800 "apps.c"
			goto __catch2_g_error;
		}
#line 138 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp35_ = NULL;
#line 138 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp35_ = midori_paths_get_user_data_dir ();
#line 138 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp36_ = NULL;
#line 138 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp36_ = g_file_new_for_path (_data_->_tmp35_);
#line 138 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->data_dir = _data_->_tmp36_;
#line 139 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp37_ = NULL;
#line 139 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp37_ = _data_->data_dir;
#line 139 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp38_ = NULL;
#line 139 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp38_ = g_file_get_child (_data_->_tmp37_, "applications");
#line 139 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->desktop_dir = _data_->_tmp38_;
#line 1823 "apps.c"
		{
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp39_ = NULL;
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp39_ = _data_->desktop_dir;
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			g_file_make_directory_with_parents (_data_->_tmp39_, NULL, &_data_->_inner_error_);
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				if (g_error_matches (_data_->_inner_error_, G_IO_ERROR, G_IO_ERROR_EXISTS)) {
#line 1835 "apps.c"
					goto __catch3_g_io_error_exists;
				}
				goto __finally3;
			}
		}
		goto __finally3;
		__catch3_g_io_error_exists:
		{
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_vala1_exist_error = _data_->_inner_error_;
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_inner_error_ = NULL;
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_error_free0 (_data_->_vala1_exist_error);
#line 1850 "apps.c"
		}
		__finally3:
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_object_unref0 (_data_->desktop_dir);
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_object_unref0 (_data_->data_dir);
#line 140 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_object_unref0 (_data_->stream);
#line 1861 "apps.c"
			goto __catch2_g_error;
		}
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp40_ = NULL;
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp40_ = _data_->file;
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp41_ = NULL;
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp41_ = _data_->desktop_dir;
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp42_ = NULL;
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp42_ = _data_->filename;
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp43_ = NULL;
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp43_ = g_strconcat (_data_->_tmp42_, ".desktop", NULL);
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp44_ = NULL;
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp44_ = _data_->_tmp43_;
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp45_ = NULL;
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp45_ = g_file_get_child (_data_->_tmp41_, _data_->_tmp44_);
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp46_ = NULL;
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp46_ = _data_->_tmp45_;
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_state_ = 3;
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_file_copy_async (_data_->_tmp40_, _data_->_tmp46_, G_FILE_COPY_NONE, G_PRIORITY_DEFAULT, NULL, NULL, NULL, apps_launcher_create_ready, _data_);
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		return FALSE;
#line 1898 "apps.c"
		_state_3:
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_file_copy_finish (_data_->_tmp40_, _data_->_res_, &_data_->_inner_error_);
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (_data_->_tmp46_);
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_free0 (_data_->_tmp44_);
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_object_unref0 (_data_->desktop_dir);
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_object_unref0 (_data_->data_dir);
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_object_unref0 (_data_->stream);
#line 1914 "apps.c"
			goto __catch2_g_error;
		}
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp47_ = NULL;
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp47_ = _data_->proxy;
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		if (_data_->_tmp47_ != NULL) {
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp48_ = NULL;
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp48_ = _data_->proxy;
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp49_ = NULL;
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp49_ = gtk_widget_get_toplevel (_data_->_tmp48_);
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp50_ = NULL;
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp50_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp49_, MIDORI_TYPE_BROWSER) ? ((MidoriBrowser*) _data_->_tmp49_) : NULL);
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->browser = _data_->_tmp50_;
#line 151 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp51_ = NULL;
#line 151 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp51_ = _data_->browser;
#line 151 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp52_ = NULL;
#line 151 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp52_ = _ ("Launcher created");
#line 151 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp53_ = NULL;
#line 151 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp53_ = _ ("You can now run <b>%s</b> from your launcher or menu");
#line 151 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp54_ = NULL;
#line 151 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp54_ = _data_->name;
#line 151 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp55_ = NULL;
#line 151 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp55_ = g_strdup_printf (_data_->_tmp53_, _data_->_tmp54_);
#line 151 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp56_ = NULL;
#line 151 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp56_ = _data_->_tmp55_;
#line 151 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			g_signal_emit_by_name (_data_->_tmp51_, "send-notification", _data_->_tmp52_, _data_->_tmp56_);
#line 151 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_free0 (_data_->_tmp56_);
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_object_unref0 (_data_->browser);
#line 1967 "apps.c"
		}
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (_data_->desktop_dir);
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (_data_->data_dir);
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (_data_->stream);
#line 1975 "apps.c"
	}
	goto __finally2;
	__catch2_g_error:
	{
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_vala1__error_ = _data_->_inner_error_;
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_inner_error_ = NULL;
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp57_ = NULL;
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp57_ = _ ("Failed to create new launcher (%s): %s");
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp58_ = NULL;
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp58_ = _data_->file;
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp59_ = NULL;
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp59_ = g_file_get_path (_data_->_tmp58_);
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp60_ = NULL;
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp60_ = _data_->_tmp59_;
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp61_ = NULL;
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp61_ = _data_->_vala1__error_;
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp62_ = NULL;
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp62_ = _data_->_tmp61_->message;
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_warning (_data_->_tmp57_, _data_->_tmp60_, _data_->_tmp62_);
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_free0 (_data_->_tmp60_);
#line 157 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp63_ = NULL;
#line 157 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp63_ = _data_->proxy;
#line 157 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		if (_data_->_tmp63_ != NULL) {
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp64_ = NULL;
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp64_ = _data_->proxy;
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp65_ = NULL;
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp65_ = gtk_widget_get_toplevel (_data_->_tmp64_);
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp66_ = NULL;
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp66_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp65_, MIDORI_TYPE_BROWSER) ? ((MidoriBrowser*) _data_->_tmp65_) : NULL);
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_vala1_browser = _data_->_tmp66_;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp67_ = NULL;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp67_ = _data_->_vala1_browser;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp68_ = NULL;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp68_ = _ ("Error creating launcher");
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp69_ = NULL;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp69_ = _ ("Failed to create new launcher (%s): %s");
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp70_ = NULL;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp70_ = _data_->file;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp71_ = NULL;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp71_ = g_file_get_path (_data_->_tmp70_);
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp72_ = NULL;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp72_ = _data_->_tmp71_;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp73_ = NULL;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp73_ = _data_->_vala1__error_;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp74_ = NULL;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp74_ = _data_->_tmp73_->message;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp75_ = NULL;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp75_ = g_strdup_printf (_data_->_tmp69_, _data_->_tmp72_, _data_->_tmp74_);
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp76_ = NULL;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp76_ = _data_->_tmp75_;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			g_signal_emit_by_name (_data_->_tmp67_, "send-notification", _data_->_tmp68_, _data_->_tmp76_);
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_free0 (_data_->_tmp76_);
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_free0 (_data_->_tmp72_);
#line 157 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_object_unref0 (_data_->_vala1_browser);
#line 2080 "apps.c"
		}
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_error_free0 (_data_->_vala1__error_);
#line 2084 "apps.c"
	}
	__finally2:
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_free0 (_data_->desktop_file);
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (_data_->file);
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_free0 (_data_->icon_name);
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_free0 (_data_->filename);
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_free0 (_data_->name);
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_clear_error (&_data_->_inner_error_);
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		return FALSE;
#line 2105 "apps.c"
	}
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->desktop_file);
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->file);
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->icon_name);
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->filename);
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->name);
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (_data_->_state_ == 0) {
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2121 "apps.c"
	} else {
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2125 "apps.c"
	}
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_object_unref (_data_->_async_result);
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return FALSE;
#line 2131 "apps.c"
}


AppsLauncher* apps_launcher_construct (GType object_type, GFile* file) {
	AppsLauncher * self = NULL;
	GFile* _tmp0_ = NULL;
	GFile* _tmp1_ = NULL;
#line 165 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_val_if_fail (file != NULL, NULL);
#line 165 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self = (AppsLauncher*) g_object_new (object_type, NULL);
#line 166 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = file;
#line 166 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 166 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (self->file);
#line 166 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self->file = _tmp1_;
#line 165 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return self;
#line 2153 "apps.c"
}


AppsLauncher* apps_launcher_new (GFile* file) {
#line 165 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return apps_launcher_construct (APPS_TYPE_LAUNCHER, file);
#line 2160 "apps.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 2173 "apps.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 2204 "apps.c"
				goto __catch5_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 2213 "apps.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 2229 "apps.c"
				goto __catch5_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 2240 "apps.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 2254 "apps.c"
	}
	goto __finally5;
	__catch5_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 2268 "apps.c"
	}
	__finally5:
#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 2279 "apps.c"
	}
}


static gboolean apps_launcher_real_init (GInitable* base, GCancellable* cancellable, GError** error) {
	AppsLauncher * self;
	gboolean result = FALSE;
	GKeyFile* keyfile = NULL;
	GKeyFile* _tmp0_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gboolean _tmp11_ = FALSE;
	const gchar* _tmp12_ = NULL;
	gboolean _tmp13_ = FALSE;
	gchar* _tmp16_ = NULL;
	gchar* _tmp17_ = NULL;
	gchar* _tmp18_ = NULL;
	gchar* _tmp19_ = NULL;
	gchar* _tmp20_ = NULL;
	gchar* _tmp21_ = NULL;
	const gchar* _tmp22_ = NULL;
	gchar* _tmp23_ = NULL;
	gchar* _tmp24_ = NULL;
	gchar* _tmp25_ = NULL;
	GError * _inner_error_ = NULL;
#line 169 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self = (AppsLauncher*) base;
#line 170 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = g_key_file_new ();
#line 170 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	keyfile = _tmp0_;
#line 2312 "apps.c"
	{
		GFile* _tmp1_ = NULL;
		GFile* _tmp2_ = NULL;
		GFile* _tmp3_ = NULL;
		gchar* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
#line 172 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp1_ = self->file;
#line 172 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp2_ = g_file_get_child (_tmp1_, "desc");
#line 172 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp3_ = _tmp2_;
#line 172 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp4_ = g_file_get_path (_tmp3_);
#line 172 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp5_ = _tmp4_;
#line 172 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_key_file_load_from_file (keyfile, _tmp5_, G_KEY_FILE_NONE, &_inner_error_);
#line 172 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_free0 (_tmp5_);
#line 172 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (_tmp3_);
#line 172 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2337 "apps.c"
			goto __catch4_g_error;
		}
	}
	goto __finally4;
	__catch4_g_error:
	{
		GError* desc_error = NULL;
		const gchar* _tmp6_ = NULL;
		GError* _tmp7_ = NULL;
#line 171 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		desc_error = _inner_error_;
#line 171 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_inner_error_ = NULL;
#line 174 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp6_ = _ ("No file \"desc\" found");
#line 174 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp7_ = g_error_new_literal (G_FILE_ERROR, G_FILE_ERROR_EXIST, _tmp6_);
#line 174 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_inner_error_ = _tmp7_;
#line 174 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_error_free0 (desc_error);
#line 2359 "apps.c"
		goto __finally4;
	}
	__finally4:
#line 171 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 171 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_propagate_error (error, _inner_error_);
#line 171 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_key_file_free0 (keyfile);
#line 171 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		return FALSE;
#line 2371 "apps.c"
	}
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp9_ = g_key_file_get_string (keyfile, "Desktop Entry", "Exec", &_inner_error_);
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp8_ = _tmp9_;
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_propagate_error (error, _inner_error_);
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_key_file_free0 (keyfile);
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		return FALSE;
#line 2385 "apps.c"
	}
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp10_ = _tmp8_;
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp8_ = NULL;
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (self->exec);
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self->exec = _tmp10_;
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp12_ = self->exec;
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp13_ = g_str_has_prefix (_tmp12_, APPS_APP_PREFIX);
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (!_tmp13_) {
#line 2401 "apps.c"
		const gchar* _tmp14_ = NULL;
		gboolean _tmp15_ = FALSE;
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp14_ = self->exec;
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp15_ = g_str_has_prefix (_tmp14_, APPS_PROFILE_PREFIX);
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp11_ = !_tmp15_;
#line 2410 "apps.c"
	} else {
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp11_ = FALSE;
#line 2414 "apps.c"
	}
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (_tmp11_) {
#line 179 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		result = FALSE;
#line 179 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_free0 (_tmp8_);
#line 179 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_key_file_free0 (keyfile);
#line 179 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		return result;
#line 2426 "apps.c"
	}
#line 181 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp17_ = g_key_file_get_string (keyfile, "Desktop Entry", "Name", &_inner_error_);
#line 181 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp16_ = _tmp17_;
#line 181 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 181 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_propagate_error (error, _inner_error_);
#line 181 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_free0 (_tmp8_);
#line 181 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_key_file_free0 (keyfile);
#line 181 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		return FALSE;
#line 2442 "apps.c"
	}
#line 181 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp18_ = _tmp16_;
#line 181 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp16_ = NULL;
#line 181 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (self->name);
#line 181 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self->name = _tmp18_;
#line 182 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp20_ = g_key_file_get_string (keyfile, "Desktop Entry", "Icon", &_inner_error_);
#line 182 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp19_ = _tmp20_;
#line 182 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 182 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_propagate_error (error, _inner_error_);
#line 182 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_free0 (_tmp16_);
#line 182 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_free0 (_tmp8_);
#line 182 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_key_file_free0 (keyfile);
#line 182 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		return FALSE;
#line 2468 "apps.c"
	}
#line 182 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp21_ = _tmp19_;
#line 182 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp19_ = NULL;
#line 182 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (self->icon_name);
#line 182 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self->icon_name = _tmp21_;
#line 183 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp22_ = self->exec;
#line 183 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp23_ = string_replace (_tmp22_, APPS_APP_PREFIX, "");
#line 183 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp24_ = _tmp23_;
#line 183 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp25_ = string_replace (_tmp24_, APPS_PROFILE_PREFIX, "");
#line 183 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (self->uri);
#line 183 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self->uri = _tmp25_;
#line 183 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_tmp24_);
#line 184 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	result = TRUE;
#line 184 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_tmp19_);
#line 184 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_tmp16_);
#line 184 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_tmp8_);
#line 184 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_key_file_free0 (keyfile);
#line 184 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return result;
#line 2504 "apps.c"
}


static void apps_launcher_class_init (AppsLauncherClass * klass) {
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_launcher_parent_class = g_type_class_peek_parent (klass);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	G_OBJECT_CLASS (klass)->finalize = apps_launcher_finalize;
#line 2513 "apps.c"
}


static void apps_launcher_g_initable_interface_init (GInitableIface * iface) {
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_launcher_g_initable_parent_iface = g_type_interface_peek_parent (iface);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	iface->init = (gboolean (*)(GInitable*, GCancellable*, GError**)) apps_launcher_real_init;
#line 2522 "apps.c"
}


static void apps_launcher_instance_init (AppsLauncher * self) {
}


static void apps_launcher_finalize (GObject* obj) {
	AppsLauncher * self;
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, APPS_TYPE_LAUNCHER, AppsLauncher);
#line 17 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (self->file);
#line 18 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (self->name);
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (self->icon_name);
#line 20 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (self->exec);
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (self->uri);
#line 16 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	G_OBJECT_CLASS (apps_launcher_parent_class)->finalize (obj);
#line 2546 "apps.c"
}


GType apps_launcher_get_type (void) {
	static volatile gsize apps_launcher_type_id__volatile = 0;
	if (g_once_init_enter (&apps_launcher_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (AppsLauncherClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) apps_launcher_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AppsLauncher), 0, (GInstanceInitFunc) apps_launcher_instance_init, NULL };
		static const GInterfaceInfo g_initable_info = { (GInterfaceInitFunc) apps_launcher_g_initable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType apps_launcher_type_id;
		apps_launcher_type_id = g_type_register_static (G_TYPE_OBJECT, "AppsLauncher", &g_define_type_info, 0);
		g_type_add_interface_static (apps_launcher_type_id, G_TYPE_INITABLE, &g_initable_info);
		g_once_init_leave (&apps_launcher_type_id__volatile, apps_launcher_type_id);
	}
	return apps_launcher_type_id__volatile;
}


static const gchar* apps_sidebar_real_get_stock_id (MidoriViewable* base) {
	AppsSidebar * self;
	const gchar* result = NULL;
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self = (AppsSidebar*) base;
#line 197 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	result = MIDORI_STOCK_WEB_BROWSER;
#line 197 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return result;
#line 2573 "apps.c"
}


static const gchar* apps_sidebar_real_get_label (MidoriViewable* base) {
	AppsSidebar * self;
	const gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
#line 200 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self = (AppsSidebar*) base;
#line 201 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = _ ("Applications");
#line 201 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	result = _tmp0_;
#line 201 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return result;
#line 2589 "apps.c"
}


static void ___lambda4_ (AppsSidebar* self) {
#line 217 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_launcher_create_profile ((GtkWidget*) self, NULL, NULL);
#line 2596 "apps.c"
}


static void ____lambda4__gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self) {
#line 216 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	___lambda4_ ((AppsSidebar*) self);
#line 2603 "apps.c"
}


static void ___lambda5_ (AppsSidebar* self) {
	MidoriView* view = NULL;
	GtkWidget* _tmp0_ = NULL;
	GtkWidget* _tmp1_ = NULL;
	GtkWidget* _tmp2_ = NULL;
	MidoriView* _tmp3_ = NULL;
	gchar* checksum = NULL;
	const gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	GFile* _tmp6_ = NULL;
	GFile* _tmp7_ = NULL;
	GFile* _tmp8_ = NULL;
	const gchar* _tmp9_ = NULL;
	const gchar* _tmp10_ = NULL;
#line 229 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = gtk_widget_get_toplevel ((GtkWidget*) self);
#line 229 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = midori_browser_get_tab (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, MIDORI_TYPE_BROWSER) ? ((MidoriBrowser*) _tmp0_) : NULL);
#line 229 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp2_ = _tmp1_;
#line 229 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, MIDORI_TYPE_VIEW) ? ((MidoriView*) _tmp2_) : NULL);
#line 229 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	view = _tmp3_;
#line 230 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp4_ = midori_view_get_display_uri (view);
#line 230 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp5_ = g_compute_checksum_for_string (G_CHECKSUM_MD5, _tmp4_, (gsize) (-1));
#line 230 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	checksum = _tmp5_;
#line 231 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp6_ = self->priv->app_folder;
#line 231 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp7_ = g_file_get_child (_tmp6_, checksum);
#line 231 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp8_ = _tmp7_;
#line 231 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp9_ = midori_view_get_display_uri (view);
#line 231 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp10_ = midori_view_get_display_title (view);
#line 231 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_launcher_create (APPS_APP_PREFIX, _tmp8_, _tmp9_, _tmp10_, (GtkWidget*) self, NULL, NULL);
#line 231 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_tmp8_);
#line 228 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (checksum);
#line 228 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (view);
#line 2655 "apps.c"
}


static void ____lambda5__gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self) {
#line 228 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	___lambda5_ ((AppsSidebar*) self);
#line 2662 "apps.c"
}


static GtkWidget* apps_sidebar_real_get_toolbar (MidoriViewable* base) {
	AppsSidebar * self;
	GtkWidget* result = NULL;
	GtkToolbar* _tmp0_ = NULL;
	GtkToolbar* _tmp24_ = NULL;
	GtkWidget* _tmp25_ = NULL;
#line 204 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self = (AppsSidebar*) base;
#line 205 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = self->priv->toolbar;
#line 205 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (_tmp0_ == NULL) {
#line 2678 "apps.c"
		GtkToolbar* _tmp1_ = NULL;
		GtkToolButton* profile = NULL;
		GtkToolButton* _tmp2_ = NULL;
		GtkToolButton* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
		GtkToolButton* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		GtkToolButton* _tmp7_ = NULL;
		GtkToolButton* _tmp8_ = NULL;
		GtkToolButton* _tmp9_ = NULL;
		GtkToolButton* _tmp10_ = NULL;
		GtkToolbar* _tmp11_ = NULL;
		GtkToolButton* _tmp12_ = NULL;
		GtkToolButton* app = NULL;
		GtkToolButton* _tmp13_ = NULL;
		GtkToolButton* _tmp14_ = NULL;
		const gchar* _tmp15_ = NULL;
		GtkToolButton* _tmp16_ = NULL;
		const gchar* _tmp17_ = NULL;
		GtkToolButton* _tmp18_ = NULL;
		GtkToolButton* _tmp19_ = NULL;
		GtkToolButton* _tmp20_ = NULL;
		GtkToolButton* _tmp21_ = NULL;
		GtkToolbar* _tmp22_ = NULL;
		GtkToolButton* _tmp23_ = NULL;
#line 206 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp1_ = (GtkToolbar*) gtk_toolbar_new ();
#line 206 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_object_ref_sink (_tmp1_);
#line 206 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (self->priv->toolbar);
#line 206 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		self->priv->toolbar = _tmp1_;
#line 210 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp2_ = (GtkToolButton*) gtk_tool_button_new_from_stock (GTK_STOCK_ADD);
#line 210 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_object_ref_sink (_tmp2_);
#line 210 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		profile = _tmp2_;
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp3_ = profile;
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp4_ = _ ("New _Profile");
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		gtk_tool_button_set_label (_tmp3_, _tmp4_);
#line 212 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp5_ = profile;
#line 212 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp6_ = _ ("Creates a new, independent profile and a launcher");
#line 212 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		gtk_widget_set_tooltip_text ((GtkWidget*) _tmp5_, _tmp6_);
#line 213 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp7_ = profile;
#line 213 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		gtk_tool_button_set_use_underline (_tmp7_, TRUE);
#line 214 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp8_ = profile;
#line 214 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		gtk_tool_item_set_is_important ((GtkToolItem*) _tmp8_, TRUE);
#line 215 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp9_ = profile;
#line 215 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		gtk_widget_show ((GtkWidget*) _tmp9_);
#line 216 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp10_ = profile;
#line 216 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_signal_connect_object (_tmp10_, "clicked", (GCallback) ____lambda4__gtk_tool_button_clicked, self, 0);
#line 219 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp11_ = self->priv->toolbar;
#line 219 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp12_ = profile;
#line 219 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		gtk_toolbar_insert (_tmp11_, (GtkToolItem*) _tmp12_, -1);
#line 222 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp13_ = (GtkToolButton*) gtk_tool_button_new_from_stock (GTK_STOCK_ADD);
#line 222 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_object_ref_sink (_tmp13_);
#line 222 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		app = _tmp13_;
#line 223 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp14_ = app;
#line 223 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp15_ = _ ("New _App");
#line 223 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		gtk_tool_button_set_label (_tmp14_, _tmp15_);
#line 224 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp16_ = app;
#line 224 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp17_ = _ ("Creates a new app for a specific site");
#line 224 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		gtk_widget_set_tooltip_text ((GtkWidget*) _tmp16_, _tmp17_);
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp18_ = app;
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		gtk_tool_button_set_use_underline (_tmp18_, TRUE);
#line 226 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp19_ = app;
#line 226 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		gtk_tool_item_set_is_important ((GtkToolItem*) _tmp19_, TRUE);
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp20_ = app;
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		gtk_widget_show ((GtkWidget*) _tmp20_);
#line 228 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp21_ = app;
#line 228 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_signal_connect_object (_tmp21_, "clicked", (GCallback) ____lambda5__gtk_tool_button_clicked, self, 0);
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp22_ = self->priv->toolbar;
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp23_ = app;
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		gtk_toolbar_insert (_tmp22_, (GtkToolItem*) _tmp23_, -1);
#line 205 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (app);
#line 205 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (profile);
#line 2796 "apps.c"
	}
#line 236 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp24_ = self->priv->toolbar;
#line 236 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp25_ = _g_object_ref0 ((GtkWidget*) _tmp24_);
#line 236 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	result = _tmp25_;
#line 236 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return result;
#line 2806 "apps.c"
}


static void apps_sidebar_row_activated (AppsSidebar* self, GtkTreePath* path, GtkTreeViewColumn* column) {
	GtkTreeIter iter = {0};
	GtkListStore* _tmp0_ = NULL;
	GtkTreePath* _tmp1_ = NULL;
	GtkTreeIter _tmp2_ = {0};
	gboolean _tmp3_ = FALSE;
	GError * _inner_error_ = NULL;
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (self != NULL);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (path != NULL);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (column != NULL);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = self->priv->store;
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = path;
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp3_ = gtk_tree_model_get_iter ((GtkTreeModel*) _tmp0_, &_tmp2_, _tmp1_);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	iter = _tmp2_;
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (_tmp3_) {
#line 2833 "apps.c"
		AppsLauncher* launcher = NULL;
		GtkListStore* _tmp4_ = NULL;
		GtkTreeIter _tmp5_ = {0};
#line 243 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp4_ = self->priv->store;
#line 243 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp5_ = iter;
#line 243 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		gtk_tree_model_get ((GtkTreeModel*) _tmp4_, &_tmp5_, 0, &launcher, -1);
#line 2843 "apps.c"
		{
			AppsLauncher* _tmp6_ = NULL;
			const gchar* _tmp7_ = NULL;
#line 245 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp6_ = launcher;
#line 245 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp7_ = _tmp6_->exec;
#line 245 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			g_spawn_command_line_async (_tmp7_, &_inner_error_);
#line 245 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2855 "apps.c"
				goto __catch6_g_error;
			}
		}
		goto __finally6;
		__catch6_g_error:
		{
			GError* _error_ = NULL;
			MidoriBrowser* browser = NULL;
			GtkWidget* _tmp8_ = NULL;
			MidoriBrowser* _tmp9_ = NULL;
			MidoriBrowser* _tmp10_ = NULL;
			const gchar* _tmp11_ = NULL;
			GError* _tmp12_ = NULL;
			const gchar* _tmp13_ = NULL;
#line 244 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_error_ = _inner_error_;
#line 244 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_inner_error_ = NULL;
#line 248 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp8_ = gtk_widget_get_toplevel ((GtkWidget*) self);
#line 248 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp9_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, MIDORI_TYPE_BROWSER) ? ((MidoriBrowser*) _tmp8_) : NULL);
#line 248 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			browser = _tmp9_;
#line 249 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp10_ = browser;
#line 249 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp11_ = _ ("Error launching");
#line 249 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp12_ = _error_;
#line 249 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp13_ = _tmp12_->message;
#line 249 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			g_signal_emit_by_name (_tmp10_, "send-notification", _tmp11_, _tmp13_);
#line 244 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_object_unref0 (browser);
#line 244 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_error_free0 (_error_);
#line 2894 "apps.c"
		}
		__finally6:
#line 244 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 244 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_object_unref0 (launcher);
#line 244 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.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 244 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			g_clear_error (&_inner_error_);
#line 244 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			return;
#line 2907 "apps.c"
		}
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (launcher);
#line 2911 "apps.c"
	}
}


static gboolean apps_sidebar_button_released (AppsSidebar* self, GdkEventButton* event) {
	gboolean result = FALSE;
	GtkTreePath* path = NULL;
	GtkTreeViewColumn* column = NULL;
	GdkEventButton _tmp0_ = {0};
	guint _tmp1_ = 0U;
	GtkTreeView* _tmp2_ = NULL;
	GdkEventButton _tmp3_ = {0};
	gdouble _tmp4_ = 0.0;
	GdkEventButton _tmp5_ = {0};
	gdouble _tmp6_ = 0.0;
	GtkTreePath* _tmp7_ = NULL;
	GtkTreeViewColumn* _tmp8_ = NULL;
	gboolean _tmp9_ = FALSE;
	GtkTreeViewColumn* _tmp10_ = NULL;
	GError * _inner_error_ = NULL;
#line 254 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 254 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 257 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = *event;
#line 257 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = _tmp0_.button;
#line 257 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (_tmp1_ != ((guint) 1)) {
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		result = FALSE;
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (column);
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_gtk_tree_path_free0 (path);
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		return result;
#line 2950 "apps.c"
	}
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp2_ = self->priv->treeview;
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp3_ = *event;
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp4_ = _tmp3_.x;
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp5_ = *event;
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp6_ = _tmp5_.y;
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp9_ = gtk_tree_view_get_path_at_pos (_tmp2_, (gint) _tmp4_, (gint) _tmp6_, &_tmp7_, &_tmp8_, NULL, NULL);
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_gtk_tree_path_free0 (path);
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	path = _tmp7_;
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (column);
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp10_ = _g_object_ref0 (_tmp8_);
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	column = _tmp10_;
#line 259 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (_tmp9_) {
#line 2976 "apps.c"
		GtkTreePath* _tmp11_ = NULL;
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp11_ = path;
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		if (_tmp11_ != NULL) {
#line 2982 "apps.c"
			GtkTreeViewColumn* _tmp12_ = NULL;
			GtkTreeView* _tmp13_ = NULL;
			GtkTreeViewColumn* _tmp14_ = NULL;
#line 261 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp12_ = column;
#line 261 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp13_ = self->priv->treeview;
#line 261 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp14_ = gtk_tree_view_get_column (_tmp13_, 2);
#line 261 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			if (_tmp12_ == _tmp14_) {
#line 2994 "apps.c"
				GtkTreeIter iter = {0};
				GtkListStore* _tmp15_ = NULL;
				GtkTreePath* _tmp16_ = NULL;
				GtkTreeIter _tmp17_ = {0};
				gboolean _tmp18_ = FALSE;
#line 263 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp15_ = self->priv->store;
#line 263 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp16_ = path;
#line 263 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp18_ = gtk_tree_model_get_iter ((GtkTreeModel*) _tmp15_, &_tmp17_, _tmp16_);
#line 263 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				iter = _tmp17_;
#line 263 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				if (_tmp18_) {
#line 3010 "apps.c"
					AppsLauncher* launcher = NULL;
					GtkListStore* _tmp19_ = NULL;
					GtkTreeIter _tmp20_ = {0};
#line 265 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
					_tmp19_ = self->priv->store;
#line 265 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
					_tmp20_ = iter;
#line 265 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
					gtk_tree_model_get ((GtkTreeModel*) _tmp19_, &_tmp20_, 0, &launcher, -1);
#line 3020 "apps.c"
					{
						AppsLauncher* _tmp21_ = NULL;
						GFile* _tmp22_ = NULL;
						GtkListStore* _tmp23_ = NULL;
						GtkTreeIter _tmp24_ = {0};
						gchar* filename = NULL;
						AppsLauncher* _tmp25_ = NULL;
						const gchar* _tmp26_ = NULL;
						gchar* _tmp27_ = NULL;
						GFile* data_dir = NULL;
						const gchar* _tmp28_ = NULL;
						GFile* _tmp29_ = NULL;
						GFile* _tmp30_ = NULL;
						GFile* _tmp31_ = NULL;
						GFile* _tmp32_ = NULL;
						const gchar* _tmp33_ = NULL;
						gchar* _tmp34_ = NULL;
						gchar* _tmp35_ = NULL;
						GFile* _tmp36_ = NULL;
						GFile* _tmp37_ = NULL;
#line 267 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp21_ = launcher;
#line 267 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp22_ = _tmp21_->file;
#line 267 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						g_file_trash (_tmp22_, NULL, &_inner_error_);
#line 267 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3049 "apps.c"
							goto __catch7_g_error;
						}
#line 268 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp23_ = self->priv->store;
#line 268 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp24_ = iter;
#line 268 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						gtk_list_store_remove (_tmp23_, &_tmp24_);
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp25_ = launcher;
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp26_ = _tmp25_->name;
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp27_ = midori_download_clean_filename (_tmp26_);
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						filename = _tmp27_;
#line 278 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp28_ = midori_paths_get_user_data_dir ();
#line 278 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp29_ = g_file_new_for_path (_tmp28_);
#line 278 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						data_dir = _tmp29_;
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp30_ = data_dir;
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp31_ = g_file_get_child (_tmp30_, "applications");
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp32_ = _tmp31_;
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp33_ = filename;
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp34_ = g_strconcat (_tmp33_, ".desktop", NULL);
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp35_ = _tmp34_;
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp36_ = g_file_get_child (_tmp32_, _tmp35_);
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp37_ = _tmp36_;
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						g_file_trash (_tmp37_, NULL, &_inner_error_);
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_g_object_unref0 (_tmp37_);
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_g_free0 (_tmp35_);
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_g_object_unref0 (_tmp32_);
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_g_object_unref0 (data_dir);
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_g_free0 (filename);
#line 3102 "apps.c"
							goto __catch7_g_error;
						}
#line 266 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_g_object_unref0 (data_dir);
#line 266 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_g_free0 (filename);
#line 3109 "apps.c"
					}
					goto __finally7;
					__catch7_g_error:
					{
						GError* _error_ = NULL;
						AppsLauncher* _tmp38_ = NULL;
						GFile* _tmp39_ = NULL;
						gchar* _tmp40_ = NULL;
						gchar* _tmp41_ = NULL;
						GError* _tmp42_ = NULL;
						const gchar* _tmp43_ = NULL;
#line 266 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_error_ = _inner_error_;
#line 266 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_inner_error_ = NULL;
#line 283 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp38_ = launcher;
#line 283 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp39_ = _tmp38_->file;
#line 283 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp40_ = g_file_get_path (_tmp39_);
#line 283 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp41_ = _tmp40_;
#line 283 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp42_ = _error_;
#line 283 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_tmp43_ = _tmp42_->message;
#line 283 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						g_critical ("apps.vala:283: Failed to remove launcher (%s): %s", _tmp41_, _tmp43_);
#line 283 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_g_free0 (_tmp41_);
#line 266 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_g_error_free0 (_error_);
#line 3143 "apps.c"
					}
					__finally7:
#line 266 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 266 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_g_object_unref0 (launcher);
#line 266 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_g_object_unref0 (column);
#line 266 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_gtk_tree_path_free0 (path);
#line 266 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.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 266 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						g_clear_error (&_inner_error_);
#line 266 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						return FALSE;
#line 3160 "apps.c"
					}
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
					result = TRUE;
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
					_g_object_unref0 (launcher);
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
					_g_object_unref0 (column);
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
					_gtk_tree_path_free0 (path);
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
					return result;
#line 3172 "apps.c"
				}
			}
		}
	}
#line 290 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	result = FALSE;
#line 290 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (column);
#line 290 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_gtk_tree_path_free0 (path);
#line 290 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return result;
#line 3185 "apps.c"
}


static gint _apps_sidebar_tree_sort_func_gtk_tree_iter_compare_func (GtkTreeModel* model, GtkTreeIter* a, GtkTreeIter* b, gpointer self) {
	gint result;
	result = apps_sidebar_tree_sort_func ((AppsSidebar*) self, model, a, b);
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return result;
#line 3194 "apps.c"
}


static void _apps_sidebar_on_render_icon_gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self) {
#line 305 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_sidebar_on_render_icon ((AppsSidebar*) self, cell_layout, cell, tree_model, iter);
#line 3201 "apps.c"
}


static void _apps_sidebar_on_render_text_gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self) {
#line 313 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_sidebar_on_render_text ((AppsSidebar*) self, cell_layout, cell, tree_model, iter);
#line 3208 "apps.c"
}


static void _apps_sidebar_on_render_button_gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self) {
#line 319 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_sidebar_on_render_button ((AppsSidebar*) self, cell_layout, cell, tree_model, iter);
#line 3215 "apps.c"
}


static void _apps_sidebar_row_activated_gtk_tree_view_row_activated (GtkTreeView* _sender, GtkTreePath* path, GtkTreeViewColumn* column, gpointer self) {
#line 322 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_sidebar_row_activated ((AppsSidebar*) self, path, column);
#line 3222 "apps.c"
}


static gboolean _apps_sidebar_button_released_gtk_widget_button_release_event (GtkWidget* _sender, GdkEventButton* event, gpointer self) {
	gboolean result;
	result = apps_sidebar_button_released ((AppsSidebar*) self, event);
#line 323 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return result;
#line 3231 "apps.c"
}


static void _apps_sidebar_launcher_added_katze_array_add_item (KatzeArray* _sender, GObject* item, gpointer self) {
#line 328 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_sidebar_launcher_added ((AppsSidebar*) self, item);
#line 3238 "apps.c"
}


static void _apps_sidebar_launcher_removed_katze_array_remove_item (KatzeArray* _sender, GObject* item, gpointer self) {
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_sidebar_launcher_removed ((AppsSidebar*) self, item);
#line 3245 "apps.c"
}


AppsSidebar* apps_sidebar_construct (GType object_type, KatzeArray* array, GFile* app_folder, GFile* profile_folder) {
	AppsSidebar * self = NULL;
	GtkTreeViewColumn* column = NULL;
	GtkListStore* _tmp0_ = NULL;
	GtkTreeView* _tmp1_ = NULL;
	GtkTreeView* _tmp2_ = NULL;
	GtkListStore* _tmp3_ = NULL;
	GtkListStore* _tmp4_ = NULL;
	GtkTreeViewColumn* _tmp5_ = NULL;
	GtkCellRendererPixbuf* renderer_icon = NULL;
	GtkCellRendererPixbuf* _tmp6_ = NULL;
	GtkTreeViewColumn* _tmp7_ = NULL;
	GtkCellRendererPixbuf* _tmp8_ = NULL;
	GtkTreeViewColumn* _tmp9_ = NULL;
	GtkCellRendererPixbuf* _tmp10_ = NULL;
	GtkTreeView* _tmp11_ = NULL;
	GtkTreeViewColumn* _tmp12_ = NULL;
	GtkTreeViewColumn* _tmp13_ = NULL;
	GtkTreeViewColumn* _tmp14_ = NULL;
	GtkCellRendererText* renderer_text = NULL;
	GtkCellRendererText* _tmp15_ = NULL;
	GtkTreeViewColumn* _tmp16_ = NULL;
	GtkCellRendererText* _tmp17_ = NULL;
	GtkTreeViewColumn* _tmp18_ = NULL;
	GtkTreeViewColumn* _tmp19_ = NULL;
	GtkCellRendererText* _tmp20_ = NULL;
	GtkTreeView* _tmp21_ = NULL;
	GtkTreeViewColumn* _tmp22_ = NULL;
	GtkTreeViewColumn* _tmp23_ = NULL;
	GtkCellRendererPixbuf* renderer_button = NULL;
	GtkCellRendererPixbuf* _tmp24_ = NULL;
	GtkTreeViewColumn* _tmp25_ = NULL;
	GtkCellRendererPixbuf* _tmp26_ = NULL;
	GtkTreeViewColumn* _tmp27_ = NULL;
	GtkCellRendererPixbuf* _tmp28_ = NULL;
	GtkTreeView* _tmp29_ = NULL;
	GtkTreeViewColumn* _tmp30_ = NULL;
	GtkTreeView* _tmp31_ = NULL;
	GtkTreeView* _tmp32_ = NULL;
	GtkTreeView* _tmp33_ = NULL;
	GtkTreeView* _tmp34_ = NULL;
	KatzeArray* _tmp35_ = NULL;
	KatzeArray* _tmp36_ = NULL;
	KatzeArray* _tmp37_ = NULL;
	KatzeArray* _tmp38_ = NULL;
	KatzeArray* _tmp39_ = NULL;
	GList* _tmp40_ = NULL;
	GFile* _tmp43_ = NULL;
	GFile* _tmp44_ = NULL;
	GFile* _tmp45_ = NULL;
	GFile* _tmp46_ = NULL;
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_val_if_fail (array != NULL, NULL);
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_val_if_fail (app_folder != NULL, NULL);
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_val_if_fail (profile_folder != NULL, NULL);
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self = (AppsSidebar*) g_object_new (object_type, NULL);
#line 296 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = self->priv->store;
#line 296 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = (GtkTreeView*) gtk_tree_view_new_with_model ((GtkTreeModel*) _tmp0_);
#line 296 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_object_ref_sink (_tmp1_);
#line 296 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (self->priv->treeview);
#line 296 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self->priv->treeview = _tmp1_;
#line 297 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp2_ = self->priv->treeview;
#line 297 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_tree_view_set_headers_visible (_tmp2_, FALSE);
#line 299 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp3_ = self->priv->store;
#line 299 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_tree_sortable_set_sort_column_id ((GtkTreeSortable*) _tmp3_, 0, GTK_SORT_ASCENDING);
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp4_ = self->priv->store;
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_tree_sortable_set_sort_func ((GtkTreeSortable*) _tmp4_, 0, _apps_sidebar_tree_sort_func_gtk_tree_iter_compare_func, g_object_ref (self), g_object_unref);
#line 302 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp5_ = gtk_tree_view_column_new ();
#line 302 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_object_ref_sink (_tmp5_);
#line 302 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (column);
#line 302 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	column = _tmp5_;
#line 303 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp6_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new ();
#line 303 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_object_ref_sink (_tmp6_);
#line 303 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	renderer_icon = _tmp6_;
#line 304 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp7_ = column;
#line 304 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp8_ = renderer_icon;
#line 304 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp7_, (GtkCellRenderer*) _tmp8_, FALSE);
#line 305 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp9_ = column;
#line 305 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp10_ = renderer_icon;
#line 305 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_cell_layout_set_cell_data_func ((GtkCellLayout*) _tmp9_, (GtkCellRenderer*) _tmp10_, _apps_sidebar_on_render_icon_gtk_cell_layout_data_func, g_object_ref (self), g_object_unref);
#line 306 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp11_ = self->priv->treeview;
#line 306 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp12_ = column;
#line 306 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_tree_view_append_column (_tmp11_, _tmp12_);
#line 308 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp13_ = gtk_tree_view_column_new ();
#line 308 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_object_ref_sink (_tmp13_);
#line 308 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (column);
#line 308 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	column = _tmp13_;
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp14_ = column;
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_tree_view_column_set_sizing (_tmp14_, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp15_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_object_ref_sink (_tmp15_);
#line 310 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	renderer_text = _tmp15_;
#line 311 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp16_ = column;
#line 311 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp17_ = renderer_text;
#line 311 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp16_, (GtkCellRenderer*) _tmp17_, TRUE);
#line 312 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp18_ = column;
#line 312 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_tree_view_column_set_expand (_tmp18_, TRUE);
#line 313 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp19_ = column;
#line 313 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp20_ = renderer_text;
#line 313 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_cell_layout_set_cell_data_func ((GtkCellLayout*) _tmp19_, (GtkCellRenderer*) _tmp20_, _apps_sidebar_on_render_text_gtk_cell_layout_data_func, g_object_ref (self), g_object_unref);
#line 314 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp21_ = self->priv->treeview;
#line 314 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp22_ = column;
#line 314 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_tree_view_append_column (_tmp21_, _tmp22_);
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp23_ = gtk_tree_view_column_new ();
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_object_ref_sink (_tmp23_);
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (column);
#line 316 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	column = _tmp23_;
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp24_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new ();
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_object_ref_sink (_tmp24_);
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	renderer_button = _tmp24_;
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp25_ = column;
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp26_ = renderer_button;
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp25_, (GtkCellRenderer*) _tmp26_, FALSE);
#line 319 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp27_ = column;
#line 319 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp28_ = renderer_button;
#line 319 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_cell_layout_set_cell_data_func ((GtkCellLayout*) _tmp27_, (GtkCellRenderer*) _tmp28_, _apps_sidebar_on_render_button_gtk_cell_layout_data_func, g_object_ref (self), g_object_unref);
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp29_ = self->priv->treeview;
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp30_ = column;
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_tree_view_append_column (_tmp29_, _tmp30_);
#line 322 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp31_ = self->priv->treeview;
#line 322 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_signal_connect_object (_tmp31_, "row-activated", (GCallback) _apps_sidebar_row_activated_gtk_tree_view_row_activated, self, 0);
#line 323 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp32_ = self->priv->treeview;
#line 323 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_signal_connect_object ((GtkWidget*) _tmp32_, "button-release-event", (GCallback) _apps_sidebar_button_released_gtk_widget_button_release_event, self, 0);
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp33_ = self->priv->treeview;
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_widget_show ((GtkWidget*) _tmp33_);
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp34_ = self->priv->treeview;
#line 325 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_box_pack_start ((GtkBox*) self, (GtkWidget*) _tmp34_, TRUE, TRUE, (guint) 0);
#line 327 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp35_ = array;
#line 327 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp36_ = _g_object_ref0 (_tmp35_);
#line 327 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (self->priv->array);
#line 327 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self->priv->array = _tmp36_;
#line 328 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp37_ = array;
#line 328 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_signal_connect_object (_tmp37_, "add-item", (GCallback) _apps_sidebar_launcher_added_katze_array_add_item, self, 0);
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp38_ = array;
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_signal_connect_object (_tmp38_, "remove-item", (GCallback) _apps_sidebar_launcher_removed_katze_array_remove_item, self, 0);
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp39_ = array;
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp40_ = katze_array_get_items (_tmp39_);
#line 3470 "apps.c"
	{
		GList* item_collection = NULL;
		GList* item_it = NULL;
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		item_collection = _tmp40_;
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		for (item_it = item_collection; item_it != NULL; item_it = item_it->next) {
#line 3478 "apps.c"
			GObject* _tmp41_ = NULL;
			GObject* item = NULL;
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp41_ = _g_object_ref0 ((GObject*) ((KatzeItem*) item_it->data));
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			item = _tmp41_;
#line 3485 "apps.c"
			{
				GObject* _tmp42_ = NULL;
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp42_ = item;
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				apps_sidebar_launcher_added (self, _tmp42_);
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_g_object_unref0 (item);
#line 3494 "apps.c"
			}
		}
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_list_free0 (item_collection);
#line 3499 "apps.c"
	}
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp43_ = app_folder;
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp44_ = _g_object_ref0 (_tmp43_);
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (self->priv->app_folder);
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self->priv->app_folder = _tmp44_;
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp45_ = profile_folder;
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp46_ = _g_object_ref0 (_tmp45_);
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (self->priv->profile_folder);
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self->priv->profile_folder = _tmp46_;
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (renderer_button);
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (renderer_text);
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (renderer_icon);
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (column);
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return self;
#line 3527 "apps.c"
}


AppsSidebar* apps_sidebar_new (KatzeArray* array, GFile* app_folder, GFile* profile_folder) {
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return apps_sidebar_construct (APPS_TYPE_SIDEBAR, array, app_folder, profile_folder);
#line 3534 "apps.c"
}


static gint apps_sidebar_tree_sort_func (AppsSidebar* self, GtkTreeModel* model, GtkTreeIter* a, GtkTreeIter* b) {
	gint result = 0;
	AppsLauncher* launcher1 = NULL;
	AppsLauncher* launcher2 = NULL;
	GtkTreeModel* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	GtkTreeModel* _tmp2_ = NULL;
	GtkTreeIter _tmp3_ = {0};
	GCompareFunc _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	gint _tmp7_ = 0;
#line 337 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 337 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_val_if_fail (model != NULL, 0);
#line 337 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_val_if_fail (a != NULL, 0);
#line 337 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_val_if_fail (b != NULL, 0);
#line 339 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = model;
#line 339 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = *a;
#line 339 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_tree_model_get (_tmp0_, &_tmp1_, 0, &launcher1, -1);
#line 340 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp2_ = model;
#line 340 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp3_ = *b;
#line 340 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_tree_model_get (_tmp2_, &_tmp3_, 0, &launcher2, -1);
#line 341 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp4_ = g_strcmp0;
#line 341 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp5_ = launcher1->name;
#line 341 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp6_ = launcher2->name;
#line 341 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp7_ = _tmp4_ (_tmp5_, _tmp6_);
#line 341 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	result = _tmp7_;
#line 341 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (launcher2);
#line 341 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (launcher1);
#line 341 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return result;
#line 3586 "apps.c"
}


static void apps_sidebar_launcher_added (AppsSidebar* self, GObject* item) {
	AppsLauncher* launcher = NULL;
	GObject* _tmp0_ = NULL;
	AppsLauncher* _tmp1_ = NULL;
	GtkTreeIter iter = {0};
	GtkListStore* _tmp2_ = NULL;
	GtkTreeIter _tmp3_ = {0};
	GtkListStore* _tmp4_ = NULL;
	GtkTreeIter _tmp5_ = {0};
#line 343 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (self != NULL);
#line 343 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (item != NULL);
#line 344 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = item;
#line 344 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, APPS_TYPE_LAUNCHER) ? ((AppsLauncher*) _tmp0_) : NULL);
#line 344 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	launcher = _tmp1_;
#line 346 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp2_ = self->priv->store;
#line 346 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_list_store_append (_tmp2_, &_tmp3_);
#line 346 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	iter = _tmp3_;
#line 347 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp4_ = self->priv->store;
#line 347 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp5_ = iter;
#line 347 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_list_store_set (_tmp4_, &_tmp5_, 0, launcher, -1);
#line 343 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (launcher);
#line 3623 "apps.c"
}


static void apps_sidebar_launcher_removed (AppsSidebar* self, GObject* item) {
#line 350 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (self != NULL);
#line 350 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (item != NULL);
#line 3632 "apps.c"
}


static void apps_sidebar_on_render_icon (AppsSidebar* self, GtkCellLayout* column, GtkCellRenderer* renderer, GtkTreeModel* model, GtkTreeIter* iter) {
	AppsLauncher* launcher = NULL;
	GtkTreeModel* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	GtkCellRenderer* _tmp12_ = NULL;
	GError * _inner_error_ = NULL;
#line 354 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (self != NULL);
#line 354 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (column != NULL);
#line 354 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (renderer != NULL);
#line 354 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (model != NULL);
#line 354 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (iter != NULL);
#line 358 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = model;
#line 358 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = *iter;
#line 358 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_tree_model_get (_tmp0_, &_tmp1_, 0, &launcher, -1);
#line 3658 "apps.c"
	{
		gint icon_width = 0;
		gint icon_height = 0;
		GtkSettings* _tmp2_ = NULL;
		gint _tmp3_ = 0;
		gint _tmp4_ = 0;
		GdkPixbuf* pixbuf = NULL;
		const gchar* _tmp5_ = NULL;
		gint _tmp6_ = 0;
		gint _tmp7_ = 0;
		GdkPixbuf* _tmp8_ = NULL;
		GtkCellRenderer* _tmp9_ = NULL;
#line 361 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		icon_width = 48;
#line 361 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		icon_height = 48;
#line 362 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp2_ = gtk_widget_get_settings ((GtkWidget*) self);
#line 362 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		gtk_icon_size_lookup_for_settings (_tmp2_, GTK_ICON_SIZE_DIALOG, &_tmp3_, &_tmp4_);
#line 362 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		icon_width = _tmp3_;
#line 362 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		icon_height = _tmp4_;
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp5_ = launcher->icon_name;
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp6_ = icon_width;
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp7_ = icon_height;
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp8_ = gdk_pixbuf_new_from_file_at_size (_tmp5_, _tmp6_, _tmp7_, &_inner_error_);
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		pixbuf = _tmp8_;
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3695 "apps.c"
			goto __catch8_g_error;
		}
#line 365 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp9_ = renderer;
#line 365 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_object_set ((GObject*) _tmp9_, "pixbuf", pixbuf, NULL);
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (pixbuf);
#line 3704 "apps.c"
	}
	goto __finally8;
	__catch8_g_error:
	{
		GError* _error_ = NULL;
		GtkCellRenderer* _tmp10_ = NULL;
		const gchar* _tmp11_ = NULL;
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_error_ = _inner_error_;
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_inner_error_ = NULL;
#line 368 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp10_ = renderer;
#line 368 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp11_ = launcher->icon_name;
#line 368 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_object_set ((GObject*) _tmp10_, "icon-name", _tmp11_, NULL);
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_error_free0 (_error_);
#line 3724 "apps.c"
	}
	__finally8:
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (launcher);
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.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 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_clear_error (&_inner_error_);
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		return;
#line 3737 "apps.c"
	}
#line 370 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp12_ = renderer;
#line 370 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_object_set ((GObject*) _tmp12_, "stock-size", GTK_ICON_SIZE_DIALOG, "xpad", 4, NULL);
#line 354 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (launcher);
#line 3745 "apps.c"
}


static void apps_sidebar_on_render_text (AppsSidebar* self, GtkCellLayout* column, GtkCellRenderer* renderer, GtkTreeModel* model, GtkTreeIter* iter) {
	AppsLauncher* launcher = NULL;
	GtkTreeModel* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	GtkCellRenderer* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
#line 374 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (self != NULL);
#line 374 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (column != NULL);
#line 374 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (renderer != NULL);
#line 374 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (model != NULL);
#line 374 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (iter != NULL);
#line 378 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = model;
#line 378 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = *iter;
#line 378 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_tree_model_get (_tmp0_, &_tmp1_, 0, &launcher, -1);
#line 379 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp2_ = renderer;
#line 379 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp3_ = launcher->name;
#line 379 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp4_ = launcher->uri;
#line 379 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp5_ = g_markup_printf_escaped ("<b>%s</b>\n%s", _tmp3_, _tmp4_);
#line 379 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp6_ = _tmp5_;
#line 379 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_object_set ((GObject*) _tmp2_, "markup", _tmp6_, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
#line 379 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_tmp6_);
#line 374 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (launcher);
#line 3790 "apps.c"
}


static void apps_sidebar_on_render_button (AppsSidebar* self, GtkCellLayout* column, GtkCellRenderer* renderer, GtkTreeModel* model, GtkTreeIter* iter) {
	GtkCellRenderer* _tmp0_ = NULL;
#line 385 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (self != NULL);
#line 385 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (column != NULL);
#line 385 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (renderer != NULL);
#line 385 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (model != NULL);
#line 385 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (iter != NULL);
#line 388 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = renderer;
#line 388 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_object_set ((GObject*) _tmp0_, "stock-id", GTK_STOCK_DELETE, "stock-size", GTK_ICON_SIZE_MENU, NULL);
#line 3810 "apps.c"
}


static void apps_sidebar_class_init (AppsSidebarClass * klass) {
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_sidebar_parent_class = g_type_class_peek_parent (klass);
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_type_class_add_private (klass, sizeof (AppsSidebarPrivate));
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	G_OBJECT_CLASS (klass)->finalize = apps_sidebar_finalize;
#line 3821 "apps.c"
}


static void apps_sidebar_midori_viewable_interface_init (MidoriViewableIface * iface) {
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_sidebar_midori_viewable_parent_iface = g_type_interface_peek_parent (iface);
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	iface->get_stock_id = (const gchar* (*)(MidoriViewable*)) apps_sidebar_real_get_stock_id;
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	iface->get_label = (const gchar* (*)(MidoriViewable*)) apps_sidebar_real_get_label;
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	iface->get_toolbar = (GtkWidget* (*)(MidoriViewable*)) apps_sidebar_real_get_toolbar;
#line 3834 "apps.c"
}


static void apps_sidebar_instance_init (AppsSidebar * self) {
	GtkListStore* _tmp0_ = NULL;
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self->priv = APPS_SIDEBAR_GET_PRIVATE (self);
#line 189 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self->priv->toolbar = NULL;
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = gtk_list_store_new (1, APPS_TYPE_LAUNCHER);
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self->priv->store = _tmp0_;
#line 3848 "apps.c"
}


static void apps_sidebar_finalize (GObject* obj) {
	AppsSidebar * self;
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, APPS_TYPE_SIDEBAR, AppsSidebar);
#line 189 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (self->priv->toolbar);
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (self->priv->store);
#line 191 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (self->priv->treeview);
#line 192 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (self->priv->array);
#line 193 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (self->priv->app_folder);
#line 194 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (self->priv->profile_folder);
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	G_OBJECT_CLASS (apps_sidebar_parent_class)->finalize (obj);
#line 3870 "apps.c"
}


GType apps_sidebar_get_type (void) {
	static volatile gsize apps_sidebar_type_id__volatile = 0;
	if (g_once_init_enter (&apps_sidebar_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (AppsSidebarClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) apps_sidebar_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AppsSidebar), 0, (GInstanceInitFunc) apps_sidebar_instance_init, NULL };
		static const GInterfaceInfo midori_viewable_info = { (GInterfaceInitFunc) apps_sidebar_midori_viewable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType apps_sidebar_type_id;
		apps_sidebar_type_id = g_type_register_static (GTK_TYPE_VBOX, "AppsSidebar", &g_define_type_info, 0);
		g_type_add_interface_static (apps_sidebar_type_id, MIDORI_TYPE_VIEWABLE, &midori_viewable_info);
		g_once_init_leave (&apps_sidebar_type_id__volatile, apps_sidebar_type_id);
	}
	return apps_sidebar_type_id__volatile;
}


static void _g_object_unref0_ (gpointer var) {
#line 397 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 3891 "apps.c"
}


static void _g_list_free__g_object_unref0_ (GList* self) {
#line 397 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_list_foreach (self, (GFunc) _g_object_unref0_, NULL);
#line 397 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_list_free (self);
#line 3900 "apps.c"
}


static void apps_manager_app_changed (AppsManager* self, GFile* file, GFile* other, GFileMonitorEvent event) {
	GError * _inner_error_ = NULL;
#line 400 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (self != NULL);
#line 400 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (file != NULL);
#line 3910 "apps.c"
	{
		GFileMonitorEvent _tmp0_ = 0;
#line 402 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp0_ = event;
#line 402 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		switch (_tmp0_) {
#line 402 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			case G_FILE_MONITOR_EVENT_DELETED:
#line 3919 "apps.c"
			{
#line 405 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				break;
#line 3923 "apps.c"
			}
#line 402 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			case G_FILE_MONITOR_EVENT_CREATED:
#line 3927 "apps.c"
			{
				AppsLauncher* launcher = NULL;
				GFile* _tmp1_ = NULL;
				AppsLauncher* _tmp2_ = NULL;
				gboolean _tmp3_ = FALSE;
				AppsLauncher* _tmp4_ = NULL;
				gboolean _tmp5_ = FALSE;
#line 407 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp1_ = file;
#line 407 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp2_ = apps_launcher_new (_tmp1_);
#line 407 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				launcher = _tmp2_;
#line 408 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp4_ = launcher;
#line 408 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp5_ = g_initable_init ((GInitable*) _tmp4_, NULL, &_inner_error_);
#line 408 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp3_ = _tmp5_;
#line 408 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 408 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
					_g_object_unref0 (launcher);
#line 3951 "apps.c"
					goto __catch9_g_error;
				}
#line 408 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				if (_tmp3_) {
#line 3956 "apps.c"
					KatzeArray* _tmp6_ = NULL;
					AppsLauncher* _tmp7_ = NULL;
#line 409 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
					_tmp6_ = self->array;
#line 409 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
					_tmp7_ = launcher;
#line 409 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
					g_signal_emit_by_name (_tmp6_, "add-item", (GObject*) _tmp7_);
#line 3965 "apps.c"
				}
#line 410 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_g_object_unref0 (launcher);
#line 410 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				break;
#line 3971 "apps.c"
			}
#line 402 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			case G_FILE_MONITOR_EVENT_CHANGED:
#line 3975 "apps.c"
			{
#line 413 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				break;
#line 3979 "apps.c"
			}
			default:
#line 402 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			break;
#line 3984 "apps.c"
		}
	}
	goto __finally9;
	__catch9_g_error:
	{
		GError* _error_ = NULL;
		GFile* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		GError* _tmp11_ = NULL;
		const gchar* _tmp12_ = NULL;
#line 401 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_error_ = _inner_error_;
#line 401 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_inner_error_ = NULL;
#line 417 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp8_ = file;
#line 417 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp9_ = g_file_get_path (_tmp8_);
#line 417 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp10_ = _tmp9_;
#line 417 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp11_ = _error_;
#line 417 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_tmp12_ = _tmp11_->message;
#line 417 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_warning ("apps.vala:417: Application changed (%s): %s", _tmp10_, _tmp12_);
#line 417 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_free0 (_tmp10_);
#line 401 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_error_free0 (_error_);
#line 4016 "apps.c"
	}
	__finally9:
#line 401 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 401 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.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 401 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_clear_error (&_inner_error_);
#line 401 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		return;
#line 4027 "apps.c"
	}
}


static void apps_manager_populate_apps_data_free (gpointer _data) {
	AppsManagerPopulateAppsData* _data_;
	_data_ = _data;
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->app_folder);
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->self);
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_slice_free (AppsManagerPopulateAppsData, _data_);
#line 4041 "apps.c"
}


static void apps_manager_populate_apps (AppsManager* self, GFile* app_folder, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	AppsManagerPopulateAppsData* _data_;
	AppsManager* _tmp0_ = NULL;
	GFile* _tmp1_ = NULL;
	GFile* _tmp2_ = NULL;
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_ = g_slice_new0 (AppsManagerPopulateAppsData);
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, apps_manager_populate_apps);
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, apps_manager_populate_apps_data_free);
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->self = _tmp0_;
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = app_folder;
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->app_folder);
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->app_folder = _tmp2_;
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_manager_populate_apps_co (_data_);
#line 4070 "apps.c"
}


static void apps_manager_populate_apps_finish (AppsManager* self, GAsyncResult* _res_) {
	AppsManagerPopulateAppsData* _data_;
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 4078 "apps.c"
}


static void _apps_manager_app_changed_g_file_monitor_changed (GFileMonitor* _sender, GFile* file, GFile* other_file, GFileMonitorEvent event_type, gpointer self) {
#line 430 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_manager_app_changed ((AppsManager*) self, file, other_file, event_type);
#line 4085 "apps.c"
}


static void apps_manager_populate_apps_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	AppsManagerPopulateAppsData* _data_;
#line 433 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_ = _user_data_;
#line 433 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_source_object_ = source_object;
#line 433 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_res_ = _res_;
#line 433 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_manager_populate_apps_co (_data_);
#line 4099 "apps.c"
}


static gboolean apps_manager_populate_apps_co (AppsManagerPopulateAppsData* _data_) {
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	switch (_data_->_state_) {
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		case 0:
#line 4108 "apps.c"
		goto _state_0;
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		case 1:
#line 4112 "apps.c"
		goto _state_1;
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		case 2:
#line 4116 "apps.c"
		goto _state_2;
		default:
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_assert_not_reached ();
#line 4121 "apps.c"
	}
	_state_0:
	{
		{
#line 424 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp0_ = NULL;
#line 424 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp0_ = _data_->app_folder;
#line 424 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			g_file_make_directory_with_parents (_data_->_tmp0_, NULL, &_data_->_inner_error_);
#line 424 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 424 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				if (g_error_matches (_data_->_inner_error_, G_IO_ERROR, G_IO_ERROR_EXISTS)) {
#line 4136 "apps.c"
					goto __catch11_g_io_error_exists;
				}
				goto __finally11;
			}
		}
		goto __finally11;
		__catch11_g_io_error_exists:
		{
#line 423 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->exist_error = _data_->_inner_error_;
#line 423 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_inner_error_ = NULL;
#line 423 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_error_free0 (_data_->exist_error);
#line 4151 "apps.c"
		}
		__finally11:
#line 423 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 4156 "apps.c"
			goto __catch10_g_error;
		}
#line 429 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp1_ = NULL;
#line 429 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp1_ = _data_->app_folder;
#line 429 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp2_ = NULL;
#line 429 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp2_ = g_file_monitor_directory (_data_->_tmp1_, 0, NULL, &_data_->_inner_error_);
#line 429 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->monitor = _data_->_tmp2_;
#line 429 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 4171 "apps.c"
			goto __catch10_g_error;
		}
#line 430 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp3_ = NULL;
#line 430 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp3_ = _data_->monitor;
#line 430 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_signal_connect_object (_data_->_tmp3_, "changed", (GCallback) _apps_manager_app_changed_g_file_monitor_changed, _data_->self, 0);
#line 431 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp4_ = NULL;
#line 431 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp4_ = _data_->monitor;
#line 431 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp5_ = NULL;
#line 431 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp5_ = _g_object_ref0 (_data_->_tmp4_);
#line 431 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->self->monitors = g_list_append (_data_->self->monitors, _data_->_tmp5_);
#line 433 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp6_ = NULL;
#line 433 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp6_ = _data_->app_folder;
#line 433 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_state_ = 1;
#line 433 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_file_enumerate_children_async (_data_->_tmp6_, "standard::name", 0, G_PRIORITY_DEFAULT, NULL, apps_manager_populate_apps_ready, _data_);
#line 433 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		return FALSE;
#line 4200 "apps.c"
		_state_1:
#line 433 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp7_ = NULL;
#line 433 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp7_ = g_file_enumerate_children_finish (_data_->_tmp6_, _data_->_res_, &_data_->_inner_error_);
#line 433 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->enumerator = _data_->_tmp7_;
#line 433 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 433 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_g_object_unref0 (_data_->monitor);
#line 4212 "apps.c"
			goto __catch10_g_error;
		}
#line 434 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		while (TRUE) {
#line 435 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp8_ = NULL;
#line 435 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp8_ = _data_->enumerator;
#line 435 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_state_ = 2;
#line 435 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			g_file_enumerator_next_files_async (_data_->_tmp8_, 10, G_PRIORITY_DEFAULT, NULL, apps_manager_populate_apps_ready, _data_);
#line 435 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			return FALSE;
#line 4227 "apps.c"
			_state_2:
#line 435 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp9_ = NULL;
#line 435 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp9_ = g_file_enumerator_next_files_finish (_data_->_tmp8_, _data_->_res_, &_data_->_inner_error_);
#line 435 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->files = _data_->_tmp9_;
#line 435 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 435 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_g_object_unref0 (_data_->enumerator);
#line 435 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_g_object_unref0 (_data_->monitor);
#line 4241 "apps.c"
				goto __catch10_g_error;
			}
#line 436 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp10_ = NULL;
#line 436 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp10_ = _data_->files;
#line 436 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			if (_data_->_tmp10_ == NULL) {
#line 437 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				__g_list_free__g_object_unref0_0 (_data_->files);
#line 437 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				break;
#line 4254 "apps.c"
			}
#line 438 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp11_ = NULL;
#line 438 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_data_->_tmp11_ = _data_->files;
#line 4260 "apps.c"
			{
#line 438 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_data_->info_collection = _data_->_tmp11_;
#line 438 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				for (_data_->info_it = _data_->info_collection; _data_->info_it != NULL; _data_->info_it = _data_->info_it->next) {
#line 438 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
					_data_->_tmp12_ = NULL;
#line 438 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
					_data_->_tmp12_ = _g_object_ref0 ((GFileInfo*) _data_->info_it->data);
#line 438 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
					_data_->info = _data_->_tmp12_;
#line 4272 "apps.c"
					{
#line 439 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_data_->_tmp13_ = NULL;
#line 439 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_data_->_tmp13_ = _data_->app_folder;
#line 439 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_data_->_tmp14_ = NULL;
#line 439 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_data_->_tmp14_ = _data_->info;
#line 439 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_data_->_tmp15_ = NULL;
#line 439 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_data_->_tmp15_ = g_file_info_get_name (_data_->_tmp14_);
#line 439 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_data_->_tmp16_ = NULL;
#line 439 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_data_->_tmp16_ = g_file_get_child (_data_->_tmp13_, _data_->_tmp15_);
#line 439 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_data_->file = _data_->_tmp16_;
#line 4292 "apps.c"
						{
#line 441 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_tmp17_ = NULL;
#line 441 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_tmp17_ = _data_->file;
#line 441 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_tmp18_ = NULL;
#line 441 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_tmp18_ = apps_launcher_new (_data_->_tmp17_);
#line 441 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->launcher = _data_->_tmp18_;
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_tmp20_ = NULL;
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_tmp20_ = _data_->launcher;
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_tmp21_ = FALSE;
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_tmp21_ = g_initable_init ((GInitable*) _data_->_tmp20_, NULL, &_data_->_inner_error_);
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_tmp19_ = _data_->_tmp21_;
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
								_g_object_unref0 (_data_->launcher);
#line 4318 "apps.c"
								goto __catch12_g_error;
							}
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							if (_data_->_tmp19_) {
#line 443 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
								_data_->_tmp22_ = NULL;
#line 443 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
								_data_->_tmp22_ = _data_->self->array;
#line 443 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
								_data_->_tmp23_ = NULL;
#line 443 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
								_data_->_tmp23_ = _data_->launcher;
#line 443 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
								g_signal_emit_by_name (_data_->_tmp22_, "add-item", (GObject*) _data_->_tmp23_);
#line 4333 "apps.c"
							}
#line 440 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_g_object_unref0 (_data_->launcher);
#line 4337 "apps.c"
						}
						goto __finally12;
						__catch12_g_error:
						{
#line 440 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_error_ = _data_->_inner_error_;
#line 440 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_inner_error_ = NULL;
#line 446 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_tmp24_ = NULL;
#line 446 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_tmp24_ = _data_->file;
#line 446 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_tmp25_ = NULL;
#line 446 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_tmp25_ = g_file_get_path (_data_->_tmp24_);
#line 446 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_tmp26_ = NULL;
#line 446 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_tmp26_ = _data_->_tmp25_;
#line 446 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_tmp27_ = NULL;
#line 446 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_tmp27_ = _data_->_error_;
#line 446 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_tmp28_ = NULL;
#line 446 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_data_->_tmp28_ = _data_->_tmp27_->message;
#line 446 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							g_warning ("apps.vala:446: Failed to parse launcher (%s): %s", _data_->_tmp26_, _data_->_tmp28_);
#line 446 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_g_free0 (_data_->_tmp26_);
#line 440 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_g_error_free0 (_data_->_error_);
#line 4372 "apps.c"
						}
						__finally12:
#line 440 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 440 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_g_object_unref0 (_data_->file);
#line 440 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_g_object_unref0 (_data_->info);
#line 440 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							__g_list_free__g_object_unref0_0 (_data_->files);
#line 440 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_g_object_unref0 (_data_->enumerator);
#line 440 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
							_g_object_unref0 (_data_->monitor);
#line 4387 "apps.c"
							goto __catch10_g_error;
						}
#line 438 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_g_object_unref0 (_data_->file);
#line 438 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
						_g_object_unref0 (_data_->info);
#line 4394 "apps.c"
					}
				}
			}
#line 434 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			__g_list_free__g_object_unref0_0 (_data_->files);
#line 4400 "apps.c"
		}
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (_data_->enumerator);
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (_data_->monitor);
#line 4406 "apps.c"
	}
	goto __finally10;
	__catch10_g_error:
	{
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->io_error = _data_->_inner_error_;
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_inner_error_ = NULL;
#line 452 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp29_ = NULL;
#line 452 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp29_ = _data_->app_folder;
#line 452 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp30_ = NULL;
#line 452 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp30_ = g_file_get_path (_data_->_tmp29_);
#line 452 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp31_ = NULL;
#line 452 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp31_ = _data_->_tmp30_;
#line 452 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp32_ = NULL;
#line 452 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp32_ = _data_->io_error;
#line 452 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp33_ = NULL;
#line 452 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_data_->_tmp33_ = _data_->_tmp32_->message;
#line 452 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_warning ("apps.vala:452: Failed to list apps (%s): %s", _data_->_tmp31_, _data_->_tmp33_);
#line 452 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_free0 (_data_->_tmp31_);
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_error_free0 (_data_->io_error);
#line 4441 "apps.c"
	}
	__finally10:
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_clear_error (&_data_->_inner_error_);
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		return FALSE;
#line 4452 "apps.c"
	}
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (_data_->_state_ == 0) {
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 4458 "apps.c"
	} else {
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 4462 "apps.c"
	}
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_object_unref (_data_->_async_result);
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return FALSE;
#line 4468 "apps.c"
}


static Block1Data* block1_data_ref (Block1Data* _data1_) {
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_atomic_int_inc (&_data1_->_ref_count_);
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return _data1_;
#line 4477 "apps.c"
}


static void block1_data_unref (void * _userdata_) {
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 4486 "apps.c"
		AppsManager* self;
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		self = _data1_->self;
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (_data1_->browser);
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (self);
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_slice_free (Block1Data, _data1_);
#line 4496 "apps.c"
	}
}


static void __lambda6_ (Block1Data* _data1_) {
	AppsManager* self;
	MidoriView* view = NULL;
	MidoriBrowser* _tmp0_ = NULL;
	GtkWidget* _tmp1_ = NULL;
	GtkWidget* _tmp2_ = NULL;
	MidoriView* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
#line 464 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self = _data1_->self;
#line 465 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = _data1_->browser;
#line 465 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = midori_browser_get_tab (_tmp0_);
#line 465 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp2_ = _tmp1_;
#line 465 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, MIDORI_TYPE_VIEW) ? ((MidoriView*) _tmp2_) : NULL);
#line 465 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	view = _tmp3_;
#line 466 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp4_ = midori_view_get_display_uri (view);
#line 466 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp5_ = midori_view_get_display_title (view);
#line 466 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_launcher_create_app (_tmp4_, _tmp5_, (GtkWidget*) view, NULL, NULL);
#line 464 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (view);
#line 4530 "apps.c"
}


static void ___lambda6__gtk_action_activate (GtkAction* _sender, gpointer self) {
#line 464 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	__lambda6_ (self);
#line 4537 "apps.c"
}


static void apps_manager_browser_added (AppsManager* self, MidoriBrowser* browser) {
	Block1Data* _data1_;
	MidoriBrowser* _tmp0_ = NULL;
	MidoriBrowser* _tmp1_ = NULL;
	GtkAccelGroup* accels = NULL;
	GtkAccelGroup* _tmp2_ = NULL;
	MidoriBrowser* _tmp3_ = NULL;
	GtkActionGroup* action_group = NULL;
	MidoriBrowser* _tmp4_ = NULL;
	GtkActionGroup* _tmp5_ = NULL;
	GtkActionGroup* _tmp6_ = NULL;
	GtkAction* action = NULL;
	const gchar* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	GtkAction* _tmp9_ = NULL;
	AppsSidebar* viewable = NULL;
	KatzeArray* _tmp10_ = NULL;
	GFile* _tmp11_ = NULL;
	GFile* _tmp12_ = NULL;
	AppsSidebar* _tmp13_ = NULL;
	MidoriBrowser* _tmp14_ = NULL;
	MidoriPanel* _tmp15_ = NULL;
	MidoriPanel* _tmp16_ = NULL;
	MidoriPanel* _tmp17_ = NULL;
	GtkWidget* _tmp18_ = NULL;
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (self != NULL);
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (browser != NULL);
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data1_ = g_slice_new0 (Block1Data);
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data1_->_ref_count_ = 1;
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data1_->self = g_object_ref (self);
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = browser;
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data1_->browser);
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data1_->browser = _tmp1_;
#line 458 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp2_ = gtk_accel_group_new ();
#line 458 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	accels = _tmp2_;
#line 459 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp3_ = _data1_->browser;
#line 459 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_window_add_accel_group ((GtkWindow*) _tmp3_, accels);
#line 460 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp4_ = _data1_->browser;
#line 460 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp5_ = midori_browser_get_action_group (_tmp4_);
#line 460 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp6_ = _g_object_ref0 (_tmp5_);
#line 460 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	action_group = _tmp6_;
#line 462 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp7_ = _ ("Create _Launcher");
#line 462 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp8_ = _ ("Creates a new app for a specific site");
#line 462 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp9_ = gtk_action_new ("CreateLauncher", _tmp7_, _tmp8_, NULL);
#line 462 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	action = _tmp9_;
#line 464 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_signal_connect_data (action, "activate", (GCallback) ___lambda6__gtk_action_activate, block1_data_ref (_data1_), (GClosureNotify) block1_data_unref, 0);
#line 468 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_action_group_add_action_with_accel (action_group, action, "<Ctrl><Shift>A");
#line 469 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_action_set_accel_group (action, accels);
#line 470 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_action_connect_accelerator (action);
#line 472 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp10_ = self->array;
#line 472 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp11_ = self->app_folder;
#line 472 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp12_ = self->profile_folder;
#line 472 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp13_ = apps_sidebar_new (_tmp10_, _tmp11_, _tmp12_);
#line 472 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_object_ref_sink (_tmp13_);
#line 472 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	viewable = _tmp13_;
#line 473 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	gtk_widget_show ((GtkWidget*) viewable);
#line 474 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp14_ = _data1_->browser;
#line 474 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_object_get (_tmp14_, "panel", &_tmp15_, NULL);
#line 474 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp16_ = _tmp15_;
#line 474 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp17_ = _tmp16_;
#line 474 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	midori_panel_append_page (_tmp17_, (MidoriViewable*) viewable);
#line 474 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_tmp17_);
#line 475 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp18_ = _g_object_ref0 ((GtkWidget*) viewable);
#line 475 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self->widgets = g_list_append (self->widgets, _tmp18_);
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (viewable);
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (action);
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (action_group);
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (accels);
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	block1_data_unref (_data1_);
#line 457 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data1_ = NULL;
#line 4658 "apps.c"
}


static void _apps_manager_browser_added_midori_app_add_browser (MidoriApp* _sender, MidoriBrowser* browser, gpointer self) {
#line 491 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_manager_browser_added ((AppsManager*) self, browser);
#line 4665 "apps.c"
}


static void apps_manager_activated (AppsManager* self, MidoriApp* app) {
	KatzeArray* _tmp0_ = NULL;
	GFile* _tmp1_ = NULL;
	GFile* _tmp2_ = NULL;
	GFile* _tmp3_ = NULL;
	GFile* _tmp4_ = NULL;
	MidoriApp* _tmp5_ = NULL;
	GList* _tmp6_ = NULL;
	MidoriApp* _tmp8_ = NULL;
#line 478 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (self != NULL);
#line 478 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (app != NULL);
#line 479 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = katze_array_new (APPS_TYPE_LAUNCHER);
#line 479 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (self->array);
#line 479 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self->array = _tmp0_;
#line 480 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	__g_list_free__g_object_unref0_0 (self->monitors);
#line 480 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self->monitors = NULL;
#line 481 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = apps_launcher_get_app_folder ();
#line 481 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (self->app_folder);
#line 481 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self->app_folder = _tmp1_;
#line 482 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp2_ = self->app_folder;
#line 482 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_manager_populate_apps (self, _tmp2_, NULL, NULL);
#line 484 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp3_ = apps_launcher_get_profile_folder ();
#line 484 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (self->profile_folder);
#line 484 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self->profile_folder = _tmp3_;
#line 486 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp4_ = self->profile_folder;
#line 486 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_manager_populate_apps (self, _tmp4_, NULL, NULL);
#line 488 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	__g_list_free__g_object_unref0_0 (self->widgets);
#line 488 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self->widgets = NULL;
#line 489 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp5_ = app;
#line 489 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp6_ = midori_app_get_browsers (_tmp5_);
#line 4720 "apps.c"
	{
		GList* browser_collection = NULL;
		GList* browser_it = NULL;
#line 489 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		browser_collection = _tmp6_;
#line 489 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		for (browser_it = browser_collection; browser_it != NULL; browser_it = browser_it->next) {
#line 4728 "apps.c"
			MidoriBrowser* browser = NULL;
#line 489 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			browser = (MidoriBrowser*) browser_it->data;
#line 4732 "apps.c"
			{
				MidoriBrowser* _tmp7_ = NULL;
#line 490 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp7_ = browser;
#line 490 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				apps_manager_browser_added (self, _tmp7_);
#line 4739 "apps.c"
			}
		}
#line 489 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_list_free0 (browser_collection);
#line 4744 "apps.c"
	}
#line 491 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp8_ = app;
#line 491 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_signal_connect_object (_tmp8_, "add-browser", (GCallback) _apps_manager_browser_added_midori_app_add_browser, self, 0);
#line 4750 "apps.c"
}


static void apps_manager_deactivated (AppsManager* self) {
	MidoriApp* app = NULL;
	MidoriApp* _tmp0_ = NULL;
	MidoriApp* _tmp1_ = NULL;
	GList* _tmp2_ = NULL;
	MidoriApp* _tmp6_ = NULL;
	guint _tmp7_ = 0U;
	GList* _tmp8_ = NULL;
	MidoriApp* _tmp11_ = NULL;
	GList* _tmp12_ = NULL;
#line 494 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_return_if_fail (self != NULL);
#line 495 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = midori_extension_get_app ((MidoriExtension*) self);
#line 495 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 495 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	app = _tmp1_;
#line 496 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp2_ = self->monitors;
#line 4774 "apps.c"
	{
		GList* monitor_collection = NULL;
		GList* monitor_it = NULL;
#line 496 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		monitor_collection = _tmp2_;
#line 496 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		for (monitor_it = monitor_collection; monitor_it != NULL; monitor_it = monitor_it->next) {
#line 4782 "apps.c"
			GFileMonitor* _tmp3_ = NULL;
			GFileMonitor* monitor = NULL;
#line 496 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp3_ = _g_object_ref0 ((GFileMonitor*) monitor_it->data);
#line 496 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			monitor = _tmp3_;
#line 4789 "apps.c"
			{
				GFileMonitor* _tmp4_ = NULL;
				guint _tmp5_ = 0U;
#line 497 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp4_ = monitor;
#line 497 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				g_signal_parse_name ("changed", g_file_monitor_get_type (), &_tmp5_, NULL, FALSE);
#line 497 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				g_signal_handlers_disconnect_matched (_tmp4_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp5_, 0, NULL, (GCallback) _apps_manager_app_changed_g_file_monitor_changed, self);
#line 496 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_g_object_unref0 (monitor);
#line 4801 "apps.c"
			}
		}
	}
#line 498 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	__g_list_free__g_object_unref0_0 (self->monitors);
#line 498 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self->monitors = NULL;
#line 500 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp6_ = app;
#line 500 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_signal_parse_name ("add-browser", MIDORI_TYPE_APP, &_tmp7_, NULL, FALSE);
#line 500 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _apps_manager_browser_added_midori_app_add_browser, self);
#line 501 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp8_ = self->widgets;
#line 4817 "apps.c"
	{
		GList* widget_collection = NULL;
		GList* widget_it = NULL;
#line 501 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		widget_collection = _tmp8_;
#line 501 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		for (widget_it = widget_collection; widget_it != NULL; widget_it = widget_it->next) {
#line 4825 "apps.c"
			GtkWidget* _tmp9_ = NULL;
			GtkWidget* widget = NULL;
#line 501 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			_tmp9_ = _g_object_ref0 ((GtkWidget*) widget_it->data);
#line 501 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			widget = _tmp9_;
#line 4832 "apps.c"
			{
				GtkWidget* _tmp10_ = NULL;
#line 502 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp10_ = widget;
#line 502 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				gtk_object_destroy ((GtkObject*) _tmp10_);
#line 501 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_g_object_unref0 (widget);
#line 4841 "apps.c"
			}
		}
	}
#line 503 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp11_ = app;
#line 503 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp12_ = midori_app_get_browsers (_tmp11_);
#line 4849 "apps.c"
	{
		GList* browser_collection = NULL;
		GList* browser_it = NULL;
#line 503 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		browser_collection = _tmp12_;
#line 503 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		for (browser_it = browser_collection; browser_it != NULL; browser_it = browser_it->next) {
#line 4857 "apps.c"
			MidoriBrowser* browser = NULL;
#line 503 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			browser = (MidoriBrowser*) browser_it->data;
#line 4861 "apps.c"
			{
				GtkActionGroup* action_group = NULL;
				MidoriBrowser* _tmp13_ = NULL;
				GtkActionGroup* _tmp14_ = NULL;
				GtkActionGroup* _tmp15_ = NULL;
				GtkAction* action = NULL;
				GtkActionGroup* _tmp16_ = NULL;
				GtkAction* _tmp17_ = NULL;
				GtkAction* _tmp18_ = NULL;
				GtkActionGroup* _tmp19_ = NULL;
				GtkAction* _tmp20_ = NULL;
#line 504 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp13_ = browser;
#line 504 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp14_ = midori_browser_get_action_group (_tmp13_);
#line 504 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp15_ = _g_object_ref0 (_tmp14_);
#line 504 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				action_group = _tmp15_;
#line 505 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp16_ = action_group;
#line 505 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp17_ = gtk_action_group_get_action (_tmp16_, "CreateLauncher");
#line 505 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp18_ = _g_object_ref0 (_tmp17_);
#line 505 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				action = _tmp18_;
#line 506 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp19_ = action_group;
#line 506 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_tmp20_ = action;
#line 506 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				gtk_action_group_remove_action (_tmp19_, _tmp20_);
#line 503 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_g_object_unref0 (action);
#line 503 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
				_g_object_unref0 (action_group);
#line 4899 "apps.c"
			}
		}
#line 503 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_list_free0 (browser_collection);
#line 4904 "apps.c"
	}
#line 494 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (app);
#line 4908 "apps.c"
}


static void _apps_manager_activated_midori_extension_activate (MidoriExtension* _sender, MidoriApp* app, gpointer self) {
#line 517 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_manager_activated ((AppsManager*) self, app);
#line 4915 "apps.c"
}


static void _apps_manager_deactivated_midori_extension_deactivate (MidoriExtension* _sender, gpointer self) {
#line 518 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_manager_deactivated ((AppsManager*) self);
#line 4922 "apps.c"
}


AppsManager* apps_manager_construct (GType object_type) {
	AppsManager * self = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 512 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = _ ("Web App Manager");
#line 512 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = _ ("Manage websites installed as applications");
#line 512 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self = (AppsManager*) g_object_new (object_type, "name", _tmp0_, "description", _tmp1_, "version", "0.1" MIDORI_VERSION_SUFFIX, "authors", "Christian Dywan <christian@twotoasts.de>", NULL);
#line 517 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_signal_connect_object ((MidoriExtension*) self, "activate", (GCallback) _apps_manager_activated_midori_extension_activate, self, 0);
#line 518 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_signal_connect_object ((MidoriExtension*) self, "deactivate", (GCallback) _apps_manager_deactivated_midori_extension_deactivate, self, 0);
#line 511 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return self;
#line 4942 "apps.c"
}


AppsManager* apps_manager_new (void) {
#line 511 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return apps_manager_construct (APPS_TYPE_MANAGER);
#line 4949 "apps.c"
}


static void apps_manager_class_init (AppsManagerClass * klass) {
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_manager_parent_class = g_type_class_peek_parent (klass);
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	G_OBJECT_CLASS (klass)->finalize = apps_manager_finalize;
#line 4958 "apps.c"
}


static void apps_manager_instance_init (AppsManager * self) {
}


static void apps_manager_finalize (GObject* obj) {
	AppsManager * self;
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, APPS_TYPE_MANAGER, AppsManager);
#line 394 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (self->array);
#line 395 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (self->app_folder);
#line 396 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (self->profile_folder);
#line 397 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	__g_list_free__g_object_unref0_0 (self->monitors);
#line 398 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	__g_list_free__g_object_unref0_0 (self->widgets);
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	G_OBJECT_CLASS (apps_manager_parent_class)->finalize (obj);
#line 4982 "apps.c"
}


GType apps_manager_get_type (void) {
	static volatile gsize apps_manager_type_id__volatile = 0;
	if (g_once_init_enter (&apps_manager_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (AppsManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) apps_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AppsManager), 0, (GInstanceInitFunc) apps_manager_instance_init, NULL };
		GType apps_manager_type_id;
		apps_manager_type_id = g_type_register_static (MIDORI_TYPE_EXTENSION, "AppsManager", &g_define_type_info, 0);
		g_once_init_leave (&apps_manager_type_id__volatile, apps_manager_type_id);
	}
	return apps_manager_type_id__volatile;
}


MidoriExtension* extension_init (void) {
	MidoriExtension* result = NULL;
	AppsManager* _tmp0_ = NULL;
#line 524 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = apps_manager_new ();
#line 524 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	result = (MidoriExtension*) _tmp0_;
#line 524 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return result;
#line 5007 "apps.c"
}


void extensions_apps_desktop_test (void) {
	ExtensionsAppsDesktop* _tmp0_ = NULL;
	ExtensionsAppsDesktop* _tmp1_ = NULL;
#line 528 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = extensions_apps_desktop_new ();
#line 528 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = _tmp0_;
#line 528 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	midori_test_job_run_sync ((MidoriTestJob*) _tmp1_);
#line 528 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_tmp1_);
#line 5022 "apps.c"
}


static void extensions_apps_desktop_real_run_data_free (gpointer _data) {
	ExtensionsAppsDesktopRunData* _data_;
	_data_ = _data;
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->cancellable);
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->self);
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_slice_free (ExtensionsAppsDesktopRunData, _data_);
#line 5035 "apps.c"
}


static void extensions_apps_desktop_real_run (MidoriTestJob* base, GCancellable* cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	ExtensionsAppsDesktop * self;
	ExtensionsAppsDesktopRunData* _data_;
	ExtensionsAppsDesktop* _tmp0_ = NULL;
	GCancellable* _tmp1_ = NULL;
	GCancellable* _tmp2_ = NULL;
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self = (ExtensionsAppsDesktop*) base;
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_ = g_slice_new0 (ExtensionsAppsDesktopRunData);
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, extensions_apps_desktop_real_run);
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, extensions_apps_desktop_real_run_data_free);
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->self = _tmp0_;
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp1_ = cancellable;
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->cancellable);
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->cancellable = _tmp2_;
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	extensions_apps_desktop_real_run_co (_data_);
#line 5067 "apps.c"
}


static void extensions_apps_desktop_real_run_finish (MidoriTestJob* base, GAsyncResult* _res_, GError** error) {
	ExtensionsAppsDesktopRunData* _data_;
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		return;
#line 5077 "apps.c"
	}
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 5081 "apps.c"
}


static void extensions_apps_desktop_run_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	ExtensionsAppsDesktopRunData* _data_;
#line 539 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_ = _user_data_;
#line 539 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_source_object_ = source_object;
#line 539 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_res_ = _res_;
#line 539 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	extensions_apps_desktop_real_run_co (_data_);
#line 5095 "apps.c"
}


static gboolean extensions_apps_desktop_real_run_co (ExtensionsAppsDesktopRunData* _data_) {
#line 529 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	switch (_data_->_state_) {
#line 529 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		case 0:
#line 5104 "apps.c"
		goto _state_0;
#line 529 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		case 1:
#line 5108 "apps.c"
		goto _state_1;
#line 529 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		case 2:
#line 5112 "apps.c"
		goto _state_2;
		default:
#line 529 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_assert_not_reached ();
#line 5117 "apps.c"
	}
	_state_0:
#line 530 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp0_ = NULL;
#line 530 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp0_ = g_strdup ("http://example.com");
#line 530 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->uri = _data_->_tmp0_;
#line 531 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp1_ = NULL;
#line 531 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp1_ = g_compute_checksum_for_string (G_CHECKSUM_MD5, _data_->uri, (gsize) (-1));
#line 531 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->checksum = _data_->_tmp1_;
#line 532 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp2_ = NULL;
#line 532 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp2_ = apps_launcher_get_app_folder ();
#line 532 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp3_ = NULL;
#line 532 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 532 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp4_ = NULL;
#line 532 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp4_ = g_file_get_child (_data_->_tmp3_, _data_->checksum);
#line 532 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp5_ = NULL;
#line 532 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp5_ = _data_->_tmp4_;
#line 532 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->_tmp3_);
#line 532 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->apps = _data_->_tmp5_;
#line 533 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp6_ = NULL;
#line 533 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp6_ = g_file_get_path (_data_->apps);
#line 533 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp7_ = NULL;
#line 533 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp7_ = _data_->_tmp6_;
#line 533 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	midori_paths_remove_path (_data_->_tmp7_);
#line 533 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->_tmp7_);
#line 535 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp8_ = NULL;
#line 535 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp8_ = midori_paths_get_user_data_dir ();
#line 535 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp9_ = NULL;
#line 535 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp9_ = g_file_new_for_path (_data_->_tmp8_);
#line 535 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->data_dir = _data_->_tmp9_;
#line 536 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp10_ = NULL;
#line 536 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp10_ = g_file_get_child (_data_->data_dir, "applications");
#line 536 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->desktop_dir = _data_->_tmp10_;
#line 537 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp11_ = NULL;
#line 537 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp11_ = g_file_get_child (_data_->desktop_dir, "Example.desktop");
#line 537 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp12_ = NULL;
#line 537 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp12_ = _data_->_tmp11_;
#line 537 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp13_ = NULL;
#line 537 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp13_ = g_file_get_path (_data_->_tmp12_);
#line 537 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp14_ = NULL;
#line 537 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp14_ = _data_->_tmp13_;
#line 537 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	midori_paths_remove_path (_data_->_tmp14_);
#line 537 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->_tmp14_);
#line 537 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->_tmp12_);
#line 539 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_state_ = 1;
#line 539 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_launcher_create_app (_data_->uri, "Example", NULL, extensions_apps_desktop_run_ready, _data_);
#line 539 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return FALSE;
#line 5208 "apps.c"
	_state_1:
#line 539 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp15_ = NULL;
#line 539 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp15_ = apps_launcher_create_app_finish (_data_->_res_);
#line 539 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->folder = _data_->_tmp15_;
#line 540 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp16_ = NULL;
#line 540 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp16_ = apps_launcher_new (_data_->folder);
#line 540 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->launcher = _data_->_tmp16_;
#line 541 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_initable_init ((GInitable*) _data_->launcher, NULL, &_data_->_inner_error_);
#line 541 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 541 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 541 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_error_free (_data_->_inner_error_);
#line 541 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (_data_->launcher);
#line 541 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (_data_->folder);
#line 541 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (_data_->desktop_dir);
#line 541 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (_data_->data_dir);
#line 541 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_object_unref0 (_data_->apps);
#line 541 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_free0 (_data_->checksum);
#line 541 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		_g_free0 (_data_->uri);
#line 541 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		if (_data_->_state_ == 0) {
#line 541 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5248 "apps.c"
		} else {
#line 541 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 5252 "apps.c"
		}
#line 541 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_object_unref (_data_->_async_result);
#line 541 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		return FALSE;
#line 5258 "apps.c"
	}
#line 542 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp17_ = NULL;
#line 542 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp17_ = g_file_get_path (_data_->folder);
#line 542 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp18_ = NULL;
#line 542 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp18_ = _data_->_tmp17_;
#line 542 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp19_ = NULL;
#line 542 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp19_ = _data_->launcher->uri;
#line 542 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	katze_assert_str_equal (_data_->_tmp18_, _data_->_tmp19_, _data_->uri);
#line 542 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->_tmp18_);
#line 543 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_state_ = 2;
#line 543 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	apps_launcher_create_profile (NULL, extensions_apps_desktop_run_ready, _data_);
#line 543 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return FALSE;
#line 5282 "apps.c"
	_state_2:
#line 543 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp20_ = NULL;
#line 543 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp20_ = apps_launcher_create_profile_finish (_data_->_res_);
#line 543 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp21_ = NULL;
#line 543 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_data_->_tmp21_ = _data_->_tmp20_;
#line 543 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->_tmp21_);
#line 529 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->launcher);
#line 529 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->folder);
#line 529 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->desktop_dir);
#line 529 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->data_dir);
#line 529 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_object_unref0 (_data_->apps);
#line 529 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->checksum);
#line 529 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	_g_free0 (_data_->uri);
#line 529 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	if (_data_->_state_ == 0) {
#line 529 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 5312 "apps.c"
	} else {
#line 529 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 5316 "apps.c"
	}
#line 529 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_object_unref (_data_->_async_result);
#line 529 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return FALSE;
#line 5322 "apps.c"
}


ExtensionsAppsDesktop* extensions_apps_desktop_construct (GType object_type) {
	ExtensionsAppsDesktop * self = NULL;
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	self = (ExtensionsAppsDesktop*) midori_test_job_construct (object_type);
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return self;
#line 5332 "apps.c"
}


ExtensionsAppsDesktop* extensions_apps_desktop_new (void) {
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	return extensions_apps_desktop_construct (TYPE_EXTENSIONS_APPS_DESKTOP);
#line 5339 "apps.c"
}


static void extensions_apps_desktop_class_init (ExtensionsAppsDesktopClass * klass) {
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	extensions_apps_desktop_parent_class = g_type_class_peek_parent (klass);
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	((MidoriTestJobClass *) klass)->run = extensions_apps_desktop_real_run;
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	((MidoriTestJobClass *) klass)->run_finish = extensions_apps_desktop_real_run_finish;
#line 5350 "apps.c"
}


static void extensions_apps_desktop_instance_init (ExtensionsAppsDesktop * self) {
}


GType extensions_apps_desktop_get_type (void) {
	static volatile gsize extensions_apps_desktop_type_id__volatile = 0;
	if (g_once_init_enter (&extensions_apps_desktop_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ExtensionsAppsDesktopClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) extensions_apps_desktop_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ExtensionsAppsDesktop), 0, (GInstanceInitFunc) extensions_apps_desktop_instance_init, NULL };
		GType extensions_apps_desktop_type_id;
		extensions_apps_desktop_type_id = g_type_register_static (MIDORI_TEST_TYPE_JOB, "ExtensionsAppsDesktop", &g_define_type_info, 0);
		g_once_init_leave (&extensions_apps_desktop_type_id__volatile, extensions_apps_desktop_type_id);
	}
	return extensions_apps_desktop_type_id__volatile;
}


static void _extensions_apps_desktop_test_gcallback (void) {
#line 548 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	extensions_apps_desktop_test ();
#line 5373 "apps.c"
}


void extension_test (void) {
#line 548 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/apps.vala"
	g_test_add_func ("/extensions/apps/desktop", _extensions_apps_desktop_test_gcallback);
#line 5380 "apps.c"
}



