Movie list window: set title from the movie source name, not description
[cinaest] / src / movie-list-window.vala
index 133451a..0765af1 100644 (file)
@@ -37,7 +37,7 @@ public class MovieListWindow : StackableWindow {
 
        public MovieListWindow (MovieSource source_) {
                source = source_;
-               set_title (source.get_description ());
+               set_title (source.get_name ());
 
                // View menu
                menu = new MovieListMenu (this);
@@ -118,7 +118,7 @@ public class MovieListWindow : StackableWindow {
                filter = new MovieFilter ();
                menu.filter = filter;
                filter.title = "";
-               if (SourceFlags.ONLINE in source.get_flags ()) {
+               if (SourceFlags.NOEMPTY in source.get_flags ()) {
                        no_movies.hide ();
                        search_bar_visible = true;
                        search_bar.show ();
@@ -147,10 +147,10 @@ public class MovieListWindow : StackableWindow {
                                markup.prepend ("<span fgcolor=\"%s\">".printf (color.to_string ()));
                                markup.append ("</span>");
                        }
-                       markup.prepend (source.get_description ());
+                       markup.prepend (source.get_name ());
                        set_markup (markup.str);
                } else {
-                       set_markup (source.get_description ());
+                       set_markup (source.get_name ());
                }
 
                start_search ();