Package: gnome-osd Version: 0.12.2-1 Followup-For: Bug #648892 Here is a patch to fix this bug.
-- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: armhf (armv7l) Kernel: Linux 3.0.0-2+armhf.1-mx5 Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages gnome-osd depends on: ii gconf2 3.2.3-1 ii python 2.7.2-10 ii python-dbus 0.84.0-3 ii python-gnome2 2.28.1+dfsg-1 ii python-gtk2 2.24.0-3 ii python-pyorbit 2.24.0-6+b1 ii python-pyorbit-omg 2.24.0-6 ii python-support 1.0.14 gnome-osd recommends no packages. Versions of packages gnome-osd suggests: ii evolution <none> ii muine <none> ii pidgin <none> ii rhythmbox <none> ii xchat 2.8.8-3.1+b1 -- no debconf information
Author: Thibaut Girka <t...@sitedethib.com> Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648892 Subject: Fix type mismatch by using explicit integer divisions. diff -Nur -x '*.orig' -x '*~' gnome-osd-0.12.2/gnomeosd/server.py gnome-osd-0.12.2.new/gnomeosd/server.py --- gnome-osd-0.12.2/gnomeosd/server.py 2007-04-07 16:43:54.000000000 +0200 +++ gnome-osd-0.12.2.new/gnomeosd/server.py 2012-02-19 12:51:18.539998824 +0100 @@ -235,7 +235,7 @@ elif halign == pango.ALIGN_RIGHT: x = desk_x + desk_w - w.width - 2 else: # center - x = desk_x + desk_w/2 - w.width/2 + x = desk_x + (desk_w - w.width) // 2 occupied_areas = [inst.occupied_area for inst in self.instances.itervalues() if not (inst is self or inst.occupied_area is None)]