Plugins: replace get_editable with get_flags, add support more MovieSource flags
[cinaest] / src / plugins / catalog-plugin.vala
index 3616e34..8f72985 100644 (file)
@@ -90,7 +90,7 @@ class CatalogPlugin : Plugin {
                        }
                }
 
-               var source_list = new SourceListView (available_sources, true);
+               var source_list = new SourceListView (available_sources, true, window);
 
                var content = (VBox) dialog.get_content_area ();
                content.pack_start (source_list, true, true, 0);
@@ -202,7 +202,7 @@ class CatalogPlugin : Plugin {
                dialog.set_transient_for (window);
                dialog.set_title (_("Select active movie lists"));
 
-               var source_list = new SourceListView (sources, false);
+               var source_list = new SourceListView (sources, false, window);
                source_list.set_hildon_ui_mode (UIMode.EDIT);
 
                var selection = source_list.get_selection ();
@@ -337,8 +337,8 @@ class CatalogSource : MovieSource {
                return description;
        }
 
-       public override bool get_editable () {
-               return true;
+       public override SourceFlags get_flags () {
+               return SourceFlags.EDITABLE;
        }
 }