I have ported Read to Gtk3.<br>Almost all is working, attached is a patch.<br>There are a few TODO, shared here:<br><br>epubview/epubview.py<br><br>- self._scrollbar.set_update_policy(gtk.UPDATE_DISCONTINUOUS)<br>+ # self._scrollbar.set_update_policy(Gtk.UPDATE_DISCONTINUOUS)<br>
<br>(I think this was deprecated)<br><br>- self._view.set_flags(gtk.CAN_DEFAULT | gtk.CAN_FOCUS)<br>+ # TODO<br>+ #self._view.set_flags(Gtk.CAN_DEFAULT | Gtk.CAN_FOCUS)<br><br>(Dont know where are these constants now)<br>
<br>jobs.py<br><br>Here we do:<br><br>>>> screen = Gdk.Screen.get_default()<br>>>> screen.get_font_options()<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br>
File "/usr/lib64/python2.7/site-packages/gi/types.py", line 43, in function<br> return info.invoke(*args, **kwargs)<br>TypeError: Couldn't find conversion for foreign struct 'cairo.FontOptions'<br>
<br>I think is a problem with the binding. <br><br>evinceadapter.py<br><br> # set dpi<br> # TODO why we need set this?<br> """<br> min_scale = self._model.get_min_scale()<br>
max_scale = self._model.get_max_scale()<br> logging.error("min scale %s max_scale %s", min_scale, max_scale)<br> logging.error("setting min scale %s", min_scale * self.dpi / 72.0)<br>
logging.error("setting max scale %s", max_scale * self.dpi / 72.0)<br> self._model.set_min_scale(min_scale * self.dpi / 72.0)<br> self._model.set_max_scale(max_scale * self.dpi / 72.0)<br>
"""<br><br>EvinceModel is returning min = 0, max = infinite but later have a error when want set the values.<br>I have compared in the old bindings and the model was giving the same values.<br>Probably does not have sense doing this process <br>
<br>readtoolbar.py<br><br> pitchbar.set_draw_value(False)<br>- pitchbar.set_update_policy(gtk.UPDATE_DISCONTINUOUS)<br><br>Deprecated <a href="http://mail.gnome.org/archives/commits-list/2011-January/msg01161.html">http://mail.gnome.org/archives/commits-list/2011-January/msg01161.html</a><br>
<br>readtopbar.py<br><br>- self._progressbar.props.discrete_blocks = 10<br><br>(I couldn't found how set this value now)<br><br>To test this activity more, I need palettes working.<br>Overall, I am happy with the process, really I was think will be more difficult.<br>
We need organize how do the work in other activities.<br><br>Gonzalo<br>