Loading src/application/application-window.vala +10 −7 Original line number Diff line number Diff line Loading @@ -246,13 +246,11 @@ namespace MLM { year_adjustment.upper = date_time.get_year(); /* Stupid GtkBuilder */ genre_widget.completion = new Gtk.EntryCompletion(); genre_widget.completion.model = genre_model; genre_widget.completion.text_column = 0; genre_widget.completion.match_selected.connect((m, i) => { genre_combobox.set_active_iter(i); return true; }); var completion = genre_widget.completion; completion = new Gtk.EntryCompletion(); completion.model = genre_model; completion.text_column = 0; completion.match_selected.connect(match_selected); _cover_data = null; _artist_data = null; Loading @@ -272,6 +270,11 @@ namespace MLM { ignore_popover = false; } private bool match_selected(Gtk.TreeModel m, Gtk.TreeIter i) { genre_combobox.set_active_iter(i); return true; } [GtkCallback] public void on_previous_clicked() { if (player.working) Loading src/application/application.vala +9 −7 Original line number Diff line number Diff line Loading @@ -93,14 +93,16 @@ namespace MLM { this.files.add(file); } total = this.files.size; this.files.sort((a, b) => { this.files.sort(compare_files); activate(); } private int compare_files(GLib.File a, GLib.File b) { if (a.get_path() < b.get_path()) return -1; if (a.get_path() > b.get_path()) return 1; return 0; }); activate(); } private void update_mp3() { Loading Loading
src/application/application-window.vala +10 −7 Original line number Diff line number Diff line Loading @@ -246,13 +246,11 @@ namespace MLM { year_adjustment.upper = date_time.get_year(); /* Stupid GtkBuilder */ genre_widget.completion = new Gtk.EntryCompletion(); genre_widget.completion.model = genre_model; genre_widget.completion.text_column = 0; genre_widget.completion.match_selected.connect((m, i) => { genre_combobox.set_active_iter(i); return true; }); var completion = genre_widget.completion; completion = new Gtk.EntryCompletion(); completion.model = genre_model; completion.text_column = 0; completion.match_selected.connect(match_selected); _cover_data = null; _artist_data = null; Loading @@ -272,6 +270,11 @@ namespace MLM { ignore_popover = false; } private bool match_selected(Gtk.TreeModel m, Gtk.TreeIter i) { genre_combobox.set_active_iter(i); return true; } [GtkCallback] public void on_previous_clicked() { if (player.working) Loading
src/application/application.vala +9 −7 Original line number Diff line number Diff line Loading @@ -93,14 +93,16 @@ namespace MLM { this.files.add(file); } total = this.files.size; this.files.sort((a, b) => { this.files.sort(compare_files); activate(); } private int compare_files(GLib.File a, GLib.File b) { if (a.get_path() < b.get_path()) return -1; if (a.get_path() > b.get_path()) return 1; return 0; }); activate(); } private void update_mp3() { Loading