Skip to content

Commit b89f1ef

Browse files
committed
Stupid mistakes
1 parent 2edeb4d commit b89f1ef

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/Window.vala

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ public class AppWindow : Gtk.Window {
5757

5858
header_label = new Gtk.EditableLabel () {
5959
xalign = 0.5f,
60-
text = "",
61-
tooltip_markup.text = ""
60+
text = ""
6261
};
6362

6463
header.title_widget = header_label;
@@ -246,20 +245,14 @@ public class AppWindow : Gtk.Window {
246245
private void on_title_changed () {
247246
debug ("Close event!");
248247

249-
header_label.text
250-
251248
try {
252249
this.file.move (header_label, File.CopyFlags.None);
250+
header_label.text = this.file.basename;
253251
header_label.tooltip_markup.text = this.file.get_path ();
254252

255253
} catch (Error err) {
256254
warning ("Failed to rename: %s", err.message);
257255
}
258256

259-
}
260-
261-
public bool on_drag_drop (target, value, Double x, Doubley) {
262-
263-
264257
}
265258
}

0 commit comments

Comments
 (0)