1. 08 Aug, 2018 1 commit
  2. 15 Jan, 2018 1 commit
    • Bastien Nocera's avatar
      tests: Fix crash on exit · 55206d06
      Bastien Nocera authored
      When the main window is destroyed, and the view widget is as well, we'd
      receive a property change ("notify") signal for the parent widget of the
      view changing. Except that we're in the middle of destroying that view.
      
      Disconnect from the "notify" signal before exiting, so that we don't
      crash on exit.
      55206d06
  3. 04 Aug, 2017 2 commits
  4. 02 Aug, 2017 1 commit
  5. 23 Jun, 2017 1 commit
  6. 22 Jun, 2017 3 commits
  7. 13 Jun, 2017 1 commit
  8. 31 May, 2017 1 commit
  9. 23 May, 2017 1 commit
  10. 21 May, 2017 2 commits
  11. 20 May, 2017 1 commit
    • Daniel García Moreno's avatar
      Added pagination to the GepubWidget · 26160504
      Daniel García Moreno authored
      I've added a property to set pagination on/off so the webkitwebview will
      be shown with or without scroll.
      
      The pagination is done with the column-width css property, setting the
      "body" with the widget width and height and the column-width with the
      same widget width, so we change the scroll from vertical to horizontal.
      Using this combined with "overflow" css property and with the "scrollTo"
      javascript function we can control the page showed.
      
      The position in the book we've the chapter number and the the position
      inside this chapter, the position is a percentage that we can get and
      set with "gepub_widget_(g/s)et_pos". We store a percentage to make it
      valid if the widget size changes, the page is not the same, but the
      position is always valid.
      
      To make this work well we need to remove margin and padding from the
      body tag, because this affects the column-width.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=768002
      26160504
  12. 30 Mar, 2017 1 commit
  13. 13 Mar, 2017 1 commit
  14. 13 Feb, 2017 1 commit
  15. 18 Jun, 2016 4 commits
    • Cosimo Cecchi's avatar
      widget: automatically reload chapter when current page changes · 1495f30d
      Cosimo Cecchi authored
      Instead of having the widget client manually call reload(), which has
      now been made an internal method.
      1495f30d
    • Cosimo Cecchi's avatar
      doc: rework page API · 9235891c
      Cosimo Cecchi authored
      Instead of directly exposing the spine, add API for pages directly.
      Previously, one had to make sure to call get_spine() and store the
      result before any other call to go_prev()/go_next(), since the list
      length would have otherwise changed.
      Now we separately track the current page, and make it a property so that
      views can listen to changes.
      9235891c
    • Cosimo Cecchi's avatar
      Rework API to be based on GBytes · b764421f
      Cosimo Cecchi authored
      This is more convenient to use, and the format ultimately expected by
      the WebView widget.
      b764421f
    • Cosimo Cecchi's avatar
      widget: make the GepubDoc a property · a001a75e
      Cosimo Cecchi authored
      Instead of having a mismatched get_doc/load_epub. This changes the API
      slightly so that clients will need to create the GepubDoc before passing
      it to the view.
      a001a75e
  16. 12 Jun, 2016 2 commits
    • Daniel Garcia Moreno's avatar
      Added GepubWidget class to show the content with webkit · b6a93ab3
      Daniel Garcia Moreno authored
      This new widget shows the epub content using webkit2gtk. The new widget
      inherites from GtkBox and at first it only shows a WebKitWebView with the
      current doc page, but the idea is to be able to paginate and show two pages
      at the same time, for the landscape view.
      b6a93ab3
    • Cosimo Cecchi's avatar
      doc: make API to get resources consistent · 6a46910f
      Cosimo Cecchi authored
      Right now there are _by_id() variants for certain methods, but the id is
      used by default for others. Make it consistent by always having the
      unsuffixed methods take a path.
      6a46910f
  17. 11 Jun, 2016 1 commit
    • Daniel Garcia Moreno's avatar
      Function to replace relative resources by epub:// · d86cbb44
      Daniel Garcia Moreno authored
      Resources like styles or images are linked inside the xml doc with a
      relative path using as base the doc path.
      
      To render these resources in widgets like webkit this new function replaces
      with a the scheme, epub://, and converts these paths from relative to
      absolute so we can find these resources easily with the get_resource
      function.
      d86cbb44
  18. 01 Jun, 2016 1 commit
  19. 23 May, 2016 1 commit
  20. 08 Sep, 2014 3 commits
  21. 31 Aug, 2014 1 commit
  22. 08 Jun, 2012 1 commit
  23. 07 Jun, 2012 2 commits
  24. 23 Apr, 2011 1 commit
  25. 21 Apr, 2011 1 commit
  26. 22 Feb, 2011 2 commits
  27. 21 Feb, 2011 2 commits