move constructor higher up

This commit is contained in:
Chris Cromer 2019-07-16 10:46:39 -04:00
parent 9b604b27fa
commit 1d603d7d5d
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A
1 changed files with 7 additions and 7 deletions

View File

@ -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) {