UnsupportedEditor.vala 886 B

12345678910111213141516171819202122232425262728293031
  1. // using Adw;
  2. // using Gtk;
  3. // namespace Publicate.Editors {
  4. // public class UnsupportedEditor : Box, EditorWidget {
  5. // private StatusPage status_page;
  6. // public void set_zoom_percentage (int percent) {
  7. // return;
  8. // }
  9. // public async void load_asset (Ppub.Publication publication, Ppub.Asset asset) {
  10. // status_page.description = @"Files of type '$(asset.mimetype)' cannot be displayed by this application.";
  11. // }
  12. // public UnsupportedEditor() {
  13. // orientation = Orientation.VERTICAL;
  14. // status_page = new StatusPage();
  15. // status_page.vexpand = true;
  16. // status_page.title = "Unsupported Content Type";
  17. // status_page.icon_name = "face-uncertain-symbolic";
  18. // append(status_page);
  19. // }
  20. // }
  21. // }