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
1=== modified file 'bin/lernid'
2--- bin/lernid 2010-07-31 08:42:13 +0000
3+++ bin/lernid 2011-04-19 17:00:13 +0000
4@@ -26,8 +26,6 @@
5 import locale
6 import pynotify
7
8-gtk.gdk.threads_init()
9-
10 try:
11 import appindicator
12 HAVE_APPINDICATOR = True
13
14=== modified file 'debian/changelog'
15--- debian/changelog 2011-04-01 02:58:23 +0000
16+++ debian/changelog 2011-04-19 17:00:13 +0000
17@@ -1,3 +1,13 @@
18+lernid (0.8.0.1) natty; urgency=low
19+
20+ * Closes: LP: #749848: Revert the slide loading function to run synchronously
21+ rather than using python threads.
22+ * Closes: LP: #751019: Handle case where web page has no title.
23+ * Closes: LP: #764069: Revise size parameters passed to poppler page render
24+ call.
25+
26+ -- John S Gruber <JohnSGruber@gmail.com> Mon, 18 Apr 2011 23:58:23 -0400
27+
28 lernid (0.8) natty; urgency=low
29
30 * Fix Significant bugs
31
32=== modified file 'lernid/widgets/Browser.py'
33--- lernid/widgets/Browser.py 2010-07-31 08:42:13 +0000
34+++ lernid/widgets/Browser.py 2011-04-19 17:00:13 +0000
35@@ -154,6 +154,7 @@
36 storeiter = self._url_store.iter_next(storeiter)
37 if not match:
38 title = browser.get_property('title')
39+ if title is None: title = ''
40 urllen = 150 - len(title)
41 shorturl = url
42 if len(url) > urllen:
43
44=== modified file 'lernid/widgets/Slide.py'
45--- lernid/widgets/Slide.py 2010-07-31 08:42:13 +0000
46+++ lernid/widgets/Slide.py 2011-04-19 17:00:13 +0000
47@@ -24,7 +24,6 @@
48 import re
49 import logging
50 import urllib
51-from threading import Thread
52
53 from lernid.widgets.Widget import Widget
54 from lernid.lernidconfig import save_cache_path
55@@ -104,7 +103,7 @@
56 page = pdf.get_page(int(pagenumber) - 1)
57 w, h = page.get_size()
58 pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, int(w), int(h))
59- page.render_to_pixbuf(0,0,8,11,1,0, pixbuf)
60+ page.render_to_pixbuf(0,0,int(w),int(h),1,0, pixbuf)
61 except:
62 Statusbar.push_message(_('An error was encountered while trying to load slide number {0}'.format(pagenumber)), duration=120)
63 logging.debug("Something went wrong when loading slide %s" % pagenumber)
64@@ -156,8 +155,7 @@
65 def _session_changed(self, schedule, session):
66 Statusbar.pop_message('slidesession')
67 if session.slides:
68- thread = Thread(target=self._download_slides, args=(session,))
69- thread.start()
70+ self._download_slides(session)
71 else:
72 self._image.clear()
73 self.hide()

Subscribers

People subscribed via source and target branches