From 1d603d7d5d6cb109856300a51332127605a2d6a5 Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Tue, 16 Jul 2019 10:46:39 -0400 Subject: [PATCH] move constructor higher up --- src/asignatura_list.vala | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/asignatura_list.vala b/src/asignatura_list.vala index 6f0b751..423a201 100644 --- a/src/asignatura_list.vala +++ b/src/asignatura_list.vala @@ -52,6 +52,13 @@ namespace Colegio { [GtkChild] private Gtk.TreeSelection selection; + public AsignaturaList (Gtk.Application application, Connection conn) { + Object (application: application); + this.conn = conn; + + this.set_visible (true); // This fixes: Gtk-CRITICAL **: 23:58:22.139: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar + } + [GtkCallback] public void on_clicked_button (Gtk.Button button) { if (button == close_asignatura) { @@ -119,13 +126,6 @@ WHERE id_asignatura = " + asignatura.id_asignatura.to_string ()); } } - public AsignaturaList (Gtk.Application application, Connection conn) { - Object (application: application); - this.conn = conn; - - this.set_visible (true); // This fixes: Gtk-CRITICAL **: 23:58:22.139: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar - } - [GtkCallback] private void on_changed_selection(Gtk.TreeSelection selection) { if (selection.count_selected_rows () == 1) {