/* score-dialog.c generated by valac 0.34.0.4-5c9b2, the Vala compiler
 * generated from score-dialog.vala, do not modify */

/* -*- Mode: vala; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 *
 * Copyright (C) 2010-2013 Robert Ancell
 *
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 2 of the License, or (at your option) any later
 * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
 * license.
 */

#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>
#include <glib/gi18n-lib.h>
#include <stdlib.h>
#include <string.h>
#include <pango/pango.h>
#include <float.h>
#include <math.h>


#define TYPE_SCORE_DIALOG (score_dialog_get_type ())
#define SCORE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_SCORE_DIALOG, ScoreDialog))
#define SCORE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_SCORE_DIALOG, ScoreDialogClass))
#define IS_SCORE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_SCORE_DIALOG))
#define IS_SCORE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_SCORE_DIALOG))
#define SCORE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_SCORE_DIALOG, ScoreDialogClass))

typedef struct _ScoreDialog ScoreDialog;
typedef struct _ScoreDialogClass ScoreDialogClass;
typedef struct _ScoreDialogPrivate ScoreDialogPrivate;

#define TYPE_HISTORY (history_get_type ())
#define HISTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HISTORY, History))
#define HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HISTORY, HistoryClass))
#define IS_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HISTORY))
#define IS_HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HISTORY))
#define HISTORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HISTORY, HistoryClass))

typedef struct _History History;
typedef struct _HistoryClass HistoryClass;

#define TYPE_HISTORY_ENTRY (history_entry_get_type ())
#define HISTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_HISTORY_ENTRY, HistoryEntry))
#define HISTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_HISTORY_ENTRY, HistoryEntryClass))
#define IS_HISTORY_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_HISTORY_ENTRY))
#define IS_HISTORY_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_HISTORY_ENTRY))
#define HISTORY_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_HISTORY_ENTRY, HistoryEntryClass))

typedef struct _HistoryEntry HistoryEntry;
typedef struct _HistoryEntryClass HistoryEntryClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _HistoryPrivate HistoryPrivate;
typedef struct _HistoryEntryPrivate HistoryEntryPrivate;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _gtk_tree_path_free0(var) ((var == NULL) ? NULL : (var = (gtk_tree_path_free (var), NULL)))
#define _g_list_free0(var) ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))

struct _ScoreDialog {
	GtkDialog parent_instance;
	ScoreDialogPrivate * priv;
};

struct _ScoreDialogClass {
	GtkDialogClass parent_class;
};

struct _ScoreDialogPrivate {
	History* history;
	HistoryEntry* selected_entry;
	GtkListStore* size_model;
	GtkListStore* score_model;
	GtkComboBox* size_combo;
	GtkTreeView* scores;
};

struct _History {
	GObject parent_instance;
	HistoryPrivate * priv;
	gchar* filename;
	GList* entries;
};

struct _HistoryClass {
	GObjectClass parent_class;
};

struct _HistoryEntry {
	GObject parent_instance;
	HistoryEntryPrivate * priv;
	GDateTime* date;
	guint size;
	guint duration;
};

struct _HistoryEntryClass {
	GObjectClass parent_class;
};


static gpointer score_dialog_parent_class = NULL;

GType score_dialog_get_type (void) G_GNUC_CONST;
GType history_get_type (void) G_GNUC_CONST;
GType history_entry_get_type (void) G_GNUC_CONST;
#define SCORE_DIALOG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_SCORE_DIALOG, ScoreDialogPrivate))
enum  {
	SCORE_DIALOG_DUMMY_PROPERTY
};
ScoreDialog* score_dialog_new (History* history, HistoryEntry* selected_entry, gboolean show_quit);
ScoreDialog* score_dialog_construct (GType object_type, History* history, HistoryEntry* selected_entry, gboolean show_quit);
static void score_dialog_entry_added_cb (ScoreDialog* self, HistoryEntry* entry);
static void _score_dialog_entry_added_cb_history_entry_added (History* _sender, HistoryEntry* entry, gpointer self);
static void score_dialog_size_changed_cb (ScoreDialog* self, GtkComboBox* combo);
static void _score_dialog_size_changed_cb_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self);
void score_dialog_set_size (ScoreDialog* self, guint size);
static gint score_dialog_compare_entries (HistoryEntry* a, HistoryEntry* b);
static gint _score_dialog_compare_entries_gcompare_func (gconstpointer a, gconstpointer b);
static void score_dialog_finalize (GObject* obj);


static gpointer _g_object_ref0 (gpointer self) {
#line 23 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	return self ? g_object_ref (self) : NULL;
#line 130 "score-dialog.c"
}


static void _score_dialog_entry_added_cb_history_entry_added (History* _sender, HistoryEntry* entry, gpointer self) {
#line 24 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	score_dialog_entry_added_cb ((ScoreDialog*) self, entry);
#line 137 "score-dialog.c"
}


static void _score_dialog_size_changed_cb_gtk_combo_box_changed (GtkComboBox* _sender, gpointer self) {
#line 52 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	score_dialog_size_changed_cb ((ScoreDialog*) self, _sender);
#line 144 "score-dialog.c"
}


ScoreDialog* score_dialog_construct (GType object_type, History* history, HistoryEntry* selected_entry, gboolean show_quit) {
	ScoreDialog * self = NULL;
	History* _tmp0_ = NULL;
	History* _tmp1_ = NULL;
	History* _tmp2_ = NULL;
	HistoryEntry* _tmp3_ = NULL;
	HistoryEntry* _tmp4_ = NULL;
	gboolean _tmp5_ = FALSE;
	GtkBox* vbox = NULL;
	GtkBox* _tmp9_ = NULL;
	GtkBox* _tmp10_ = NULL;
	GtkBox* _tmp11_ = NULL;
	GtkBox* _tmp12_ = NULL;
	GtkBox* _tmp13_ = NULL;
	GtkBox* hbox = NULL;
	GtkBox* _tmp14_ = NULL;
	GtkBox* _tmp15_ = NULL;
	GtkBox* _tmp16_ = NULL;
	GtkBox* _tmp17_ = NULL;
	GtkLabel* label = NULL;
	const gchar* _tmp18_ = NULL;
	GtkLabel* _tmp19_ = NULL;
	GtkLabel* _tmp20_ = NULL;
	GtkBox* _tmp21_ = NULL;
	GtkLabel* _tmp22_ = NULL;
	GtkListStore* _tmp23_ = NULL;
	GtkComboBox* _tmp24_ = NULL;
	GtkComboBox* _tmp25_ = NULL;
	GtkComboBox* _tmp26_ = NULL;
	GtkListStore* _tmp27_ = NULL;
	GtkCellRendererText* renderer = NULL;
	GtkCellRendererText* _tmp28_ = NULL;
	GtkComboBox* _tmp29_ = NULL;
	GtkCellRendererText* _tmp30_ = NULL;
	GtkComboBox* _tmp31_ = NULL;
	GtkCellRendererText* _tmp32_ = NULL;
	GtkComboBox* _tmp33_ = NULL;
	GtkBox* _tmp34_ = NULL;
	GtkComboBox* _tmp35_ = NULL;
	GtkScrolledWindow* scroll = NULL;
	GtkScrolledWindow* _tmp36_ = NULL;
	GtkScrolledWindow* _tmp37_ = NULL;
	GtkScrolledWindow* _tmp38_ = NULL;
	GtkScrolledWindow* _tmp39_ = NULL;
	GtkBox* _tmp40_ = NULL;
	GtkScrolledWindow* _tmp41_ = NULL;
	GtkListStore* _tmp42_ = NULL;
	GtkTreeView* _tmp43_ = NULL;
	GtkCellRendererText* _tmp44_ = NULL;
	GtkTreeView* _tmp45_ = NULL;
	const gchar* _tmp46_ = NULL;
	GtkCellRendererText* _tmp47_ = NULL;
	GtkCellRendererText* _tmp48_ = NULL;
	GtkCellRendererText* _tmp49_ = NULL;
	GtkTreeView* _tmp50_ = NULL;
	const gchar* _tmp51_ = NULL;
	GtkCellRendererText* _tmp52_ = NULL;
	GtkTreeView* _tmp53_ = NULL;
	GtkListStore* _tmp54_ = NULL;
	GtkTreeView* _tmp55_ = NULL;
	GtkScrolledWindow* _tmp56_ = NULL;
	GtkTreeView* _tmp57_ = NULL;
	History* _tmp58_ = NULL;
	GList* _tmp59_ = NULL;
#line 21 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_return_val_if_fail (history != NULL, NULL);
#line 21 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	self = (ScoreDialog*) g_object_new (object_type, NULL);
#line 23 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp0_ = history;
#line 23 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 23 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_g_object_unref0 (self->priv->history);
#line 23 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	self->priv->history = _tmp1_;
#line 24 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp2_ = history;
#line 24 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_signal_connect_object (_tmp2_, "entry-added", (GCallback) _score_dialog_entry_added_cb_history_entry_added, self, 0);
#line 25 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp3_ = selected_entry;
#line 25 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 25 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_g_object_unref0 (self->priv->selected_entry);
#line 25 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	self->priv->selected_entry = _tmp4_;
#line 27 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp5_ = show_quit;
#line 27 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	if (_tmp5_) {
#line 240 "score-dialog.c"
		const gchar* _tmp6_ = NULL;
		const gchar* _tmp7_ = NULL;
#line 29 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp6_ = _ ("Quit");
#line 29 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		gtk_dialog_add_button ((GtkDialog*) self, _tmp6_, (gint) GTK_RESPONSE_CLOSE);
#line 30 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp7_ = _ ("New Game");
#line 30 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		gtk_dialog_add_button ((GtkDialog*) self, _tmp7_, (gint) GTK_RESPONSE_OK);
#line 251 "score-dialog.c"
	} else {
		const gchar* _tmp8_ = NULL;
#line 33 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp8_ = _ ("OK");
#line 33 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		gtk_dialog_add_button ((GtkDialog*) self, _tmp8_, (gint) GTK_RESPONSE_DELETE_EVENT);
#line 258 "score-dialog.c"
	}
#line 34 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_widget_set_size_request ((GtkWidget*) self, 200, 300);
#line 36 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp9_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
#line 36 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_object_ref_sink (_tmp9_);
#line 36 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	vbox = _tmp9_;
#line 37 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp10_ = vbox;
#line 37 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_container_set_border_width ((GtkContainer*) _tmp10_, (guint) 6);
#line 38 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp11_ = vbox;
#line 38 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_widget_show ((GtkWidget*) _tmp11_);
#line 39 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp12_ = (GtkBox*) gtk_dialog_get_content_area ((GtkDialog*) self);
#line 39 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp13_ = vbox;
#line 39 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_box_pack_start (_tmp12_, (GtkWidget*) _tmp13_, TRUE, TRUE, (guint) 0);
#line 41 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp14_ = (GtkBox*) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
#line 41 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_object_ref_sink (_tmp14_);
#line 41 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	hbox = _tmp14_;
#line 42 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp15_ = hbox;
#line 42 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_widget_show ((GtkWidget*) _tmp15_);
#line 43 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp16_ = vbox;
#line 43 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp17_ = hbox;
#line 43 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_box_pack_start (_tmp16_, (GtkWidget*) _tmp17_, FALSE, FALSE, (guint) 0);
#line 45 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp18_ = _ ("Size:");
#line 45 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp19_ = (GtkLabel*) gtk_label_new (_tmp18_);
#line 45 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_object_ref_sink (_tmp19_);
#line 45 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	label = _tmp19_;
#line 46 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp20_ = label;
#line 46 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_widget_show ((GtkWidget*) _tmp20_);
#line 47 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp21_ = hbox;
#line 47 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp22_ = label;
#line 47 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_box_pack_start (_tmp21_, (GtkWidget*) _tmp22_, FALSE, FALSE, (guint) 0);
#line 49 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp23_ = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_INT, -1);
#line 49 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_g_object_unref0 (self->priv->size_model);
#line 49 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	self->priv->size_model = _tmp23_;
#line 51 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp24_ = (GtkComboBox*) gtk_combo_box_new ();
#line 51 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_object_ref_sink (_tmp24_);
#line 51 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_g_object_unref0 (self->priv->size_combo);
#line 51 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	self->priv->size_combo = _tmp24_;
#line 52 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp25_ = self->priv->size_combo;
#line 52 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_signal_connect_object (_tmp25_, "changed", (GCallback) _score_dialog_size_changed_cb_gtk_combo_box_changed, self, 0);
#line 53 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp26_ = self->priv->size_combo;
#line 53 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp27_ = self->priv->size_model;
#line 53 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_combo_box_set_model (_tmp26_, (GtkTreeModel*) _tmp27_);
#line 54 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp28_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
#line 54 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_object_ref_sink (_tmp28_);
#line 54 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	renderer = _tmp28_;
#line 55 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp29_ = self->priv->size_combo;
#line 55 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp30_ = renderer;
#line 55 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_cell_layout_pack_start ((GtkCellLayout*) _tmp29_, (GtkCellRenderer*) _tmp30_, TRUE);
#line 56 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp31_ = self->priv->size_combo;
#line 56 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp32_ = renderer;
#line 56 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_cell_layout_add_attribute ((GtkCellLayout*) _tmp31_, (GtkCellRenderer*) _tmp32_, "text", 0);
#line 57 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp33_ = self->priv->size_combo;
#line 57 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_widget_show ((GtkWidget*) _tmp33_);
#line 58 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp34_ = hbox;
#line 58 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp35_ = self->priv->size_combo;
#line 58 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_box_pack_start (_tmp34_, (GtkWidget*) _tmp35_, TRUE, TRUE, (guint) 0);
#line 60 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp36_ = (GtkScrolledWindow*) gtk_scrolled_window_new (NULL, NULL);
#line 60 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_object_ref_sink (_tmp36_);
#line 60 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	scroll = _tmp36_;
#line 61 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp37_ = scroll;
#line 61 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_scrolled_window_set_shadow_type (_tmp37_, GTK_SHADOW_ETCHED_IN);
#line 62 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp38_ = scroll;
#line 62 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_scrolled_window_set_policy (_tmp38_, GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
#line 63 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp39_ = scroll;
#line 63 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_widget_show ((GtkWidget*) _tmp39_);
#line 64 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp40_ = vbox;
#line 64 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp41_ = scroll;
#line 64 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_box_pack_start (_tmp40_, (GtkWidget*) _tmp41_, TRUE, TRUE, (guint) 0);
#line 66 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp42_ = gtk_list_store_new (3, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT, -1);
#line 66 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_g_object_unref0 (self->priv->score_model);
#line 66 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	self->priv->score_model = _tmp42_;
#line 68 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp43_ = (GtkTreeView*) gtk_tree_view_new ();
#line 68 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_object_ref_sink (_tmp43_);
#line 68 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_g_object_unref0 (self->priv->scores);
#line 68 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	self->priv->scores = _tmp43_;
#line 69 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp44_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
#line 69 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_object_ref_sink (_tmp44_);
#line 69 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_g_object_unref0 (renderer);
#line 69 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	renderer = _tmp44_;
#line 70 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp45_ = self->priv->scores;
#line 70 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp46_ = _ ("Date");
#line 70 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp47_ = renderer;
#line 70 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_tree_view_insert_column_with_attributes (_tmp45_, -1, _tmp46_, (GtkCellRenderer*) _tmp47_, "text", 0, "weight", 2, NULL);
#line 71 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp48_ = (GtkCellRendererText*) gtk_cell_renderer_text_new ();
#line 71 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_object_ref_sink (_tmp48_);
#line 71 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_g_object_unref0 (renderer);
#line 71 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	renderer = _tmp48_;
#line 72 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp49_ = renderer;
#line 72 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_object_set ((GtkCellRenderer*) _tmp49_, "xalign", 1.0f, NULL);
#line 73 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp50_ = self->priv->scores;
#line 73 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp51_ = _ ("Time");
#line 73 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp52_ = renderer;
#line 73 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_tree_view_insert_column_with_attributes (_tmp50_, -1, _tmp51_, (GtkCellRenderer*) _tmp52_, "text", 1, "weight", 2, NULL);
#line 74 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp53_ = self->priv->scores;
#line 74 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp54_ = self->priv->score_model;
#line 74 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_tree_view_set_model (_tmp53_, (GtkTreeModel*) _tmp54_);
#line 75 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp55_ = self->priv->scores;
#line 75 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_widget_show ((GtkWidget*) _tmp55_);
#line 76 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp56_ = scroll;
#line 76 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp57_ = self->priv->scores;
#line 76 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_container_add ((GtkContainer*) _tmp56_, (GtkWidget*) _tmp57_);
#line 78 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp58_ = history;
#line 78 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp59_ = _tmp58_->entries;
#line 462 "score-dialog.c"
	{
		GList* entry_collection = NULL;
		GList* entry_it = NULL;
#line 78 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		entry_collection = _tmp59_;
#line 78 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		for (entry_it = entry_collection; entry_it != NULL; entry_it = entry_it->next) {
#line 470 "score-dialog.c"
			HistoryEntry* _tmp60_ = NULL;
			HistoryEntry* entry = NULL;
#line 78 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
			_tmp60_ = _g_object_ref0 ((HistoryEntry*) entry_it->data);
#line 78 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
			entry = _tmp60_;
#line 477 "score-dialog.c"
			{
				HistoryEntry* _tmp61_ = NULL;
#line 79 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp61_ = entry;
#line 79 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				score_dialog_entry_added_cb (self, _tmp61_);
#line 78 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_g_object_unref0 (entry);
#line 486 "score-dialog.c"
			}
		}
	}
#line 21 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_g_object_unref0 (scroll);
#line 21 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_g_object_unref0 (renderer);
#line 21 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_g_object_unref0 (label);
#line 21 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_g_object_unref0 (hbox);
#line 21 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_g_object_unref0 (vbox);
#line 21 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	return self;
#line 502 "score-dialog.c"
}


ScoreDialog* score_dialog_new (History* history, HistoryEntry* selected_entry, gboolean show_quit) {
#line 21 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	return score_dialog_construct (TYPE_SCORE_DIALOG, history, selected_entry, show_quit);
#line 509 "score-dialog.c"
}


static gint _score_dialog_compare_entries_gcompare_func (gconstpointer a, gconstpointer b) {
	gint result;
	result = score_dialog_compare_entries ((HistoryEntry*) a, (HistoryEntry*) b);
#line 87 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	return result;
#line 518 "score-dialog.c"
}


void score_dialog_set_size (ScoreDialog* self, guint size) {
	GtkListStore* _tmp0_ = NULL;
	GList* entries = NULL;
	History* _tmp1_ = NULL;
	GList* _tmp2_ = NULL;
	GList* _tmp3_ = NULL;
	GList* _tmp4_ = NULL;
#line 82 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_return_if_fail (self != NULL);
#line 84 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp0_ = self->priv->score_model;
#line 84 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_list_store_clear (_tmp0_);
#line 86 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp1_ = self->priv->history;
#line 86 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp2_ = _tmp1_->entries;
#line 86 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp3_ = g_list_copy (_tmp2_);
#line 86 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	entries = _tmp3_;
#line 87 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	entries = g_list_sort (entries, _score_dialog_compare_entries_gcompare_func);
#line 89 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp4_ = entries;
#line 547 "score-dialog.c"
	{
		GList* entry_collection = NULL;
		GList* entry_it = NULL;
#line 89 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		entry_collection = _tmp4_;
#line 89 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		for (entry_it = entry_collection; entry_it != NULL; entry_it = entry_it->next) {
#line 555 "score-dialog.c"
			HistoryEntry* entry = NULL;
#line 89 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
			entry = (HistoryEntry*) entry_it->data;
#line 559 "score-dialog.c"
			{
				HistoryEntry* _tmp5_ = NULL;
				guint _tmp6_ = 0U;
				guint _tmp7_ = 0U;
				gchar* date_label = NULL;
				HistoryEntry* _tmp8_ = NULL;
				GDateTime* _tmp9_ = NULL;
				gchar* _tmp10_ = NULL;
				gchar* time_label = NULL;
				HistoryEntry* _tmp11_ = NULL;
				guint _tmp12_ = 0U;
				gchar* _tmp13_ = NULL;
				HistoryEntry* _tmp14_ = NULL;
				guint _tmp15_ = 0U;
				gint weight = 0;
				HistoryEntry* _tmp21_ = NULL;
				HistoryEntry* _tmp22_ = NULL;
				GtkTreeIter iter = {0};
				GtkListStore* _tmp23_ = NULL;
				GtkTreeIter _tmp24_ = {0};
				GtkListStore* _tmp25_ = NULL;
				GtkTreeIter _tmp26_ = {0};
				const gchar* _tmp27_ = NULL;
				const gchar* _tmp28_ = NULL;
				gint _tmp29_ = 0;
				HistoryEntry* _tmp30_ = NULL;
				HistoryEntry* _tmp31_ = NULL;
#line 91 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp5_ = entry;
#line 91 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp6_ = _tmp5_->size;
#line 91 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp7_ = size;
#line 91 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				if (_tmp6_ != _tmp7_) {
#line 92 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					continue;
#line 597 "score-dialog.c"
				}
#line 94 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp8_ = entry;
#line 94 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp9_ = _tmp8_->date;
#line 94 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp10_ = g_date_time_format (_tmp9_, "%d/%m/%Y");
#line 94 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				date_label = _tmp10_;
#line 96 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp11_ = entry;
#line 96 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp12_ = _tmp11_->duration;
#line 96 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp13_ = g_strdup_printf ("%us", _tmp12_);
#line 96 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				time_label = _tmp13_;
#line 97 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp14_ = entry;
#line 97 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp15_ = _tmp14_->duration;
#line 97 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				if (_tmp15_ >= ((guint) 60)) {
#line 621 "score-dialog.c"
					HistoryEntry* _tmp16_ = NULL;
					guint _tmp17_ = 0U;
					HistoryEntry* _tmp18_ = NULL;
					guint _tmp19_ = 0U;
					gchar* _tmp20_ = NULL;
#line 98 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					_tmp16_ = entry;
#line 98 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					_tmp17_ = _tmp16_->duration;
#line 98 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					_tmp18_ = entry;
#line 98 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					_tmp19_ = _tmp18_->duration;
#line 98 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					_tmp20_ = g_strdup_printf ("%um %us", _tmp17_ / 60, _tmp19_ % 60);
#line 98 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					_g_free0 (time_label);
#line 98 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					time_label = _tmp20_;
#line 641 "score-dialog.c"
				}
#line 100 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				weight = (gint) PANGO_WEIGHT_NORMAL;
#line 101 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp21_ = entry;
#line 101 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp22_ = self->priv->selected_entry;
#line 101 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				if (_tmp21_ == _tmp22_) {
#line 102 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					weight = (gint) PANGO_WEIGHT_BOLD;
#line 653 "score-dialog.c"
				}
#line 105 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp23_ = self->priv->score_model;
#line 105 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				gtk_list_store_append (_tmp23_, &_tmp24_);
#line 105 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				iter = _tmp24_;
#line 106 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp25_ = self->priv->score_model;
#line 106 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp26_ = iter;
#line 106 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp27_ = date_label;
#line 106 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp28_ = time_label;
#line 106 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp29_ = weight;
#line 106 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				gtk_list_store_set (_tmp25_, &_tmp26_, 0, _tmp27_, 1, _tmp28_, 2, _tmp29_, -1);
#line 108 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp30_ = entry;
#line 108 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp31_ = self->priv->selected_entry;
#line 108 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				if (_tmp30_ == _tmp31_) {
#line 679 "score-dialog.c"
					GtkTreeIter piter = {0};
					GtkTreeIter _tmp32_ = {0};
					GtkListStore* _tmp33_ = NULL;
					gboolean _tmp34_ = FALSE;
					GtkTreeView* _tmp40_ = NULL;
					GtkListStore* _tmp41_ = NULL;
					GtkTreeIter _tmp42_ = {0};
					GtkTreePath* _tmp43_ = NULL;
					GtkTreePath* _tmp44_ = NULL;
#line 110 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					_tmp32_ = iter;
#line 110 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					piter = _tmp32_;
#line 111 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					_tmp33_ = self->priv->score_model;
#line 111 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					_tmp34_ = gtk_tree_model_iter_previous ((GtkTreeModel*) _tmp33_, &piter);
#line 111 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					if (_tmp34_) {
#line 699 "score-dialog.c"
						GtkTreeIter ppiter = {0};
						GtkTreeIter _tmp35_ = {0};
						GtkListStore* _tmp36_ = NULL;
						gboolean _tmp37_ = FALSE;
#line 113 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
						_tmp35_ = piter;
#line 113 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
						ppiter = _tmp35_;
#line 114 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
						_tmp36_ = self->priv->score_model;
#line 114 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
						_tmp37_ = gtk_tree_model_iter_previous ((GtkTreeModel*) _tmp36_, &ppiter);
#line 114 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
						if (_tmp37_) {
#line 714 "score-dialog.c"
							GtkTreeIter _tmp38_ = {0};
#line 115 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
							_tmp38_ = ppiter;
#line 115 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
							piter = _tmp38_;
#line 720 "score-dialog.c"
						}
					} else {
						GtkTreeIter _tmp39_ = {0};
#line 118 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
						_tmp39_ = iter;
#line 118 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
						piter = _tmp39_;
#line 728 "score-dialog.c"
					}
#line 119 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					_tmp40_ = self->priv->scores;
#line 119 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					_tmp41_ = self->priv->score_model;
#line 119 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					_tmp42_ = piter;
#line 119 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					_tmp43_ = gtk_tree_model_get_path ((GtkTreeModel*) _tmp41_, &_tmp42_);
#line 119 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					_tmp44_ = _tmp43_;
#line 119 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					gtk_tree_view_scroll_to_cell (_tmp40_, _tmp44_, NULL, FALSE, (gfloat) 0, (gfloat) 0);
#line 119 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					_gtk_tree_path_free0 (_tmp44_);
#line 744 "score-dialog.c"
				}
#line 89 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_g_free0 (time_label);
#line 89 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_g_free0 (date_label);
#line 750 "score-dialog.c"
			}
		}
	}
#line 82 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_g_list_free0 (entries);
#line 756 "score-dialog.c"
}


static gint score_dialog_compare_entries (HistoryEntry* a, HistoryEntry* b) {
	gint result = 0;
	HistoryEntry* _tmp0_ = NULL;
	guint _tmp1_ = 0U;
	HistoryEntry* _tmp2_ = NULL;
	guint _tmp3_ = 0U;
	HistoryEntry* _tmp8_ = NULL;
	guint _tmp9_ = 0U;
	HistoryEntry* _tmp10_ = NULL;
	guint _tmp11_ = 0U;
	HistoryEntry* _tmp16_ = NULL;
	GDateTime* _tmp17_ = NULL;
	HistoryEntry* _tmp18_ = NULL;
	GDateTime* _tmp19_ = NULL;
	gint _tmp20_ = 0;
#line 124 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_return_val_if_fail (a != NULL, 0);
#line 124 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_return_val_if_fail (b != NULL, 0);
#line 126 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp0_ = a;
#line 126 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp1_ = _tmp0_->size;
#line 126 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp2_ = b;
#line 126 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp3_ = _tmp2_->size;
#line 126 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	if (_tmp1_ != _tmp3_) {
#line 789 "score-dialog.c"
		HistoryEntry* _tmp4_ = NULL;
		guint _tmp5_ = 0U;
		HistoryEntry* _tmp6_ = NULL;
		guint _tmp7_ = 0U;
#line 127 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp4_ = a;
#line 127 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp5_ = _tmp4_->size;
#line 127 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp6_ = b;
#line 127 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp7_ = _tmp6_->size;
#line 127 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		result = ((gint) _tmp5_) - ((gint) _tmp7_);
#line 127 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		return result;
#line 806 "score-dialog.c"
	}
#line 128 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp8_ = a;
#line 128 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp9_ = _tmp8_->duration;
#line 128 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp10_ = b;
#line 128 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp11_ = _tmp10_->duration;
#line 128 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	if (_tmp9_ != _tmp11_) {
#line 818 "score-dialog.c"
		HistoryEntry* _tmp12_ = NULL;
		guint _tmp13_ = 0U;
		HistoryEntry* _tmp14_ = NULL;
		guint _tmp15_ = 0U;
#line 129 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp12_ = a;
#line 129 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp13_ = _tmp12_->duration;
#line 129 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp14_ = b;
#line 129 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp15_ = _tmp14_->duration;
#line 129 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		result = ((gint) _tmp13_) - ((gint) _tmp15_);
#line 129 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		return result;
#line 835 "score-dialog.c"
	}
#line 130 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp16_ = a;
#line 130 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp17_ = _tmp16_->date;
#line 130 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp18_ = b;
#line 130 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp19_ = _tmp18_->date;
#line 130 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp20_ = g_date_time_compare (_tmp17_, _tmp19_);
#line 130 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	result = _tmp20_;
#line 130 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	return result;
#line 851 "score-dialog.c"
}


static void score_dialog_size_changed_cb (ScoreDialog* self, GtkComboBox* combo) {
	GtkTreeIter iter = {0};
	GtkComboBox* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	gboolean _tmp2_ = FALSE;
	gint size = 0;
	GtkComboBox* _tmp3_ = NULL;
	GtkTreeModel* _tmp4_ = NULL;
	GtkTreeModel* _tmp5_ = NULL;
	GtkTreeIter _tmp6_ = {0};
	gint _tmp7_ = 0;
#line 133 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_return_if_fail (self != NULL);
#line 133 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_return_if_fail (combo != NULL);
#line 136 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp0_ = combo;
#line 136 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp2_ = gtk_combo_box_get_active_iter (_tmp0_, &_tmp1_);
#line 136 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	iter = _tmp1_;
#line 136 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	if (!_tmp2_) {
#line 137 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		return;
#line 880 "score-dialog.c"
	}
#line 140 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp3_ = combo;
#line 140 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp4_ = gtk_combo_box_get_model (_tmp3_);
#line 140 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp5_ = _tmp4_;
#line 140 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp6_ = iter;
#line 140 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	gtk_tree_model_get (_tmp5_, &_tmp6_, 1, &size, -1);
#line 141 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp7_ = size;
#line 141 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	score_dialog_set_size (self, (guint) _tmp7_);
#line 896 "score-dialog.c"
}


static void score_dialog_entry_added_cb (ScoreDialog* self, HistoryEntry* entry) {
	GtkTreeIter iter = {0};
	gboolean have_size_entry = FALSE;
	GtkListStore* _tmp0_ = NULL;
	GtkTreeIter _tmp1_ = {0};
	gboolean _tmp2_ = FALSE;
	gboolean _tmp11_ = FALSE;
#line 144 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_return_if_fail (self != NULL);
#line 144 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_return_if_fail (entry != NULL);
#line 148 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	have_size_entry = FALSE;
#line 149 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp0_ = self->priv->size_model;
#line 149 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp2_ = gtk_tree_model_get_iter_first ((GtkTreeModel*) _tmp0_, &_tmp1_);
#line 149 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	iter = _tmp1_;
#line 149 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	if (_tmp2_) {
#line 921 "score-dialog.c"
		{
			gboolean _tmp3_ = FALSE;
#line 151 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
			_tmp3_ = TRUE;
#line 151 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
			while (TRUE) {
#line 928 "score-dialog.c"
				gint size = 0;
				GtkListStore* _tmp6_ = NULL;
				GtkTreeIter _tmp7_ = {0};
				gint _tmp8_ = 0;
				HistoryEntry* _tmp9_ = NULL;
				guint _tmp10_ = 0U;
#line 151 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				if (!_tmp3_) {
#line 937 "score-dialog.c"
					GtkListStore* _tmp4_ = NULL;
					gboolean _tmp5_ = FALSE;
#line 160 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					_tmp4_ = self->priv->size_model;
#line 160 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					_tmp5_ = gtk_tree_model_iter_next ((GtkTreeModel*) _tmp4_, &iter);
#line 160 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					if (!_tmp5_) {
#line 160 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
						break;
#line 948 "score-dialog.c"
					}
				}
#line 151 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp3_ = FALSE;
#line 154 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp6_ = self->priv->size_model;
#line 154 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp7_ = iter;
#line 154 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				gtk_tree_model_get ((GtkTreeModel*) _tmp6_, &_tmp7_, 1, &size, -1, -1);
#line 155 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp8_ = size;
#line 155 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp9_ = entry;
#line 155 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				_tmp10_ = _tmp9_->size;
#line 155 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
				if (((guint) _tmp8_) == _tmp10_) {
#line 157 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					have_size_entry = TRUE;
#line 158 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
					break;
#line 971 "score-dialog.c"
				}
			}
		}
	}
#line 163 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_tmp11_ = have_size_entry;
#line 163 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	if (!_tmp11_) {
#line 980 "score-dialog.c"
		gchar* label = NULL;
		HistoryEntry* _tmp12_ = NULL;
		guint _tmp13_ = 0U;
		HistoryEntry* _tmp14_ = NULL;
		guint _tmp15_ = 0U;
		gchar* _tmp16_ = NULL;
		GtkListStore* _tmp17_ = NULL;
		GtkTreeIter _tmp18_ = {0};
		GtkListStore* _tmp19_ = NULL;
		GtkTreeIter _tmp20_ = {0};
		const gchar* _tmp21_ = NULL;
		HistoryEntry* _tmp22_ = NULL;
		guint _tmp23_ = 0U;
		GtkComboBox* _tmp24_ = NULL;
		gint _tmp25_ = 0;
		gboolean _tmp28_ = FALSE;
		HistoryEntry* _tmp29_ = NULL;
#line 165 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp12_ = entry;
#line 165 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp13_ = _tmp12_->size;
#line 165 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp14_ = entry;
#line 165 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp15_ = _tmp14_->size;
#line 165 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp16_ = g_strdup_printf ("%u × %u", _tmp13_, _tmp15_);
#line 165 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		label = _tmp16_;
#line 167 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp17_ = self->priv->size_model;
#line 167 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		gtk_list_store_append (_tmp17_, &_tmp18_);
#line 167 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		iter = _tmp18_;
#line 168 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp19_ = self->priv->size_model;
#line 168 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp20_ = iter;
#line 168 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp21_ = label;
#line 168 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp22_ = entry;
#line 168 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp23_ = _tmp22_->size;
#line 168 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		gtk_list_store_set (_tmp19_, &_tmp20_, 0, _tmp21_, 1, _tmp23_, -1);
#line 171 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp24_ = self->priv->size_combo;
#line 171 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp25_ = gtk_combo_box_get_active (_tmp24_);
#line 171 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		if (_tmp25_ == -1) {
#line 1034 "score-dialog.c"
			GtkComboBox* _tmp26_ = NULL;
			GtkTreeIter _tmp27_ = {0};
#line 172 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
			_tmp26_ = self->priv->size_combo;
#line 172 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
			_tmp27_ = iter;
#line 172 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
			gtk_combo_box_set_active_iter (_tmp26_, &_tmp27_);
#line 1043 "score-dialog.c"
		}
#line 175 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_tmp29_ = self->priv->selected_entry;
#line 175 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		if (_tmp29_ != NULL) {
#line 1049 "score-dialog.c"
			HistoryEntry* _tmp30_ = NULL;
			guint _tmp31_ = 0U;
			HistoryEntry* _tmp32_ = NULL;
			guint _tmp33_ = 0U;
#line 175 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
			_tmp30_ = entry;
#line 175 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
			_tmp31_ = _tmp30_->size;
#line 175 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
			_tmp32_ = self->priv->selected_entry;
#line 175 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
			_tmp33_ = _tmp32_->size;
#line 175 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
			_tmp28_ = _tmp31_ == _tmp33_;
#line 1064 "score-dialog.c"
		} else {
#line 175 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
			_tmp28_ = FALSE;
#line 1068 "score-dialog.c"
		}
#line 175 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		if (_tmp28_) {
#line 1072 "score-dialog.c"
			GtkComboBox* _tmp34_ = NULL;
			GtkTreeIter _tmp35_ = {0};
#line 176 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
			_tmp34_ = self->priv->size_combo;
#line 176 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
			_tmp35_ = iter;
#line 176 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
			gtk_combo_box_set_active_iter (_tmp34_, &_tmp35_);
#line 1081 "score-dialog.c"
		}
#line 163 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
		_g_free0 (label);
#line 1085 "score-dialog.c"
	}
}


static void score_dialog_class_init (ScoreDialogClass * klass) {
#line 12 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	score_dialog_parent_class = g_type_class_peek_parent (klass);
#line 12 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	g_type_class_add_private (klass, sizeof (ScoreDialogPrivate));
#line 12 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	G_OBJECT_CLASS (klass)->finalize = score_dialog_finalize;
#line 1097 "score-dialog.c"
}


static void score_dialog_instance_init (ScoreDialog * self) {
#line 12 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	self->priv = SCORE_DIALOG_GET_PRIVATE (self);
#line 15 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	self->priv->selected_entry = NULL;
#line 1106 "score-dialog.c"
}


static void score_dialog_finalize (GObject* obj) {
	ScoreDialog * self;
#line 12 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_SCORE_DIALOG, ScoreDialog);
#line 14 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_g_object_unref0 (self->priv->history);
#line 15 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_g_object_unref0 (self->priv->selected_entry);
#line 16 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_g_object_unref0 (self->priv->size_model);
#line 17 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_g_object_unref0 (self->priv->score_model);
#line 18 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_g_object_unref0 (self->priv->size_combo);
#line 19 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	_g_object_unref0 (self->priv->scores);
#line 12 "/home/mcatanzaro/src/jhbuild/checkout/gnome-tetravex/src/score-dialog.vala"
	G_OBJECT_CLASS (score_dialog_parent_class)->finalize (obj);
#line 1128 "score-dialog.c"
}


GType score_dialog_get_type (void) {
	static volatile gsize score_dialog_type_id__volatile = 0;
	if (g_once_init_enter (&score_dialog_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ScoreDialogClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) score_dialog_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ScoreDialog), 0, (GInstanceInitFunc) score_dialog_instance_init, NULL };
		GType score_dialog_type_id;
		score_dialog_type_id = g_type_register_static (gtk_dialog_get_type (), "ScoreDialog", &g_define_type_info, 0);
		g_once_init_leave (&score_dialog_type_id__volatile, score_dialog_type_id);
	}
	return score_dialog_type_id__volatile;
}



