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

/*
   Copyright (C) 2009-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 <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include "webkit/webkit.h"
#include "midori-core.h"
#include <float.h>
#include <math.h>
#include "katze/katze.h"
#include "midori/midori-stock.h"
#include <glib/gi18n-lib.h>
#include <gdk/gdk.h>
#include <gio/gio.h>
#include "midori/midori-browser.h"
#include <pango/pango.h>
#include "midori/midori-extension.h"
#include "midori/midori-app.h"
#include "midori/midori-view.h"
#include "midori/midori-panel.h"
#include "transfers.h"


#define TRANSFERS_TYPE_TRANSFER (transfers_transfer_get_type ())
#define TRANSFERS_TRANSFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRANSFERS_TYPE_TRANSFER, TransfersTransfer))
#define TRANSFERS_TRANSFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRANSFERS_TYPE_TRANSFER, TransfersTransferClass))
#define TRANSFERS_IS_TRANSFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRANSFERS_TYPE_TRANSFER))
#define TRANSFERS_IS_TRANSFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRANSFERS_TYPE_TRANSFER))
#define TRANSFERS_TRANSFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRANSFERS_TYPE_TRANSFER, TransfersTransferClass))

typedef struct _TransfersTransfer TransfersTransfer;
typedef struct _TransfersTransferClass TransfersTransferClass;
typedef struct _TransfersTransferPrivate TransfersTransferPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block1Data Block1Data;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))

#define TRANSFERS_TYPE_SIDEBAR (transfers_sidebar_get_type ())
#define TRANSFERS_SIDEBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRANSFERS_TYPE_SIDEBAR, TransfersSidebar))
#define TRANSFERS_SIDEBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRANSFERS_TYPE_SIDEBAR, TransfersSidebarClass))
#define TRANSFERS_IS_SIDEBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRANSFERS_TYPE_SIDEBAR))
#define TRANSFERS_IS_SIDEBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRANSFERS_TYPE_SIDEBAR))
#define TRANSFERS_SIDEBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRANSFERS_TYPE_SIDEBAR, TransfersSidebarClass))

typedef struct _TransfersSidebar TransfersSidebar;
typedef struct _TransfersSidebarClass TransfersSidebarClass;
typedef struct _TransfersSidebarPrivate TransfersSidebarPrivate;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _Block2Data Block2Data;
typedef struct _Block3Data Block3Data;

#define TRANSFERS_TYPE_TRANSFER_BUTTON (transfers_transfer_button_get_type ())
#define TRANSFERS_TRANSFER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRANSFERS_TYPE_TRANSFER_BUTTON, TransfersTransferButton))
#define TRANSFERS_TRANSFER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRANSFERS_TYPE_TRANSFER_BUTTON, TransfersTransferButtonClass))
#define TRANSFERS_IS_TRANSFER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRANSFERS_TYPE_TRANSFER_BUTTON))
#define TRANSFERS_IS_TRANSFER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRANSFERS_TYPE_TRANSFER_BUTTON))
#define TRANSFERS_TRANSFER_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRANSFERS_TYPE_TRANSFER_BUTTON, TransfersTransferButtonClass))

typedef struct _TransfersTransferButton TransfersTransferButton;
typedef struct _TransfersTransferButtonClass TransfersTransferButtonClass;
typedef struct _TransfersTransferButtonPrivate TransfersTransferButtonPrivate;

#define TRANSFERS_TYPE_TOOLBAR (transfers_toolbar_get_type ())
#define TRANSFERS_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRANSFERS_TYPE_TOOLBAR, TransfersToolbar))
#define TRANSFERS_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRANSFERS_TYPE_TOOLBAR, TransfersToolbarClass))
#define TRANSFERS_IS_TOOLBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRANSFERS_TYPE_TOOLBAR))
#define TRANSFERS_IS_TOOLBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRANSFERS_TYPE_TOOLBAR))
#define TRANSFERS_TOOLBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRANSFERS_TYPE_TOOLBAR, TransfersToolbarClass))

typedef struct _TransfersToolbar TransfersToolbar;
typedef struct _TransfersToolbarClass TransfersToolbarClass;
typedef struct _TransfersToolbarPrivate TransfersToolbarPrivate;

#define TRANSFERS_TYPE_MANAGER (transfers_manager_get_type ())
#define TRANSFERS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TRANSFERS_TYPE_MANAGER, TransfersManager))
#define TRANSFERS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TRANSFERS_TYPE_MANAGER, TransfersManagerClass))
#define TRANSFERS_IS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TRANSFERS_TYPE_MANAGER))
#define TRANSFERS_IS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TRANSFERS_TYPE_MANAGER))
#define TRANSFERS_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TRANSFERS_TYPE_MANAGER, TransfersManagerClass))

typedef struct _TransfersManager TransfersManager;
typedef struct _TransfersManagerClass TransfersManagerClass;
typedef struct _TransfersManagerPrivate TransfersManagerPrivate;
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
#define __g_list_free__g_free0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_free0_ (var), NULL)))

struct _TransfersTransfer {
	GObject parent_instance;
	TransfersTransferPrivate * priv;
	guint poll_source;
	WebKitDownload* download;
};

struct _TransfersTransferClass {
	GObjectClass parent_class;
	void (*changed) (TransfersTransfer* self);
};

struct _Block1Data {
	int _ref_count_;
	TransfersTransfer* self;
	WebKitDownload* download;
};

struct _TransfersSidebar {
	GtkVBox parent_instance;
	TransfersSidebarPrivate * priv;
};

struct _TransfersSidebarClass {
	GtkVBoxClass parent_class;
};

struct _TransfersSidebarPrivate {
	GtkToolbar* toolbar;
	GtkToolButton* clear;
	GtkListStore* store;
	GtkTreeView* treeview;
	KatzeArray* array;
};

struct _Block2Data {
	int _ref_count_;
	TransfersSidebar* self;
	TransfersTransfer* transfer;
};

struct _Block3Data {
	int _ref_count_;
	TransfersSidebar* self;
	TransfersTransfer* transfer;
};

struct _TransfersTransferButton {
	GtkToolItem parent_instance;
	TransfersTransferButtonPrivate * priv;
};

struct _TransfersTransferButtonClass {
	GtkToolItemClass parent_class;
};

struct _TransfersTransferButtonPrivate {
	TransfersTransfer* transfer;
	GtkProgressBar* progress;
	GtkImage* icon;
	GtkButton* button;
};

struct _TransfersToolbar {
	GtkToolbar parent_instance;
	TransfersToolbarPrivate * priv;
};

struct _TransfersToolbarClass {
	GtkToolbarClass parent_class;
};

struct _TransfersToolbarPrivate {
	KatzeArray* array;
	GtkToolButton* clear;
};

struct _TransfersManager {
	MidoriExtension parent_instance;
	TransfersManagerPrivate * priv;
	KatzeArray* array;
	GList* widgets;
	GList* notifications;
	guint notification_timeout;
};

struct _TransfersManagerClass {
	MidoriExtensionClass parent_class;
};


static gpointer transfers_transfer_parent_class = NULL;
static gpointer transfers_sidebar_parent_class = NULL;
static MidoriViewableIface* transfers_sidebar_midori_viewable_parent_iface = NULL;
static gpointer transfers_transfer_button_parent_class = NULL;
static gpointer transfers_toolbar_parent_class = NULL;
static gpointer transfers_manager_parent_class = NULL;

void gtk_widget_size_request (GtkWidget* widget, GtkRequisition* requisition);
void sokoke_widget_get_text_size (GtkWidget* widget, const gchar* sample, gint* width, gint* height);
GType transfers_transfer_get_type (void) G_GNUC_CONST;
enum  {
	TRANSFERS_TRANSFER_DUMMY_PROPERTY,
	TRANSFERS_TRANSFER_ACTION,
	TRANSFERS_TRANSFER_PROGRESS,
	TRANSFERS_TRANSFER_SUCCEEDED,
	TRANSFERS_TRANSFER_FINISHED,
	TRANSFERS_TRANSFER_DESTINATION
};
TransfersTransfer* transfers_transfer_new (WebKitDownload* download);
TransfersTransfer* transfers_transfer_construct (GType object_type, WebKitDownload* download);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
static gboolean __lambda4_ (TransfersTransfer* self);
static gboolean ___lambda4__gsource_func (gpointer self);
static void __lambda5_ (Block1Data* _data1_);
static void ___lambda5__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
gint transfers_transfer_get_action (TransfersTransfer* self);
gdouble transfers_transfer_get_progress (TransfersTransfer* self);
gboolean transfers_transfer_get_succeeded (TransfersTransfer* self);
gboolean transfers_transfer_get_finished (TransfersTransfer* self);
const gchar* transfers_transfer_get_destination (TransfersTransfer* self);
static void transfers_transfer_real_changed (TransfersTransfer* self);
static void transfers_transfer_finalize (GObject* obj);
static void _vala_transfers_transfer_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
gboolean transfers_pending_transfers (KatzeArray* array);
GType transfers_sidebar_get_type (void) G_GNUC_CONST;
#define TRANSFERS_SIDEBAR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRANSFERS_TYPE_SIDEBAR, TransfersSidebarPrivate))
enum  {
	TRANSFERS_SIDEBAR_DUMMY_PROPERTY
};
static const gchar* transfers_sidebar_real_get_stock_id (MidoriViewable* base);
static const gchar* transfers_sidebar_real_get_label (MidoriViewable* base);
static GtkWidget* transfers_sidebar_real_get_toolbar (MidoriViewable* base);
static void transfers_sidebar_clear_clicked (TransfersSidebar* self);
static void _transfers_sidebar_clear_clicked_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self);
TransfersSidebar* transfers_sidebar_new (KatzeArray* array);
TransfersSidebar* transfers_sidebar_construct (GType object_type, KatzeArray* array);
static gint transfers_sidebar_tree_sort_func (TransfersSidebar* self, GtkTreeModel* model, GtkTreeIter* a, GtkTreeIter* b);
static gint _transfers_sidebar_tree_sort_func_gtk_tree_iter_compare_func (GtkTreeModel* model, GtkTreeIter* a, GtkTreeIter* b, gpointer self);
static void transfers_sidebar_on_render_icon (TransfersSidebar* self, GtkCellLayout* column, GtkCellRenderer* renderer, GtkTreeModel* model, GtkTreeIter* iter);
static void _transfers_sidebar_on_render_icon_gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self);
static void transfers_sidebar_on_render_text (TransfersSidebar* self, GtkCellLayout* column, GtkCellRenderer* renderer, GtkTreeModel* model, GtkTreeIter* iter);
static void _transfers_sidebar_on_render_text_gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self);
static void transfers_sidebar_on_render_button (TransfersSidebar* self, GtkCellLayout* column, GtkCellRenderer* renderer, GtkTreeModel* model, GtkTreeIter* iter);
static void _transfers_sidebar_on_render_button_gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self);
static void transfers_sidebar_row_activated (TransfersSidebar* self, GtkTreePath* path, GtkTreeViewColumn* column);
static void _transfers_sidebar_row_activated_gtk_tree_view_row_activated (GtkTreeView* _sender, GtkTreePath* path, GtkTreeViewColumn* column, gpointer self);
static gboolean transfers_sidebar_button_released (TransfersSidebar* self, GdkEventButton* event);
static gboolean _transfers_sidebar_button_released_gtk_widget_button_release_event (GtkWidget* _sender, GdkEventButton* event, gpointer self);
static gboolean transfers_sidebar_menu_popup (TransfersSidebar* self);
static gboolean _transfers_sidebar_menu_popup_gtk_widget_popup_menu (GtkWidget* _sender, gpointer self);
static void transfers_sidebar_transfer_added (TransfersSidebar* self, GObject* item);
static void _transfers_sidebar_transfer_added_katze_array_add_item (KatzeArray* _sender, GObject* item, gpointer self);
static void transfers_sidebar_transfer_removed (TransfersSidebar* self, GObject* item);
static void _transfers_sidebar_transfer_removed_katze_array_remove_item (KatzeArray* _sender, GObject* item, gpointer self);
static gboolean transfers_sidebar_show_popup_menu (TransfersSidebar* self, GdkEventButton* event);
static Block2Data* block2_data_ref (Block2Data* _data2_);
static void block2_data_unref (void * _userdata_);
static void ___lambda6_ (Block2Data* _data2_);
static void ____lambda6__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self);
static void ___lambda7_ (Block2Data* _data2_);
static void ____lambda7__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self);
static void ___lambda8_ (Block2Data* _data2_);
static void ____lambda8__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self);
static void transfers_sidebar_transfer_changed (TransfersSidebar* self, GObject* item);
static Block3Data* block3_data_ref (Block3Data* _data3_);
static void block3_data_unref (void * _userdata_);
static void __lambda9_ (Block3Data* _data3_);
static void ___lambda9__transfers_transfer_changed (TransfersTransfer* _sender, gpointer self);
static void _transfers_sidebar_transfer_changed_transfers_transfer_changed (TransfersTransfer* _sender, gpointer self);
static void transfers_sidebar_finalize (GObject* obj);
GType transfers_transfer_button_get_type (void) G_GNUC_CONST;
#define TRANSFERS_TRANSFER_BUTTON_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRANSFERS_TYPE_TRANSFER_BUTTON, TransfersTransferButtonPrivate))
enum  {
	TRANSFERS_TRANSFER_BUTTON_DUMMY_PROPERTY
};
TransfersTransferButton* transfers_transfer_button_new (TransfersTransfer* transfer);
TransfersTransferButton* transfers_transfer_button_construct (GType object_type, TransfersTransfer* transfer);
static void transfers_transfer_button_button_clicked (TransfersTransferButton* self);
static void _transfers_transfer_button_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self);
static void transfers_transfer_button_transfer_changed (TransfersTransferButton* self);
static void _transfers_transfer_button_transfer_changed_transfers_transfer_changed (TransfersTransfer* _sender, gpointer self);
static void transfers_transfer_button_transfer_removed (TransfersTransferButton* self);
static void _transfers_transfer_button_transfer_removed_transfers_transfer_removed (TransfersTransfer* _sender, gpointer self);
static void transfers_transfer_button_finalize (GObject* obj);
GType transfers_toolbar_get_type (void) G_GNUC_CONST;
#define TRANSFERS_TOOLBAR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TRANSFERS_TYPE_TOOLBAR, TransfersToolbarPrivate))
enum  {
	TRANSFERS_TOOLBAR_DUMMY_PROPERTY
};
static void transfers_toolbar_clear_clicked (TransfersToolbar* self);
TransfersToolbar* transfers_toolbar_new (KatzeArray* array);
TransfersToolbar* transfers_toolbar_construct (GType object_type, KatzeArray* array);
static void _transfers_toolbar_clear_clicked_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self);
static void transfers_toolbar_transfer_added (TransfersToolbar* self, GObject* item);
static void _transfers_toolbar_transfer_added_katze_array_add_item (KatzeArray* _sender, GObject* item, gpointer self);
static void transfers_toolbar_transfer_removed (TransfersToolbar* self, GObject* item);
static void _transfers_toolbar_transfer_removed_katze_array_remove_item (KatzeArray* _sender, GObject* item, gpointer self);
static void transfers_toolbar_finalize (GObject* obj);
GType transfers_manager_get_type (void) G_GNUC_CONST;
enum  {
	TRANSFERS_MANAGER_DUMMY_PROPERTY
};
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
static void _g_free0_ (gpointer var);
static void _g_list_free__g_free0_ (GList* self);
static void transfers_manager_download_added (TransfersManager* self, WebKitDownload* download);
static void transfers_manager_transfer_remove (TransfersManager* self, TransfersTransfer* transfer);
static void _transfers_manager_transfer_remove_transfers_transfer_remove (TransfersTransfer* _sender, gpointer self);
static void transfers_manager_transfer_changed (TransfersManager* self, TransfersTransfer* transfer);
static void _transfers_manager_transfer_changed_transfers_transfer_changed (TransfersTransfer* _sender, gpointer self);
static void transfers_manager_transfer_removed (TransfersManager* self, GObject* item);
static void _transfers_manager_transfer_removed_katze_array_remove_item (KatzeArray* _sender, GObject* item, gpointer self);
static gboolean transfers_manager_notification_timeout_triggered (TransfersManager* self);
static gboolean _transfers_manager_notification_timeout_triggered_gsource_func (gpointer self);
static gboolean transfers_manager_browser_closed (TransfersManager* self, GtkWidget* widget, GdkEvent* event);
static void transfers_manager_browser_added (TransfersManager* self, MidoriBrowser* browser);
static void _transfers_manager_download_added_midori_browser_add_download (MidoriBrowser* _sender, WebKitDownload* download, gpointer self);
static gboolean _transfers_manager_browser_closed_gtk_widget_delete_event (GtkWidget* _sender, GdkEvent* event, gpointer self);
static void transfers_manager_activated (TransfersManager* self, MidoriApp* app);
static void _transfers_manager_browser_added_midori_app_add_browser (MidoriApp* _sender, MidoriBrowser* browser, gpointer self);
static void transfers_manager_deactivated (TransfersManager* self);
TransfersManager* transfers_manager_new (void);
TransfersManager* transfers_manager_construct (GType object_type);
static void _transfers_manager_activated_midori_extension_activate (MidoriExtension* _sender, MidoriApp* app, gpointer self);
static void _transfers_manager_deactivated_midori_extension_deactivate (MidoriExtension* _sender, gpointer self);
static void transfers_manager_finalize (GObject* obj);


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


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


static void block1_data_unref (void * _userdata_) {
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 355 "transfers.c"
		TransfersTransfer* self;
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		self = _data1_->self;
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (_data1_->download);
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (self);
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_slice_free (Block1Data, _data1_);
#line 365 "transfers.c"
	}
}


static gboolean __lambda4_ (TransfersTransfer* self) {
	gboolean result = FALSE;
#line 59 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_emit_by_name (self, "changed");
#line 60 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	result = TRUE;
#line 60 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 378 "transfers.c"
}


static gboolean ___lambda4__gsource_func (gpointer self) {
	gboolean result;
	result = __lambda4_ ((TransfersTransfer*) self);
#line 58 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 387 "transfers.c"
}


static void __lambda5_ (Block1Data* _data1_) {
	TransfersTransfer* self;
	gboolean _tmp0_ = FALSE;
	WebKitDownload* _tmp1_ = NULL;
	WebKitDownloadStatus _tmp2_ = 0;
	WebKitDownloadStatus _tmp3_ = 0;
#line 78 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self = _data1_->self;
#line 79 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_emit_by_name (self, "changed");
#line 80 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = _data1_->download;
#line 80 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = webkit_download_get_status (_tmp1_);
#line 80 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp3_ = _tmp2_;
#line 80 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (_tmp3_ == WEBKIT_DOWNLOAD_STATUS_FINISHED) {
#line 80 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp0_ = TRUE;
#line 411 "transfers.c"
	} else {
		WebKitDownload* _tmp4_ = NULL;
		WebKitDownloadStatus _tmp5_ = 0;
		WebKitDownloadStatus _tmp6_ = 0;
#line 80 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp4_ = _data1_->download;
#line 80 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp5_ = webkit_download_get_status (_tmp4_);
#line 80 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp6_ = _tmp5_;
#line 80 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp0_ = _tmp6_ == WEBKIT_DOWNLOAD_STATUS_ERROR;
#line 424 "transfers.c"
	}
#line 80 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (_tmp0_) {
#line 428 "transfers.c"
		guint _tmp7_ = 0U;
#line 81 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp7_ = self->poll_source;
#line 81 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_source_remove (_tmp7_);
#line 82 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		self->poll_source = (guint) 0;
#line 436 "transfers.c"
	}
}


static void ___lambda5__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 78 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	__lambda5_ (self);
#line 444 "transfers.c"
}


TransfersTransfer* transfers_transfer_construct (GType object_type, WebKitDownload* download) {
	TransfersTransfer * self = NULL;
	Block1Data* _data1_;
	WebKitDownload* _tmp0_ = NULL;
	WebKitDownload* _tmp1_ = NULL;
	guint _tmp2_ = 0U;
	WebKitDownload* _tmp3_ = NULL;
	WebKitDownload* _tmp4_ = NULL;
	WebKitDownload* _tmp5_ = NULL;
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (download != NULL, NULL);
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_data1_ = g_slice_new0 (Block1Data);
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_data1_->_ref_count_ = 1;
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = download;
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (_data1_->download);
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_data1_->download = _tmp1_;
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self = (TransfersTransfer*) g_object_new (object_type, NULL);
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_data1_->self = g_object_ref (self);
#line 58 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) (1000 / 10), ___lambda4__gsource_func, g_object_ref (self), g_object_unref);
#line 58 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->poll_source = _tmp2_;
#line 62 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp3_ = _data1_->download;
#line 62 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 62 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->download);
#line 62 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->download = _tmp4_;
#line 78 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp5_ = _data1_->download;
#line 78 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_data ((GObject*) _tmp5_, "notify::status", (GCallback) ___lambda5__g_object_notify, block1_data_ref (_data1_), (GClosureNotify) block1_data_unref, 0);
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	block1_data_unref (_data1_);
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_data1_ = NULL;
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return self;
#line 497 "transfers.c"
}


TransfersTransfer* transfers_transfer_new (WebKitDownload* download) {
#line 57 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return transfers_transfer_construct (TRANSFERS_TYPE_TRANSFER, download);
#line 504 "transfers.c"
}


gint transfers_transfer_get_action (TransfersTransfer* self) {
	gint result;
	WebKitDownload* _tmp0_ = NULL;
	gint _tmp1_ = 0;
#line 33 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 34 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = self->download;
#line 34 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = midori_download_get_type (_tmp0_);
#line 34 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	result = _tmp1_;
#line 34 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 522 "transfers.c"
}


gdouble transfers_transfer_get_progress (TransfersTransfer* self) {
	gdouble result;
	WebKitDownload* _tmp0_ = NULL;
	gdouble _tmp1_ = 0.0;
#line 36 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (self != NULL, 0.0);
#line 37 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = self->download;
#line 37 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = midori_download_get_progress (_tmp0_);
#line 37 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	result = _tmp1_;
#line 37 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 540 "transfers.c"
}


gboolean transfers_transfer_get_succeeded (TransfersTransfer* self) {
	gboolean result;
	WebKitDownload* _tmp0_ = NULL;
	WebKitDownloadStatus _tmp1_ = 0;
	WebKitDownloadStatus _tmp2_ = 0;
#line 46 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = self->download;
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = webkit_download_get_status (_tmp0_);
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = _tmp1_;
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	result = _tmp2_ == WEBKIT_DOWNLOAD_STATUS_FINISHED;
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 561 "transfers.c"
}


gboolean transfers_transfer_get_finished (TransfersTransfer* self) {
	gboolean result;
	WebKitDownload* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 49 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 50 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = self->download;
#line 50 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = midori_download_is_finished (_tmp0_);
#line 50 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	result = _tmp1_;
#line 50 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 579 "transfers.c"
}


const gchar* transfers_transfer_get_destination (TransfersTransfer* self) {
	const gchar* result;
	WebKitDownload* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
#line 52 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 53 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = self->download;
#line 53 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = webkit_download_get_destination_uri (_tmp0_);
#line 53 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = _tmp1_;
#line 53 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	result = _tmp2_;
#line 53 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 600 "transfers.c"
}


static void transfers_transfer_real_changed (TransfersTransfer* self) {
	gchar* tooltip = NULL;
	WebKitDownload* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
#line 27 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = self->download;
#line 27 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = midori_download_calculate_tooltip (_tmp0_);
#line 27 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	tooltip = _tmp1_;
#line 28 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = g_strdup (tooltip);
#line 28 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_set_data_full ((GObject*) self, "tooltip", _tmp2_, g_free);
#line 25 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_free0 (tooltip);
#line 621 "transfers.c"
}


static void transfers_transfer_class_init (TransfersTransferClass * klass) {
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_transfer_parent_class = g_type_class_peek_parent (klass);
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	((TransfersTransferClass *) klass)->changed = transfers_transfer_real_changed;
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_transfers_transfer_get_property;
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	G_OBJECT_CLASS (klass)->finalize = transfers_transfer_finalize;
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), TRANSFERS_TRANSFER_ACTION, g_param_spec_int ("action", "action", "action", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), TRANSFERS_TRANSFER_PROGRESS, g_param_spec_double ("progress", "progress", "progress", -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), TRANSFERS_TRANSFER_SUCCEEDED, g_param_spec_boolean ("succeeded", "succeeded", "succeeded", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), TRANSFERS_TRANSFER_FINISHED, g_param_spec_boolean ("finished", "finished", "finished", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), TRANSFERS_TRANSFER_DESTINATION, g_param_spec_string ("destination", "destination", "destination", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_new ("changed", TRANSFERS_TYPE_TRANSFER, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (TransfersTransferClass, changed), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_new ("remove", TRANSFERS_TYPE_TRANSFER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_new ("removed", TRANSFERS_TYPE_TRANSFER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 650 "transfers.c"
}


static void transfers_transfer_instance_init (TransfersTransfer * self) {
#line 22 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->poll_source = (guint) 0;
#line 657 "transfers.c"
}


static void transfers_transfer_finalize (GObject* obj) {
	TransfersTransfer * self;
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRANSFERS_TYPE_TRANSFER, TransfersTransfer);
#line 23 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->download);
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	G_OBJECT_CLASS (transfers_transfer_parent_class)->finalize (obj);
#line 669 "transfers.c"
}


GType transfers_transfer_get_type (void) {
	static volatile gsize transfers_transfer_type_id__volatile = 0;
	if (g_once_init_enter (&transfers_transfer_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (TransfersTransferClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) transfers_transfer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TransfersTransfer), 0, (GInstanceInitFunc) transfers_transfer_instance_init, NULL };
		GType transfers_transfer_type_id;
		transfers_transfer_type_id = g_type_register_static (G_TYPE_OBJECT, "TransfersTransfer", &g_define_type_info, 0);
		g_once_init_leave (&transfers_transfer_type_id__volatile, transfers_transfer_type_id);
	}
	return transfers_transfer_type_id__volatile;
}


static void _vala_transfers_transfer_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	TransfersTransfer * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TRANSFERS_TYPE_TRANSFER, TransfersTransfer);
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	switch (property_id) {
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		case TRANSFERS_TRANSFER_ACTION:
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_value_set_int (value, transfers_transfer_get_action (self));
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		break;
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		case TRANSFERS_TRANSFER_PROGRESS:
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_value_set_double (value, transfers_transfer_get_progress (self));
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		break;
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		case TRANSFERS_TRANSFER_SUCCEEDED:
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_value_set_boolean (value, transfers_transfer_get_succeeded (self));
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		break;
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		case TRANSFERS_TRANSFER_FINISHED:
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_value_set_boolean (value, transfers_transfer_get_finished (self));
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		break;
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		case TRANSFERS_TRANSFER_DESTINATION:
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_value_set_string (value, transfers_transfer_get_destination (self));
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		break;
#line 720 "transfers.c"
		default:
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		break;
#line 726 "transfers.c"
	}
}


gboolean transfers_pending_transfers (KatzeArray* array) {
	gboolean result = FALSE;
	KatzeArray* _tmp0_ = NULL;
	GList* _tmp1_ = NULL;
#line 89 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (array != NULL, FALSE);
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = array;
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = katze_array_get_items (_tmp0_);
#line 741 "transfers.c"
	{
		GList* item_collection = NULL;
		GList* item_it = NULL;
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		item_collection = _tmp1_;
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		for (item_it = item_collection; item_it != NULL; item_it = item_it->next) {
#line 749 "transfers.c"
			GObject* _tmp2_ = NULL;
			GObject* item = NULL;
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp2_ = _g_object_ref0 ((GObject*) ((KatzeItem*) item_it->data));
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			item = _tmp2_;
#line 756 "transfers.c"
			{
				TransfersTransfer* transfer = NULL;
				GObject* _tmp3_ = NULL;
				TransfersTransfer* _tmp4_ = NULL;
				TransfersTransfer* _tmp5_ = NULL;
				gboolean _tmp6_ = FALSE;
				gboolean _tmp7_ = FALSE;
#line 91 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp3_ = item;
#line 91 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, TRANSFERS_TYPE_TRANSFER) ? ((TransfersTransfer*) _tmp3_) : NULL);
#line 91 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				transfer = _tmp4_;
#line 92 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp5_ = transfer;
#line 92 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp6_ = transfers_transfer_get_finished (_tmp5_);
#line 92 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp7_ = _tmp6_;
#line 92 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				if (!_tmp7_) {
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
					result = TRUE;
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
					_g_object_unref0 (transfer);
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
					_g_object_unref0 (item);
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
					_g_list_free0 (item_collection);
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
					return result;
#line 788 "transfers.c"
				}
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_g_object_unref0 (transfer);
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_g_object_unref0 (item);
#line 794 "transfers.c"
			}
		}
#line 90 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_list_free0 (item_collection);
#line 799 "transfers.c"
	}
#line 95 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	result = FALSE;
#line 95 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 805 "transfers.c"
}


static const gchar* transfers_sidebar_real_get_stock_id (MidoriViewable* base) {
	TransfersSidebar * self;
	const gchar* result = NULL;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self = (TransfersSidebar*) base;
#line 106 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	result = MIDORI_STOCK_TRANSFER;
#line 106 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 818 "transfers.c"
}


static const gchar* transfers_sidebar_real_get_label (MidoriViewable* base) {
	TransfersSidebar * self;
	const gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
#line 109 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self = (TransfersSidebar*) base;
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = _ ("Transfers");
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	result = _tmp0_;
#line 110 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 834 "transfers.c"
}


static void _transfers_sidebar_clear_clicked_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self) {
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_sidebar_clear_clicked ((TransfersSidebar*) self);
#line 841 "transfers.c"
}


static GtkWidget* transfers_sidebar_real_get_toolbar (MidoriViewable* base) {
	TransfersSidebar * self;
	GtkWidget* result = NULL;
	GtkToolbar* _tmp0_ = NULL;
	GtkToolbar* _tmp22_ = NULL;
	GtkWidget* _tmp23_ = NULL;
#line 113 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self = (TransfersSidebar*) base;
#line 114 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = self->priv->toolbar;
#line 114 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (_tmp0_ == NULL) {
#line 857 "transfers.c"
		GtkToolbar* _tmp1_ = NULL;
		GtkToolbar* _tmp2_ = NULL;
		GtkToolbar* _tmp3_ = NULL;
		GtkToolItem* _tmp4_ = NULL;
		GtkToolItem* _tmp5_ = NULL;
		GtkSeparatorToolItem* separator = NULL;
		GtkSeparatorToolItem* _tmp6_ = NULL;
		GtkSeparatorToolItem* _tmp7_ = NULL;
		GtkSeparatorToolItem* _tmp8_ = NULL;
		GtkToolbar* _tmp9_ = NULL;
		GtkSeparatorToolItem* _tmp10_ = NULL;
		GtkToolButton* _tmp11_ = NULL;
		GtkToolButton* _tmp12_ = NULL;
		const gchar* _tmp13_ = NULL;
		GtkToolButton* _tmp14_ = NULL;
		GtkToolButton* _tmp15_ = NULL;
		GtkToolButton* _tmp16_ = NULL;
		KatzeArray* _tmp17_ = NULL;
		gboolean _tmp18_ = FALSE;
		GtkToolbar* _tmp19_ = NULL;
		GtkToolButton* _tmp20_ = NULL;
		GtkToolbar* _tmp21_ = NULL;
#line 115 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp1_ = (GtkToolbar*) gtk_toolbar_new ();
#line 115 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_object_ref_sink (_tmp1_);
#line 115 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (self->priv->toolbar);
#line 115 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		self->priv->toolbar = _tmp1_;
#line 116 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp2_ = self->priv->toolbar;
#line 116 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_toolbar_set_icon_size (_tmp2_, GTK_ICON_SIZE_BUTTON);
#line 117 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp3_ = self->priv->toolbar;
#line 117 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp4_ = gtk_tool_item_new ();
#line 117 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_object_ref_sink (_tmp4_);
#line 117 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp5_ = _tmp4_;
#line 117 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_toolbar_insert (_tmp3_, _tmp5_, -1);
#line 117 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (_tmp5_);
#line 118 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp6_ = (GtkSeparatorToolItem*) gtk_separator_tool_item_new ();
#line 118 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_object_ref_sink (_tmp6_);
#line 118 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		separator = _tmp6_;
#line 119 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp7_ = separator;
#line 119 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_separator_tool_item_set_draw (_tmp7_, FALSE);
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp8_ = separator;
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_tool_item_set_expand ((GtkToolItem*) _tmp8_, TRUE);
#line 121 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp9_ = self->priv->toolbar;
#line 121 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp10_ = separator;
#line 121 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_toolbar_insert (_tmp9_, (GtkToolItem*) _tmp10_, -1);
#line 122 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp11_ = (GtkToolButton*) gtk_tool_button_new_from_stock (GTK_STOCK_CLEAR);
#line 122 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_object_ref_sink (_tmp11_);
#line 122 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (self->priv->clear);
#line 122 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		self->priv->clear = _tmp11_;
#line 123 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp12_ = self->priv->clear;
#line 123 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp13_ = _ ("Clear All");
#line 123 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_tool_button_set_label (_tmp12_, _tmp13_);
#line 124 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp14_ = self->priv->clear;
#line 124 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_tool_item_set_is_important ((GtkToolItem*) _tmp14_, TRUE);
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp15_ = self->priv->clear;
#line 125 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_signal_connect_object (_tmp15_, "clicked", (GCallback) _transfers_sidebar_clear_clicked_gtk_tool_button_clicked, self, 0);
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp16_ = self->priv->clear;
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp17_ = self->priv->array;
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp18_ = katze_array_is_empty (_tmp17_);
#line 126 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_widget_set_sensitive ((GtkWidget*) _tmp16_, !_tmp18_);
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp19_ = self->priv->toolbar;
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp20_ = self->priv->clear;
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_toolbar_insert (_tmp19_, (GtkToolItem*) _tmp20_, -1);
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp21_ = self->priv->toolbar;
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_widget_show_all ((GtkWidget*) _tmp21_);
#line 114 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (separator);
#line 966 "transfers.c"
	}
#line 130 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp22_ = self->priv->toolbar;
#line 130 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp23_ = _g_object_ref0 ((GtkWidget*) _tmp22_);
#line 130 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	result = _tmp23_;
#line 130 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 976 "transfers.c"
}


static void transfers_sidebar_clear_clicked (TransfersSidebar* self) {
	KatzeArray* _tmp0_ = NULL;
	GList* _tmp1_ = NULL;
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 134 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = self->priv->array;
#line 134 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = katze_array_get_items (_tmp0_);
#line 989 "transfers.c"
	{
		GList* item_collection = NULL;
		GList* item_it = NULL;
#line 134 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		item_collection = _tmp1_;
#line 134 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		for (item_it = item_collection; item_it != NULL; item_it = item_it->next) {
#line 997 "transfers.c"
			GObject* _tmp2_ = NULL;
			GObject* item = NULL;
#line 134 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp2_ = _g_object_ref0 ((GObject*) ((KatzeItem*) item_it->data));
#line 134 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			item = _tmp2_;
#line 1004 "transfers.c"
			{
				TransfersTransfer* transfer = NULL;
				GObject* _tmp3_ = NULL;
				TransfersTransfer* _tmp4_ = NULL;
				TransfersTransfer* _tmp5_ = NULL;
				gboolean _tmp6_ = FALSE;
				gboolean _tmp7_ = FALSE;
#line 135 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp3_ = item;
#line 135 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, TRANSFERS_TYPE_TRANSFER) ? ((TransfersTransfer*) _tmp3_) : NULL);
#line 135 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				transfer = _tmp4_;
#line 136 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp5_ = transfer;
#line 136 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp6_ = transfers_transfer_get_finished (_tmp5_);
#line 136 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp7_ = _tmp6_;
#line 136 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				if (_tmp7_) {
#line 1026 "transfers.c"
					TransfersTransfer* _tmp8_ = NULL;
#line 137 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
					_tmp8_ = transfer;
#line 137 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
					g_signal_emit_by_name (_tmp8_, "remove");
#line 1032 "transfers.c"
				}
#line 134 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_g_object_unref0 (transfer);
#line 134 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_g_object_unref0 (item);
#line 1038 "transfers.c"
			}
		}
#line 134 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_list_free0 (item_collection);
#line 1043 "transfers.c"
	}
}


static gint _transfers_sidebar_tree_sort_func_gtk_tree_iter_compare_func (GtkTreeModel* model, GtkTreeIter* a, GtkTreeIter* b, gpointer self) {
	gint result;
	result = transfers_sidebar_tree_sort_func ((TransfersSidebar*) self, model, a, b);
#line 148 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 1053 "transfers.c"
}


static void _transfers_sidebar_on_render_icon_gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self) {
#line 153 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_sidebar_on_render_icon ((TransfersSidebar*) self, cell_layout, cell, tree_model, iter);
#line 1060 "transfers.c"
}


static void _transfers_sidebar_on_render_text_gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self) {
#line 161 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_sidebar_on_render_text ((TransfersSidebar*) self, cell_layout, cell, tree_model, iter);
#line 1067 "transfers.c"
}


static void _transfers_sidebar_on_render_button_gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self) {
#line 167 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_sidebar_on_render_button ((TransfersSidebar*) self, cell_layout, cell, tree_model, iter);
#line 1074 "transfers.c"
}


static void _transfers_sidebar_row_activated_gtk_tree_view_row_activated (GtkTreeView* _sender, GtkTreePath* path, GtkTreeViewColumn* column, gpointer self) {
#line 170 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_sidebar_row_activated ((TransfersSidebar*) self, path, column);
#line 1081 "transfers.c"
}


static gboolean _transfers_sidebar_button_released_gtk_widget_button_release_event (GtkWidget* _sender, GdkEventButton* event, gpointer self) {
	gboolean result;
	result = transfers_sidebar_button_released ((TransfersSidebar*) self, event);
#line 171 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 1090 "transfers.c"
}


static gboolean _transfers_sidebar_menu_popup_gtk_widget_popup_menu (GtkWidget* _sender, gpointer self) {
	gboolean result;
	result = transfers_sidebar_menu_popup ((TransfersSidebar*) self);
#line 172 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 1099 "transfers.c"
}


static void _transfers_sidebar_transfer_added_katze_array_add_item (KatzeArray* _sender, GObject* item, gpointer self) {
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_sidebar_transfer_added ((TransfersSidebar*) self, item);
#line 1106 "transfers.c"
}


static void _transfers_sidebar_transfer_removed_katze_array_remove_item (KatzeArray* _sender, GObject* item, gpointer self) {
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_sidebar_transfer_removed ((TransfersSidebar*) self, item);
#line 1113 "transfers.c"
}


TransfersSidebar* transfers_sidebar_construct (GType object_type, KatzeArray* array) {
	TransfersSidebar * 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;
	GtkCellRendererProgress* renderer_progress = NULL;
	GtkCellRendererProgress* _tmp15_ = NULL;
	GtkTreeViewColumn* _tmp16_ = NULL;
	GtkCellRendererProgress* _tmp17_ = NULL;
	GtkTreeViewColumn* _tmp18_ = NULL;
	GtkTreeViewColumn* _tmp19_ = NULL;
	GtkCellRendererProgress* _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;
	GtkTreeView* _tmp35_ = NULL;
	KatzeArray* _tmp36_ = NULL;
	KatzeArray* _tmp37_ = NULL;
	KatzeArray* _tmp38_ = NULL;
	KatzeArray* _tmp39_ = NULL;
	KatzeArray* _tmp40_ = NULL;
	GList* _tmp41_ = NULL;
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (array != NULL, NULL);
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self = (TransfersSidebar*) g_object_new (object_type, NULL);
#line 144 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = self->priv->store;
#line 144 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = (GtkTreeView*) gtk_tree_view_new_with_model ((GtkTreeModel*) _tmp0_);
#line 144 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_ref_sink (_tmp1_);
#line 144 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->priv->treeview);
#line 144 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->priv->treeview = _tmp1_;
#line 145 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = self->priv->treeview;
#line 145 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_tree_view_set_headers_visible (_tmp2_, FALSE);
#line 147 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp3_ = self->priv->store;
#line 147 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_tree_sortable_set_sort_column_id ((GtkTreeSortable*) _tmp3_, 0, GTK_SORT_ASCENDING);
#line 148 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp4_ = self->priv->store;
#line 148 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_tree_sortable_set_sort_func ((GtkTreeSortable*) _tmp4_, 0, _transfers_sidebar_tree_sort_func_gtk_tree_iter_compare_func, g_object_ref (self), g_object_unref);
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp5_ = gtk_tree_view_column_new ();
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_ref_sink (_tmp5_);
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (column);
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	column = _tmp5_;
#line 151 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp6_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new ();
#line 151 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_ref_sink (_tmp6_);
#line 151 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	renderer_icon = _tmp6_;
#line 152 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp7_ = column;
#line 152 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp8_ = renderer_icon;
#line 152 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp7_, (GtkCellRenderer*) _tmp8_, FALSE);
#line 153 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp9_ = column;
#line 153 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp10_ = renderer_icon;
#line 153 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_cell_layout_set_cell_data_func ((GtkCellLayout*) _tmp9_, (GtkCellRenderer*) _tmp10_, _transfers_sidebar_on_render_icon_gtk_cell_layout_data_func, g_object_ref (self), g_object_unref);
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp11_ = self->priv->treeview;
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp12_ = column;
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_tree_view_append_column (_tmp11_, _tmp12_);
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp13_ = gtk_tree_view_column_new ();
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_ref_sink (_tmp13_);
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (column);
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	column = _tmp13_;
#line 157 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp14_ = column;
#line 157 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_tree_view_column_set_sizing (_tmp14_, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp15_ = (GtkCellRendererProgress*) gtk_cell_renderer_progress_new ();
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_ref_sink (_tmp15_);
#line 158 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	renderer_progress = _tmp15_;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp16_ = column;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp17_ = renderer_progress;
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp16_, (GtkCellRenderer*) _tmp17_, TRUE);
#line 160 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp18_ = column;
#line 160 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_tree_view_column_set_expand (_tmp18_, TRUE);
#line 161 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp19_ = column;
#line 161 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp20_ = renderer_progress;
#line 161 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_cell_layout_set_cell_data_func ((GtkCellLayout*) _tmp19_, (GtkCellRenderer*) _tmp20_, _transfers_sidebar_on_render_text_gtk_cell_layout_data_func, g_object_ref (self), g_object_unref);
#line 162 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp21_ = self->priv->treeview;
#line 162 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp22_ = column;
#line 162 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_tree_view_append_column (_tmp21_, _tmp22_);
#line 164 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp23_ = gtk_tree_view_column_new ();
#line 164 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_ref_sink (_tmp23_);
#line 164 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (column);
#line 164 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	column = _tmp23_;
#line 165 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp24_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new ();
#line 165 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_ref_sink (_tmp24_);
#line 165 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	renderer_button = _tmp24_;
#line 166 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp25_ = column;
#line 166 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp26_ = renderer_button;
#line 166 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp25_, (GtkCellRenderer*) _tmp26_, FALSE);
#line 167 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp27_ = column;
#line 167 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp28_ = renderer_button;
#line 167 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_cell_layout_set_cell_data_func ((GtkCellLayout*) _tmp27_, (GtkCellRenderer*) _tmp28_, _transfers_sidebar_on_render_button_gtk_cell_layout_data_func, g_object_ref (self), g_object_unref);
#line 168 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp29_ = self->priv->treeview;
#line 168 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp30_ = column;
#line 168 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_tree_view_append_column (_tmp29_, _tmp30_);
#line 170 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp31_ = self->priv->treeview;
#line 170 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_object (_tmp31_, "row-activated", (GCallback) _transfers_sidebar_row_activated_gtk_tree_view_row_activated, self, 0);
#line 171 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp32_ = self->priv->treeview;
#line 171 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_object ((GtkWidget*) _tmp32_, "button-release-event", (GCallback) _transfers_sidebar_button_released_gtk_widget_button_release_event, self, 0);
#line 172 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp33_ = self->priv->treeview;
#line 172 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_object ((GtkWidget*) _tmp33_, "popup-menu", (GCallback) _transfers_sidebar_menu_popup_gtk_widget_popup_menu, self, 0);
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp34_ = self->priv->treeview;
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_widget_show ((GtkWidget*) _tmp34_);
#line 174 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp35_ = self->priv->treeview;
#line 174 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_box_pack_start ((GtkBox*) self, (GtkWidget*) _tmp35_, TRUE, TRUE, (guint) 0);
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp36_ = array;
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp37_ = _g_object_ref0 (_tmp36_);
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->priv->array);
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->priv->array = _tmp37_;
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp38_ = array;
#line 177 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_object (_tmp38_, "add-item", (GCallback) _transfers_sidebar_transfer_added_katze_array_add_item, self, 0);
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp39_ = array;
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_object (_tmp39_, "remove-item", (GCallback) _transfers_sidebar_transfer_removed_katze_array_remove_item, self, G_CONNECT_AFTER);
#line 179 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp40_ = array;
#line 179 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp41_ = katze_array_get_items (_tmp40_);
#line 1335 "transfers.c"
	{
		GList* item_collection = NULL;
		GList* item_it = NULL;
#line 179 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		item_collection = _tmp41_;
#line 179 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		for (item_it = item_collection; item_it != NULL; item_it = item_it->next) {
#line 1343 "transfers.c"
			GObject* _tmp42_ = NULL;
			GObject* item = NULL;
#line 179 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp42_ = _g_object_ref0 ((GObject*) ((KatzeItem*) item_it->data));
#line 179 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			item = _tmp42_;
#line 1350 "transfers.c"
			{
				GObject* _tmp43_ = NULL;
#line 180 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp43_ = item;
#line 180 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				transfers_sidebar_transfer_added (self, _tmp43_);
#line 179 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_g_object_unref0 (item);
#line 1359 "transfers.c"
			}
		}
#line 179 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_list_free0 (item_collection);
#line 1364 "transfers.c"
	}
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (renderer_button);
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (renderer_progress);
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (renderer_icon);
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (column);
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return self;
#line 1376 "transfers.c"
}


TransfersSidebar* transfers_sidebar_new (KatzeArray* array) {
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return transfers_sidebar_construct (TRANSFERS_TYPE_SIDEBAR, array);
#line 1383 "transfers.c"
}


static void transfers_sidebar_row_activated (TransfersSidebar* 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 183 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 183 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (path != NULL);
#line 183 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (column != NULL);
#line 185 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = self->priv->store;
#line 185 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = path;
#line 185 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp3_ = gtk_tree_model_get_iter ((GtkTreeModel*) _tmp0_, &_tmp2_, _tmp1_);
#line 185 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	iter = _tmp2_;
#line 185 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (_tmp3_) {
#line 1410 "transfers.c"
		TransfersTransfer* transfer = NULL;
		GtkListStore* _tmp4_ = NULL;
		GtkTreeIter _tmp5_ = {0};
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp4_ = self->priv->store;
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp5_ = iter;
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_tree_model_get ((GtkTreeModel*) _tmp4_, &_tmp5_, 0, &transfer, -1);
#line 1420 "transfers.c"
		{
			gboolean _tmp6_ = FALSE;
			TransfersTransfer* _tmp7_ = NULL;
			WebKitDownload* _tmp8_ = NULL;
			GtkTreeView* _tmp9_ = NULL;
			gboolean _tmp10_ = FALSE;
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp7_ = transfer;
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp8_ = _tmp7_->download;
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp9_ = self->priv->treeview;
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp10_ = midori_download_action_clear (_tmp8_, (GtkWidget*) _tmp9_, &_inner_error_);
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp6_ = _tmp10_;
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1439 "transfers.c"
				goto __catch0_g_error;
			}
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			if (_tmp6_) {
#line 1444 "transfers.c"
				TransfersTransfer* _tmp11_ = NULL;
#line 191 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp11_ = transfer;
#line 191 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				g_signal_emit_by_name (_tmp11_, "remove");
#line 1450 "transfers.c"
			}
		}
		goto __finally0;
		__catch0_g_error:
		{
			GError* _error_ = NULL;
			const gchar* _tmp12_ = NULL;
			GError* _tmp13_ = NULL;
			const gchar* _tmp14_ = NULL;
#line 189 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_error_ = _inner_error_;
#line 189 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_inner_error_ = NULL;
#line 194 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp12_ = _ ("Failed to open download: %s");
#line 194 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp13_ = _error_;
#line 194 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp14_ = _tmp13_->message;
#line 194 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			g_warning (_tmp12_, _tmp14_);
#line 189 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_g_error_free0 (_error_);
#line 1474 "transfers.c"
		}
		__finally0:
#line 189 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 189 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_g_object_unref0 (transfer);
#line 189 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.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 189 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			g_clear_error (&_inner_error_);
#line 189 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			return;
#line 1487 "transfers.c"
		}
#line 185 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (transfer);
#line 1491 "transfers.c"
	}
}


static gboolean transfers_sidebar_button_released (TransfersSidebar* self, GdkEventButton* event) {
	gboolean result = FALSE;
	GdkEventButton _tmp0_ = {0};
	guint _tmp1_ = 0U;
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 200 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = *event;
#line 200 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = _tmp0_.button;
#line 200 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (_tmp1_ == ((guint) 3)) {
#line 1510 "transfers.c"
		GdkEventButton _tmp2_ = {0};
		gboolean _tmp3_ = FALSE;
#line 201 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp2_ = *event;
#line 201 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp3_ = transfers_sidebar_show_popup_menu (self, &_tmp2_);
#line 201 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		result = _tmp3_;
#line 201 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		return result;
#line 1521 "transfers.c"
	}
#line 202 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	result = FALSE;
#line 202 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 1527 "transfers.c"
}


static gboolean transfers_sidebar_menu_popup (TransfersSidebar* self) {
	gboolean result = FALSE;
	gboolean _tmp0_ = FALSE;
#line 205 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 206 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = transfers_sidebar_show_popup_menu (self, NULL);
#line 206 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	result = _tmp0_;
#line 206 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 1542 "transfers.c"
}


static Block2Data* block2_data_ref (Block2Data* _data2_) {
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_atomic_int_inc (&_data2_->_ref_count_);
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return _data2_;
#line 1551 "transfers.c"
}


static void block2_data_unref (void * _userdata_) {
	Block2Data* _data2_;
	_data2_ = (Block2Data*) _userdata_;
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
#line 1560 "transfers.c"
		TransfersSidebar* self;
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		self = _data2_->self;
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (_data2_->transfer);
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (self);
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_slice_free (Block2Data, _data2_);
#line 1570 "transfers.c"
	}
}


static void ___lambda6_ (Block2Data* _data2_) {
	TransfersSidebar* self;
	GError * _inner_error_ = NULL;
#line 217 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self = _data2_->self;
#line 1580 "transfers.c"
	{
		TransfersTransfer* _tmp0_ = NULL;
		WebKitDownload* _tmp1_ = NULL;
		GtkTreeView* _tmp2_ = NULL;
#line 219 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp0_ = _data2_->transfer;
#line 219 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp1_ = _tmp0_->download;
#line 219 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp2_ = self->priv->treeview;
#line 219 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		midori_download_open (_tmp1_, (GtkWidget*) _tmp2_, &_inner_error_);
#line 219 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1595 "transfers.c"
			goto __catch1_g_error;
		}
	}
	goto __finally1;
	__catch1_g_error:
	{
		GError* error_open = NULL;
		const gchar* _tmp3_ = NULL;
		GError* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
#line 218 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		error_open = _inner_error_;
#line 218 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_inner_error_ = NULL;
#line 221 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp3_ = _ ("Failed to open download: %s");
#line 221 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp4_ = error_open;
#line 221 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp5_ = _tmp4_->message;
#line 221 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_warning (_tmp3_, _tmp5_);
#line 218 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_error_free0 (error_open);
#line 1620 "transfers.c"
	}
	__finally1:
#line 218 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 218 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.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 218 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_clear_error (&_inner_error_);
#line 218 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		return;
#line 1631 "transfers.c"
	}
}


static void ____lambda6__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 217 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	___lambda6_ (self);
#line 1639 "transfers.c"
}


static void ___lambda7_ (Block2Data* _data2_) {
	TransfersSidebar* self;
	GFile* folder = NULL;
	TransfersTransfer* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	GFile* _tmp3_ = NULL;
	MidoriBrowser* _tmp4_ = NULL;
	GtkWidget* _tmp5_ = NULL;
	GtkWidget* _tmp6_ = NULL;
	GFile* _tmp7_ = NULL;
	GFile* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gboolean _tmp11_ = FALSE;
#line 228 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self = _data2_->self;
#line 229 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = _data2_->transfer;
#line 229 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = transfers_transfer_get_destination (_tmp0_);
#line 229 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = _tmp1_;
#line 229 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp3_ = g_file_new_for_uri (_tmp2_);
#line 229 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	folder = _tmp3_;
#line 230 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp4_ = midori_browser_get_for_widget ((GtkWidget*) self);
#line 230 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp5_ = midori_browser_get_tab (_tmp4_);
#line 230 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp6_ = _tmp5_;
#line 230 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp7_ = g_file_get_parent (folder);
#line 230 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp8_ = _tmp7_;
#line 230 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp9_ = g_file_get_uri (_tmp8_);
#line 230 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp10_ = _tmp9_;
#line 230 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_emit_by_name (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, MIDORI_TYPE_TAB) ? ((MidoriTab*) _tmp6_) : NULL, "open-uri", _tmp10_, &_tmp11_);
#line 230 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_free0 (_tmp10_);
#line 230 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (_tmp8_);
#line 228 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (folder);
#line 1692 "transfers.c"
}


static void ____lambda7__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 228 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	___lambda7_ (self);
#line 1699 "transfers.c"
}


static void ___lambda8_ (Block2Data* _data2_) {
	TransfersSidebar* self;
	gchar* uri = NULL;
	TransfersTransfer* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	GtkClipboard* _tmp4_ = NULL;
	GtkClipboard* _tmp5_ = NULL;
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self = _data2_->self;
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = _data2_->transfer;
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = transfers_transfer_get_destination (_tmp0_);
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = _tmp1_;
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	uri = _tmp3_;
#line 236 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp4_ = gtk_widget_get_clipboard ((GtkWidget*) self, GDK_SELECTION_PRIMARY);
#line 236 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_clipboard_set_text (_tmp4_, uri, -1);
#line 237 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp5_ = gtk_widget_get_clipboard ((GtkWidget*) self, GDK_SELECTION_CLIPBOARD);
#line 237 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_clipboard_set_text (_tmp5_, uri, -1);
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_free0 (uri);
#line 1734 "transfers.c"
}


static void ____lambda8__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	___lambda8_ (self);
#line 1741 "transfers.c"
}


static gboolean transfers_sidebar_show_popup_menu (TransfersSidebar* self, GdkEventButton* event) {
	gboolean result = FALSE;
	GtkTreeIter iter = {0};
	GtkTreeView* _tmp0_ = NULL;
	GtkTreeSelection* _tmp1_ = NULL;
	GtkTreeIter _tmp2_ = {0};
	gboolean _tmp3_ = FALSE;
#line 209 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = self->priv->treeview;
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = gtk_tree_view_get_selection (_tmp0_);
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp3_ = gtk_tree_selection_get_selected (_tmp1_, NULL, &_tmp2_);
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	iter = _tmp2_;
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (_tmp3_) {
#line 1764 "transfers.c"
		Block2Data* _data2_;
		GtkListStore* _tmp4_ = NULL;
		GtkTreeIter _tmp5_ = {0};
		GtkMenu* menu = NULL;
		GtkMenu* _tmp6_ = NULL;
		GtkImageMenuItem* menuitem = NULL;
		GtkImageMenuItem* _tmp7_ = NULL;
		GtkImageMenuItem* _tmp8_ = NULL;
		GtkImageMenuItem* _tmp9_ = NULL;
		TransfersTransfer* _tmp10_ = NULL;
		gboolean _tmp11_ = FALSE;
		gboolean _tmp12_ = FALSE;
		GtkMenu* _tmp13_ = NULL;
		GtkImageMenuItem* _tmp14_ = NULL;
		const gchar* _tmp15_ = NULL;
		GtkImageMenuItem* _tmp16_ = NULL;
		GtkImageMenuItem* _tmp17_ = NULL;
		GtkImage* _tmp18_ = NULL;
		GtkImage* _tmp19_ = NULL;
		GtkImageMenuItem* _tmp20_ = NULL;
		GtkMenu* _tmp21_ = NULL;
		GtkImageMenuItem* _tmp22_ = NULL;
		const gchar* _tmp23_ = NULL;
		GtkImageMenuItem* _tmp24_ = NULL;
		GtkImageMenuItem* _tmp25_ = NULL;
		GtkImageMenuItem* _tmp26_ = NULL;
		GtkImage* _tmp27_ = NULL;
		GtkImage* _tmp28_ = NULL;
		GtkMenu* _tmp29_ = NULL;
		GtkImageMenuItem* _tmp30_ = NULL;
		GtkMenu* _tmp31_ = NULL;
		GtkTreeView* _tmp32_ = NULL;
		GtkMenu* _tmp33_ = NULL;
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_data2_ = g_slice_new0 (Block2Data);
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_data2_->_ref_count_ = 1;
#line 211 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_data2_->self = g_object_ref (self);
#line 213 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp4_ = self->priv->store;
#line 213 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp5_ = iter;
#line 213 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_tree_model_get ((GtkTreeModel*) _tmp4_, &_tmp5_, 0, &_data2_->transfer, -1);
#line 215 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp6_ = (GtkMenu*) gtk_menu_new ();
#line 215 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_object_ref_sink (_tmp6_);
#line 215 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		menu = _tmp6_;
#line 216 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp7_ = (GtkImageMenuItem*) gtk_image_menu_item_new_from_stock (GTK_STOCK_OPEN, NULL);
#line 216 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_object_ref_sink (_tmp7_);
#line 216 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		menuitem = _tmp7_;
#line 217 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp8_ = menuitem;
#line 217 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_signal_connect_data ((GtkMenuItem*) _tmp8_, "activate", (GCallback) ____lambda6__gtk_menu_item_activate, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
#line 224 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp9_ = menuitem;
#line 224 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp10_ = _data2_->transfer;
#line 224 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp11_ = transfers_transfer_get_succeeded (_tmp10_);
#line 224 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp12_ = _tmp11_;
#line 224 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_widget_set_sensitive ((GtkWidget*) _tmp9_, _tmp12_);
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp13_ = menu;
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp14_ = menuitem;
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_menu_shell_append ((GtkMenuShell*) _tmp13_, (GtkWidget*) ((GtkMenuItem*) _tmp14_));
#line 226 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp15_ = _ ("Open Destination _Folder");
#line 226 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp16_ = (GtkImageMenuItem*) gtk_image_menu_item_new_with_mnemonic (_tmp15_);
#line 226 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_object_ref_sink (_tmp16_);
#line 226 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (menuitem);
#line 226 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		menuitem = _tmp16_;
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp17_ = menuitem;
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp18_ = (GtkImage*) gtk_image_new_from_stock (GTK_STOCK_DIRECTORY, GTK_ICON_SIZE_MENU);
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_object_ref_sink (_tmp18_);
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp19_ = _tmp18_;
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_image_menu_item_set_image (_tmp17_, (GtkWidget*) _tmp19_);
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (_tmp19_);
#line 228 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp20_ = menuitem;
#line 228 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_signal_connect_data ((GtkMenuItem*) _tmp20_, "activate", (GCallback) ____lambda7__gtk_menu_item_activate, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
#line 232 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp21_ = menu;
#line 232 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp22_ = menuitem;
#line 232 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_menu_shell_append ((GtkMenuShell*) _tmp21_, (GtkWidget*) ((GtkMenuItem*) _tmp22_));
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp23_ = _ ("Copy Link Loc_ation");
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp24_ = (GtkImageMenuItem*) gtk_image_menu_item_new_with_mnemonic (_tmp23_);
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_object_ref_sink (_tmp24_);
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (menuitem);
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		menuitem = _tmp24_;
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp25_ = menuitem;
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_signal_connect_data ((GtkMenuItem*) _tmp25_, "activate", (GCallback) ____lambda8__gtk_menu_item_activate, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp26_ = menuitem;
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp27_ = (GtkImage*) gtk_image_new_from_stock (GTK_STOCK_COPY, GTK_ICON_SIZE_MENU);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_object_ref_sink (_tmp27_);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp28_ = _tmp27_;
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_image_menu_item_set_image (_tmp26_, (GtkWidget*) _tmp28_);
#line 239 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (_tmp28_);
#line 240 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp29_ = menu;
#line 240 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp30_ = menuitem;
#line 240 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_menu_shell_append ((GtkMenuShell*) _tmp29_, (GtkWidget*) ((GtkMenuItem*) _tmp30_));
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp31_ = menu;
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_widget_show_all ((GtkWidget*) _tmp31_);
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp32_ = self->priv->treeview;
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp33_ = menu;
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		katze_widget_popup ((GtkWidget*) _tmp32_, _tmp33_, NULL, KATZE_MENU_POSITION_CURSOR);
#line 244 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		result = TRUE;
#line 244 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (menuitem);
#line 244 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (menu);
#line 244 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		block2_data_unref (_data2_);
#line 244 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_data2_ = NULL;
#line 244 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		return result;
#line 1928 "transfers.c"
	}
#line 246 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	result = FALSE;
#line 246 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 1934 "transfers.c"
}


static gint transfers_sidebar_tree_sort_func (TransfersSidebar* self, GtkTreeModel* model, GtkTreeIter* a, GtkTreeIter* b) {
	gint result = 0;
	TransfersTransfer* transfer1 = NULL;
	TransfersTransfer* transfer2 = NULL;
	GtkTreeModel* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	GtkTreeModel* _tmp2_ = NULL;
	GtkTreeIter _tmp3_ = {0};
	gint _tmp4_ = 0;
	TransfersTransfer* _tmp5_ = NULL;
	gboolean _tmp6_ = FALSE;
	gboolean _tmp7_ = FALSE;
	gint _tmp8_ = 0;
	TransfersTransfer* _tmp9_ = NULL;
	gboolean _tmp10_ = FALSE;
	gboolean _tmp11_ = FALSE;
#line 249 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 249 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (model != NULL, 0);
#line 249 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (a != NULL, 0);
#line 249 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (b != NULL, 0);
#line 251 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = model;
#line 251 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = *a;
#line 251 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_tree_model_get (_tmp0_, &_tmp1_, 0, &transfer1, -1);
#line 252 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = model;
#line 252 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp3_ = *b;
#line 252 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_tree_model_get (_tmp2_, &_tmp3_, 0, &transfer2, -1);
#line 253 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp5_ = transfer1;
#line 253 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp6_ = transfers_transfer_get_finished (_tmp5_);
#line 253 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp7_ = _tmp6_;
#line 253 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (_tmp7_) {
#line 253 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp4_ = 1;
#line 1984 "transfers.c"
	} else {
#line 253 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp4_ = 0;
#line 1988 "transfers.c"
	}
#line 253 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp9_ = transfer2;
#line 253 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp10_ = transfers_transfer_get_finished (_tmp9_);
#line 253 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp11_ = _tmp10_;
#line 253 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (_tmp11_) {
#line 253 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp8_ = 1;
#line 2000 "transfers.c"
	} else {
#line 253 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp8_ = 0;
#line 2004 "transfers.c"
	}
#line 253 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	result = _tmp4_ - _tmp8_;
#line 253 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (transfer2);
#line 253 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (transfer1);
#line 253 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 2014 "transfers.c"
}


static void transfers_sidebar_transfer_changed (TransfersSidebar* self, GObject* item) {
	GtkTreeView* _tmp0_ = NULL;
#line 256 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 256 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (item != NULL);
#line 257 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = self->priv->treeview;
#line 257 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_widget_queue_draw ((GtkWidget*) _tmp0_);
#line 2028 "transfers.c"
}


static Block3Data* block3_data_ref (Block3Data* _data3_) {
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_atomic_int_inc (&_data3_->_ref_count_);
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return _data3_;
#line 2037 "transfers.c"
}


static void block3_data_unref (void * _userdata_) {
	Block3Data* _data3_;
	_data3_ = (Block3Data*) _userdata_;
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) {
#line 2046 "transfers.c"
		TransfersSidebar* self;
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		self = _data3_->self;
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (_data3_->transfer);
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (self);
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_slice_free (Block3Data, _data3_);
#line 2056 "transfers.c"
	}
}


static void __lambda9_ (Block3Data* _data3_) {
	TransfersSidebar* self;
#line 265 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self = _data3_->self;
#line 265 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_sidebar_transfer_changed (self, (GObject*) _data3_->transfer);
#line 2067 "transfers.c"
}


static void ___lambda9__transfers_transfer_changed (TransfersTransfer* _sender, gpointer self) {
#line 265 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	__lambda9_ (self);
#line 2074 "transfers.c"
}


static void transfers_sidebar_transfer_added (TransfersSidebar* self, GObject* item) {
	Block3Data* _data3_;
	GObject* _tmp0_ = NULL;
	TransfersTransfer* _tmp1_ = NULL;
	GtkTreeIter iter = {0};
	GtkListStore* _tmp2_ = NULL;
	GtkTreeIter _tmp3_ = {0};
	GtkListStore* _tmp4_ = NULL;
	GtkTreeIter _tmp5_ = {0};
	GtkToolButton* _tmp6_ = NULL;
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (item != NULL);
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_data3_ = g_slice_new0 (Block3Data);
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_data3_->_ref_count_ = 1;
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_data3_->self = g_object_ref (self);
#line 261 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = item;
#line 261 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TRANSFERS_TYPE_TRANSFER) ? ((TransfersTransfer*) _tmp0_) : NULL);
#line 261 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_data3_->transfer = _tmp1_;
#line 263 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = self->priv->store;
#line 263 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_list_store_append (_tmp2_, &_tmp3_);
#line 263 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	iter = _tmp3_;
#line 264 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp4_ = self->priv->store;
#line 264 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp5_ = iter;
#line 264 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_list_store_set (_tmp4_, &_tmp5_, 0, _data3_->transfer, -1);
#line 265 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_data (_data3_->transfer, "changed", (GCallback) ___lambda9__transfers_transfer_changed, block3_data_ref (_data3_), (GClosureNotify) block3_data_unref, 0);
#line 266 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp6_ = self->priv->clear;
#line 266 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp6_, TRUE);
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	block3_data_unref (_data3_);
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_data3_ = NULL;
#line 2126 "transfers.c"
}


static void _transfers_sidebar_transfer_changed_transfers_transfer_changed (TransfersTransfer* _sender, gpointer self) {
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_sidebar_transfer_changed ((TransfersSidebar*) self, _sender);
#line 2133 "transfers.c"
}


static void transfers_sidebar_transfer_removed (TransfersSidebar* self, GObject* item) {
	TransfersTransfer* transfer = NULL;
	GObject* _tmp0_ = NULL;
	TransfersTransfer* _tmp1_ = NULL;
	TransfersTransfer* _tmp2_ = NULL;
	guint _tmp3_ = 0U;
	GtkTreeIter iter = {0};
	GtkListStore* _tmp4_ = NULL;
	GtkTreeIter _tmp5_ = {0};
	gboolean _tmp6_ = FALSE;
	KatzeArray* _tmp16_ = NULL;
	gboolean _tmp17_ = FALSE;
#line 269 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 269 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (item != NULL);
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = item;
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TRANSFERS_TYPE_TRANSFER) ? ((TransfersTransfer*) _tmp0_) : NULL);
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfer = _tmp1_;
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = transfer;
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_parse_name ("changed", TRANSFERS_TYPE_TRANSFER, &_tmp3_, NULL, FALSE);
#line 271 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _transfers_sidebar_transfer_changed_transfers_transfer_changed, self);
#line 273 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp4_ = self->priv->store;
#line 273 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp6_ = gtk_tree_model_iter_children ((GtkTreeModel*) _tmp4_, &_tmp5_, NULL);
#line 273 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	iter = _tmp5_;
#line 273 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (_tmp6_) {
#line 2173 "transfers.c"
		{
			gboolean _tmp7_ = FALSE;
#line 274 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp7_ = TRUE;
#line 274 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			while (TRUE) {
#line 2180 "transfers.c"
				TransfersTransfer* found = NULL;
				GtkListStore* _tmp10_ = NULL;
				GtkTreeIter _tmp11_ = {0};
				TransfersTransfer* _tmp12_ = NULL;
				TransfersTransfer* _tmp13_ = NULL;
#line 274 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				if (!_tmp7_) {
#line 2188 "transfers.c"
					GtkListStore* _tmp8_ = NULL;
					gboolean _tmp9_ = FALSE;
#line 281 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
					_tmp8_ = self->priv->store;
#line 281 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
					_tmp9_ = gtk_tree_model_iter_next ((GtkTreeModel*) _tmp8_, &iter);
#line 281 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
					if (!_tmp9_) {
#line 281 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
						break;
#line 2199 "transfers.c"
					}
				}
#line 274 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp7_ = FALSE;
#line 276 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp10_ = self->priv->store;
#line 276 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp11_ = iter;
#line 276 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				gtk_tree_model_get ((GtkTreeModel*) _tmp10_, &_tmp11_, 0, &found, -1);
#line 277 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp12_ = transfer;
#line 277 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp13_ = found;
#line 277 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				if (_tmp12_ == _tmp13_) {
#line 2216 "transfers.c"
					GtkListStore* _tmp14_ = NULL;
					GtkTreeIter _tmp15_ = {0};
#line 278 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
					_tmp14_ = self->priv->store;
#line 278 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
					_tmp15_ = iter;
#line 278 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
					gtk_list_store_remove (_tmp14_, &_tmp15_);
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
					_g_object_unref0 (found);
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
					break;
#line 2229 "transfers.c"
				}
#line 274 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_g_object_unref0 (found);
#line 2233 "transfers.c"
			}
		}
	}
#line 283 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp16_ = self->priv->array;
#line 283 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp17_ = katze_array_is_empty (_tmp16_);
#line 283 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (_tmp17_) {
#line 2243 "transfers.c"
		GtkToolButton* _tmp18_ = NULL;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp18_ = self->priv->clear;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_widget_set_sensitive ((GtkWidget*) _tmp18_, FALSE);
#line 2249 "transfers.c"
	}
#line 269 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (transfer);
#line 2253 "transfers.c"
}


static void transfers_sidebar_on_render_icon (TransfersSidebar* self, GtkCellLayout* column, GtkCellRenderer* renderer, GtkTreeModel* model, GtkTreeIter* iter) {
	TransfersTransfer* transfer = NULL;
	GtkTreeModel* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	gchar* content_type = NULL;
	WebKitDownload* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	GThemedIcon* icon = NULL;
	GIcon* _tmp4_ = NULL;
	GThemedIcon* _tmp5_ = NULL;
	GtkCellRenderer* _tmp6_ = NULL;
#line 287 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 287 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (column != NULL);
#line 287 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (renderer != NULL);
#line 287 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (model != NULL);
#line 287 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (iter != NULL);
#line 291 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = model;
#line 291 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = *iter;
#line 291 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_tree_model_get (_tmp0_, &_tmp1_, 0, &transfer, -1);
#line 292 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = transfer->download;
#line 292 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp3_ = midori_download_get_content_type (_tmp2_, NULL);
#line 292 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	content_type = _tmp3_;
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp4_ = g_content_type_get_icon (content_type);
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp5_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, g_themed_icon_get_type ()) ? ((GThemedIcon*) _tmp4_) : NULL;
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (_tmp5_ == NULL) {
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (_tmp4_);
#line 2298 "transfers.c"
	}
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	icon = _tmp5_;
#line 294 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_themed_icon_append_name (icon, "text-html");
#line 295 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp6_ = renderer;
#line 295 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_set ((GObject*) _tmp6_, "gicon", icon, "stock-size", GTK_ICON_SIZE_DND, "xpad", 1, "ypad", 12, NULL);
#line 287 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (icon);
#line 287 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_free0 (content_type);
#line 287 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (transfer);
#line 2314 "transfers.c"
}


static void transfers_sidebar_on_render_text (TransfersSidebar* self, GtkCellLayout* column, GtkCellRenderer* renderer, GtkTreeModel* model, GtkTreeIter* iter) {
	TransfersTransfer* transfer = NULL;
	GtkTreeModel* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	const gchar* _tmp2_ = NULL;
	TransfersTransfer* _tmp3_ = NULL;
	gconstpointer _tmp4_ = NULL;
	GtkCellRenderer* _tmp5_ = NULL;
	TransfersTransfer* _tmp6_ = NULL;
	gdouble _tmp7_ = 0.0;
	gdouble _tmp8_ = 0.0;
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (column != NULL);
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (renderer != NULL);
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (model != NULL);
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (iter != NULL);
#line 304 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = model;
#line 304 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = *iter;
#line 304 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_tree_model_get (_tmp0_, &_tmp1_, 0, &transfer, -1);
#line 305 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp3_ = transfer;
#line 305 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp4_ = g_object_get_data ((GObject*) _tmp3_, "tooltip");
#line 305 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = (const gchar*) _tmp4_;
#line 305 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (_tmp2_ == NULL) {
#line 305 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp2_ = "";
#line 2355 "transfers.c"
	}
#line 305 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp5_ = renderer;
#line 305 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp6_ = transfer;
#line 305 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp7_ = transfers_transfer_get_progress (_tmp6_);
#line 305 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp8_ = _tmp7_;
#line 305 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_set ((GObject*) _tmp5_, "text", _tmp2_, "value", (gint) (_tmp8_ * 100), NULL);
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (transfer);
#line 2369 "transfers.c"
}


static void transfers_sidebar_on_render_button (TransfersSidebar* self, GtkCellLayout* column, GtkCellRenderer* renderer, GtkTreeModel* model, GtkTreeIter* iter) {
	TransfersTransfer* transfer = NULL;
	GtkTreeModel* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	gchar* stock_id = NULL;
	WebKitDownload* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	GtkCellRenderer* _tmp4_ = NULL;
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (column != NULL);
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (renderer != NULL);
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (model != NULL);
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (iter != NULL);
#line 313 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = model;
#line 313 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = *iter;
#line 313 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_tree_model_get (_tmp0_, &_tmp1_, 0, &transfer, -1);
#line 314 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = transfer->download;
#line 314 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp3_ = midori_download_action_stock_id (_tmp2_);
#line 314 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	stock_id = _tmp3_;
#line 315 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp4_ = renderer;
#line 315 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_set ((GObject*) _tmp4_, "stock-id", stock_id, "stock-size", GTK_ICON_SIZE_MENU, NULL);
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_free0 (stock_id);
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (transfer);
#line 2411 "transfers.c"
}


static void transfers_sidebar_class_init (TransfersSidebarClass * klass) {
#line 98 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_sidebar_parent_class = g_type_class_peek_parent (klass);
#line 98 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_type_class_add_private (klass, sizeof (TransfersSidebarPrivate));
#line 98 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	G_OBJECT_CLASS (klass)->finalize = transfers_sidebar_finalize;
#line 2422 "transfers.c"
}


static void transfers_sidebar_midori_viewable_interface_init (MidoriViewableIface * iface) {
#line 98 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_sidebar_midori_viewable_parent_iface = g_type_interface_peek_parent (iface);
#line 98 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	iface->get_stock_id = (const gchar* (*)(MidoriViewable*)) transfers_sidebar_real_get_stock_id;
#line 98 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	iface->get_label = (const gchar* (*)(MidoriViewable*)) transfers_sidebar_real_get_label;
#line 98 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	iface->get_toolbar = (GtkWidget* (*)(MidoriViewable*)) transfers_sidebar_real_get_toolbar;
#line 2435 "transfers.c"
}


static void transfers_sidebar_instance_init (TransfersSidebar * self) {
	GtkListStore* _tmp0_ = NULL;
#line 98 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->priv = TRANSFERS_SIDEBAR_GET_PRIVATE (self);
#line 99 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->priv->toolbar = NULL;
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = gtk_list_store_new (1, TRANSFERS_TYPE_TRANSFER);
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->priv->store = _tmp0_;
#line 2449 "transfers.c"
}


static void transfers_sidebar_finalize (GObject* obj) {
	TransfersSidebar * self;
#line 98 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRANSFERS_TYPE_SIDEBAR, TransfersSidebar);
#line 99 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->priv->toolbar);
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->priv->clear);
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->priv->store);
#line 102 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->priv->treeview);
#line 103 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->priv->array);
#line 98 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	G_OBJECT_CLASS (transfers_sidebar_parent_class)->finalize (obj);
#line 2469 "transfers.c"
}


GType transfers_sidebar_get_type (void) {
	static volatile gsize transfers_sidebar_type_id__volatile = 0;
	if (g_once_init_enter (&transfers_sidebar_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (TransfersSidebarClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) transfers_sidebar_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TransfersSidebar), 0, (GInstanceInitFunc) transfers_sidebar_instance_init, NULL };
		static const GInterfaceInfo midori_viewable_info = { (GInterfaceInitFunc) transfers_sidebar_midori_viewable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType transfers_sidebar_type_id;
		transfers_sidebar_type_id = g_type_register_static (GTK_TYPE_VBOX, "TransfersSidebar", &g_define_type_info, 0);
		g_type_add_interface_static (transfers_sidebar_type_id, MIDORI_TYPE_VIEWABLE, &midori_viewable_info);
		g_once_init_leave (&transfers_sidebar_type_id__volatile, transfers_sidebar_type_id);
	}
	return transfers_sidebar_type_id__volatile;
}


static void _transfers_transfer_button_button_clicked_gtk_button_clicked (GtkButton* _sender, gpointer self) {
#line 346 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_transfer_button_button_clicked ((TransfersTransferButton*) self);
#line 2490 "transfers.c"
}


static void _transfers_transfer_button_transfer_changed_transfers_transfer_changed (TransfersTransfer* _sender, gpointer self) {
#line 353 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_transfer_button_transfer_changed ((TransfersTransferButton*) self);
#line 2497 "transfers.c"
}


static void _transfers_transfer_button_transfer_removed_transfers_transfer_removed (TransfersTransfer* _sender, gpointer self) {
#line 355 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_transfer_button_transfer_removed ((TransfersTransferButton*) self);
#line 2504 "transfers.c"
}


TransfersTransferButton* transfers_transfer_button_construct (GType object_type, TransfersTransfer* transfer) {
	TransfersTransferButton * self = NULL;
	TransfersTransfer* _tmp0_ = NULL;
	TransfersTransfer* _tmp1_ = NULL;
	GtkHBox* box = NULL;
	GtkHBox* _tmp2_ = NULL;
	GtkProgressBar* _tmp3_ = NULL;
	GtkProgressBar* _tmp4_ = NULL;
	gchar* filename = NULL;
	TransfersTransfer* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	GtkProgressBar* _tmp9_ = NULL;
	gint width = 0;
	GtkProgressBar* _tmp10_ = NULL;
	gint _tmp11_ = 0;
	GtkProgressBar* _tmp12_ = NULL;
	GtkProgressBar* _tmp13_ = NULL;
	GtkImage* _tmp14_ = NULL;
	GtkButton* _tmp15_ = NULL;
	GtkButton* _tmp16_ = NULL;
	GtkButton* _tmp17_ = NULL;
	GtkButton* _tmp18_ = NULL;
	GtkButton* _tmp19_ = NULL;
	GtkImage* _tmp20_ = NULL;
	GtkButton* _tmp21_ = NULL;
	TransfersTransfer* _tmp22_ = NULL;
	TransfersTransfer* _tmp23_ = NULL;
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (transfer != NULL, NULL);
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self = (TransfersTransferButton*) g_object_new (object_type, NULL);
#line 327 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = transfer;
#line 327 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 327 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->priv->transfer);
#line 327 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->priv->transfer = _tmp1_;
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = (GtkHBox*) gtk_hbox_new (FALSE, 0);
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_ref_sink (_tmp2_);
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	box = _tmp2_;
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp3_ = (GtkProgressBar*) gtk_progress_bar_new ();
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_ref_sink (_tmp3_);
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->priv->progress);
#line 330 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->priv->progress = _tmp3_;
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp4_ = self->priv->progress;
#line 334 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_progress_bar_set_ellipsize (_tmp4_, PANGO_ELLIPSIZE_MIDDLE);
#line 335 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp5_ = transfer;
#line 335 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp6_ = transfers_transfer_get_destination (_tmp5_);
#line 335 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp7_ = _tmp6_;
#line 335 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp8_ = midori_download_get_basename_for_display (_tmp7_);
#line 335 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	filename = _tmp8_;
#line 336 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp9_ = self->priv->progress;
#line 336 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_progress_bar_set_text (_tmp9_, filename);
#line 338 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp10_ = self->priv->progress;
#line 338 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	sokoke_widget_get_text_size ((GtkWidget*) _tmp10_, "M", &_tmp11_, NULL);
#line 338 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	width = _tmp11_;
#line 339 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp12_ = self->priv->progress;
#line 339 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_widget_set_size_request ((GtkWidget*) _tmp12_, width * 10, 1);
#line 340 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp13_ = self->priv->progress;
#line 340 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_box_pack_start ((GtkBox*) box, (GtkWidget*) _tmp13_, FALSE, FALSE, (guint) 0);
#line 342 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp14_ = (GtkImage*) gtk_image_new ();
#line 342 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_ref_sink (_tmp14_);
#line 342 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->priv->icon);
#line 342 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->priv->icon = _tmp14_;
#line 343 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp15_ = (GtkButton*) gtk_button_new ();
#line 343 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_ref_sink (_tmp15_);
#line 343 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->priv->button);
#line 343 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->priv->button = _tmp15_;
#line 344 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp16_ = self->priv->button;
#line 344 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_button_set_relief (_tmp16_, GTK_RELIEF_NONE);
#line 345 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp17_ = self->priv->button;
#line 345 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_button_set_focus_on_click (_tmp17_, FALSE);
#line 346 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp18_ = self->priv->button;
#line 346 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_object (_tmp18_, "clicked", (GCallback) _transfers_transfer_button_button_clicked_gtk_button_clicked, self, 0);
#line 347 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp19_ = self->priv->button;
#line 347 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp20_ = self->priv->icon;
#line 347 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_container_add ((GtkContainer*) _tmp19_, (GtkWidget*) _tmp20_);
#line 348 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp21_ = self->priv->button;
#line 348 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_box_pack_start ((GtkBox*) box, (GtkWidget*) _tmp21_, FALSE, FALSE, (guint) 0);
#line 350 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_container_add ((GtkContainer*) self, (GtkWidget*) box);
#line 351 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_widget_show_all ((GtkWidget*) self);
#line 353 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp22_ = transfer;
#line 353 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_object (_tmp22_, "changed", (GCallback) _transfers_transfer_button_transfer_changed_transfers_transfer_changed, self, 0);
#line 354 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_transfer_button_transfer_changed (self);
#line 355 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp23_ = transfer;
#line 355 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_object (_tmp23_, "removed", (GCallback) _transfers_transfer_button_transfer_removed_transfers_transfer_removed, self, 0);
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_free0 (filename);
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (box);
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return self;
#line 2653 "transfers.c"
}


TransfersTransferButton* transfers_transfer_button_new (TransfersTransfer* transfer) {
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return transfers_transfer_button_construct (TRANSFERS_TYPE_TRANSFER_BUTTON, transfer);
#line 2660 "transfers.c"
}


static void transfers_transfer_button_button_clicked (TransfersTransferButton* self) {
	GError * _inner_error_ = NULL;
#line 358 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 2668 "transfers.c"
	{
		gboolean _tmp0_ = FALSE;
		TransfersTransfer* _tmp1_ = NULL;
		WebKitDownload* _tmp2_ = NULL;
		GtkButton* _tmp3_ = NULL;
		gboolean _tmp4_ = FALSE;
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp1_ = self->priv->transfer;
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp2_ = _tmp1_->download;
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp3_ = self->priv->button;
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp4_ = midori_download_action_clear (_tmp2_, (GtkWidget*) _tmp3_, &_inner_error_);
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp0_ = _tmp4_;
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 2687 "transfers.c"
			goto __catch2_g_error;
		}
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		if (_tmp0_) {
#line 2692 "transfers.c"
			TransfersTransfer* _tmp5_ = NULL;
#line 361 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp5_ = self->priv->transfer;
#line 361 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			g_signal_emit_by_name (_tmp5_, "remove");
#line 2698 "transfers.c"
		}
	}
	goto __finally2;
	__catch2_g_error:
	{
		GError* _error_ = NULL;
		const gchar* _tmp6_ = NULL;
		GError* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
#line 359 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_error_ = _inner_error_;
#line 359 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_inner_error_ = NULL;
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp6_ = _ ("Failed to open download: %s");
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp7_ = _error_;
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp8_ = _tmp7_->message;
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_warning (_tmp6_, _tmp8_);
#line 359 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_error_free0 (_error_);
#line 2722 "transfers.c"
	}
	__finally2:
#line 359 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 359 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.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 359 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_clear_error (&_inner_error_);
#line 359 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		return;
#line 2733 "transfers.c"
	}
}


static void transfers_transfer_button_transfer_changed (TransfersTransferButton* self) {
	GtkProgressBar* _tmp0_ = NULL;
	TransfersTransfer* _tmp1_ = NULL;
	WebKitDownload* _tmp2_ = NULL;
	gdouble _tmp3_ = 0.0;
	const gchar* _tmp4_ = NULL;
	TransfersTransfer* _tmp5_ = NULL;
	gconstpointer _tmp6_ = NULL;
	GtkProgressBar* _tmp7_ = NULL;
	gchar* stock_id = NULL;
	TransfersTransfer* _tmp8_ = NULL;
	WebKitDownload* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	GtkImage* _tmp11_ = NULL;
#line 368 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 369 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = self->priv->progress;
#line 369 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = self->priv->transfer;
#line 369 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = _tmp1_->download;
#line 369 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp3_ = midori_download_get_progress (_tmp2_);
#line 369 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_progress_bar_set_fraction (_tmp0_, _tmp3_);
#line 370 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp5_ = self->priv->transfer;
#line 370 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp6_ = g_object_get_data ((GObject*) _tmp5_, "tooltip");
#line 370 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp4_ = (const gchar*) _tmp6_;
#line 370 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (_tmp4_ == NULL) {
#line 370 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp4_ = "";
#line 2774 "transfers.c"
	}
#line 370 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp7_ = self->priv->progress;
#line 370 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp7_, _tmp4_);
#line 371 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp8_ = self->priv->transfer;
#line 371 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp9_ = _tmp8_->download;
#line 371 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp10_ = midori_download_action_stock_id (_tmp9_);
#line 371 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	stock_id = _tmp10_;
#line 372 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp11_ = self->priv->icon;
#line 372 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_image_set_from_stock (_tmp11_, stock_id, GTK_ICON_SIZE_MENU);
#line 368 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_free0 (stock_id);
#line 2794 "transfers.c"
}


static void transfers_transfer_button_transfer_removed (TransfersTransferButton* self) {
#line 375 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 376 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_object_destroy ((GtkObject*) self);
#line 2803 "transfers.c"
}


static void transfers_transfer_button_class_init (TransfersTransferButtonClass * klass) {
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_transfer_button_parent_class = g_type_class_peek_parent (klass);
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_type_class_add_private (klass, sizeof (TransfersTransferButtonPrivate));
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	G_OBJECT_CLASS (klass)->finalize = transfers_transfer_button_finalize;
#line 2814 "transfers.c"
}


static void transfers_transfer_button_instance_init (TransfersTransferButton * self) {
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->priv = TRANSFERS_TRANSFER_BUTTON_GET_PRIVATE (self);
#line 2821 "transfers.c"
}


static void transfers_transfer_button_finalize (GObject* obj) {
	TransfersTransferButton * self;
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRANSFERS_TYPE_TRANSFER_BUTTON, TransfersTransferButton);
#line 321 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->priv->transfer);
#line 322 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->priv->progress);
#line 323 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->priv->icon);
#line 324 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->priv->button);
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	G_OBJECT_CLASS (transfers_transfer_button_parent_class)->finalize (obj);
#line 2839 "transfers.c"
}


GType transfers_transfer_button_get_type (void) {
	static volatile gsize transfers_transfer_button_type_id__volatile = 0;
	if (g_once_init_enter (&transfers_transfer_button_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (TransfersTransferButtonClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) transfers_transfer_button_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TransfersTransferButton), 0, (GInstanceInitFunc) transfers_transfer_button_instance_init, NULL };
		GType transfers_transfer_button_type_id;
		transfers_transfer_button_type_id = g_type_register_static (GTK_TYPE_TOOL_ITEM, "TransfersTransferButton", &g_define_type_info, 0);
		g_once_init_leave (&transfers_transfer_button_type_id__volatile, transfers_transfer_button_type_id);
	}
	return transfers_transfer_button_type_id__volatile;
}


static void transfers_toolbar_clear_clicked (TransfersToolbar* self) {
	KatzeArray* _tmp0_ = NULL;
	GList* _tmp1_ = NULL;
#line 384 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 385 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = self->priv->array;
#line 385 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = katze_array_get_items (_tmp0_);
#line 2864 "transfers.c"
	{
		GList* item_collection = NULL;
		GList* item_it = NULL;
#line 385 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		item_collection = _tmp1_;
#line 385 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		for (item_it = item_collection; item_it != NULL; item_it = item_it->next) {
#line 2872 "transfers.c"
			GObject* _tmp2_ = NULL;
			GObject* item = NULL;
#line 385 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp2_ = _g_object_ref0 ((GObject*) ((KatzeItem*) item_it->data));
#line 385 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			item = _tmp2_;
#line 2879 "transfers.c"
			{
				TransfersTransfer* transfer = NULL;
				GObject* _tmp3_ = NULL;
				TransfersTransfer* _tmp4_ = NULL;
				TransfersTransfer* _tmp5_ = NULL;
				gboolean _tmp6_ = FALSE;
				gboolean _tmp7_ = FALSE;
#line 386 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp3_ = item;
#line 386 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, TRANSFERS_TYPE_TRANSFER) ? ((TransfersTransfer*) _tmp3_) : NULL);
#line 386 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				transfer = _tmp4_;
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp5_ = transfer;
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp6_ = transfers_transfer_get_finished (_tmp5_);
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp7_ = _tmp6_;
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				if (_tmp7_) {
#line 2901 "transfers.c"
					KatzeArray* _tmp8_ = NULL;
					GObject* _tmp9_ = NULL;
#line 388 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
					_tmp8_ = self->priv->array;
#line 388 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
					_tmp9_ = item;
#line 388 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
					g_signal_emit_by_name (_tmp8_, "remove-item", _tmp9_);
#line 2910 "transfers.c"
				}
#line 385 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_g_object_unref0 (transfer);
#line 385 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_g_object_unref0 (item);
#line 2916 "transfers.c"
			}
		}
#line 385 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_list_free0 (item_collection);
#line 2921 "transfers.c"
	}
}


static void _transfers_toolbar_clear_clicked_gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self) {
#line 400 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_toolbar_clear_clicked ((TransfersToolbar*) self);
#line 2929 "transfers.c"
}


static void _transfers_toolbar_transfer_added_katze_array_add_item (KatzeArray* _sender, GObject* item, gpointer self) {
#line 407 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_toolbar_transfer_added ((TransfersToolbar*) self, item);
#line 2936 "transfers.c"
}


static void _transfers_toolbar_transfer_removed_katze_array_remove_item (KatzeArray* _sender, GObject* item, gpointer self) {
#line 408 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_toolbar_transfer_removed ((TransfersToolbar*) self, item);
#line 2943 "transfers.c"
}


TransfersToolbar* transfers_toolbar_construct (GType object_type, KatzeArray* array) {
	TransfersToolbar * self = NULL;
	GtkToolButton* _tmp0_ = NULL;
	GtkToolButton* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	GtkToolButton* _tmp3_ = NULL;
	GtkToolButton* _tmp4_ = NULL;
	GtkToolButton* _tmp5_ = NULL;
	KatzeArray* _tmp6_ = NULL;
	gboolean _tmp7_ = FALSE;
	GtkToolButton* _tmp8_ = NULL;
	GtkToolButton* _tmp9_ = NULL;
	GtkToolButton* _tmp10_ = NULL;
	KatzeArray* _tmp11_ = NULL;
	KatzeArray* _tmp12_ = NULL;
	KatzeArray* _tmp13_ = NULL;
	KatzeArray* _tmp14_ = NULL;
	KatzeArray* _tmp15_ = NULL;
	GList* _tmp16_ = NULL;
#line 392 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (array != NULL, NULL);
#line 392 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self = (TransfersToolbar*) g_object_new (object_type, NULL);
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_toolbar_set_icon_size ((GtkToolbar*) self, GTK_ICON_SIZE_BUTTON);
#line 394 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_toolbar_set_style ((GtkToolbar*) self, GTK_TOOLBAR_BOTH_HORIZ);
#line 395 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_toolbar_set_show_arrow ((GtkToolbar*) self, FALSE);
#line 397 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = (GtkToolButton*) gtk_tool_button_new_from_stock (GTK_STOCK_CLEAR);
#line 397 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_ref_sink (_tmp0_);
#line 397 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->priv->clear);
#line 397 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->priv->clear = _tmp0_;
#line 398 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = self->priv->clear;
#line 398 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = _ ("Clear All");
#line 398 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_tool_button_set_label (_tmp1_, _tmp2_);
#line 399 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp3_ = self->priv->clear;
#line 399 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_tool_item_set_is_important ((GtkToolItem*) _tmp3_, TRUE);
#line 400 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp4_ = self->priv->clear;
#line 400 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_object (_tmp4_, "clicked", (GCallback) _transfers_toolbar_clear_clicked_gtk_tool_button_clicked, self, 0);
#line 401 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp5_ = self->priv->clear;
#line 401 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp6_ = array;
#line 401 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp7_ = katze_array_is_empty (_tmp6_);
#line 401 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp5_, !_tmp7_);
#line 402 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp8_ = self->priv->clear;
#line 402 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_toolbar_insert ((GtkToolbar*) self, (GtkToolItem*) _tmp8_, -1);
#line 403 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp9_ = self->priv->clear;
#line 403 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_widget_show ((GtkWidget*) _tmp9_);
#line 404 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp10_ = self->priv->clear;
#line 404 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp10_, FALSE);
#line 406 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp11_ = array;
#line 406 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp12_ = _g_object_ref0 (_tmp11_);
#line 406 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->priv->array);
#line 406 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->priv->array = _tmp12_;
#line 407 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp13_ = array;
#line 407 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_object (_tmp13_, "add-item", (GCallback) _transfers_toolbar_transfer_added_katze_array_add_item, self, 0);
#line 408 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp14_ = array;
#line 408 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_object (_tmp14_, "remove-item", (GCallback) _transfers_toolbar_transfer_removed_katze_array_remove_item, self, G_CONNECT_AFTER);
#line 409 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp15_ = array;
#line 409 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp16_ = katze_array_get_items (_tmp15_);
#line 3038 "transfers.c"
	{
		GList* item_collection = NULL;
		GList* item_it = NULL;
#line 409 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		item_collection = _tmp16_;
#line 409 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		for (item_it = item_collection; item_it != NULL; item_it = item_it->next) {
#line 3046 "transfers.c"
			GObject* _tmp17_ = NULL;
			GObject* item = NULL;
#line 409 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp17_ = _g_object_ref0 ((GObject*) ((KatzeItem*) item_it->data));
#line 409 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			item = _tmp17_;
#line 3053 "transfers.c"
			{
				GObject* _tmp18_ = NULL;
#line 410 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp18_ = item;
#line 410 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				transfers_toolbar_transfer_added (self, _tmp18_);
#line 409 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_g_object_unref0 (item);
#line 3062 "transfers.c"
			}
		}
#line 409 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_list_free0 (item_collection);
#line 3067 "transfers.c"
	}
#line 392 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return self;
#line 3071 "transfers.c"
}


TransfersToolbar* transfers_toolbar_new (KatzeArray* array) {
#line 392 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return transfers_toolbar_construct (TRANSFERS_TYPE_TOOLBAR, array);
#line 3078 "transfers.c"
}


static void transfers_toolbar_transfer_added (TransfersToolbar* self, GObject* item) {
	TransfersTransfer* transfer = NULL;
	GObject* _tmp0_ = NULL;
	TransfersTransfer* _tmp1_ = NULL;
	TransfersTransfer* _tmp2_ = NULL;
	TransfersTransferButton* _tmp3_ = NULL;
	TransfersTransferButton* _tmp4_ = NULL;
	GtkToolButton* _tmp5_ = NULL;
	GtkRequisition req = {0};
	GtkContainer* _tmp6_ = NULL;
	GtkContainer* _tmp7_ = NULL;
	GtkRequisition _tmp8_ = {0};
	gint reqwidth = 0;
	GtkRequisition _tmp9_ = {0};
	gint _tmp10_ = 0;
	gint winwidth = 0;
	GtkWidget* _tmp11_ = NULL;
	gint _tmp12_ = 0;
	gint _tmp13_ = 0;
	gint _tmp14_ = 0;
#line 413 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 413 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (item != NULL);
#line 414 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = item;
#line 414 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TRANSFERS_TYPE_TRANSFER) ? ((TransfersTransfer*) _tmp0_) : NULL);
#line 414 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfer = _tmp1_;
#line 416 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = transfer;
#line 416 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp3_ = transfers_transfer_button_new (_tmp2_);
#line 416 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_ref_sink (_tmp3_);
#line 416 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp4_ = _tmp3_;
#line 416 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_toolbar_insert ((GtkToolbar*) self, (GtkToolItem*) _tmp4_, 0);
#line 416 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (_tmp4_);
#line 417 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp5_ = self->priv->clear;
#line 417 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp5_, TRUE);
#line 418 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_widget_show ((GtkWidget*) self);
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp6_ = gtk_widget_get_parent ((GtkWidget*) self);
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp7_ = _tmp6_;
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_widget_size_request ((GtkWidget*) _tmp7_, &_tmp8_);
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	req = _tmp8_;
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp9_ = req;
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp10_ = _tmp9_.width;
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	reqwidth = _tmp10_;
#line 424 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp11_ = gtk_widget_get_toplevel ((GtkWidget*) self);
#line 424 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_window_get_size (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, GTK_TYPE_WINDOW) ? ((GtkWindow*) _tmp11_) : NULL, &_tmp12_, NULL);
#line 424 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	winwidth = _tmp12_;
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp13_ = reqwidth;
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp14_ = winwidth;
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (_tmp13_ > _tmp14_) {
#line 426 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		transfers_toolbar_clear_clicked (self);
#line 3158 "transfers.c"
	}
#line 413 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (transfer);
#line 3162 "transfers.c"
}


static void transfers_toolbar_transfer_removed (TransfersToolbar* self, GObject* item) {
	GtkToolButton* _tmp0_ = NULL;
	KatzeArray* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
	KatzeArray* _tmp3_ = NULL;
	gboolean _tmp4_ = FALSE;
#line 429 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 429 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (item != NULL);
#line 430 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = self->priv->clear;
#line 430 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = self->priv->array;
#line 430 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = transfers_pending_transfers (_tmp1_);
#line 430 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_widget_set_sensitive ((GtkWidget*) _tmp0_, _tmp2_);
#line 431 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp3_ = self->priv->array;
#line 431 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp4_ = katze_array_is_empty (_tmp3_);
#line 431 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (_tmp4_) {
#line 432 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_widget_hide ((GtkWidget*) self);
#line 3192 "transfers.c"
	}
}


static void transfers_toolbar_class_init (TransfersToolbarClass * klass) {
#line 380 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_toolbar_parent_class = g_type_class_peek_parent (klass);
#line 380 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_type_class_add_private (klass, sizeof (TransfersToolbarPrivate));
#line 380 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	G_OBJECT_CLASS (klass)->finalize = transfers_toolbar_finalize;
#line 3204 "transfers.c"
}


static void transfers_toolbar_instance_init (TransfersToolbar * self) {
#line 380 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->priv = TRANSFERS_TOOLBAR_GET_PRIVATE (self);
#line 3211 "transfers.c"
}


static void transfers_toolbar_finalize (GObject* obj) {
	TransfersToolbar * self;
#line 380 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRANSFERS_TYPE_TOOLBAR, TransfersToolbar);
#line 381 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->priv->array);
#line 382 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->priv->clear);
#line 380 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	G_OBJECT_CLASS (transfers_toolbar_parent_class)->finalize (obj);
#line 3225 "transfers.c"
}


GType transfers_toolbar_get_type (void) {
	static volatile gsize transfers_toolbar_type_id__volatile = 0;
	if (g_once_init_enter (&transfers_toolbar_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (TransfersToolbarClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) transfers_toolbar_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TransfersToolbar), 0, (GInstanceInitFunc) transfers_toolbar_instance_init, NULL };
		GType transfers_toolbar_type_id;
		transfers_toolbar_type_id = g_type_register_static (GTK_TYPE_TOOLBAR, "TransfersToolbar", &g_define_type_info, 0);
		g_once_init_leave (&transfers_toolbar_type_id__volatile, transfers_toolbar_type_id);
	}
	return transfers_toolbar_type_id__volatile;
}


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


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


static void _g_free0_ (gpointer var) {
#line 439 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	var = (g_free (var), NULL);
#line 3260 "transfers.c"
}


static void _g_list_free__g_free0_ (GList* self) {
#line 439 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_list_foreach (self, (GFunc) _g_free0_, NULL);
#line 439 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_list_free (self);
#line 3269 "transfers.c"
}


static void _transfers_manager_transfer_remove_transfers_transfer_remove (TransfersTransfer* _sender, gpointer self) {
#line 444 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_manager_transfer_remove ((TransfersManager*) self, _sender);
#line 3276 "transfers.c"
}


static void _transfers_manager_transfer_changed_transfers_transfer_changed (TransfersTransfer* _sender, gpointer self) {
#line 445 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_manager_transfer_changed ((TransfersManager*) self, _sender);
#line 3283 "transfers.c"
}


static void _transfers_manager_transfer_removed_katze_array_remove_item (KatzeArray* _sender, GObject* item, gpointer self) {
#line 446 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_manager_transfer_removed ((TransfersManager*) self, item);
#line 3290 "transfers.c"
}


static void transfers_manager_download_added (TransfersManager* self, WebKitDownload* download) {
	TransfersTransfer* transfer = NULL;
	WebKitDownload* _tmp0_ = NULL;
	TransfersTransfer* _tmp1_ = NULL;
	KatzeArray* _tmp2_ = NULL;
	KatzeArray* _tmp3_ = NULL;
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (download != NULL);
#line 443 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = download;
#line 443 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = transfers_transfer_new (_tmp0_);
#line 443 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfer = _tmp1_;
#line 444 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_object (transfer, "remove", (GCallback) _transfers_manager_transfer_remove_transfers_transfer_remove, self, 0);
#line 445 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_object (transfer, "changed", (GCallback) _transfers_manager_transfer_changed_transfers_transfer_changed, self, 0);
#line 446 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = self->array;
#line 446 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_object (_tmp2_, "remove-item", (GCallback) _transfers_manager_transfer_removed_katze_array_remove_item, self, 0);
#line 447 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp3_ = self->array;
#line 447 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_emit_by_name (_tmp3_, "add-item", (GObject*) transfer);
#line 442 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (transfer);
#line 3324 "transfers.c"
}


static gboolean transfers_manager_notification_timeout_triggered (TransfersManager* self) {
	gboolean result = FALSE;
	GList* _tmp0_ = NULL;
	guint _tmp1_ = 0U;
#line 450 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 451 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->notification_timeout = (guint) 0;
#line 452 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = self->notifications;
#line 452 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = g_list_length (_tmp0_);
#line 452 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (_tmp1_ > ((guint) 0)) {
#line 3342 "transfers.c"
		gchar* filename = NULL;
		GList* _tmp2_ = NULL;
		gconstpointer _tmp3_ = NULL;
		gchar* _tmp4_ = NULL;
		gchar* msg = NULL;
		GList* _tmp5_ = NULL;
		guint _tmp6_ = 0U;
		MidoriApp* _tmp15_ = NULL;
		const gchar* _tmp16_ = NULL;
		const gchar* _tmp17_ = NULL;
#line 453 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp2_ = self->notifications;
#line 453 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp3_ = g_list_nth_data (_tmp2_, (guint) 0);
#line 453 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp4_ = g_strdup ((const gchar*) _tmp3_);
#line 453 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		filename = _tmp4_;
#line 455 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp5_ = self->notifications;
#line 455 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp6_ = g_list_length (_tmp5_);
#line 455 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		if (_tmp6_ == ((guint) 1)) {
#line 3367 "transfers.c"
			const gchar* _tmp7_ = NULL;
			const gchar* _tmp8_ = NULL;
			gchar* _tmp9_ = NULL;
#line 456 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp7_ = _ ("The file '<b>%s</b>' has been downloaded.");
#line 456 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp8_ = filename;
#line 456 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp9_ = g_strdup_printf (_tmp7_, _tmp8_);
#line 456 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_g_free0 (msg);
#line 456 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			msg = _tmp9_;
#line 3381 "transfers.c"
		} else {
			const gchar* _tmp10_ = NULL;
			const gchar* _tmp11_ = NULL;
			GList* _tmp12_ = NULL;
			guint _tmp13_ = 0U;
			gchar* _tmp14_ = NULL;
#line 458 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp10_ = _ ("'<b>%s</b>' and %d other files have been downloaded.");
#line 458 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp11_ = filename;
#line 458 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp12_ = self->notifications;
#line 458 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp13_ = g_list_length (_tmp12_);
#line 458 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp14_ = g_strdup_printf (_tmp10_, _tmp11_, _tmp13_);
#line 458 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_g_free0 (msg);
#line 458 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			msg = _tmp14_;
#line 3402 "transfers.c"
		}
#line 459 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp15_ = midori_extension_get_app ((MidoriExtension*) self);
#line 459 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp16_ = _ ("Transfer completed");
#line 459 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp17_ = msg;
#line 459 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		midori_app_send_notification (_tmp15_, _tmp16_, _tmp17_);
#line 460 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		__g_list_free__g_free0_0 (self->notifications);
#line 460 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		self->notifications = NULL;
#line 452 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_free0 (msg);
#line 452 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_free0 (filename);
#line 3420 "transfers.c"
	}
#line 462 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	result = FALSE;
#line 462 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 3426 "transfers.c"
}


static gboolean _transfers_manager_notification_timeout_triggered_gsource_func (gpointer self) {
	gboolean result;
	result = transfers_manager_notification_timeout_triggered ((TransfersManager*) self);
#line 490 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 3435 "transfers.c"
}


static void transfers_manager_transfer_changed (TransfersManager* self, TransfersTransfer* transfer) {
	TransfersTransfer* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
	GError * _inner_error_ = NULL;
#line 465 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 465 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (transfer != NULL);
#line 466 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = transfer;
#line 466 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = transfers_transfer_get_succeeded (_tmp0_);
#line 466 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = _tmp1_;
#line 466 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (_tmp2_) {
#line 3456 "transfers.c"
		TransfersTransfer* _tmp3_ = NULL;
		gint _tmp4_ = 0;
		gint _tmp5_ = 0;
		gchar* uri = NULL;
		TransfersTransfer* _tmp16_ = NULL;
		const gchar* _tmp17_ = NULL;
		const gchar* _tmp18_ = NULL;
		gchar* _tmp19_ = NULL;
		gchar* filename = NULL;
		const gchar* _tmp20_ = NULL;
		gchar* _tmp21_ = NULL;
		KatzeItem* item = NULL;
		KatzeItem* _tmp22_ = NULL;
		KatzeItem* _tmp23_ = NULL;
		const gchar* _tmp24_ = NULL;
		KatzeItem* _tmp25_ = NULL;
		const gchar* _tmp26_ = NULL;
		KatzeItem* _tmp27_ = NULL;
		TransfersTransfer* _tmp28_ = NULL;
		WebKitDownload* _tmp29_ = NULL;
		gboolean _tmp30_ = FALSE;
		const gchar* _tmp33_ = NULL;
		gchar* _tmp34_ = NULL;
		guint _tmp35_ = 0U;
#line 468 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp3_ = transfer;
#line 468 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp4_ = transfers_transfer_get_action (_tmp3_);
#line 468 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp5_ = _tmp4_;
#line 468 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		if (_tmp5_ == ((gint) MIDORI_DOWNLOAD_OPEN)) {
#line 3489 "transfers.c"
			{
				gboolean _tmp6_ = FALSE;
				TransfersTransfer* _tmp7_ = NULL;
				WebKitDownload* _tmp8_ = NULL;
				GList* _tmp9_ = NULL;
				gconstpointer _tmp10_ = NULL;
				gboolean _tmp11_ = FALSE;
#line 470 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp7_ = transfer;
#line 470 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp8_ = _tmp7_->download;
#line 470 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp9_ = self->widgets;
#line 470 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp10_ = g_list_nth_data (_tmp9_, (guint) 0);
#line 470 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp11_ = midori_download_action_clear (_tmp8_, (GtkWidget*) _tmp10_, &_inner_error_);
#line 470 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp6_ = _tmp11_;
#line 470 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3511 "transfers.c"
					goto __catch3_g_error;
				}
#line 470 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				if (_tmp6_) {
#line 3516 "transfers.c"
					TransfersTransfer* _tmp12_ = NULL;
#line 471 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
					_tmp12_ = transfer;
#line 471 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
					g_signal_emit_by_name (_tmp12_, "remove");
#line 3522 "transfers.c"
				}
			}
			goto __finally3;
			__catch3_g_error:
			{
				GError* _error_ = NULL;
				const gchar* _tmp13_ = NULL;
				GError* _tmp14_ = NULL;
				const gchar* _tmp15_ = NULL;
#line 469 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_error_ = _inner_error_;
#line 469 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_inner_error_ = NULL;
#line 474 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp13_ = _ ("Failed to open download: %s");
#line 474 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp14_ = _error_;
#line 474 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp15_ = _tmp14_->message;
#line 474 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				g_warning (_tmp13_, _tmp15_);
#line 469 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_g_error_free0 (_error_);
#line 3546 "transfers.c"
			}
			__finally3:
#line 469 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 469 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.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 469 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				g_clear_error (&_inner_error_);
#line 469 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				return;
#line 3557 "transfers.c"
			}
		}
#line 478 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp16_ = transfer;
#line 478 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp17_ = transfers_transfer_get_destination (_tmp16_);
#line 478 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp18_ = _tmp17_;
#line 478 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp19_ = g_strdup (_tmp18_);
#line 478 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		uri = _tmp19_;
#line 479 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp20_ = uri;
#line 479 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp21_ = midori_download_get_basename_for_display (_tmp20_);
#line 479 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		filename = _tmp21_;
#line 480 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp22_ = katze_item_new ();
#line 480 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		item = _tmp22_;
#line 481 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp23_ = item;
#line 481 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp24_ = uri;
#line 481 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		katze_item_set_uri (_tmp23_, _tmp24_);
#line 482 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp25_ = item;
#line 482 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp26_ = filename;
#line 482 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		katze_item_set_name (_tmp25_, _tmp26_);
#line 483 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp27_ = item;
#line 483 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		midori_browser_update_history (_tmp27_, "download", "create");
#line 484 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp28_ = transfer;
#line 484 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp29_ = _tmp28_->download;
#line 484 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp30_ = midori_download_has_wrong_checksum (_tmp29_);
#line 484 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		if (!_tmp30_) {
#line 3604 "transfers.c"
			GtkRecentManager* _tmp31_ = NULL;
			const gchar* _tmp32_ = NULL;
#line 485 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp31_ = gtk_recent_manager_get_default ();
#line 485 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp32_ = uri;
#line 485 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			gtk_recent_manager_add_item (_tmp31_, _tmp32_);
#line 3613 "transfers.c"
		}
#line 487 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp33_ = filename;
#line 487 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp34_ = g_strdup (_tmp33_);
#line 487 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		self->notifications = g_list_append (self->notifications, _tmp34_);
#line 488 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp35_ = self->notification_timeout;
#line 488 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		if (_tmp35_ == ((guint) 0)) {
#line 3625 "transfers.c"
			guint _tmp36_ = 0U;
#line 489 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			transfers_manager_notification_timeout_triggered (self);
#line 490 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp36_ = midori_timeout_add_seconds ((guint) 60, _transfers_manager_notification_timeout_triggered_gsource_func, g_object_ref (self), g_object_unref);
#line 490 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			self->notification_timeout = _tmp36_;
#line 3633 "transfers.c"
		}
#line 466 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (item);
#line 466 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_free0 (filename);
#line 466 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_free0 (uri);
#line 3641 "transfers.c"
	}
}


static void transfers_manager_transfer_remove (TransfersManager* self, TransfersTransfer* transfer) {
	KatzeArray* _tmp0_ = NULL;
	TransfersTransfer* _tmp1_ = NULL;
#line 495 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 495 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (transfer != NULL);
#line 496 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = self->array;
#line 496 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = transfer;
#line 496 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_emit_by_name (_tmp0_, "remove-item", (GObject*) _tmp1_);
#line 3659 "transfers.c"
}


static void transfers_manager_transfer_removed (TransfersManager* self, GObject* item) {
	TransfersTransfer* transfer = NULL;
	GObject* _tmp0_ = NULL;
	TransfersTransfer* _tmp1_ = NULL;
#line 499 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 499 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (item != NULL);
#line 500 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = item;
#line 500 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, TRANSFERS_TYPE_TRANSFER) ? ((TransfersTransfer*) _tmp0_) : NULL);
#line 500 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfer = _tmp1_;
#line 501 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_emit_by_name (transfer, "removed");
#line 499 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (transfer);
#line 3681 "transfers.c"
}


static gboolean transfers_manager_browser_closed (TransfersManager* self, GtkWidget* widget, GdkEvent* event) {
	gboolean result = FALSE;
	MidoriBrowser* browser = NULL;
	GtkWidget* _tmp0_ = NULL;
	MidoriBrowser* _tmp1_ = NULL;
	KatzeArray* _tmp2_ = NULL;
	gboolean _tmp3_ = FALSE;
#line 507 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 507 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (widget != NULL, FALSE);
#line 507 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 509 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = widget;
#line 509 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, MIDORI_TYPE_BROWSER) ? ((MidoriBrowser*) _tmp0_) : NULL);
#line 509 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	browser = _tmp1_;
#line 510 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = self->array;
#line 510 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp3_ = transfers_pending_transfers (_tmp2_);
#line 510 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	if (_tmp3_) {
#line 3710 "transfers.c"
		GtkMessageDialog* dialog = NULL;
		MidoriBrowser* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
		GtkMessageDialog* _tmp6_ = NULL;
		GtkMessageDialog* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
		GtkMessageDialog* _tmp9_ = NULL;
		const gchar* _tmp10_ = NULL;
		GtkMessageDialog* _tmp11_ = NULL;
		const gchar* _tmp12_ = NULL;
		gboolean cancel = FALSE;
		GtkMessageDialog* _tmp13_ = NULL;
		gint _tmp14_ = 0;
		GtkMessageDialog* _tmp15_ = NULL;
#line 511 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp4_ = browser;
#line 511 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp5_ = _ ("Some files are being downloaded");
#line 511 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp6_ = (GtkMessageDialog*) gtk_message_dialog_new ((GtkWindow*) _tmp4_, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_WARNING, GTK_BUTTONS_NONE, _tmp5_);
#line 511 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		g_object_ref_sink (_tmp6_);
#line 511 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		dialog = _tmp6_;
#line 515 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp7_ = dialog;
#line 515 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp8_ = _ ("Some files are being downloaded");
#line 515 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_window_set_title ((GtkWindow*) _tmp7_, _tmp8_);
#line 516 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp9_ = dialog;
#line 516 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp10_ = _ ("_Quit Midori");
#line 516 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_dialog_add_buttons ((GtkDialog*) _tmp9_, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, _tmp10_, GTK_RESPONSE_ACCEPT, NULL);
#line 518 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp11_ = dialog;
#line 518 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp12_ = _ ("The transfers will be cancelled if Midori quits.");
#line 518 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_message_dialog_format_secondary_text (_tmp11_, "%s", _tmp12_);
#line 520 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp13_ = dialog;
#line 520 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp14_ = gtk_dialog_run ((GtkDialog*) _tmp13_);
#line 520 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		cancel = _tmp14_ != ((gint) GTK_RESPONSE_ACCEPT);
#line 521 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_tmp15_ = dialog;
#line 521 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		gtk_object_destroy ((GtkObject*) _tmp15_);
#line 522 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		result = cancel;
#line 522 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (dialog);
#line 522 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_object_unref0 (browser);
#line 522 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		return result;
#line 3771 "transfers.c"
	}
#line 524 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	result = FALSE;
#line 524 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (browser);
#line 524 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 3779 "transfers.c"
}


static void _transfers_manager_download_added_midori_browser_add_download (MidoriBrowser* _sender, WebKitDownload* download, gpointer self) {
#line 541 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_manager_download_added ((TransfersManager*) self, download);
#line 3786 "transfers.c"
}


static gboolean _transfers_manager_browser_closed_gtk_widget_delete_event (GtkWidget* _sender, GdkEvent* event, gpointer self) {
	gboolean result;
	result = transfers_manager_browser_closed ((TransfersManager*) self, _sender, event);
#line 542 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 3795 "transfers.c"
}


static void transfers_manager_browser_added (TransfersManager* self, MidoriBrowser* browser) {
	TransfersSidebar* viewable = NULL;
	KatzeArray* _tmp0_ = NULL;
	TransfersSidebar* _tmp1_ = NULL;
	MidoriBrowser* _tmp2_ = NULL;
	MidoriPanel* _tmp3_ = NULL;
	MidoriPanel* _tmp4_ = NULL;
	MidoriPanel* _tmp5_ = NULL;
	GtkWidget* _tmp6_ = NULL;
	TransfersToolbar* toolbar = NULL;
	KatzeArray* _tmp7_ = NULL;
	TransfersToolbar* _tmp8_ = NULL;
	MidoriBrowser* _tmp9_ = NULL;
	GtkStatusbar* _tmp10_ = NULL;
	GtkStatusbar* _tmp11_ = NULL;
	GtkStatusbar* _tmp12_ = NULL;
	GtkWidget* _tmp13_ = NULL;
	MidoriBrowser* _tmp14_ = NULL;
	MidoriBrowser* _tmp15_ = NULL;
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (browser != NULL);
#line 528 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = self->array;
#line 528 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = transfers_sidebar_new (_tmp0_);
#line 528 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_ref_sink (_tmp1_);
#line 528 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	viewable = _tmp1_;
#line 529 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_widget_show ((GtkWidget*) viewable);
#line 530 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = browser;
#line 530 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_get (_tmp2_, "panel", &_tmp3_, NULL);
#line 530 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp4_ = _tmp3_;
#line 530 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp5_ = _tmp4_;
#line 530 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	midori_panel_append_page (_tmp5_, (MidoriViewable*) viewable);
#line 530 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (_tmp5_);
#line 531 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp6_ = _g_object_ref0 ((GtkWidget*) viewable);
#line 531 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->widgets = g_list_append (self->widgets, _tmp6_);
#line 532 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp7_ = self->array;
#line 532 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp8_ = transfers_toolbar_new (_tmp7_);
#line 532 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_ref_sink (_tmp8_);
#line 532 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	toolbar = _tmp8_;
#line 536 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp9_ = browser;
#line 536 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_object_get (_tmp9_, "statusbar", &_tmp10_, NULL);
#line 536 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp11_ = _tmp10_;
#line 536 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp12_ = _tmp11_;
#line 536 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	gtk_box_pack_start ((GtkBox*) _tmp12_, (GtkWidget*) toolbar, FALSE, FALSE, (guint) 0);
#line 536 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (_tmp12_);
#line 538 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp13_ = _g_object_ref0 ((GtkWidget*) toolbar);
#line 538 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->widgets = g_list_append (self->widgets, _tmp13_);
#line 541 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp14_ = browser;
#line 541 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_object (_tmp14_, "add-download", (GCallback) _transfers_manager_download_added_midori_browser_add_download, self, 0);
#line 542 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp15_ = browser;
#line 542 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_object ((GtkWidget*) _tmp15_, "delete-event", (GCallback) _transfers_manager_browser_closed_gtk_widget_delete_event, self, 0);
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (toolbar);
#line 527 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (viewable);
#line 3884 "transfers.c"
}


static void _transfers_manager_browser_added_midori_app_add_browser (MidoriApp* _sender, MidoriBrowser* browser, gpointer self) {
#line 552 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_manager_browser_added ((TransfersManager*) self, browser);
#line 3891 "transfers.c"
}


static void transfers_manager_activated (TransfersManager* self, MidoriApp* app) {
	KatzeArray* _tmp0_ = NULL;
	MidoriApp* _tmp1_ = NULL;
	GList* _tmp2_ = NULL;
	MidoriApp* _tmp4_ = NULL;
#line 545 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 545 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (app != NULL);
#line 546 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = katze_array_new (TRANSFERS_TYPE_TRANSFER);
#line 546 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->array);
#line 546 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->array = _tmp0_;
#line 547 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	__g_list_free__g_object_unref0_0 (self->widgets);
#line 547 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->widgets = NULL;
#line 548 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	__g_list_free__g_free0_0 (self->notifications);
#line 548 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->notifications = NULL;
#line 549 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self->notification_timeout = (guint) 0;
#line 550 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = app;
#line 550 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = midori_app_get_browsers (_tmp1_);
#line 3924 "transfers.c"
	{
		GList* browser_collection = NULL;
		GList* browser_it = NULL;
#line 550 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		browser_collection = _tmp2_;
#line 550 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		for (browser_it = browser_collection; browser_it != NULL; browser_it = browser_it->next) {
#line 3932 "transfers.c"
			MidoriBrowser* browser = NULL;
#line 550 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			browser = (MidoriBrowser*) browser_it->data;
#line 3936 "transfers.c"
			{
				MidoriBrowser* _tmp3_ = NULL;
#line 551 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp3_ = browser;
#line 551 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				transfers_manager_browser_added (self, _tmp3_);
#line 3943 "transfers.c"
			}
		}
#line 550 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_list_free0 (browser_collection);
#line 3948 "transfers.c"
	}
#line 552 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp4_ = app;
#line 552 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_object (_tmp4_, "add-browser", (GCallback) _transfers_manager_browser_added_midori_app_add_browser, self, 0);
#line 3954 "transfers.c"
}


static void transfers_manager_deactivated (TransfersManager* self) {
	MidoriApp* app = NULL;
	MidoriApp* _tmp0_ = NULL;
	MidoriApp* _tmp1_ = NULL;
	MidoriApp* _tmp2_ = NULL;
	guint _tmp3_ = 0U;
	MidoriApp* _tmp4_ = NULL;
	GList* _tmp5_ = NULL;
	GList* _tmp10_ = NULL;
	KatzeArray* _tmp13_ = NULL;
	guint _tmp14_ = 0U;
#line 555 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_return_if_fail (self != NULL);
#line 556 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = midori_extension_get_app ((MidoriExtension*) self);
#line 556 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 556 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	app = _tmp1_;
#line 557 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp2_ = app;
#line 557 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_parse_name ("add-browser", MIDORI_TYPE_APP, &_tmp3_, NULL, FALSE);
#line 557 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _transfers_manager_browser_added_midori_app_add_browser, self);
#line 558 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp4_ = app;
#line 558 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp5_ = midori_app_get_browsers (_tmp4_);
#line 3987 "transfers.c"
	{
		GList* browser_collection = NULL;
		GList* browser_it = NULL;
#line 558 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		browser_collection = _tmp5_;
#line 558 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		for (browser_it = browser_collection; browser_it != NULL; browser_it = browser_it->next) {
#line 3995 "transfers.c"
			MidoriBrowser* browser = NULL;
#line 558 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			browser = (MidoriBrowser*) browser_it->data;
#line 3999 "transfers.c"
			{
				MidoriBrowser* _tmp6_ = NULL;
				guint _tmp7_ = 0U;
				MidoriBrowser* _tmp8_ = NULL;
				guint _tmp9_ = 0U;
#line 559 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp6_ = browser;
#line 559 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				g_signal_parse_name ("add-download", MIDORI_TYPE_BROWSER, &_tmp7_, NULL, FALSE);
#line 559 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				g_signal_handlers_disconnect_matched (_tmp6_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp7_, 0, NULL, (GCallback) _transfers_manager_download_added_midori_browser_add_download, self);
#line 560 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp8_ = browser;
#line 560 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				g_signal_parse_name ("delete-event", GTK_TYPE_WIDGET, &_tmp9_, NULL, FALSE);
#line 560 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				g_signal_handlers_disconnect_matched ((GtkWidget*) _tmp8_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) _transfers_manager_browser_closed_gtk_widget_delete_event, self);
#line 4017 "transfers.c"
			}
		}
#line 558 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		_g_list_free0 (browser_collection);
#line 4022 "transfers.c"
	}
#line 562 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp10_ = self->widgets;
#line 4026 "transfers.c"
	{
		GList* widget_collection = NULL;
		GList* widget_it = NULL;
#line 562 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		widget_collection = _tmp10_;
#line 562 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
		for (widget_it = widget_collection; widget_it != NULL; widget_it = widget_it->next) {
#line 4034 "transfers.c"
			GtkWidget* _tmp11_ = NULL;
			GtkWidget* widget = NULL;
#line 562 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			_tmp11_ = _g_object_ref0 ((GtkWidget*) widget_it->data);
#line 562 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
			widget = _tmp11_;
#line 4041 "transfers.c"
			{
				GtkWidget* _tmp12_ = NULL;
#line 563 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_tmp12_ = widget;
#line 563 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				gtk_object_destroy ((GtkObject*) _tmp12_);
#line 562 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
				_g_object_unref0 (widget);
#line 4050 "transfers.c"
			}
		}
	}
#line 564 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp13_ = self->array;
#line 564 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_parse_name ("remove-item", KATZE_TYPE_ARRAY, &_tmp14_, NULL, FALSE);
#line 564 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_handlers_disconnect_matched (_tmp13_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp14_, 0, NULL, (GCallback) _transfers_manager_transfer_removed_katze_array_remove_item, self);
#line 555 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (app);
#line 4062 "transfers.c"
}


static void _transfers_manager_activated_midori_extension_activate (MidoriExtension* _sender, MidoriApp* app, gpointer self) {
#line 573 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_manager_activated ((TransfersManager*) self, app);
#line 4069 "transfers.c"
}


static void _transfers_manager_deactivated_midori_extension_deactivate (MidoriExtension* _sender, gpointer self) {
#line 574 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_manager_deactivated ((TransfersManager*) self);
#line 4076 "transfers.c"
}


TransfersManager* transfers_manager_construct (GType object_type) {
	TransfersManager * self = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 568 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = _ ("Transfer Manager");
#line 568 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp1_ = _ ("View downloaded files");
#line 568 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self = (TransfersManager*) g_object_new (object_type, "name", _tmp0_, "description", _tmp1_, "version", "0.1" MIDORI_VERSION_SUFFIX, "authors", "Christian Dywan <christian@twotoasts.de>", NULL);
#line 573 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_object ((MidoriExtension*) self, "activate", (GCallback) _transfers_manager_activated_midori_extension_activate, self, 0);
#line 574 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	g_signal_connect_object ((MidoriExtension*) self, "deactivate", (GCallback) _transfers_manager_deactivated_midori_extension_deactivate, self, 0);
#line 567 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return self;
#line 4096 "transfers.c"
}


TransfersManager* transfers_manager_new (void) {
#line 567 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return transfers_manager_construct (TRANSFERS_TYPE_MANAGER);
#line 4103 "transfers.c"
}


static void transfers_manager_class_init (TransfersManagerClass * klass) {
#line 436 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	transfers_manager_parent_class = g_type_class_peek_parent (klass);
#line 436 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	G_OBJECT_CLASS (klass)->finalize = transfers_manager_finalize;
#line 4112 "transfers.c"
}


static void transfers_manager_instance_init (TransfersManager * self) {
}


static void transfers_manager_finalize (GObject* obj) {
	TransfersManager * self;
#line 436 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TRANSFERS_TYPE_MANAGER, TransfersManager);
#line 437 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_g_object_unref0 (self->array);
#line 438 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	__g_list_free__g_object_unref0_0 (self->widgets);
#line 439 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	__g_list_free__g_free0_0 (self->notifications);
#line 436 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	G_OBJECT_CLASS (transfers_manager_parent_class)->finalize (obj);
#line 4132 "transfers.c"
}


GType transfers_manager_get_type (void) {
	static volatile gsize transfers_manager_type_id__volatile = 0;
	if (g_once_init_enter (&transfers_manager_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (TransfersManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) transfers_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TransfersManager), 0, (GInstanceInitFunc) transfers_manager_instance_init, NULL };
		GType transfers_manager_type_id;
		transfers_manager_type_id = g_type_register_static (MIDORI_TYPE_EXTENSION, "TransfersManager", &g_define_type_info, 0);
		g_once_init_leave (&transfers_manager_type_id__volatile, transfers_manager_type_id);
	}
	return transfers_manager_type_id__volatile;
}


MidoriExtension* extension_init (void) {
	MidoriExtension* result = NULL;
	TransfersManager* _tmp0_ = NULL;
#line 580 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	_tmp0_ = transfers_manager_new ();
#line 580 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	result = (MidoriExtension*) _tmp0_;
#line 580 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/transfers.vala"
	return result;
#line 4157 "transfers.c"
}



