Merge lp:~jsjgruber/ubuntu/natty/lernid/lernid.fix749848.fix751019.fix764069 into lp:ubuntu/natty/lernid

Proposed by John S. Gruber
Status: Merged
Merge reported by: Michael Vogt
Merged at revision: not available
Proposed branch: lp:~jsjgruber/ubuntu/natty/lernid/lernid.fix749848.fix751019.fix764069
Merge into: lp:ubuntu/natty/lernid
Diff against target: 73 lines (+13/-6)
4 files modified
bin/lernid (+0/-2)
debian/changelog (+10/-0)
lernid/widgets/Browser.py (+1/-0)
lernid/widgets/Slide.py (+2/-4)
To merge this branch: bzr merge lp:~jsjgruber/ubuntu/natty/lernid/lernid.fix749848.fix751019.fix764069
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+58348@code.launchpad.net

Description of the change

A copy has been built in ppa:~jsjgruber/ppa and can be tested from there. The build log can be viewed from there.

I'd prefer to only minimally increase the version number in Ubuntu as there are unreleased upstream changes that would be candidates for a release 0.8.1 (so it would be best to keep the version in Ubuntu less than that).

This package is not currently in debian so nothing is proposed there. I intend to propose these changes for upstream after accceptance into ubuntu.

The fix for LP: #749848 regrettably makes slide loading synchronous again as this is less troublesome to the lernid user than an unexpected, permanent hang of the application when a url is posted to the classroom containing a flash video or certain other flash features.

To post a comment you must log in.
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks a bunch! Uploaded now and its waiting in the queue.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'bin/lernid'
--- bin/lernid 2010-07-31 08:42:13 +0000
+++ bin/lernid 2011-04-19 17:00:13 +0000
@@ -26,8 +26,6 @@
26import locale26import locale
27import pynotify27import pynotify
2828
29gtk.gdk.threads_init()
30
31try:29try:
32 import appindicator30 import appindicator
33 HAVE_APPINDICATOR = True31 HAVE_APPINDICATOR = True
3432
=== modified file 'debian/changelog'
--- debian/changelog 2011-04-01 02:58:23 +0000
+++ debian/changelog 2011-04-19 17:00:13 +0000
@@ -1,3 +1,13 @@
1lernid (0.8.0.1) natty; urgency=low
2
3 * Closes: LP: #749848: Revert the slide loading function to run synchronously
4 rather than using python threads.
5 * Closes: LP: #751019: Handle case where web page has no title.
6 * Closes: LP: #764069: Revise size parameters passed to poppler page render
7 call.
8
9 -- John S Gruber <JohnSGruber@gmail.com> Mon, 18 Apr 2011 23:58:23 -0400
10
1lernid (0.8) natty; urgency=low11lernid (0.8) natty; urgency=low
212
3 * Fix Significant bugs13 * Fix Significant bugs
414
=== modified file 'lernid/widgets/Browser.py'
--- lernid/widgets/Browser.py 2010-07-31 08:42:13 +0000
+++ lernid/widgets/Browser.py 2011-04-19 17:00:13 +0000
@@ -154,6 +154,7 @@
154 storeiter = self._url_store.iter_next(storeiter)154 storeiter = self._url_store.iter_next(storeiter)
155 if not match:155 if not match:
156 title = browser.get_property('title')156 title = browser.get_property('title')
157 if title is None: title = ''
157 urllen = 150 - len(title)158 urllen = 150 - len(title)
158 shorturl = url159 shorturl = url
159 if len(url) > urllen:160 if len(url) > urllen:
160161
=== modified file 'lernid/widgets/Slide.py'
--- lernid/widgets/Slide.py 2010-07-31 08:42:13 +0000
+++ lernid/widgets/Slide.py 2011-04-19 17:00:13 +0000
@@ -24,7 +24,6 @@
24import re24import re
25import logging25import logging
26import urllib26import urllib
27from threading import Thread
2827
29from lernid.widgets.Widget import Widget28from lernid.widgets.Widget import Widget
30from lernid.lernidconfig import save_cache_path29from lernid.lernidconfig import save_cache_path
@@ -104,7 +103,7 @@
104 page = pdf.get_page(int(pagenumber) - 1)103 page = pdf.get_page(int(pagenumber) - 1)
105 w, h = page.get_size()104 w, h = page.get_size()
106 pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, int(w), int(h))105 pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, int(w), int(h))
107 page.render_to_pixbuf(0,0,8,11,1,0, pixbuf)106 page.render_to_pixbuf(0,0,int(w),int(h),1,0, pixbuf)
108 except:107 except:
109 Statusbar.push_message(_('An error was encountered while trying to load slide number {0}'.format(pagenumber)), duration=120)108 Statusbar.push_message(_('An error was encountered while trying to load slide number {0}'.format(pagenumber)), duration=120)
110 logging.debug("Something went wrong when loading slide %s" % pagenumber)109 logging.debug("Something went wrong when loading slide %s" % pagenumber)
@@ -156,8 +155,7 @@
156 def _session_changed(self, schedule, session):155 def _session_changed(self, schedule, session):
157 Statusbar.pop_message('slidesession')156 Statusbar.pop_message('slidesession')
158 if session.slides:157 if session.slides:
159 thread = Thread(target=self._download_slides, args=(session,))158 self._download_slides(session)
160 thread.start()
161 else:159 else:
162 self._image.clear()160 self._image.clear()
163 self.hide()161 self.hide()

Subscribers

People subscribed via source and target branches