Package: gwibber
Version: 1.2.0+bzr355-2
Severity: important
Tags: patch
When the gnome font-size is not an integer, the UI fails to start and I
get this message :
Traceback (most recent call last):
File "/usr/bin/gwibber", line 80, in <module>
GwibberClient(opts.silent)
File "/usr/lib/pymodules/python2.5/gwibber/client.py", line 173, in __init__
self.messages_view = self.add_msg_tab(self.client.receive, _("Messages"),
show_icon = "go-home")
File "/usr/lib/pymodules/python2.5/gwibber/client.py", line 439, in
add_msg_tab
view = gwui.MessageView(self.preferences["theme"], self)
File "/usr/lib/pymodules/python2.5/gwibber/gwui.py", line 60, in __init__
self.load_theme(theme)
File "/usr/lib/pymodules/python2.5/gwibber/gwui.py", line 76, in load_theme
self.settings.set_property("default-font-size", (int(fsize) + 2))
ValueError: invalid literal for int() with base 10: '7.599609375'
Here is a patch which corrects the bug.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (2, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gwibber depends on:
ii libjs-jquery 1.3.3-2 JavaScript library for dynamic web
ii python 2.5.4-2 An interactive high-level object-o
ii python-dbus 0.83.0-1 simple interprocess messaging syst
ii python-distutils-extra 2.9 enhancements to the Python build s
ii python-egenix-mxdatetime 3.1.2-1 date and time handling routines fo
ii python-feedparser 4.1-14 Universal Feed Parser for Python
ii python-gconf 2.26.1-1 Python bindings for the GConf conf
ii python-glade2 2.14.1-3 GTK+ bindings: Glade support
ii python-gtk2 2.14.1-3 Python bindings for the GTK+ widge
ii python-imaging 1.1.6-3 Python Imaging Library
ii python-mako 0.2.4-2 fast and lightweight templating fo
ii python-notify 0.1.1-2+b1 Python bindings for libnotify
ii python-simplejson 2.0.9-1 Simple, fast, extensible JSON enco
ii python-support 1.0.3 automated rebuilding support for P
ii python-webkit 1.1.5-1 WebKit/Gtk Python bindings
ii python-xdg 0.15-1.1 A python library to access freedes
gwibber recommends no packages.
gwibber suggests no packages.
-- no debconf information
--- gwibber-1.2.0+bzr355.orig/gwibber/gwui.py 2009-08-18 13:20:07.000000000
+0200
+++ gwibber-1.2.0+bzr355/gwibber/gwui.py 2009-09-02 12:13:27.000000000
+0200
@@ -73,7 +73,7 @@
self.settings.set_property("default-font-family", fname)
self.settings.set_property("sans-serif-font-family", fname)
self.settings.set_property("serif-font-family", fname)
- self.settings.set_property("default-font-size", (int(fsize) + 2))
+ self.settings.set_property("default-font-size", (float(fsize) + 2))
def load_messages(self, message_store = None):
for n, m in enumerate(self.message_store):