Skip to content

Commit 1463e3c

Browse files
authored
Move the signals a bit later
Attempt at fixing: #18
1 parent 26d28b8 commit 1463e3c

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/Window.vala

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,19 @@ public class AppWindow : Gtk.Window {
7777
default_width = 300;
7878
titlebar = header;
7979

80-
debug ("Connecting signals");
80+
debug ("Binding window title to file_name");
81+
bind_property ("file_name", this, "title");
82+
debug ("Success!");
8183

84+
open_file (file);
85+
86+
debug ("Connecting signals");
8287
// Signal callbacks are heavily derived from similar operations in
8388
// elementary/code
8489
save_as_button.clicked.connect (on_save_as);
8590
this.close_request.connect (on_close);
8691
buf.changed.connect (on_buffer_changed);
8792

88-
debug ("Binding window title to file_name");
89-
90-
bind_property ("file_name", this, "title");
91-
92-
debug ("Success!");
93-
94-
open_file (file);
9593
}
9694

9795

0 commit comments

Comments
 (0)