move constructor higher up
This commit is contained in:
parent
9b604b27fa
commit
1d603d7d5d
@ -52,6 +52,13 @@ namespace Colegio {
|
|||||||
[GtkChild]
|
[GtkChild]
|
||||||
private Gtk.TreeSelection selection;
|
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]
|
[GtkCallback]
|
||||||
public void on_clicked_button (Gtk.Button button) {
|
public void on_clicked_button (Gtk.Button button) {
|
||||||
if (button == close_asignatura) {
|
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]
|
[GtkCallback]
|
||||||
private void on_changed_selection(Gtk.TreeSelection selection) {
|
private void on_changed_selection(Gtk.TreeSelection selection) {
|
||||||
if (selection.count_selected_rows () == 1) {
|
if (selection.count_selected_rows () == 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user