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

/*
   Copyright (C) 2013 Paweł Forysiuk <tuxator@o2.pl>

   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 "midori-core.h"
#include <sqlite3.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.h>
#include <gdk/gdk.h>
#include <pango/pango.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include "midori/midori-browser.h"
#include "midori/midori-view.h"
#include "katze/katze.h"
#include "midori/midori-extension.h"
#include "webkit/webkit.h"
#include "midori/midori-panel.h"
#include "midori/midori-app.h"
#include "notes.h"


#define CLIP_NOTES_TYPE_NOTE (clip_notes_note_get_type ())
#define CLIP_NOTES_NOTE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLIP_NOTES_TYPE_NOTE, ClipNotesNote))
#define CLIP_NOTES_NOTE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLIP_NOTES_TYPE_NOTE, ClipNotesNoteClass))
#define CLIP_NOTES_IS_NOTE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLIP_NOTES_TYPE_NOTE))
#define CLIP_NOTES_IS_NOTE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLIP_NOTES_TYPE_NOTE))
#define CLIP_NOTES_NOTE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLIP_NOTES_TYPE_NOTE, ClipNotesNoteClass))

typedef struct _ClipNotesNote ClipNotesNote;
typedef struct _ClipNotesNoteClass ClipNotesNoteClass;
typedef struct _ClipNotesNotePrivate ClipNotesNotePrivate;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))

#define CLIP_NOTES_TYPE_SIDEBAR (clip_notes_sidebar_get_type ())
#define CLIP_NOTES_SIDEBAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLIP_NOTES_TYPE_SIDEBAR, ClipNotesSidebar))
#define CLIP_NOTES_SIDEBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLIP_NOTES_TYPE_SIDEBAR, ClipNotesSidebarClass))
#define CLIP_NOTES_IS_SIDEBAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLIP_NOTES_TYPE_SIDEBAR))
#define CLIP_NOTES_IS_SIDEBAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLIP_NOTES_TYPE_SIDEBAR))
#define CLIP_NOTES_SIDEBAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLIP_NOTES_TYPE_SIDEBAR, ClipNotesSidebarClass))

typedef struct _ClipNotesSidebar ClipNotesSidebar;
typedef struct _ClipNotesSidebarClass ClipNotesSidebarClass;
typedef struct _ClipNotesSidebarPrivate ClipNotesSidebarPrivate;
#define _gtk_tree_path_free0(var) ((var == NULL) ? NULL : (var = (gtk_tree_path_free (var), NULL)))
typedef struct _Block1Data Block1Data;
typedef struct _Block2Data Block2Data;

#define CLIP_NOTES_TYPE_MANAGER (clip_notes_manager_get_type ())
#define CLIP_NOTES_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLIP_NOTES_TYPE_MANAGER, ClipNotesManager))
#define CLIP_NOTES_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLIP_NOTES_TYPE_MANAGER, ClipNotesManagerClass))
#define CLIP_NOTES_IS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLIP_NOTES_TYPE_MANAGER))
#define CLIP_NOTES_IS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLIP_NOTES_TYPE_MANAGER))
#define CLIP_NOTES_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLIP_NOTES_TYPE_MANAGER, ClipNotesManagerClass))

typedef struct _ClipNotesManager ClipNotesManager;
typedef struct _ClipNotesManagerClass ClipNotesManagerClass;
typedef struct _ClipNotesManagerPrivate ClipNotesManagerPrivate;
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
typedef struct _Block3Data Block3Data;
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))

struct _ClipNotesNote {
	GObject parent_instance;
	ClipNotesNotePrivate * priv;
};

struct _ClipNotesNoteClass {
	GObjectClass parent_class;
};

struct _ClipNotesNotePrivate {
	gint64 _id;
	gchar* _title;
	gchar* _uri;
	gchar* _content;
};

struct _ClipNotesSidebar {
	GtkVBox parent_instance;
	ClipNotesSidebarPrivate * priv;
};

struct _ClipNotesSidebarClass {
	GtkVBoxClass parent_class;
};

struct _ClipNotesSidebarPrivate {
	GtkToolbar* toolbar;
	GtkLabel* note_label;
	GtkTreeView* notes_tree_view;
	GtkTextView* note_text_view;
};

struct _Block1Data {
	int _ref_count_;
	ClipNotesSidebar* self;
	GtkTreePath* path;
};

struct _Block2Data {
	int _ref_count_;
	Block1Data * _data1_;
	ClipNotesNote* note;
};

struct _ClipNotesManager {
	MidoriExtension parent_instance;
	ClipNotesManagerPrivate * priv;
	GList* widgets;
};

struct _ClipNotesManagerClass {
	MidoriExtensionClass parent_class;
};

struct _Block3Data {
	int _ref_count_;
	ClipNotesManager* self;
	MidoriView* view;
};


extern MidoriDatabase* clip_notes_database;
MidoriDatabase* clip_notes_database = NULL;
extern sqlite3* clip_notes_db;
sqlite3* clip_notes_db = NULL;
extern GtkListStore* clip_notes_notes_list_store;
GtkListStore* clip_notes_notes_list_store = NULL;
extern ClipNotesNote* clip_notes_current_note;
ClipNotesNote* clip_notes_current_note = NULL;
static gpointer clip_notes_note_parent_class = NULL;
static gpointer clip_notes_sidebar_parent_class = NULL;
static MidoriViewableIface* clip_notes_sidebar_midori_viewable_parent_iface = NULL;
static gpointer clip_notes_manager_parent_class = NULL;

GType clip_notes_note_get_type (void) G_GNUC_CONST;
#define CLIP_NOTES_NOTE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), CLIP_NOTES_TYPE_NOTE, ClipNotesNotePrivate))
enum  {
	CLIP_NOTES_NOTE_DUMMY_PROPERTY,
	CLIP_NOTES_NOTE_ID,
	CLIP_NOTES_NOTE_TITLE,
	CLIP_NOTES_NOTE_URI,
	CLIP_NOTES_NOTE_CONTENT
};
void clip_notes_note_add (ClipNotesNote* self, const gchar* title, const gchar* uri, const gchar* note_content);
void clip_notes_append_note (ClipNotesNote* note);
void clip_notes_note_set_id (ClipNotesNote* self, gint64 value);
void clip_notes_note_set_uri (ClipNotesNote* self, const gchar* value);
void clip_notes_note_set_title (ClipNotesNote* self, const gchar* value);
void clip_notes_note_set_content (ClipNotesNote* self, const gchar* value);
void clip_notes_note_remove (ClipNotesNote* self);
gint64 clip_notes_note_get_id (ClipNotesNote* self);
void clip_notes_remove_note (gint64 id);
void clip_notes_note_rename (ClipNotesNote* self, const gchar* new_title);
void clip_notes_note_update (ClipNotesNote* self, const gchar* new_content);
ClipNotesNote* clip_notes_note_new (void);
ClipNotesNote* clip_notes_note_construct (GType object_type);
const gchar* clip_notes_note_get_title (ClipNotesNote* self);
const gchar* clip_notes_note_get_uri (ClipNotesNote* self);
const gchar* clip_notes_note_get_content (ClipNotesNote* self);
static void clip_notes_note_finalize (GObject* obj);
static void _vala_clip_notes_note_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_clip_notes_note_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
GType clip_notes_sidebar_get_type (void) G_GNUC_CONST;
#define CLIP_NOTES_SIDEBAR_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), CLIP_NOTES_TYPE_SIDEBAR, ClipNotesSidebarPrivate))
enum  {
	CLIP_NOTES_SIDEBAR_DUMMY_PROPERTY
};
static const gchar* clip_notes_sidebar_real_get_stock_id (MidoriViewable* base);
static const gchar* clip_notes_sidebar_real_get_label (MidoriViewable* base);
static GtkWidget* clip_notes_sidebar_real_get_toolbar (MidoriViewable* base);
static void ___lambda4_ (ClipNotesSidebar* self);
static void ____lambda4__gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self);
void clip_notes_sidebar_title_edited (ClipNotesSidebar* self, GtkCellRendererText* renderer, const gchar* path_str, const gchar* new_title);
ClipNotesSidebar* clip_notes_sidebar_new (void);
ClipNotesSidebar* clip_notes_sidebar_construct (GType object_type);
static gboolean clip_notes_sidebar_button_pressed (ClipNotesSidebar* self, GdkEventButton* event);
static gboolean _clip_notes_sidebar_button_pressed_gtk_widget_button_press_event (GtkWidget* _sender, GdkEventButton* event, gpointer self);
static void clip_notes_sidebar_selection_changed (ClipNotesSidebar* self, GtkTreeSelection* selection);
static void _clip_notes_sidebar_selection_changed_gtk_tree_selection_changed (GtkTreeSelection* _sender, gpointer self);
static gint clip_notes_sidebar_tree_sort_func (ClipNotesSidebar* self, GtkTreeModel* model, GtkTreeIter* a, GtkTreeIter* b);
static gint _clip_notes_sidebar_tree_sort_func_gtk_tree_iter_compare_func (GtkTreeModel* model, GtkTreeIter* a, GtkTreeIter* b, gpointer self);
static void clip_notes_sidebar_on_render_icon (ClipNotesSidebar* self, GtkCellLayout* column, GtkCellRenderer* renderer, GtkTreeModel* model, GtkTreeIter* iter);
static void _clip_notes_sidebar_on_render_icon_gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self);
static void _clip_notes_sidebar_title_edited_gtk_cell_renderer_text_edited (GtkCellRendererText* _sender, const gchar* path, const gchar* new_text, gpointer self);
static void clip_notes_sidebar_on_render_note_title (ClipNotesSidebar* self, GtkCellLayout* column, GtkCellRenderer* renderer, GtkTreeModel* model, GtkTreeIter* iter);
static void _clip_notes_sidebar_on_render_note_title_gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self);
static gboolean clip_notes_sidebar_focus_lost (ClipNotesSidebar* self, GdkEventFocus* event);
static gboolean _clip_notes_sidebar_focus_lost_gtk_widget_focus_out_event (GtkWidget* _sender, GdkEventFocus* event, gpointer self);
static void clip_notes_sidebar_save_current_note (ClipNotesSidebar* self);
static gboolean clip_notes_sidebar_show_note_content (ClipNotesSidebar* self, GtkTreeSelection* selection);
static gboolean clip_notes_sidebar_show_note_webpage_in_new_tab (ClipNotesSidebar* self, GdkEventButton* event, gboolean new_tab);
static gboolean clip_notes_sidebar_show_popup_menu (ClipNotesSidebar* self, GdkEventButton* event);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (void * _userdata_);
static Block2Data* block2_data_ref (Block2Data* _data2_);
static void block2_data_unref (void * _userdata_);
static void ___lambda5_ (Block2Data* _data2_);
static void ____lambda5__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self);
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 clip_notes_sidebar_finalize (GObject* obj);
GType clip_notes_manager_get_type (void) G_GNUC_CONST;
enum  {
	CLIP_NOTES_MANAGER_DUMMY_PROPERTY
};
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
static void clip_notes_manager_tab_added (ClipNotesManager* self, MidoriBrowser* browser, MidoriTab* tab);
static void clip_notes_manager_add_menu_items (ClipNotesManager* self, MidoriTab* tab, WebKitHitTestResult* hit_test_result, MidoriContextAction* menu);
static void _clip_notes_manager_add_menu_items_midori_tab_context_menu (MidoriTab* _sender, WebKitHitTestResult* hit_test_result, MidoriContextAction* menu, gpointer self);
static Block3Data* block3_data_ref (Block3Data* _data3_);
static void block3_data_unref (void * _userdata_);
static void __lambda8_ (Block3Data* _data3_, GtkAction* action);
static void ___lambda8__gtk_action_activate (GtkAction* _sender, gpointer self);
static void clip_notes_manager_browser_added (ClipNotesManager* self, MidoriBrowser* browser);
static void _clip_notes_manager_tab_added_midori_browser_add_tab (MidoriBrowser* _sender, MidoriView* tab, gpointer self);
static void clip_notes_manager_activated (ClipNotesManager* self, MidoriApp* app);
static void _clip_notes_manager_browser_added_midori_app_add_browser (MidoriApp* _sender, MidoriBrowser* browser, gpointer self);
static void clip_notes_manager_deactivated (ClipNotesManager* self);
ClipNotesManager* clip_notes_manager_new (void);
ClipNotesManager* clip_notes_manager_construct (GType object_type);
static void _clip_notes_manager_activated_midori_extension_activate (MidoriExtension* _sender, MidoriApp* app, gpointer self);
static void _clip_notes_manager_deactivated_midori_extension_deactivate (MidoriExtension* _sender, gpointer self);
static void clip_notes_manager_finalize (GObject* obj);


void clip_notes_note_add (ClipNotesNote* self, const gchar* title, const gchar* uri, const gchar* note_content) {
	GDateTime* time = NULL;
	GDateTime* _tmp0_ = NULL;
	gchar* sqlcmd = NULL;
	gchar* _tmp1_ = NULL;
	MidoriDatabaseStatement* statement = NULL;
	sqlite3* _tmp16_ = NULL;
	gint64 _tmp17_ = 0LL;
	const gchar* _tmp18_ = NULL;
	const gchar* _tmp19_ = NULL;
	const gchar* _tmp20_ = NULL;
	GError * _inner_error_ = NULL;
#line 25 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (self != NULL);
#line 25 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (title != NULL);
#line 25 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (note_content != NULL);
#line 27 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = g_date_time_new_now_local ();
#line 27 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	time = _tmp0_;
#line 28 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = g_strdup ("INSERT INTO `notes` (`uri`, `title`, `note_content`, `tstamp` ) VALUES" \
" (:uri, :title, :note_content, :tstamp);");
#line 28 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	sqlcmd = _tmp1_;
#line 275 "notes.c"
	{
		MidoriDatabaseStatement* _tmp2_ = NULL;
		MidoriDatabase* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		GDateTime* _tmp8_ = NULL;
		gint64 _tmp9_ = 0LL;
		MidoriDatabaseStatement* _tmp10_ = NULL;
		MidoriDatabaseStatement* _tmp11_ = NULL;
		MidoriDatabaseStatement* _tmp12_ = NULL;
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp3_ = clip_notes_database;
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp4_ = sqlcmd;
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp5_ = uri;
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp6_ = title;
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp7_ = note_content;
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp8_ = time;
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp9_ = g_date_time_to_unix (_tmp8_);
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp10_ = midori_database_prepare (_tmp3_, _tmp4_, &_inner_error_, ":uri", G_TYPE_STRING, _tmp5_, ":title", G_TYPE_STRING, _tmp6_, ":note_content", G_TYPE_STRING, _tmp7_, ":tstamp", G_TYPE_INT64, _tmp9_, NULL);
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp2_ = _tmp10_;
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 308 "notes.c"
			goto __catch0_g_error;
		}
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp11_ = _tmp2_;
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp2_ = NULL;
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (statement);
#line 31 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		statement = _tmp11_;
#line 37 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp12_ = statement;
#line 37 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		midori_database_statement_step (_tmp12_, &_inner_error_);
#line 37 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 37 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_g_object_unref0 (_tmp2_);
#line 327 "notes.c"
			goto __catch0_g_error;
		}
#line 39 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		clip_notes_append_note (self);
#line 30 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (_tmp2_);
#line 334 "notes.c"
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* _error_ = NULL;
		const gchar* _tmp13_ = NULL;
		GError* _tmp14_ = NULL;
		const gchar* _tmp15_ = NULL;
#line 30 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_error_ = _inner_error_;
#line 30 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_inner_error_ = NULL;
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp13_ = _ ("Failed to add new note to database: %s\n");
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp14_ = _error_;
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp15_ = _tmp14_->message;
#line 41 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_critical (_tmp13_, _tmp15_);
#line 30 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_error_free0 (_error_);
#line 357 "notes.c"
	}
	__finally0:
#line 30 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 30 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (statement);
#line 30 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_free0 (sqlcmd);
#line 30 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_date_time_unref0 (time);
#line 30 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.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 30 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_clear_error (&_inner_error_);
#line 30 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		return;
#line 374 "notes.c"
	}
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp16_ = clip_notes_db;
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp17_ = sqlite3_last_insert_rowid (_tmp16_);
#line 44 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_note_set_id (self, _tmp17_);
#line 45 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp18_ = uri;
#line 45 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_note_set_uri (self, _tmp18_);
#line 46 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp19_ = title;
#line 46 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_note_set_title (self, _tmp19_);
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp20_ = note_content;
#line 47 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_note_set_content (self, _tmp20_);
#line 25 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (statement);
#line 25 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_free0 (sqlcmd);
#line 25 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_date_time_unref0 (time);
#line 400 "notes.c"
}


void clip_notes_note_remove (ClipNotesNote* self) {
	gchar* sqlcmd = NULL;
	gchar* _tmp0_ = NULL;
	MidoriDatabaseStatement* statement = NULL;
	GError * _inner_error_ = NULL;
#line 50 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (self != NULL);
#line 52 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = g_strdup ("DELETE FROM `notes` WHERE id= :id;");
#line 52 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	sqlcmd = _tmp0_;
#line 415 "notes.c"
	{
		MidoriDatabaseStatement* _tmp1_ = NULL;
		MidoriDatabase* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		gint64 _tmp4_ = 0LL;
		MidoriDatabaseStatement* _tmp5_ = NULL;
		MidoriDatabaseStatement* _tmp6_ = NULL;
		MidoriDatabaseStatement* _tmp7_ = NULL;
		gint64 _tmp8_ = 0LL;
#line 55 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp2_ = clip_notes_database;
#line 55 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp3_ = sqlcmd;
#line 55 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp4_ = self->priv->_id;
#line 55 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp5_ = midori_database_prepare (_tmp2_, _tmp3_, &_inner_error_, ":id", G_TYPE_INT64, _tmp4_, NULL);
#line 55 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp1_ = _tmp5_;
#line 55 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 437 "notes.c"
			goto __catch1_g_error;
		}
#line 55 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp6_ = _tmp1_;
#line 55 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp1_ = NULL;
#line 55 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (statement);
#line 55 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		statement = _tmp6_;
#line 58 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp7_ = statement;
#line 58 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		midori_database_statement_step (_tmp7_, &_inner_error_);
#line 58 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 58 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_g_object_unref0 (_tmp1_);
#line 456 "notes.c"
			goto __catch1_g_error;
		}
#line 59 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp8_ = self->priv->_id;
#line 59 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		clip_notes_remove_note (_tmp8_);
#line 54 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (_tmp1_);
#line 465 "notes.c"
	}
	goto __finally1;
	__catch1_g_error:
	{
		GError* _error_ = NULL;
		const gchar* _tmp9_ = NULL;
		GError* _tmp10_ = NULL;
		const gchar* _tmp11_ = NULL;
#line 54 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_error_ = _inner_error_;
#line 54 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_inner_error_ = NULL;
#line 61 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp9_ = _ ("Falied to remove note from database: %s\n");
#line 61 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp10_ = _error_;
#line 61 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp11_ = _tmp10_->message;
#line 61 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_critical (_tmp9_, _tmp11_);
#line 54 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_error_free0 (_error_);
#line 488 "notes.c"
	}
	__finally1:
#line 54 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 54 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (statement);
#line 54 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_free0 (sqlcmd);
#line 54 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.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 54 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_clear_error (&_inner_error_);
#line 54 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		return;
#line 503 "notes.c"
	}
#line 50 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (statement);
#line 50 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_free0 (sqlcmd);
#line 509 "notes.c"
}


void clip_notes_note_rename (ClipNotesNote* self, const gchar* new_title) {
	gchar* sqlcmd = NULL;
	gchar* _tmp0_ = NULL;
	MidoriDatabaseStatement* statement = NULL;
	const gchar* _tmp12_ = NULL;
	GError * _inner_error_ = NULL;
#line 65 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (self != NULL);
#line 65 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (new_title != NULL);
#line 67 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = g_strdup ("UPDATE `notes` SET title= :title WHERE id = :id;");
#line 67 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	sqlcmd = _tmp0_;
#line 527 "notes.c"
	{
		MidoriDatabaseStatement* _tmp1_ = NULL;
		MidoriDatabase* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		gint64 _tmp4_ = 0LL;
		const gchar* _tmp5_ = NULL;
		MidoriDatabaseStatement* _tmp6_ = NULL;
		MidoriDatabaseStatement* _tmp7_ = NULL;
		MidoriDatabaseStatement* _tmp8_ = NULL;
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp2_ = clip_notes_database;
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp3_ = sqlcmd;
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp4_ = self->priv->_id;
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp5_ = new_title;
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp6_ = midori_database_prepare (_tmp2_, _tmp3_, &_inner_error_, ":id", G_TYPE_INT64, _tmp4_, ":title", G_TYPE_STRING, _tmp5_, NULL);
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp1_ = _tmp6_;
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 551 "notes.c"
			goto __catch2_g_error;
		}
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp7_ = _tmp1_;
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp1_ = NULL;
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (statement);
#line 70 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		statement = _tmp7_;
#line 73 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp8_ = statement;
#line 73 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		midori_database_statement_step (_tmp8_, &_inner_error_);
#line 73 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 73 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_g_object_unref0 (_tmp1_);
#line 570 "notes.c"
			goto __catch2_g_error;
		}
#line 69 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (_tmp1_);
#line 575 "notes.c"
	}
	goto __finally2;
	__catch2_g_error:
	{
		GError* _error_ = NULL;
		const gchar* _tmp9_ = NULL;
		GError* _tmp10_ = NULL;
		const gchar* _tmp11_ = NULL;
#line 69 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_error_ = _inner_error_;
#line 69 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_inner_error_ = NULL;
#line 75 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp9_ = _ ("Falied to rename note: %s\n");
#line 75 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp10_ = _error_;
#line 75 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp11_ = _tmp10_->message;
#line 75 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_critical (_tmp9_, _tmp11_);
#line 69 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_error_free0 (_error_);
#line 598 "notes.c"
	}
	__finally2:
#line 69 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 69 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (statement);
#line 69 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_free0 (sqlcmd);
#line 69 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.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 69 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_clear_error (&_inner_error_);
#line 69 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		return;
#line 613 "notes.c"
	}
#line 78 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp12_ = new_title;
#line 78 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_note_set_title (self, _tmp12_);
#line 65 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (statement);
#line 65 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_free0 (sqlcmd);
#line 623 "notes.c"
}


void clip_notes_note_update (ClipNotesNote* self, const gchar* new_content) {
	gchar* sqlcmd = NULL;
	gchar* _tmp0_ = NULL;
	MidoriDatabaseStatement* statement = NULL;
	const gchar* _tmp12_ = NULL;
	GError * _inner_error_ = NULL;
#line 81 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (self != NULL);
#line 81 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (new_content != NULL);
#line 83 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = g_strdup ("UPDATE `notes` SET note_content= :content WHERE id = :id;");
#line 83 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	sqlcmd = _tmp0_;
#line 641 "notes.c"
	{
		MidoriDatabaseStatement* _tmp1_ = NULL;
		MidoriDatabase* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		gint64 _tmp4_ = 0LL;
		const gchar* _tmp5_ = NULL;
		MidoriDatabaseStatement* _tmp6_ = NULL;
		MidoriDatabaseStatement* _tmp7_ = NULL;
		MidoriDatabaseStatement* _tmp8_ = NULL;
#line 86 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp2_ = clip_notes_database;
#line 86 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp3_ = sqlcmd;
#line 86 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp4_ = self->priv->_id;
#line 86 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp5_ = new_content;
#line 86 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp6_ = midori_database_prepare (_tmp2_, _tmp3_, &_inner_error_, ":id", G_TYPE_INT64, _tmp4_, ":content", G_TYPE_STRING, _tmp5_, NULL);
#line 86 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp1_ = _tmp6_;
#line 86 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 665 "notes.c"
			goto __catch3_g_error;
		}
#line 86 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp7_ = _tmp1_;
#line 86 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp1_ = NULL;
#line 86 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (statement);
#line 86 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		statement = _tmp7_;
#line 89 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp8_ = statement;
#line 89 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		midori_database_statement_step (_tmp8_, &_inner_error_);
#line 89 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 89 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_g_object_unref0 (_tmp1_);
#line 684 "notes.c"
			goto __catch3_g_error;
		}
#line 85 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (_tmp1_);
#line 689 "notes.c"
	}
	goto __finally3;
	__catch3_g_error:
	{
		GError* _error_ = NULL;
		const gchar* _tmp9_ = NULL;
		GError* _tmp10_ = NULL;
		const gchar* _tmp11_ = NULL;
#line 85 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_error_ = _inner_error_;
#line 85 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_inner_error_ = NULL;
#line 91 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp9_ = _ ("Falied to update note: %s\n");
#line 91 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp10_ = _error_;
#line 91 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp11_ = _tmp10_->message;
#line 91 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_critical (_tmp9_, _tmp11_);
#line 85 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_error_free0 (_error_);
#line 712 "notes.c"
	}
	__finally3:
#line 85 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 85 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (statement);
#line 85 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_free0 (sqlcmd);
#line 85 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.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 85 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_clear_error (&_inner_error_);
#line 85 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		return;
#line 727 "notes.c"
	}
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp12_ = new_content;
#line 93 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_note_set_content (self, _tmp12_);
#line 81 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (statement);
#line 81 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_free0 (sqlcmd);
#line 737 "notes.c"
}


ClipNotesNote* clip_notes_note_construct (GType object_type) {
	ClipNotesNote * self = NULL;
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self = (ClipNotesNote*) g_object_new (object_type, NULL);
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return self;
#line 747 "notes.c"
}


ClipNotesNote* clip_notes_note_new (void) {
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return clip_notes_note_construct (CLIP_NOTES_TYPE_NOTE);
#line 754 "notes.c"
}


gint64 clip_notes_note_get_id (ClipNotesNote* self) {
	gint64 result;
	gint64 _tmp0_ = 0LL;
#line 20 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_val_if_fail (self != NULL, 0LL);
#line 20 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = self->priv->_id;
#line 20 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	result = _tmp0_;
#line 20 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return result;
#line 769 "notes.c"
}


void clip_notes_note_set_id (ClipNotesNote* self, gint64 value) {
	gint64 _tmp0_ = 0LL;
#line 20 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (self != NULL);
#line 20 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = value;
#line 20 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self->priv->_id = _tmp0_;
#line 20 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_notify ((GObject *) self, "id");
#line 783 "notes.c"
}


const gchar* clip_notes_note_get_title (ClipNotesNote* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = self->priv->_title;
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	result = _tmp0_;
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return result;
#line 798 "notes.c"
}


void clip_notes_note_set_title (ClipNotesNote* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (self != NULL);
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = value;
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_free0 (self->priv->_title);
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self->priv->_title = _tmp1_;
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_notify ((GObject *) self, "title");
#line 817 "notes.c"
}


const gchar* clip_notes_note_get_uri (ClipNotesNote* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 22 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 22 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = self->priv->_uri;
#line 22 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	result = _tmp0_;
#line 22 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return result;
#line 832 "notes.c"
}


void clip_notes_note_set_uri (ClipNotesNote* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 22 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (self != NULL);
#line 22 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = value;
#line 22 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 22 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_free0 (self->priv->_uri);
#line 22 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self->priv->_uri = _tmp1_;
#line 22 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_notify ((GObject *) self, "uri");
#line 851 "notes.c"
}


const gchar* clip_notes_note_get_content (ClipNotesNote* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 23 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 23 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = self->priv->_content;
#line 23 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	result = _tmp0_;
#line 23 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return result;
#line 866 "notes.c"
}


void clip_notes_note_set_content (ClipNotesNote* self, const gchar* value) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
#line 23 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (self != NULL);
#line 23 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = value;
#line 23 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 23 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_free0 (self->priv->_content);
#line 23 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self->priv->_content = _tmp1_;
#line 23 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_notify ((GObject *) self, "content");
#line 885 "notes.c"
}


static void clip_notes_note_class_init (ClipNotesNoteClass * klass) {
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_note_parent_class = g_type_class_peek_parent (klass);
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_type_class_add_private (klass, sizeof (ClipNotesNotePrivate));
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_clip_notes_note_get_property;
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_clip_notes_note_set_property;
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	G_OBJECT_CLASS (klass)->finalize = clip_notes_note_finalize;
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), CLIP_NOTES_NOTE_ID, g_param_spec_int64 ("id", "id", "id", G_MININT64, G_MAXINT64, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), CLIP_NOTES_NOTE_TITLE, g_param_spec_string ("title", "title", "title", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), CLIP_NOTES_NOTE_URI, g_param_spec_string ("uri", "uri", "uri", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), CLIP_NOTES_NOTE_CONTENT, g_param_spec_string ("content", "content", "content", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 908 "notes.c"
}


static void clip_notes_note_instance_init (ClipNotesNote * self) {
	gchar* _tmp0_ = NULL;
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self->priv = CLIP_NOTES_NOTE_GET_PRIVATE (self);
#line 22 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self->priv->_uri = NULL;
#line 23 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = g_strdup ("");
#line 23 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self->priv->_content = _tmp0_;
#line 922 "notes.c"
}


static void clip_notes_note_finalize (GObject* obj) {
	ClipNotesNote * self;
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, CLIP_NOTES_TYPE_NOTE, ClipNotesNote);
#line 21 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_free0 (self->priv->_title);
#line 22 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_free0 (self->priv->_uri);
#line 23 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_free0 (self->priv->_content);
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	G_OBJECT_CLASS (clip_notes_note_parent_class)->finalize (obj);
#line 938 "notes.c"
}


GType clip_notes_note_get_type (void) {
	static volatile gsize clip_notes_note_type_id__volatile = 0;
	if (g_once_init_enter (&clip_notes_note_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ClipNotesNoteClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) clip_notes_note_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ClipNotesNote), 0, (GInstanceInitFunc) clip_notes_note_instance_init, NULL };
		GType clip_notes_note_type_id;
		clip_notes_note_type_id = g_type_register_static (G_TYPE_OBJECT, "ClipNotesNote", &g_define_type_info, 0);
		g_once_init_leave (&clip_notes_note_type_id__volatile, clip_notes_note_type_id);
	}
	return clip_notes_note_type_id__volatile;
}


static void _vala_clip_notes_note_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	ClipNotesNote * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, CLIP_NOTES_TYPE_NOTE, ClipNotesNote);
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	switch (property_id) {
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		case CLIP_NOTES_NOTE_ID:
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_value_set_int64 (value, clip_notes_note_get_id (self));
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		break;
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		case CLIP_NOTES_NOTE_TITLE:
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_value_set_string (value, clip_notes_note_get_title (self));
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		break;
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		case CLIP_NOTES_NOTE_URI:
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_value_set_string (value, clip_notes_note_get_uri (self));
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		break;
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		case CLIP_NOTES_NOTE_CONTENT:
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_value_set_string (value, clip_notes_note_get_content (self));
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		break;
#line 983 "notes.c"
		default:
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		break;
#line 989 "notes.c"
	}
}


static void _vala_clip_notes_note_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	ClipNotesNote * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, CLIP_NOTES_TYPE_NOTE, ClipNotesNote);
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	switch (property_id) {
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		case CLIP_NOTES_NOTE_ID:
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		clip_notes_note_set_id (self, g_value_get_int64 (value));
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		break;
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		case CLIP_NOTES_NOTE_TITLE:
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		clip_notes_note_set_title (self, g_value_get_string (value));
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		break;
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		case CLIP_NOTES_NOTE_URI:
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		clip_notes_note_set_uri (self, g_value_get_string (value));
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		break;
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		case CLIP_NOTES_NOTE_CONTENT:
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		clip_notes_note_set_content (self, g_value_get_string (value));
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		break;
#line 1023 "notes.c"
		default:
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 19 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		break;
#line 1029 "notes.c"
	}
}


static gchar* string_replace (const gchar* self, const gchar* old, const gchar* replacement) {
	gchar* result = NULL;
	GError * _inner_error_ = NULL;
#line 1282 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1282 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (old != NULL, NULL);
#line 1282 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	g_return_val_if_fail (replacement != NULL, NULL);
#line 1043 "notes.c"
	{
		GRegex* regex = NULL;
		const gchar* _tmp0_ = NULL;
		gchar* _tmp1_ = NULL;
		gchar* _tmp2_ = NULL;
		GRegex* _tmp3_ = NULL;
		GRegex* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		GRegex* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		gchar* _tmp8_ = NULL;
		gchar* _tmp9_ = NULL;
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp0_ = old;
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp1_ = g_regex_escape_string (_tmp0_, -1);
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp2_ = _tmp1_;
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp3_ = g_regex_new (_tmp2_, 0, 0, &_inner_error_);
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp4_ = _tmp3_;
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_g_free0 (_tmp2_);
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		regex = _tmp4_;
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 1074 "notes.c"
				goto __catch4_g_regex_error;
			}
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1284 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			return NULL;
#line 1083 "notes.c"
		}
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp6_ = regex;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp7_ = replacement;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp8_ = g_regex_replace_literal (_tmp6_, self, (gssize) (-1), 0, _tmp7_, 0, &_inner_error_);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp5_ = _tmp8_;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			if (_inner_error_->domain == G_REGEX_ERROR) {
#line 1099 "notes.c"
				goto __catch4_g_regex_error;
			}
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			_g_regex_unref0 (regex);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			g_clear_error (&_inner_error_);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
			return NULL;
#line 1110 "notes.c"
		}
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp9_ = _tmp5_;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_tmp5_ = NULL;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		result = _tmp9_;
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_g_free0 (_tmp5_);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_g_regex_unref0 (regex);
#line 1285 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		return result;
#line 1124 "notes.c"
	}
	goto __finally4;
	__catch4_g_regex_error:
	{
		GError* e = NULL;
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		e = _inner_error_;
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_inner_error_ = NULL;
#line 1287 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		g_assert_not_reached ();
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		_g_error_free0 (e);
#line 1138 "notes.c"
	}
	__finally4:
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		g_clear_error (&_inner_error_);
#line 1283 "/usr/share/vala-0.26/vapi/glib-2.0.vapi"
		return NULL;
#line 1149 "notes.c"
	}
}


void clip_notes_append_note (ClipNotesNote* note) {
	gboolean _tmp0_ = FALSE;
	ClipNotesNote* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	GtkTreeIter iter = {0};
	GtkListStore* _tmp14_ = NULL;
	GtkTreeIter _tmp15_ = {0};
	GtkListStore* _tmp16_ = NULL;
	GtkTreeIter _tmp17_ = {0};
	ClipNotesNote* _tmp18_ = NULL;
#line 97 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (note != NULL);
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = note;
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp2_ = clip_notes_note_get_title (_tmp1_);
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp3_ = _tmp2_;
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (_tmp3_ != NULL) {
#line 1175 "notes.c"
		ClipNotesNote* _tmp4_ = NULL;
		const gchar* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		gboolean _tmp7_ = FALSE;
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp4_ = note;
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp5_ = clip_notes_note_get_title (_tmp4_);
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp6_ = _tmp5_;
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp7_ = g_str_has_prefix (_tmp6_, "‪");
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp0_ = _tmp7_;
#line 1190 "notes.c"
	} else {
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp0_ = FALSE;
#line 1194 "notes.c"
	}
#line 100 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (_tmp0_) {
#line 1198 "notes.c"
		ClipNotesNote* _tmp8_ = NULL;
		ClipNotesNote* _tmp9_ = NULL;
		const gchar* _tmp10_ = NULL;
		const gchar* _tmp11_ = NULL;
		gchar* _tmp12_ = NULL;
		gchar* _tmp13_ = NULL;
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp8_ = note;
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp9_ = note;
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp10_ = clip_notes_note_get_title (_tmp9_);
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp11_ = _tmp10_;
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp12_ = string_replace (_tmp11_, "‪", "");
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp13_ = _tmp12_;
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		clip_notes_note_set_title (_tmp8_, _tmp13_);
#line 101 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_free0 (_tmp13_);
#line 1221 "notes.c"
	}
#line 104 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp14_ = clip_notes_notes_list_store;
#line 104 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_list_store_append (_tmp14_, &_tmp15_);
#line 104 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	iter = _tmp15_;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp16_ = clip_notes_notes_list_store;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp17_ = iter;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp18_ = note;
#line 105 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_list_store_set (_tmp16_, &_tmp17_, 0, _tmp18_, -1);
#line 1237 "notes.c"
}


void clip_notes_remove_note (gint64 id) {
	GtkTreeIter iter = {0};
	GtkListStore* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	gboolean _tmp2_ = FALSE;
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = clip_notes_notes_list_store;
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp2_ = gtk_tree_model_iter_children ((GtkTreeModel*) _tmp0_, &_tmp1_, NULL);
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	iter = _tmp1_;
#line 111 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (_tmp2_) {
#line 1254 "notes.c"
		{
			gboolean _tmp3_ = FALSE;
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp3_ = TRUE;
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			while (TRUE) {
#line 1261 "notes.c"
				ClipNotesNote* note = NULL;
				GtkListStore* _tmp6_ = NULL;
				GtkTreeIter _tmp7_ = {0};
				gint64 _tmp8_ = 0LL;
				ClipNotesNote* _tmp9_ = NULL;
				gint64 _tmp10_ = 0LL;
				gint64 _tmp11_ = 0LL;
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				if (!_tmp3_) {
#line 1271 "notes.c"
					GtkListStore* _tmp4_ = NULL;
					gboolean _tmp5_ = FALSE;
#line 122 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
					_tmp4_ = clip_notes_notes_list_store;
#line 122 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
					_tmp5_ = gtk_tree_model_iter_next ((GtkTreeModel*) _tmp4_, &iter);
#line 122 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
					if (!_tmp5_) {
#line 122 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
						break;
#line 1282 "notes.c"
					}
				}
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp3_ = FALSE;
#line 114 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp6_ = clip_notes_notes_list_store;
#line 114 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp7_ = iter;
#line 114 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				gtk_tree_model_get ((GtkTreeModel*) _tmp6_, &_tmp7_, 0, &note, -1);
#line 115 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp8_ = id;
#line 115 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp9_ = note;
#line 115 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp10_ = clip_notes_note_get_id (_tmp9_);
#line 115 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp11_ = _tmp10_;
#line 115 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				if (_tmp8_ == _tmp11_) {
#line 1303 "notes.c"
					ClipNotesNote* _tmp12_ = NULL;
					ClipNotesNote* _tmp13_ = NULL;
					GtkListStore* _tmp14_ = NULL;
					GtkTreeIter _tmp15_ = {0};
#line 116 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
					_tmp12_ = clip_notes_current_note;
#line 116 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
					_tmp13_ = note;
#line 116 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
					if (_tmp12_ == _tmp13_) {
#line 117 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
						_g_object_unref0 (clip_notes_current_note);
#line 117 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
						clip_notes_current_note = NULL;
#line 1318 "notes.c"
					}
#line 119 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
					_tmp14_ = clip_notes_notes_list_store;
#line 119 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
					_tmp15_ = iter;
#line 119 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
					gtk_list_store_remove (_tmp14_, &_tmp15_);
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
					_g_object_unref0 (note);
#line 120 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
					break;
#line 1330 "notes.c"
				}
#line 112 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_g_object_unref0 (note);
#line 1334 "notes.c"
			}
		}
	}
}


static const gchar* clip_notes_sidebar_real_get_stock_id (MidoriViewable* base) {
	ClipNotesSidebar * self;
	const gchar* result = NULL;
#line 133 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self = (ClipNotesSidebar*) base;
#line 134 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	result = GTK_STOCK_EDIT;
#line 134 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return result;
#line 1350 "notes.c"
}


static const gchar* clip_notes_sidebar_real_get_label (MidoriViewable* base) {
	ClipNotesSidebar * self;
	const gchar* result = NULL;
	const gchar* _tmp0_ = NULL;
#line 137 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self = (ClipNotesSidebar*) base;
#line 138 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = _ ("Notes");
#line 138 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	result = _tmp0_;
#line 138 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return result;
#line 1366 "notes.c"
}


static void ___lambda4_ (ClipNotesSidebar* self) {
	ClipNotesNote* note = NULL;
	ClipNotesNote* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 151 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = clip_notes_note_new ();
#line 151 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	note = _tmp0_;
#line 152 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = _ ("New note");
#line 152 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_note_add (note, _tmp1_, NULL, "");
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (note);
#line 1384 "notes.c"
}


static void ____lambda4__gtk_tool_button_clicked (GtkToolButton* _sender, gpointer self) {
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	___lambda4_ ((ClipNotesSidebar*) self);
#line 1391 "notes.c"
}


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


static GtkWidget* clip_notes_sidebar_real_get_toolbar (MidoriViewable* base) {
	ClipNotesSidebar * self;
	GtkWidget* result = NULL;
	GtkToolbar* _tmp0_ = NULL;
	GtkToolbar* _tmp13_ = NULL;
	GtkWidget* _tmp14_ = NULL;
#line 141 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self = (ClipNotesSidebar*) base;
#line 142 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = self->priv->toolbar;
#line 142 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (_tmp0_ == NULL) {
#line 1414 "notes.c"
		GtkToolbar* _tmp1_ = NULL;
		GtkToolButton* new_note_button = NULL;
		GtkToolButton* _tmp2_ = NULL;
		GtkToolButton* _tmp3_ = NULL;
		const gchar* _tmp4_ = NULL;
		GtkToolButton* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		GtkToolButton* _tmp7_ = NULL;
		GtkToolButton* _tmp8_ = NULL;
		GtkToolButton* _tmp9_ = NULL;
		GtkToolButton* _tmp10_ = NULL;
		GtkToolbar* _tmp11_ = NULL;
		GtkToolButton* _tmp12_ = NULL;
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp1_ = (GtkToolbar*) gtk_toolbar_new ();
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_object_ref_sink (_tmp1_);
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (self->priv->toolbar);
#line 143 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		self->priv->toolbar = _tmp1_;
#line 144 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp2_ = (GtkToolButton*) gtk_tool_button_new_from_stock (GTK_STOCK_EDIT);
#line 144 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_object_ref_sink (_tmp2_);
#line 144 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		new_note_button = _tmp2_;
#line 145 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp3_ = new_note_button;
#line 145 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp4_ = _ ("New Note");
#line 145 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_tool_button_set_label (_tmp3_, _tmp4_);
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp5_ = new_note_button;
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp6_ = _ ("Creates a new empty note, unrelated to opened pages");
#line 146 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_widget_set_tooltip_text ((GtkWidget*) _tmp5_, _tmp6_);
#line 147 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp7_ = new_note_button;
#line 147 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_tool_button_set_use_underline (_tmp7_, TRUE);
#line 148 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp8_ = new_note_button;
#line 148 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_tool_item_set_is_important ((GtkToolItem*) _tmp8_, TRUE);
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp9_ = new_note_button;
#line 149 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_widget_show ((GtkWidget*) _tmp9_);
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp10_ = new_note_button;
#line 150 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_signal_connect_object (_tmp10_, "clicked", (GCallback) ____lambda4__gtk_tool_button_clicked, self, 0);
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp11_ = self->priv->toolbar;
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp12_ = new_note_button;
#line 154 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_toolbar_insert (_tmp11_, (GtkToolItem*) _tmp12_, -1);
#line 142 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (new_note_button);
#line 1478 "notes.c"
	}
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp13_ = self->priv->toolbar;
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp14_ = _g_object_ref0 ((GtkWidget*) _tmp13_);
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	result = _tmp14_;
#line 156 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return result;
#line 1488 "notes.c"
}


void clip_notes_sidebar_title_edited (ClipNotesSidebar* self, GtkCellRendererText* renderer, const gchar* path_str, const gchar* new_title) {
	GtkTreePath* path = NULL;
	const gchar* _tmp0_ = NULL;
	GtkTreePath* _tmp1_ = NULL;
	GtkTreeIter iter = {0};
	GtkListStore* _tmp2_ = NULL;
	GtkTreeIter _tmp3_ = {0};
	ClipNotesNote* note = NULL;
	GtkListStore* _tmp4_ = NULL;
	GtkTreeIter _tmp5_ = {0};
	const gchar* _tmp6_ = NULL;
	GtkListStore* _tmp7_ = NULL;
	GtkTreeIter _tmp8_ = {0};
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (self != NULL);
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (renderer != NULL);
#line 160 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = path_str;
#line 160 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = gtk_tree_path_new_from_string (_tmp0_);
#line 160 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	path = _tmp1_;
#line 162 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp2_ = clip_notes_notes_list_store;
#line 162 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_tree_model_get_iter ((GtkTreeModel*) _tmp2_, &_tmp3_, path);
#line 162 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	iter = _tmp3_;
#line 164 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp4_ = clip_notes_notes_list_store;
#line 164 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp5_ = iter;
#line 164 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_tree_model_get ((GtkTreeModel*) _tmp4_, &_tmp5_, 0, &note, -1);
#line 165 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp6_ = new_title;
#line 165 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_note_rename (note, _tmp6_);
#line 166 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp7_ = clip_notes_notes_list_store;
#line 166 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp8_ = iter;
#line 166 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_list_store_set (_tmp7_, &_tmp8_, 0, note, -1);
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (note);
#line 159 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_gtk_tree_path_free0 (path);
#line 1541 "notes.c"
}


static gboolean _clip_notes_sidebar_button_pressed_gtk_widget_button_press_event (GtkWidget* _sender, GdkEventButton* event, gpointer self) {
	gboolean result;
	result = clip_notes_sidebar_button_pressed ((ClipNotesSidebar*) self, event);
#line 175 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return result;
#line 1550 "notes.c"
}


static void _clip_notes_sidebar_selection_changed_gtk_tree_selection_changed (GtkTreeSelection* _sender, gpointer self) {
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_sidebar_selection_changed ((ClipNotesSidebar*) self, _sender);
#line 1557 "notes.c"
}


static gint _clip_notes_sidebar_tree_sort_func_gtk_tree_iter_compare_func (GtkTreeModel* model, GtkTreeIter* a, GtkTreeIter* b, gpointer self) {
	gint result;
	result = clip_notes_sidebar_tree_sort_func ((ClipNotesSidebar*) self, model, a, b);
#line 179 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return result;
#line 1566 "notes.c"
}


static void _clip_notes_sidebar_on_render_icon_gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self) {
#line 184 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_sidebar_on_render_icon ((ClipNotesSidebar*) self, cell_layout, cell, tree_model, iter);
#line 1573 "notes.c"
}


static void _clip_notes_sidebar_title_edited_gtk_cell_renderer_text_edited (GtkCellRendererText* _sender, const gchar* path, const gchar* new_text, gpointer self) {
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_sidebar_title_edited ((ClipNotesSidebar*) self, _sender, path, new_text);
#line 1580 "notes.c"
}


static void _clip_notes_sidebar_on_render_note_title_gtk_cell_layout_data_func (GtkCellLayout* cell_layout, GtkCellRenderer* cell, GtkTreeModel* tree_model, GtkTreeIter* iter, gpointer self) {
#line 193 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_sidebar_on_render_note_title ((ClipNotesSidebar*) self, cell_layout, cell, tree_model, iter);
#line 1587 "notes.c"
}


static gboolean _clip_notes_sidebar_focus_lost_gtk_widget_focus_out_event (GtkWidget* _sender, GdkEventFocus* event, gpointer self) {
	gboolean result;
	result = clip_notes_sidebar_focus_lost ((ClipNotesSidebar*) self, event);
#line 221 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return result;
#line 1596 "notes.c"
}


ClipNotesSidebar* clip_notes_sidebar_construct (GType object_type) {
	ClipNotesSidebar * self = NULL;
	GtkTreeViewColumn* column = NULL;
	GtkListStore* _tmp0_ = NULL;
	GtkListStore* _tmp1_ = NULL;
	GtkTreeView* _tmp2_ = NULL;
	GtkTreeView* _tmp3_ = NULL;
	GtkTreeView* _tmp4_ = NULL;
	GtkTreeView* _tmp5_ = NULL;
	GtkTreeSelection* _tmp6_ = NULL;
	GtkListStore* _tmp7_ = NULL;
	GtkListStore* _tmp8_ = NULL;
	GtkTreeViewColumn* _tmp9_ = NULL;
	GtkCellRendererPixbuf* renderer_icon = NULL;
	GtkCellRendererPixbuf* _tmp10_ = NULL;
	GtkTreeViewColumn* _tmp11_ = NULL;
	GtkCellRendererPixbuf* _tmp12_ = NULL;
	GtkTreeViewColumn* _tmp13_ = NULL;
	GtkCellRendererPixbuf* _tmp14_ = NULL;
	GtkTreeView* _tmp15_ = NULL;
	GtkTreeViewColumn* _tmp16_ = NULL;
	GtkTreeViewColumn* _tmp17_ = NULL;
	GtkCellRendererText* renderer_title = NULL;
	GtkCellRendererText* _tmp18_ = NULL;
	GtkCellRendererText* _tmp19_ = NULL;
	GtkCellRendererText* _tmp20_ = NULL;
	GtkTreeViewColumn* _tmp21_ = NULL;
	const gchar* _tmp22_ = NULL;
	GtkTreeViewColumn* _tmp23_ = NULL;
	GtkCellRendererText* _tmp24_ = NULL;
	GtkTreeViewColumn* _tmp25_ = NULL;
	GtkCellRendererText* _tmp26_ = NULL;
	GtkTreeView* _tmp27_ = NULL;
	GtkTreeViewColumn* _tmp28_ = NULL;
	GtkTreeView* _tmp57_ = NULL;
	GtkTreeView* _tmp58_ = NULL;
	GtkLabel* _tmp59_ = NULL;
	GtkLabel* _tmp60_ = NULL;
	GtkLabel* _tmp61_ = NULL;
	GtkTextView* _tmp62_ = NULL;
	GtkTextView* _tmp63_ = NULL;
	GtkTextView* _tmp64_ = NULL;
	GtkTextView* _tmp65_ = NULL;
	GError * _inner_error_ = NULL;
#line 169 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self = (ClipNotesSidebar*) g_object_new (object_type, NULL);
#line 172 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = gtk_list_store_new (1, CLIP_NOTES_TYPE_NOTE);
#line 172 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (clip_notes_notes_list_store);
#line 172 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_notes_list_store = _tmp0_;
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = clip_notes_notes_list_store;
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp2_ = (GtkTreeView*) gtk_tree_view_new_with_model ((GtkTreeModel*) _tmp1_);
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_ref_sink (_tmp2_);
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (self->priv->notes_tree_view);
#line 173 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self->priv->notes_tree_view = _tmp2_;
#line 174 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp3_ = self->priv->notes_tree_view;
#line 174 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_tree_view_set_headers_visible (_tmp3_, TRUE);
#line 175 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp4_ = self->priv->notes_tree_view;
#line 175 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_signal_connect_object ((GtkWidget*) _tmp4_, "button-press-event", (GCallback) _clip_notes_sidebar_button_pressed_gtk_widget_button_press_event, self, 0);
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp5_ = self->priv->notes_tree_view;
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp6_ = gtk_tree_view_get_selection (_tmp5_);
#line 176 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_signal_connect_object (_tmp6_, "changed", (GCallback) _clip_notes_sidebar_selection_changed_gtk_tree_selection_changed, self, 0);
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp7_ = clip_notes_notes_list_store;
#line 178 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_tree_sortable_set_sort_column_id ((GtkTreeSortable*) _tmp7_, 0, GTK_SORT_ASCENDING);
#line 179 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp8_ = clip_notes_notes_list_store;
#line 179 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_tree_sortable_set_sort_func ((GtkTreeSortable*) _tmp8_, 0, _clip_notes_sidebar_tree_sort_func_gtk_tree_iter_compare_func, g_object_ref (self), g_object_unref);
#line 181 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp9_ = gtk_tree_view_column_new ();
#line 181 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_ref_sink (_tmp9_);
#line 181 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (column);
#line 181 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	column = _tmp9_;
#line 182 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp10_ = (GtkCellRendererPixbuf*) gtk_cell_renderer_pixbuf_new ();
#line 182 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_ref_sink (_tmp10_);
#line 182 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	renderer_icon = _tmp10_;
#line 183 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp11_ = column;
#line 183 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp12_ = renderer_icon;
#line 183 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp11_, (GtkCellRenderer*) _tmp12_, FALSE);
#line 184 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp13_ = column;
#line 184 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp14_ = renderer_icon;
#line 184 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_cell_layout_set_cell_data_func ((GtkCellLayout*) _tmp13_, (GtkCellRenderer*) _tmp14_, _clip_notes_sidebar_on_render_icon_gtk_cell_layout_data_func, g_object_ref (self), g_object_unref);
#line 185 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp15_ = self->priv->notes_tree_view;
#line 185 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp16_ = column;
#line 185 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_tree_view_append_column (_tmp15_, _tmp16_);
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp17_ = gtk_tree_view_column_new ();
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_ref_sink (_tmp17_);
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (column);
#line 187 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	column = _tmp17_;
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp18_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_ref_sink (_tmp18_);
#line 188 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	renderer_title = _tmp18_;
#line 189 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp19_ = renderer_title;
#line 189 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_set (_tmp19_, "editable", TRUE, NULL);
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp20_ = renderer_title;
#line 190 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_signal_connect_object (_tmp20_, "edited", (GCallback) _clip_notes_sidebar_title_edited_gtk_cell_renderer_text_edited, self, 0);
#line 191 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp21_ = column;
#line 191 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp22_ = _ ("Notes");
#line 191 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_tree_view_column_set_title (_tmp21_, _tmp22_);
#line 192 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp23_ = column;
#line 192 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp24_ = renderer_title;
#line 192 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp23_, (GtkCellRenderer*) _tmp24_, TRUE);
#line 193 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp25_ = column;
#line 193 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp26_ = renderer_title;
#line 193 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_cell_layout_set_cell_data_func ((GtkCellLayout*) _tmp25_, (GtkCellRenderer*) _tmp26_, _clip_notes_sidebar_on_render_note_title_gtk_cell_layout_data_func, g_object_ref (self), g_object_unref);
#line 194 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp27_ = self->priv->notes_tree_view;
#line 194 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp28_ = column;
#line 194 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_tree_view_append_column (_tmp27_, _tmp28_);
#line 1762 "notes.c"
	{
		gchar* sqlcmd = NULL;
		gchar* _tmp29_ = NULL;
		MidoriDatabaseStatement* statement = NULL;
		MidoriDatabase* _tmp30_ = NULL;
		const gchar* _tmp31_ = NULL;
		MidoriDatabaseStatement* _tmp32_ = NULL;
#line 197 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp29_ = g_strdup ("SELECT id, uri, title, note_content FROM notes");
#line 197 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		sqlcmd = _tmp29_;
#line 198 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp30_ = clip_notes_database;
#line 198 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp31_ = sqlcmd;
#line 198 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp32_ = midori_database_prepare (_tmp30_, _tmp31_, &_inner_error_, NULL);
#line 198 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		statement = _tmp32_;
#line 198 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 198 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_g_free0 (sqlcmd);
#line 1786 "notes.c"
			goto __catch5_g_error;
		}
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		while (TRUE) {
#line 1791 "notes.c"
			gboolean _tmp33_ = FALSE;
			MidoriDatabaseStatement* _tmp34_ = NULL;
			gboolean _tmp35_ = FALSE;
			ClipNotesNote* note = NULL;
			ClipNotesNote* _tmp36_ = NULL;
			gint64 _tmp37_ = 0LL;
			MidoriDatabaseStatement* _tmp38_ = NULL;
			gint64 _tmp39_ = 0LL;
			ClipNotesNote* _tmp40_ = NULL;
			gchar* _tmp41_ = NULL;
			MidoriDatabaseStatement* _tmp42_ = NULL;
			gchar* _tmp43_ = NULL;
			ClipNotesNote* _tmp44_ = NULL;
			gchar* _tmp45_ = NULL;
			MidoriDatabaseStatement* _tmp46_ = NULL;
			gchar* _tmp47_ = NULL;
			ClipNotesNote* _tmp48_ = NULL;
			gchar* _tmp49_ = NULL;
			MidoriDatabaseStatement* _tmp50_ = NULL;
			gchar* _tmp51_ = NULL;
			ClipNotesNote* _tmp52_ = NULL;
			ClipNotesNote* _tmp53_ = NULL;
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp34_ = statement;
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp35_ = midori_database_statement_step (_tmp34_, &_inner_error_);
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp33_ = _tmp35_;
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_g_object_unref0 (statement);
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_g_free0 (sqlcmd);
#line 1826 "notes.c"
				goto __catch5_g_error;
			}
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			if (!_tmp33_) {
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				break;
#line 1833 "notes.c"
			}
#line 200 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp36_ = clip_notes_note_new ();
#line 200 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			note = _tmp36_;
#line 201 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp38_ = statement;
#line 201 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp39_ = midori_database_statement_get_int64 (_tmp38_, "id", &_inner_error_);
#line 201 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp37_ = _tmp39_;
#line 201 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 201 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_g_object_unref0 (note);
#line 201 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_g_object_unref0 (statement);
#line 201 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_g_free0 (sqlcmd);
#line 1853 "notes.c"
				goto __catch5_g_error;
			}
#line 201 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp40_ = note;
#line 201 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			clip_notes_note_set_id (_tmp40_, _tmp37_);
#line 202 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp42_ = statement;
#line 202 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp43_ = midori_database_statement_get_string (_tmp42_, "uri", &_inner_error_);
#line 202 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp41_ = _tmp43_;
#line 202 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 202 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_g_object_unref0 (note);
#line 202 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_g_object_unref0 (statement);
#line 202 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_g_free0 (sqlcmd);
#line 1874 "notes.c"
				goto __catch5_g_error;
			}
#line 202 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp44_ = note;
#line 202 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			clip_notes_note_set_uri (_tmp44_, _tmp41_);
#line 203 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp46_ = statement;
#line 203 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp47_ = midori_database_statement_get_string (_tmp46_, "title", &_inner_error_);
#line 203 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp45_ = _tmp47_;
#line 203 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 203 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_g_free0 (_tmp41_);
#line 203 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_g_object_unref0 (note);
#line 203 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_g_object_unref0 (statement);
#line 203 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_g_free0 (sqlcmd);
#line 1897 "notes.c"
				goto __catch5_g_error;
			}
#line 203 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp48_ = note;
#line 203 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			clip_notes_note_set_title (_tmp48_, _tmp45_);
#line 204 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp50_ = statement;
#line 204 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp51_ = midori_database_statement_get_string (_tmp50_, "note_content", &_inner_error_);
#line 204 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp49_ = _tmp51_;
#line 204 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 204 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_g_free0 (_tmp45_);
#line 204 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_g_free0 (_tmp41_);
#line 204 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_g_object_unref0 (note);
#line 204 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_g_object_unref0 (statement);
#line 204 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_g_free0 (sqlcmd);
#line 1922 "notes.c"
				goto __catch5_g_error;
			}
#line 204 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp52_ = note;
#line 204 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			clip_notes_note_set_content (_tmp52_, _tmp49_);
#line 206 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp53_ = note;
#line 206 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			clip_notes_append_note (_tmp53_);
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_g_free0 (_tmp49_);
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_g_free0 (_tmp45_);
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_g_free0 (_tmp41_);
#line 199 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_g_object_unref0 (note);
#line 1941 "notes.c"
		}
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (statement);
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_free0 (sqlcmd);
#line 1947 "notes.c"
	}
	goto __finally5;
	__catch5_g_error:
	{
		GError* _error_ = NULL;
		const gchar* _tmp54_ = NULL;
		GError* _tmp55_ = NULL;
		const gchar* _tmp56_ = NULL;
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_error_ = _inner_error_;
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_inner_error_ = NULL;
#line 209 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp54_ = _ ("Failed to select from notes database: %s\n");
#line 209 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp55_ = _error_;
#line 209 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp56_ = _tmp55_->message;
#line 209 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_critical (_tmp54_, _tmp56_);
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_error_free0 (_error_);
#line 1970 "notes.c"
	}
	__finally5:
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (renderer_title);
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (renderer_icon);
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (column);
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.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 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_clear_error (&_inner_error_);
#line 196 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		return NULL;
#line 1987 "notes.c"
	}
#line 212 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp57_ = self->priv->notes_tree_view;
#line 212 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_widget_show ((GtkWidget*) _tmp57_);
#line 213 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp58_ = self->priv->notes_tree_view;
#line 213 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_box_pack_start ((GtkBox*) self, (GtkWidget*) _tmp58_, FALSE, FALSE, (guint) 0);
#line 215 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp59_ = (GtkLabel*) gtk_label_new (NULL);
#line 215 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_ref_sink (_tmp59_);
#line 215 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (self->priv->note_label);
#line 215 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self->priv->note_label = _tmp59_;
#line 216 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp60_ = self->priv->note_label;
#line 216 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_widget_show ((GtkWidget*) _tmp60_);
#line 217 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp61_ = self->priv->note_label;
#line 217 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_box_pack_start ((GtkBox*) self, (GtkWidget*) _tmp61_, FALSE, FALSE, (guint) 0);
#line 219 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp62_ = self->priv->note_text_view;
#line 219 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_text_view_set_wrap_mode (_tmp62_, GTK_WRAP_WORD);
#line 220 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp63_ = self->priv->note_text_view;
#line 220 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_widget_show ((GtkWidget*) _tmp63_);
#line 221 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp64_ = self->priv->note_text_view;
#line 221 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_signal_connect_object ((GtkWidget*) _tmp64_, "focus-out-event", (GCallback) _clip_notes_sidebar_focus_lost_gtk_widget_focus_out_event, self, 0);
#line 222 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp65_ = self->priv->note_text_view;
#line 222 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_box_pack_start ((GtkBox*) self, (GtkWidget*) _tmp65_, TRUE, TRUE, (guint) 0);
#line 169 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (renderer_title);
#line 169 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (renderer_icon);
#line 169 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (column);
#line 169 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return self;
#line 2037 "notes.c"
}


ClipNotesSidebar* clip_notes_sidebar_new (void) {
#line 169 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return clip_notes_sidebar_construct (CLIP_NOTES_TYPE_SIDEBAR);
#line 2044 "notes.c"
}


static gint clip_notes_sidebar_tree_sort_func (ClipNotesSidebar* self, GtkTreeModel* model, GtkTreeIter* a, GtkTreeIter* b) {
	gint result = 0;
	ClipNotesNote* note1 = NULL;
	ClipNotesNote* note2 = NULL;
	GtkTreeModel* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	GtkTreeModel* _tmp2_ = NULL;
	GtkTreeIter _tmp3_ = {0};
	GCompareFunc _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	gint _tmp9_ = 0;
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_val_if_fail (model != NULL, 0);
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_val_if_fail (a != NULL, 0);
#line 225 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_val_if_fail (b != NULL, 0);
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = model;
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = *a;
#line 227 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_tree_model_get (_tmp0_, &_tmp1_, 0, &note1, -1);
#line 228 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp2_ = model;
#line 228 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp3_ = *b;
#line 228 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_tree_model_get (_tmp2_, &_tmp3_, 0, &note2, -1);
#line 229 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp4_ = g_strcmp0;
#line 229 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp5_ = clip_notes_note_get_title (note1);
#line 229 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp6_ = _tmp5_;
#line 229 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp7_ = clip_notes_note_get_title (note2);
#line 229 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp8_ = _tmp7_;
#line 229 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp9_ = _tmp4_ (_tmp6_, _tmp8_);
#line 229 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	result = _tmp9_;
#line 229 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (note2);
#line 229 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (note1);
#line 229 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return result;
#line 2102 "notes.c"
}


static void clip_notes_sidebar_save_current_note (ClipNotesSidebar* self) {
	ClipNotesNote* _tmp0_ = NULL;
#line 232 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (self != NULL);
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = clip_notes_current_note;
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (_tmp0_ != NULL) {
#line 2114 "notes.c"
		gchar* note_content = NULL;
		GtkTextView* _tmp1_ = NULL;
		GtkTextBuffer* _tmp2_ = NULL;
		GtkTextBuffer* _tmp3_ = NULL;
		gchar* _tmp4_ = NULL;
		gchar* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		ClipNotesNote* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp1_ = self->priv->note_text_view;
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp2_ = gtk_text_view_get_buffer (_tmp1_);
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp3_ = _tmp2_;
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_object_get (_tmp3_, "text", &_tmp4_, NULL);
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp5_ = _tmp4_;
#line 234 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		note_content = _tmp5_;
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp6_ = note_content;
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp7_ = clip_notes_current_note;
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp8_ = clip_notes_note_get_content (_tmp7_);
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp9_ = _tmp8_;
#line 235 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		if (g_strcmp0 (_tmp6_, _tmp9_) != 0) {
#line 2147 "notes.c"
			ClipNotesNote* _tmp10_ = NULL;
			const gchar* _tmp11_ = NULL;
#line 236 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp10_ = clip_notes_current_note;
#line 236 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp11_ = note_content;
#line 236 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			clip_notes_note_update (_tmp10_, _tmp11_);
#line 2156 "notes.c"
		}
#line 233 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_free0 (note_content);
#line 2160 "notes.c"
	}
}


static gboolean clip_notes_sidebar_focus_lost (ClipNotesSidebar* self, GdkEventFocus* event) {
	gboolean result = FALSE;
#line 240 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 240 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 241 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_sidebar_save_current_note (self);
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	result = FALSE;
#line 242 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return result;
#line 2177 "notes.c"
}


static void clip_notes_sidebar_on_render_note_title (ClipNotesSidebar* self, GtkCellLayout* column, GtkCellRenderer* renderer, GtkTreeModel* model, GtkTreeIter* iter) {
	ClipNotesNote* note = NULL;
	GtkTreeModel* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	GtkCellRenderer* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
#line 245 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (self != NULL);
#line 245 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (column != NULL);
#line 245 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (renderer != NULL);
#line 245 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (model != NULL);
#line 245 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (iter != NULL);
#line 249 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = model;
#line 249 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = *iter;
#line 249 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_tree_model_get (_tmp0_, &_tmp1_, 0, &note, -1);
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp2_ = renderer;
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp3_ = clip_notes_note_get_title (note);
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp4_ = _tmp3_;
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp5_ = g_markup_printf_escaped ("%s", _tmp4_);
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp6_ = _tmp5_;
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_set ((GObject*) _tmp2_, "markup", _tmp6_, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
#line 250 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_free0 (_tmp6_);
#line 245 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (note);
#line 2222 "notes.c"
}


static void clip_notes_sidebar_on_render_icon (ClipNotesSidebar* self, GtkCellLayout* column, GtkCellRenderer* renderer, GtkTreeModel* model, GtkTreeIter* iter) {
	ClipNotesNote* note = NULL;
	GtkTreeModel* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	GdkPixbuf* pixbuf = NULL;
	ClipNotesNote* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
	const gchar* _tmp4_ = NULL;
	GdkPixbuf* _tmp5_ = NULL;
	GdkPixbuf* _tmp6_ = NULL;
	GtkCellRenderer* _tmp14_ = NULL;
	GdkPixbuf* _tmp15_ = NULL;
#line 254 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (self != NULL);
#line 254 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (column != NULL);
#line 254 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (renderer != NULL);
#line 254 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (model != NULL);
#line 254 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (iter != NULL);
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = model;
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = *iter;
#line 258 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_tree_model_get (_tmp0_, &_tmp1_, 0, &note, -1);
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp2_ = note;
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp3_ = clip_notes_note_get_uri (_tmp2_);
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp4_ = _tmp3_;
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp5_ = midori_paths_get_icon (_tmp4_, NULL);
#line 260 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	pixbuf = _tmp5_;
#line 261 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp6_ = pixbuf;
#line 261 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (_tmp6_ != NULL) {
#line 2268 "notes.c"
		gint icon_width = 0;
		gint icon_height = 0;
		GtkSettings* _tmp7_ = NULL;
		gint _tmp8_ = 0;
		gint _tmp9_ = 0;
		GdkPixbuf* _tmp10_ = NULL;
		gint _tmp11_ = 0;
		gint _tmp12_ = 0;
		GdkPixbuf* _tmp13_ = NULL;
#line 262 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		icon_width = 16;
#line 262 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		icon_height = 16;
#line 263 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp7_ = gtk_widget_get_settings ((GtkWidget*) self);
#line 263 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_icon_size_lookup_for_settings (_tmp7_, GTK_ICON_SIZE_MENU, &_tmp8_, &_tmp9_);
#line 263 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		icon_width = _tmp8_;
#line 263 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		icon_height = _tmp9_;
#line 265 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp10_ = pixbuf;
#line 265 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp11_ = icon_width;
#line 265 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp12_ = icon_height;
#line 265 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp13_ = gdk_pixbuf_scale_simple (_tmp10_, _tmp11_, _tmp12_, GDK_INTERP_TILES);
#line 265 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (pixbuf);
#line 265 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		pixbuf = _tmp13_;
#line 2302 "notes.c"
	}
#line 267 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp14_ = renderer;
#line 267 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp15_ = pixbuf;
#line 267 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_set ((GObject*) _tmp14_, "pixbuf", _tmp15_, NULL);
#line 254 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (pixbuf);
#line 254 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (note);
#line 2314 "notes.c"
}


static void clip_notes_sidebar_selection_changed (ClipNotesSidebar* self, GtkTreeSelection* selection) {
	GtkTreeSelection* _tmp0_ = NULL;
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (self != NULL);
#line 270 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (selection != NULL);
#line 272 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_sidebar_save_current_note (self);
#line 273 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = selection;
#line 273 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_sidebar_show_note_content (self, _tmp0_);
#line 2330 "notes.c"
}


static gboolean clip_notes_sidebar_button_pressed (ClipNotesSidebar* self, GdkEventButton* event) {
	gboolean result = FALSE;
	GdkEventButton _tmp0_ = {0};
	guint _tmp1_ = 0U;
	GdkEventButton _tmp6_ = {0};
	guint _tmp7_ = 0U;
	GdkEventButton _tmp10_ = {0};
	guint _tmp11_ = 0U;
#line 276 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 276 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_val_if_fail (event != NULL, FALSE);
#line 277 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = *event;
#line 277 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = _tmp0_.button;
#line 277 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (_tmp1_ == ((guint) 1)) {
#line 2352 "notes.c"
		GdkEventButton _tmp2_ = {0};
		GdkEventType _tmp3_ = 0;
#line 278 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp2_ = *event;
#line 278 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp3_ = _tmp2_.type;
#line 278 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		if (_tmp3_ == GDK_2BUTTON_PRESS) {
#line 2361 "notes.c"
			GdkEventButton _tmp4_ = {0};
			gboolean _tmp5_ = FALSE;
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp4_ = *event;
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp5_ = clip_notes_sidebar_show_note_webpage_in_new_tab (self, &_tmp4_, FALSE);
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			result = _tmp5_;
#line 279 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			return result;
#line 2372 "notes.c"
		}
	}
#line 282 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp6_ = *event;
#line 282 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp7_ = _tmp6_.button;
#line 282 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (_tmp7_ == ((guint) 2)) {
#line 2381 "notes.c"
		GdkEventButton _tmp8_ = {0};
		gboolean _tmp9_ = FALSE;
#line 283 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp8_ = *event;
#line 283 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp9_ = clip_notes_sidebar_show_note_webpage_in_new_tab (self, &_tmp8_, TRUE);
#line 283 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		result = _tmp9_;
#line 283 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		return result;
#line 2392 "notes.c"
	}
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp10_ = *event;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp11_ = _tmp10_.button;
#line 284 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (_tmp11_ == ((guint) 3)) {
#line 2400 "notes.c"
		GdkEventButton _tmp12_ = {0};
		gboolean _tmp13_ = FALSE;
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp12_ = *event;
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp13_ = clip_notes_sidebar_show_popup_menu (self, &_tmp12_);
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		result = _tmp13_;
#line 285 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		return result;
#line 2411 "notes.c"
	}
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	result = FALSE;
#line 286 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return result;
#line 2417 "notes.c"
}


static gboolean clip_notes_sidebar_show_note_content (ClipNotesSidebar* self, GtkTreeSelection* selection) {
	gboolean result = FALSE;
	GtkTreeIter iter = {0};
	GtkTreeSelection* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	gboolean _tmp2_ = FALSE;
#line 289 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 289 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_val_if_fail (selection != NULL, FALSE);
#line 291 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = selection;
#line 291 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp2_ = gtk_tree_selection_get_selected (_tmp0_, NULL, &_tmp1_);
#line 291 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	iter = _tmp1_;
#line 291 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (_tmp2_) {
#line 2439 "notes.c"
		ClipNotesNote* note = NULL;
		GtkListStore* _tmp3_ = NULL;
		GtkTreeIter _tmp4_ = {0};
		ClipNotesNote* _tmp5_ = NULL;
		ClipNotesNote* _tmp6_ = NULL;
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp3_ = clip_notes_notes_list_store;
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp4_ = iter;
#line 293 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_tree_model_get ((GtkTreeModel*) _tmp3_, &_tmp4_, 0, &note, -1);
#line 295 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp5_ = note;
#line 295 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp6_ = clip_notes_current_note;
#line 295 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		if (_tmp5_ != _tmp6_) {
#line 2457 "notes.c"
			GtkTextView* _tmp7_ = NULL;
			GtkTextBuffer* _tmp8_ = NULL;
			GtkTextBuffer* _tmp9_ = NULL;
			ClipNotesNote* _tmp10_ = NULL;
			const gchar* _tmp11_ = NULL;
			const gchar* _tmp12_ = NULL;
			ClipNotesNote* _tmp13_ = NULL;
			ClipNotesNote* _tmp14_ = NULL;
#line 296 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp7_ = self->priv->note_text_view;
#line 296 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp8_ = gtk_text_view_get_buffer (_tmp7_);
#line 296 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp9_ = _tmp8_;
#line 296 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp10_ = note;
#line 296 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp11_ = clip_notes_note_get_content (_tmp10_);
#line 296 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp12_ = _tmp11_;
#line 296 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			g_object_set (_tmp9_, "text", _tmp12_, NULL);
#line 297 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp13_ = note;
#line 297 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp14_ = _g_object_ref0 (_tmp13_);
#line 297 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_g_object_unref0 (clip_notes_current_note);
#line 297 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			clip_notes_current_note = _tmp14_;
#line 2488 "notes.c"
		}
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		result = TRUE;
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (note);
#line 300 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		return result;
#line 2496 "notes.c"
	} else {
		GtkTextView* _tmp15_ = NULL;
		GtkTextBuffer* _tmp16_ = NULL;
		GtkTextBuffer* _tmp17_ = NULL;
#line 302 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp15_ = self->priv->note_text_view;
#line 302 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp16_ = gtk_text_view_get_buffer (_tmp15_);
#line 302 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp17_ = _tmp16_;
#line 302 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_object_set (_tmp17_, "text", "", NULL);
#line 2509 "notes.c"
	}
#line 304 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	result = FALSE;
#line 304 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return result;
#line 2515 "notes.c"
}


static gboolean clip_notes_sidebar_show_note_webpage_in_new_tab (ClipNotesSidebar* self, GdkEventButton* event, gboolean new_tab) {
	gboolean result = FALSE;
	GtkTreeIter iter = {0};
	GtkTreeView* _tmp0_ = NULL;
	GtkTreeSelection* _tmp1_ = NULL;
	GtkTreeIter _tmp2_ = {0};
	gboolean _tmp3_ = FALSE;
#line 307 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = self->priv->notes_tree_view;
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = gtk_tree_view_get_selection (_tmp0_);
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp3_ = gtk_tree_selection_get_selected (_tmp1_, NULL, &_tmp2_);
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	iter = _tmp2_;
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (_tmp3_) {
#line 2538 "notes.c"
		ClipNotesNote* note = NULL;
		GtkListStore* _tmp4_ = NULL;
		GtkTreeIter _tmp5_ = {0};
		ClipNotesNote* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
		const gchar* _tmp8_ = NULL;
#line 311 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp4_ = clip_notes_notes_list_store;
#line 311 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp5_ = iter;
#line 311 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_tree_model_get ((GtkTreeModel*) _tmp4_, &_tmp5_, 0, &note, -1);
#line 312 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp6_ = note;
#line 312 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp7_ = clip_notes_note_get_uri (_tmp6_);
#line 312 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp8_ = _tmp7_;
#line 312 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		if (_tmp8_ != NULL) {
#line 2559 "notes.c"
			MidoriBrowser* browser = NULL;
			GtkTreeView* _tmp9_ = NULL;
			MidoriBrowser* _tmp10_ = NULL;
			MidoriBrowser* _tmp11_ = NULL;
			gboolean _tmp12_ = FALSE;
#line 313 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp9_ = self->priv->notes_tree_view;
#line 313 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp10_ = midori_browser_get_for_widget ((GtkWidget*) _tmp9_);
#line 313 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp11_ = _g_object_ref0 (_tmp10_);
#line 313 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			browser = _tmp11_;
#line 314 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp12_ = new_tab;
#line 314 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			if (_tmp12_) {
#line 2577 "notes.c"
				MidoriBrowser* _tmp13_ = NULL;
				ClipNotesNote* _tmp14_ = NULL;
				const gchar* _tmp15_ = NULL;
				const gchar* _tmp16_ = NULL;
#line 315 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp13_ = browser;
#line 315 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp14_ = note;
#line 315 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp15_ = clip_notes_note_get_uri (_tmp14_);
#line 315 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp16_ = _tmp15_;
#line 315 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				midori_browser_add_uri (_tmp13_, _tmp16_);
#line 2592 "notes.c"
			} else {
				MidoriView* tab = NULL;
				MidoriBrowser* _tmp17_ = NULL;
				GtkWidget* _tmp18_ = NULL;
				GtkWidget* _tmp19_ = NULL;
				MidoriView* _tmp20_ = NULL;
				MidoriView* _tmp21_ = NULL;
				ClipNotesNote* _tmp22_ = NULL;
				const gchar* _tmp23_ = NULL;
				const gchar* _tmp24_ = NULL;
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp17_ = browser;
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp18_ = midori_browser_get_tab (_tmp17_);
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp19_ = _tmp18_;
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp20_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp19_, MIDORI_TYPE_VIEW) ? ((MidoriView*) _tmp19_) : NULL);
#line 317 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				tab = _tmp20_;
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp21_ = tab;
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp22_ = note;
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp23_ = clip_notes_note_get_uri (_tmp22_);
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp24_ = _tmp23_;
#line 318 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				midori_view_set_uri (_tmp21_, _tmp24_);
#line 314 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_g_object_unref0 (tab);
#line 2625 "notes.c"
			}
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			result = TRUE;
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_g_object_unref0 (browser);
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_g_object_unref0 (note);
#line 320 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			return result;
#line 2635 "notes.c"
		}
#line 309 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (note);
#line 2639 "notes.c"
	}
#line 323 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	result = FALSE;
#line 323 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return result;
#line 2645 "notes.c"
}


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


static void block1_data_unref (void * _userdata_) {
	Block1Data* _data1_;
	_data1_ = (Block1Data*) _userdata_;
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 2663 "notes.c"
		ClipNotesSidebar* self;
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		self = _data1_->self;
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_gtk_tree_path_free0 (_data1_->path);
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (self);
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_slice_free (Block1Data, _data1_);
#line 2673 "notes.c"
	}
}


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


static void block2_data_unref (void * _userdata_) {
	Block2Data* _data2_;
	_data2_ = (Block2Data*) _userdata_;
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
#line 2692 "notes.c"
		ClipNotesSidebar* self;
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		self = _data2_->_data1_->self;
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (_data2_->note);
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		block1_data_unref (_data2_->_data1_);
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_data2_->_data1_ = NULL;
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_slice_free (Block2Data, _data2_);
#line 2704 "notes.c"
	}
}


static void ___lambda5_ (Block2Data* _data2_) {
	Block1Data* _data1_;
	ClipNotesSidebar* self;
	GtkTreeView* _tmp0_ = NULL;
	GtkTreePath* _tmp1_ = NULL;
	GtkTreeView* _tmp2_ = NULL;
	GtkTreeViewColumn* _tmp3_ = NULL;
#line 343 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_data1_ = _data2_->_data1_;
#line 343 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self = _data1_->self;
#line 344 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = self->priv->notes_tree_view;
#line 344 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = _data1_->path;
#line 344 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp2_ = self->priv->notes_tree_view;
#line 344 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp3_ = gtk_tree_view_get_column (_tmp2_, 1);
#line 344 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_tree_view_set_cursor (_tmp0_, _tmp1_, _tmp3_, TRUE);
#line 2730 "notes.c"
}


static void ____lambda5__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 343 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	___lambda5_ (self);
#line 2737 "notes.c"
}


static void ___lambda6_ (Block2Data* _data2_) {
	Block1Data* _data1_;
	ClipNotesSidebar* self;
	GtkClipboard* _tmp0_ = NULL;
	ClipNotesNote* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	const gchar* _tmp3_ = NULL;
#line 354 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_data1_ = _data2_->_data1_;
#line 354 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self = _data1_->self;
#line 355 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = gtk_widget_get_clipboard ((GtkWidget*) self, GDK_SELECTION_CLIPBOARD);
#line 355 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = _data2_->note;
#line 355 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp2_ = clip_notes_note_get_content (_tmp1_);
#line 355 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp3_ = _tmp2_;
#line 355 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_clipboard_set_text (_tmp0_, _tmp3_, -1);
#line 2762 "notes.c"
}


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


static void ___lambda7_ (Block2Data* _data2_) {
	Block1Data* _data1_;
	ClipNotesSidebar* self;
	ClipNotesNote* _tmp0_ = NULL;
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_data1_ = _data2_->_data1_;
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self = _data1_->self;
#line 365 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = _data2_->note;
#line 365 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_note_remove (_tmp0_);
#line 2785 "notes.c"
}


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


static gboolean clip_notes_sidebar_show_popup_menu (ClipNotesSidebar* self, GdkEventButton* event) {
	gboolean result = FALSE;
	Block1Data* _data1_;
	GdkEventButton* _tmp0_ = NULL;
	GdkWindow* _tmp1_ = NULL;
	GtkTreeView* _tmp2_ = NULL;
	GdkWindow* _tmp3_ = NULL;
	GtkTreeView* _tmp4_ = NULL;
	GdkEventButton* _tmp5_ = NULL;
	gdouble _tmp6_ = 0.0;
	GdkEventButton* _tmp7_ = NULL;
	gdouble _tmp8_ = 0.0;
	GtkTreePath* _tmp9_ = NULL;
	GtkTreePath* _tmp10_ = NULL;
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_data1_ = g_slice_new0 (Block1Data);
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_data1_->_ref_count_ = 1;
#line 326 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_data1_->self = g_object_ref (self);
#line 327 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = event;
#line 327 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = (*_tmp0_).window;
#line 327 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp2_ = self->priv->notes_tree_view;
#line 327 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp3_ = gtk_tree_view_get_bin_window (_tmp2_);
#line 327 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_val_if_fail (_tmp1_ == _tmp3_, FALSE);
#line 328 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_data1_->path = NULL;
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp4_ = self->priv->notes_tree_view;
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp5_ = event;
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp6_ = (*_tmp5_).x;
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp7_ = event;
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp8_ = (*_tmp7_).y;
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_tree_view_get_path_at_pos (_tmp4_, (gint) _tmp6_, (gint) _tmp8_, &_tmp9_, NULL, NULL, NULL);
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_gtk_tree_path_free0 (_data1_->path);
#line 329 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_data1_->path = _tmp9_;
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp10_ = _data1_->path;
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (_tmp10_ != NULL) {
#line 2850 "notes.c"
		Block2Data* _data2_;
		GtkTreeIter iter = {0};
		GtkListStore* _tmp11_ = NULL;
		GtkTreePath* _tmp12_ = NULL;
		GtkTreeIter _tmp13_ = {0};
		GtkListStore* _tmp14_ = NULL;
		GtkTreeIter _tmp15_ = {0};
		GtkMenu* menu = NULL;
		GtkMenu* _tmp16_ = NULL;
		GtkImageMenuItem* menuitem = NULL;
		const gchar* _tmp17_ = NULL;
		GtkImageMenuItem* _tmp18_ = NULL;
		GtkImage* image = NULL;
		GtkImage* _tmp19_ = NULL;
		GtkImageMenuItem* _tmp20_ = NULL;
		GtkImageMenuItem* _tmp21_ = NULL;
		GtkImage* _tmp22_ = NULL;
		GtkImageMenuItem* _tmp23_ = NULL;
		GtkMenu* _tmp24_ = NULL;
		GtkImageMenuItem* _tmp25_ = NULL;
		const gchar* _tmp26_ = NULL;
		GtkImageMenuItem* _tmp27_ = NULL;
		GtkImage* _tmp28_ = NULL;
		GtkImageMenuItem* _tmp29_ = NULL;
		GtkImageMenuItem* _tmp30_ = NULL;
		GtkImage* _tmp31_ = NULL;
		GtkImageMenuItem* _tmp32_ = NULL;
		GtkMenu* _tmp33_ = NULL;
		GtkImageMenuItem* _tmp34_ = NULL;
		const gchar* _tmp35_ = NULL;
		GtkImageMenuItem* _tmp36_ = NULL;
		GtkImage* _tmp37_ = NULL;
		GtkImageMenuItem* _tmp38_ = NULL;
		GtkImageMenuItem* _tmp39_ = NULL;
		GtkImage* _tmp40_ = NULL;
		GtkImageMenuItem* _tmp41_ = NULL;
		GtkMenu* _tmp42_ = NULL;
		GtkImageMenuItem* _tmp43_ = NULL;
		GtkMenu* _tmp44_ = NULL;
		GtkTreeView* _tmp45_ = NULL;
		GtkMenu* _tmp46_ = NULL;
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_data2_ = g_slice_new0 (Block2Data);
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_data2_->_ref_count_ = 1;
#line 331 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_data2_->_data1_ = block1_data_ref (_data1_);
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp11_ = clip_notes_notes_list_store;
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp12_ = _data1_->path;
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_tree_model_get_iter ((GtkTreeModel*) _tmp11_, &_tmp13_, _tmp12_);
#line 333 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		iter = _tmp13_;
#line 335 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp14_ = clip_notes_notes_list_store;
#line 335 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp15_ = iter;
#line 335 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_tree_model_get ((GtkTreeModel*) _tmp14_, &_tmp15_, 0, &_data2_->note, -1);
#line 337 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp16_ = (GtkMenu*) gtk_menu_new ();
#line 337 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_object_ref_sink (_tmp16_);
#line 337 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		menu = _tmp16_;
#line 339 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp17_ = _ ("Rename note");
#line 339 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp18_ = (GtkImageMenuItem*) gtk_image_menu_item_new_with_label (_tmp17_);
#line 339 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_object_ref_sink (_tmp18_);
#line 339 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		menuitem = _tmp18_;
#line 340 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp19_ = (GtkImage*) gtk_image_new_from_stock (GTK_STOCK_EDIT, GTK_ICON_SIZE_MENU);
#line 340 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_object_ref_sink (_tmp19_);
#line 340 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		image = _tmp19_;
#line 341 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp20_ = menuitem;
#line 341 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_image_menu_item_set_always_show_image (_tmp20_, TRUE);
#line 342 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp21_ = menuitem;
#line 342 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp22_ = image;
#line 342 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_image_menu_item_set_image (_tmp21_, (GtkWidget*) _tmp22_);
#line 343 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp23_ = menuitem;
#line 343 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_signal_connect_data ((GtkMenuItem*) _tmp23_, "activate", (GCallback) ____lambda5__gtk_menu_item_activate, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
#line 347 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp24_ = menu;
#line 347 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp25_ = menuitem;
#line 347 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_menu_shell_append ((GtkMenuShell*) _tmp24_, (GtkWidget*) ((GtkMenuItem*) _tmp25_));
#line 350 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp26_ = _ ("Copy note to clipboard");
#line 350 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp27_ = (GtkImageMenuItem*) gtk_image_menu_item_new_with_label (_tmp26_);
#line 350 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_object_ref_sink (_tmp27_);
#line 350 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (menuitem);
#line 350 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		menuitem = _tmp27_;
#line 351 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp28_ = (GtkImage*) gtk_image_new_from_stock (GTK_STOCK_COPY, GTK_ICON_SIZE_MENU);
#line 351 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_object_ref_sink (_tmp28_);
#line 351 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (image);
#line 351 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		image = _tmp28_;
#line 352 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp29_ = menuitem;
#line 352 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_image_menu_item_set_always_show_image (_tmp29_, TRUE);
#line 353 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp30_ = menuitem;
#line 353 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp31_ = image;
#line 353 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_image_menu_item_set_image (_tmp30_, (GtkWidget*) _tmp31_);
#line 354 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp32_ = menuitem;
#line 354 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_signal_connect_data ((GtkMenuItem*) _tmp32_, "activate", (GCallback) ____lambda6__gtk_menu_item_activate, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
#line 357 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp33_ = menu;
#line 357 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp34_ = menuitem;
#line 357 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_menu_shell_append ((GtkMenuShell*) _tmp33_, (GtkWidget*) ((GtkMenuItem*) _tmp34_));
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp35_ = _ ("Remove note");
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp36_ = (GtkImageMenuItem*) gtk_image_menu_item_new_with_label (_tmp35_);
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_object_ref_sink (_tmp36_);
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (menuitem);
#line 360 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		menuitem = _tmp36_;
#line 361 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp37_ = (GtkImage*) gtk_image_new_from_stock (GTK_STOCK_DELETE, GTK_ICON_SIZE_MENU);
#line 361 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_object_ref_sink (_tmp37_);
#line 361 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (image);
#line 361 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		image = _tmp37_;
#line 362 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp38_ = menuitem;
#line 362 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_image_menu_item_set_always_show_image (_tmp38_, TRUE);
#line 363 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp39_ = menuitem;
#line 363 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp40_ = image;
#line 363 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_image_menu_item_set_image (_tmp39_, (GtkWidget*) _tmp40_);
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp41_ = menuitem;
#line 364 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_signal_connect_data ((GtkMenuItem*) _tmp41_, "activate", (GCallback) ____lambda7__gtk_menu_item_activate, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
#line 367 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp42_ = menu;
#line 367 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp43_ = menuitem;
#line 367 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_menu_shell_append ((GtkMenuShell*) _tmp42_, (GtkWidget*) ((GtkMenuItem*) _tmp43_));
#line 369 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp44_ = menu;
#line 369 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		gtk_widget_show_all ((GtkWidget*) _tmp44_);
#line 370 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp45_ = self->priv->notes_tree_view;
#line 370 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp46_ = menu;
#line 370 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		katze_widget_popup ((GtkWidget*) _tmp45_, _tmp46_, NULL, KATZE_MENU_POSITION_CURSOR);
#line 371 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		result = TRUE;
#line 371 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (image);
#line 371 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (menuitem);
#line 371 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (menu);
#line 371 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		block2_data_unref (_data2_);
#line 371 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_data2_ = NULL;
#line 371 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		block1_data_unref (_data1_);
#line 371 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_data1_ = NULL;
#line 371 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		return result;
#line 3056 "notes.c"
	}
#line 373 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	result = FALSE;
#line 373 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	block1_data_unref (_data1_);
#line 373 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_data1_ = NULL;
#line 373 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return result;
#line 3066 "notes.c"
}


static void clip_notes_sidebar_class_init (ClipNotesSidebarClass * klass) {
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_sidebar_parent_class = g_type_class_peek_parent (klass);
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_type_class_add_private (klass, sizeof (ClipNotesSidebarPrivate));
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	G_OBJECT_CLASS (klass)->finalize = clip_notes_sidebar_finalize;
#line 3077 "notes.c"
}


static void clip_notes_sidebar_midori_viewable_interface_init (MidoriViewableIface * iface) {
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_sidebar_midori_viewable_parent_iface = g_type_interface_peek_parent (iface);
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	iface->get_stock_id = (const gchar* (*)(MidoriViewable*)) clip_notes_sidebar_real_get_stock_id;
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	iface->get_label = (const gchar* (*)(MidoriViewable*)) clip_notes_sidebar_real_get_label;
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	iface->get_toolbar = (GtkWidget* (*)(MidoriViewable*)) clip_notes_sidebar_real_get_toolbar;
#line 3090 "notes.c"
}


static void clip_notes_sidebar_instance_init (ClipNotesSidebar * self) {
	GtkTextView* _tmp0_ = NULL;
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self->priv = CLIP_NOTES_SIDEBAR_GET_PRIVATE (self);
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self->priv->toolbar = NULL;
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = (GtkTextView*) gtk_text_view_new ();
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_ref_sink (_tmp0_);
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self->priv->note_text_view = _tmp0_;
#line 3106 "notes.c"
}


static void clip_notes_sidebar_finalize (GObject* obj) {
	ClipNotesSidebar * self;
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, CLIP_NOTES_TYPE_SIDEBAR, ClipNotesSidebar);
#line 128 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (self->priv->toolbar);
#line 129 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (self->priv->note_label);
#line 130 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (self->priv->notes_tree_view);
#line 131 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (self->priv->note_text_view);
#line 127 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	G_OBJECT_CLASS (clip_notes_sidebar_parent_class)->finalize (obj);
#line 3124 "notes.c"
}


GType clip_notes_sidebar_get_type (void) {
	static volatile gsize clip_notes_sidebar_type_id__volatile = 0;
	if (g_once_init_enter (&clip_notes_sidebar_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ClipNotesSidebarClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) clip_notes_sidebar_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ClipNotesSidebar), 0, (GInstanceInitFunc) clip_notes_sidebar_instance_init, NULL };
		static const GInterfaceInfo midori_viewable_info = { (GInterfaceInitFunc) clip_notes_sidebar_midori_viewable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType clip_notes_sidebar_type_id;
		clip_notes_sidebar_type_id = g_type_register_static (GTK_TYPE_VBOX, "ClipNotesSidebar", &g_define_type_info, 0);
		g_type_add_interface_static (clip_notes_sidebar_type_id, MIDORI_TYPE_VIEWABLE, &midori_viewable_info);
		g_once_init_leave (&clip_notes_sidebar_type_id__volatile, clip_notes_sidebar_type_id);
	}
	return clip_notes_sidebar_type_id__volatile;
}


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


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


static void _clip_notes_manager_add_menu_items_midori_tab_context_menu (MidoriTab* _sender, WebKitHitTestResult* hit_test_result, MidoriContextAction* menu, gpointer self) {
#line 383 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_manager_add_menu_items ((ClipNotesManager*) self, _sender, hit_test_result, menu);
#line 3161 "notes.c"
}


static void clip_notes_manager_tab_added (ClipNotesManager* self, MidoriBrowser* browser, MidoriTab* tab) {
	MidoriTab* _tmp0_ = NULL;
#line 381 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (self != NULL);
#line 381 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (browser != NULL);
#line 381 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (tab != NULL);
#line 383 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = tab;
#line 383 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_signal_connect_object (_tmp0_, "context-menu", (GCallback) _clip_notes_manager_add_menu_items_midori_tab_context_menu, self, 0);
#line 3177 "notes.c"
}


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


static void block3_data_unref (void * _userdata_) {
	Block3Data* _data3_;
	_data3_ = (Block3Data*) _userdata_;
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) {
#line 3195 "notes.c"
		ClipNotesManager* self;
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		self = _data3_->self;
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (_data3_->view);
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (self);
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_slice_free (Block3Data, _data3_);
#line 3205 "notes.c"
	}
}


static void __lambda8_ (Block3Data* _data3_, GtkAction* action) {
	ClipNotesManager* self;
	MidoriView* _tmp0_ = NULL;
	gboolean _tmp1_ = FALSE;
#line 395 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self = _data3_->self;
#line 395 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (action != NULL);
#line 396 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = _data3_->view;
#line 396 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = midori_view_has_selection (_tmp0_);
#line 396 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (_tmp1_ == TRUE) {
#line 3224 "notes.c"
		gchar* selected_text = NULL;
		MidoriView* _tmp2_ = NULL;
		const gchar* _tmp3_ = NULL;
		gchar* _tmp4_ = NULL;
		gchar* uri = NULL;
		MidoriView* _tmp5_ = NULL;
		const gchar* _tmp6_ = NULL;
		gchar* _tmp7_ = NULL;
		gchar* title = NULL;
		MidoriView* _tmp8_ = NULL;
		const gchar* _tmp9_ = NULL;
		gchar* _tmp10_ = NULL;
		ClipNotesNote* note = NULL;
		ClipNotesNote* _tmp11_ = NULL;
		ClipNotesNote* _tmp12_ = NULL;
		const gchar* _tmp13_ = NULL;
		const gchar* _tmp14_ = NULL;
		const gchar* _tmp15_ = NULL;
#line 398 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp2_ = _data3_->view;
#line 398 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp3_ = midori_view_get_selected_text (_tmp2_);
#line 398 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp4_ = g_strdup (_tmp3_);
#line 398 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		selected_text = _tmp4_;
#line 399 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp5_ = _data3_->view;
#line 399 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp6_ = midori_view_get_display_uri (_tmp5_);
#line 399 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp7_ = g_strdup (_tmp6_);
#line 399 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		uri = _tmp7_;
#line 400 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp8_ = _data3_->view;
#line 400 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp9_ = midori_view_get_display_title (_tmp8_);
#line 400 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp10_ = g_strdup (_tmp9_);
#line 400 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		title = _tmp10_;
#line 401 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp11_ = clip_notes_note_new ();
#line 401 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		note = _tmp11_;
#line 402 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp12_ = note;
#line 402 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp13_ = title;
#line 402 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp14_ = uri;
#line 402 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp15_ = selected_text;
#line 402 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		clip_notes_note_add (_tmp12_, _tmp13_, _tmp14_, _tmp15_);
#line 396 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (note);
#line 396 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_free0 (title);
#line 396 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_free0 (uri);
#line 396 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_free0 (selected_text);
#line 3289 "notes.c"
	}
}


static void ___lambda8__gtk_action_activate (GtkAction* _sender, gpointer self) {
#line 395 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	__lambda8_ (self, _sender);
#line 3297 "notes.c"
}


static void clip_notes_manager_add_menu_items (ClipNotesManager* self, MidoriTab* tab, WebKitHitTestResult* hit_test_result, MidoriContextAction* menu) {
	Block3Data* _data3_;
	WebKitHitTestResult* _tmp0_ = NULL;
	WebKitHitTestResultContext _tmp1_ = 0;
	WebKitHitTestResultContext _tmp2_ = 0;
	MidoriTab* _tmp3_ = NULL;
	MidoriView* _tmp4_ = NULL;
	GtkAction* action = NULL;
	const gchar* _tmp5_ = NULL;
	GtkAction* _tmp6_ = NULL;
	GtkAction* _tmp7_ = NULL;
	MidoriContextAction* _tmp8_ = NULL;
	GtkAction* _tmp9_ = NULL;
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (self != NULL);
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (tab != NULL);
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (hit_test_result != NULL);
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (menu != NULL);
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_data3_ = g_slice_new0 (Block3Data);
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_data3_->_ref_count_ = 1;
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_data3_->self = g_object_ref (self);
#line 389 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = hit_test_result;
#line 389 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_get (_tmp0_, "context", &_tmp1_, NULL);
#line 389 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp2_ = _tmp1_;
#line 389 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if ((_tmp2_ & WEBKIT_HIT_TEST_RESULT_CONTEXT_SELECTION) == 0) {
#line 390 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		block3_data_unref (_data3_);
#line 390 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_data3_ = NULL;
#line 390 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		return;
#line 3342 "notes.c"
	}
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp3_ = tab;
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp4_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, MIDORI_TYPE_VIEW) ? ((MidoriView*) _tmp3_) : NULL);
#line 393 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_data3_->view = _tmp4_;
#line 394 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp5_ = _ ("Copy selection as note");
#line 394 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp6_ = gtk_action_new ("Notes", _tmp5_, NULL, NULL);
#line 394 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	action = _tmp6_;
#line 395 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp7_ = action;
#line 395 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_signal_connect_data (_tmp7_, "activate", (GCallback) ___lambda8__gtk_action_activate, block3_data_ref (_data3_), (GClosureNotify) block3_data_unref, 0);
#line 406 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp8_ = menu;
#line 406 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp9_ = action;
#line 406 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	midori_context_action_add (_tmp8_, _tmp9_);
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (action);
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	block3_data_unref (_data3_);
#line 387 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_data3_ = NULL;
#line 3372 "notes.c"
}


static void _clip_notes_manager_tab_added_midori_browser_add_tab (MidoriBrowser* _sender, MidoriView* tab, gpointer self) {
#line 418 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_manager_tab_added ((ClipNotesManager*) self, _sender, tab);
#line 3379 "notes.c"
}


static void clip_notes_manager_browser_added (ClipNotesManager* self, MidoriBrowser* browser) {
	ClipNotesSidebar* viewable = NULL;
	ClipNotesSidebar* _tmp0_ = NULL;
	ClipNotesSidebar* _tmp1_ = NULL;
	MidoriBrowser* _tmp2_ = NULL;
	MidoriPanel* _tmp3_ = NULL;
	MidoriPanel* _tmp4_ = NULL;
	MidoriPanel* _tmp5_ = NULL;
	ClipNotesSidebar* _tmp6_ = NULL;
	ClipNotesSidebar* _tmp7_ = NULL;
	GtkWidget* _tmp8_ = NULL;
	MidoriBrowser* _tmp9_ = NULL;
	GList* _tmp10_ = NULL;
	MidoriBrowser* _tmp13_ = NULL;
#line 409 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (self != NULL);
#line 409 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (browser != NULL);
#line 410 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = clip_notes_sidebar_new ();
#line 410 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_ref_sink (_tmp0_);
#line 410 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	viewable = _tmp0_;
#line 411 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = viewable;
#line 411 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	gtk_widget_show ((GtkWidget*) _tmp1_);
#line 412 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp2_ = browser;
#line 412 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_object_get (_tmp2_, "panel", &_tmp3_, NULL);
#line 412 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp4_ = _tmp3_;
#line 412 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp5_ = _tmp4_;
#line 412 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp6_ = viewable;
#line 412 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	midori_panel_append_page (_tmp5_, (MidoriViewable*) _tmp6_);
#line 412 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (_tmp5_);
#line 413 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp7_ = viewable;
#line 413 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp8_ = _g_object_ref0 ((GtkWidget*) _tmp7_);
#line 413 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self->widgets = g_list_append (self->widgets, _tmp8_);
#line 415 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp9_ = browser;
#line 415 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp10_ = midori_browser_get_tabs (_tmp9_);
#line 3435 "notes.c"
	{
		GList* tab_collection = NULL;
		GList* tab_it = NULL;
#line 415 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		tab_collection = _tmp10_;
#line 415 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		for (tab_it = tab_collection; tab_it != NULL; tab_it = tab_it->next) {
#line 3443 "notes.c"
			MidoriView* tab = NULL;
#line 415 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			tab = (MidoriView*) tab_it->data;
#line 3447 "notes.c"
			{
				MidoriBrowser* _tmp11_ = NULL;
				MidoriView* _tmp12_ = NULL;
#line 416 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp11_ = browser;
#line 416 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp12_ = tab;
#line 416 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				clip_notes_manager_tab_added (self, _tmp11_, (MidoriTab*) _tmp12_);
#line 3457 "notes.c"
			}
		}
#line 415 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_list_free0 (tab_collection);
#line 3462 "notes.c"
	}
#line 418 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp13_ = browser;
#line 418 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_signal_connect_object (_tmp13_, "add-tab", (GCallback) _clip_notes_manager_tab_added_midori_browser_add_tab, self, 0);
#line 409 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (viewable);
#line 3470 "notes.c"
}


static void _clip_notes_manager_browser_added_midori_app_add_browser (MidoriApp* _sender, MidoriBrowser* browser, gpointer self) {
#line 432 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_manager_browser_added ((ClipNotesManager*) self, browser);
#line 3477 "notes.c"
}


static void clip_notes_manager_activated (ClipNotesManager* self, MidoriApp* app) {
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	gchar* config_path = NULL;
	gchar* _tmp2_ = NULL;
	gchar* db_path = NULL;
	gchar* _tmp3_ = NULL;
	MidoriDatabase* _tmp8_ = NULL;
	sqlite3* _tmp9_ = NULL;
	sqlite3* _tmp10_ = NULL;
	MidoriApp* _tmp11_ = NULL;
	MidoriApp* _tmp12_ = NULL;
	GList* _tmp13_ = NULL;
	GError * _inner_error_ = NULL;
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (self != NULL);
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (app != NULL);
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = midori_extension_get_config_dir ((MidoriExtension*) self);
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = _tmp1_;
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (_tmp0_ == NULL) {
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp0_ = ":memory:";
#line 3507 "notes.c"
	}
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp2_ = g_strdup (_tmp0_);
#line 422 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	config_path = _tmp2_;
#line 423 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp3_ = g_build_path (G_DIR_SEPARATOR_S, config_path, "notes.db", NULL);
#line 423 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	db_path = _tmp3_;
#line 3517 "notes.c"
	{
		MidoriDatabase* _tmp4_ = NULL;
		MidoriDatabase* _tmp5_ = NULL;
		MidoriDatabase* _tmp6_ = NULL;
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp5_ = midori_database_new (db_path, &_inner_error_);
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp4_ = _tmp5_;
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			if (_inner_error_->domain == MIDORI_DATABASE_ERROR) {
#line 3530 "notes.c"
				goto __catch6_midori_database_error;
			}
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_g_free0 (db_path);
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_g_free0 (config_path);
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			g_clear_error (&_inner_error_);
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			return;
#line 3543 "notes.c"
		}
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp6_ = _tmp4_;
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp4_ = NULL;
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (clip_notes_database);
#line 425 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		clip_notes_database = _tmp6_;
#line 424 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_object_unref0 (_tmp4_);
#line 3555 "notes.c"
	}
	goto __finally6;
	__catch6_midori_database_error:
	{
		GError* schema_error = NULL;
		const gchar* _tmp7_ = NULL;
#line 424 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		schema_error = _inner_error_;
#line 424 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_inner_error_ = NULL;
#line 427 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_tmp7_ = schema_error->message;
#line 427 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_error ("notes.vala:427: %s", _tmp7_);
#line 424 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_error_free0 (schema_error);
#line 3572 "notes.c"
	}
	__finally6:
#line 424 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 424 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_free0 (db_path);
#line 424 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_free0 (config_path);
#line 424 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.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 424 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		g_clear_error (&_inner_error_);
#line 424 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		return;
#line 3587 "notes.c"
	}
#line 429 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp8_ = clip_notes_database;
#line 429 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp9_ = midori_database_get_db (_tmp8_);
#line 429 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp10_ = _tmp9_;
#line 429 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_db = _tmp10_;
#line 431 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	__g_list_free__g_object_unref0_0 (self->widgets);
#line 431 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self->widgets = NULL;
#line 432 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp11_ = app;
#line 432 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_signal_connect_object (_tmp11_, "add-browser", (GCallback) _clip_notes_manager_browser_added_midori_app_add_browser, self, 0);
#line 433 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp12_ = app;
#line 433 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp13_ = midori_app_get_browsers (_tmp12_);
#line 3609 "notes.c"
	{
		GList* browser_collection = NULL;
		GList* browser_it = NULL;
#line 433 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		browser_collection = _tmp13_;
#line 433 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		for (browser_it = browser_collection; browser_it != NULL; browser_it = browser_it->next) {
#line 3617 "notes.c"
			MidoriBrowser* browser = NULL;
#line 433 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			browser = (MidoriBrowser*) browser_it->data;
#line 3621 "notes.c"
			{
				MidoriBrowser* _tmp14_ = NULL;
#line 434 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp14_ = browser;
#line 434 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				clip_notes_manager_browser_added (self, _tmp14_);
#line 3628 "notes.c"
			}
		}
#line 433 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		_g_list_free0 (browser_collection);
#line 3633 "notes.c"
	}
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_free0 (db_path);
#line 421 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_free0 (config_path);
#line 3639 "notes.c"
}


static void clip_notes_manager_deactivated (ClipNotesManager* self) {
	MidoriApp* app = NULL;
	MidoriApp* _tmp0_ = NULL;
	MidoriApp* _tmp1_ = NULL;
	MidoriApp* _tmp2_ = NULL;
	guint _tmp3_ = 0U;
	GList* _tmp4_ = NULL;
#line 437 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_return_if_fail (self != NULL);
#line 438 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = midori_extension_get_app ((MidoriExtension*) self);
#line 438 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 438 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	app = _tmp1_;
#line 439 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp2_ = app;
#line 439 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_signal_parse_name ("add-browser", MIDORI_TYPE_APP, &_tmp3_, NULL, FALSE);
#line 439 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_signal_handlers_disconnect_matched (_tmp2_, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp3_, 0, NULL, (GCallback) _clip_notes_manager_browser_added_midori_app_add_browser, self);
#line 440 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp4_ = self->widgets;
#line 3666 "notes.c"
	{
		GList* widget_collection = NULL;
		GList* widget_it = NULL;
#line 440 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		widget_collection = _tmp4_;
#line 440 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
		for (widget_it = widget_collection; widget_it != NULL; widget_it = widget_it->next) {
#line 3674 "notes.c"
			GtkWidget* _tmp5_ = NULL;
			GtkWidget* widget = NULL;
#line 440 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			_tmp5_ = _g_object_ref0 ((GtkWidget*) widget_it->data);
#line 440 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
			widget = _tmp5_;
#line 3681 "notes.c"
			{
				GtkWidget* _tmp6_ = NULL;
#line 441 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_tmp6_ = widget;
#line 441 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				gtk_object_destroy ((GtkObject*) _tmp6_);
#line 440 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
				_g_object_unref0 (widget);
#line 3690 "notes.c"
			}
		}
	}
#line 437 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_g_object_unref0 (app);
#line 3696 "notes.c"
}


static void _clip_notes_manager_activated_midori_extension_activate (MidoriExtension* _sender, MidoriApp* app, gpointer self) {
#line 450 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_manager_activated ((ClipNotesManager*) self, app);
#line 3703 "notes.c"
}


static void _clip_notes_manager_deactivated_midori_extension_deactivate (MidoriExtension* _sender, gpointer self) {
#line 451 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_manager_deactivated ((ClipNotesManager*) self);
#line 3710 "notes.c"
}


ClipNotesManager* clip_notes_manager_construct (GType object_type) {
	ClipNotesManager * self = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
#line 445 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = _ ("Notes");
#line 445 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp1_ = _ ("Save text clips from websites as notes");
#line 445 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self = (ClipNotesManager*) g_object_new (object_type, "name", _tmp0_, "description", _tmp1_, "version", "0.1" MIDORI_VERSION_SUFFIX, "authors", "Paweł Forysiuk", NULL);
#line 450 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_signal_connect_object ((MidoriExtension*) self, "activate", (GCallback) _clip_notes_manager_activated_midori_extension_activate, self, 0);
#line 451 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	g_signal_connect_object ((MidoriExtension*) self, "deactivate", (GCallback) _clip_notes_manager_deactivated_midori_extension_deactivate, self, 0);
#line 444 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return self;
#line 3730 "notes.c"
}


ClipNotesManager* clip_notes_manager_new (void) {
#line 444 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return clip_notes_manager_construct (CLIP_NOTES_TYPE_MANAGER);
#line 3737 "notes.c"
}


static void clip_notes_manager_class_init (ClipNotesManagerClass * klass) {
#line 378 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	clip_notes_manager_parent_class = g_type_class_peek_parent (klass);
#line 378 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	G_OBJECT_CLASS (klass)->finalize = clip_notes_manager_finalize;
#line 3746 "notes.c"
}


static void clip_notes_manager_instance_init (ClipNotesManager * self) {
}


static void clip_notes_manager_finalize (GObject* obj) {
	ClipNotesManager * self;
#line 378 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, CLIP_NOTES_TYPE_MANAGER, ClipNotesManager);
#line 379 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	__g_list_free__g_object_unref0_0 (self->widgets);
#line 378 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	G_OBJECT_CLASS (clip_notes_manager_parent_class)->finalize (obj);
#line 3762 "notes.c"
}


GType clip_notes_manager_get_type (void) {
	static volatile gsize clip_notes_manager_type_id__volatile = 0;
	if (g_once_init_enter (&clip_notes_manager_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ClipNotesManagerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) clip_notes_manager_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ClipNotesManager), 0, (GInstanceInitFunc) clip_notes_manager_instance_init, NULL };
		GType clip_notes_manager_type_id;
		clip_notes_manager_type_id = g_type_register_static (MIDORI_TYPE_EXTENSION, "ClipNotesManager", &g_define_type_info, 0);
		g_once_init_leave (&clip_notes_manager_type_id__volatile, clip_notes_manager_type_id);
	}
	return clip_notes_manager_type_id__volatile;
}


MidoriExtension* extension_init (void) {
	MidoriExtension* result = NULL;
	ClipNotesManager* _tmp0_ = NULL;
#line 458 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	_tmp0_ = clip_notes_manager_new ();
#line 458 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	result = (MidoriExtension*) _tmp0_;
#line 458 "/usr/src/ports/midori/midori-0.5.10-1.i686/src/extensions/notes.vala"
	return result;
#line 3787 "notes.c"
}



