Package: revelation
Version: 0.4.11-3.1
Severity: important
Tags: patch

The account search applet displays an error dialog with a traceback when 
clicked.

Traceback (most recent call last):
  File "/usr/share/revelation/libexec/revelation-applet", line 302, in 
__cb_icon_buttonpress
    self.entry_menu(data.time)
  File "/usr/share/revelation/libexec/revelation-applet", line 543, in 
entry_menu
    if self.__require_file() == False:
  File "/usr/share/revelation/libexec/revelation-applet", line 479, in 
__require_file
    return self.file_open(self.config.get("file"))
  File "/usr/share/revelation/libexec/revelation-applet", line 628, in file_open
    return self.__file_load(file, password)
  File "/usr/share/revelation/libexec/revelation-applet", line 359, in 
__file_load
    self.entrymenu = self.__generate_entrymenu(self.entrystore)
  File "/usr/share/revelation/libexec/revelation-applet", line 392, in 
__generate_entrymenu
    item = ui.ImageMenuItem(type(e) == entry.FolderEntry and ui.STOCK_FOLDER or 
e.icon, e.name)
  File "/usr/lib/python2.5/site-packages/revelation/ui.py", line 1261, in 
__init__
    self.image = self.get_children()[1]
IndexError: list index out of range

Same thing when using the text search field.

This began happening after I upgraded libgtk2.0 to 2.14, so it looks
like a change in the GtkImageMenuItem class (or its python bindings)
causes it.

Changing the call from
                self.label = self.get_children()[1]
to
                self.image = self.get_image()

apparently fixes the problem.

I've attached a patch.


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686-bigmem (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages revelation depends on:
ii  gconf2                   2.24.0-7        GNOME configuration database syste
ii  gnome-icon-theme         2.22.0-1        GNOME Desktop icon theme
ii  libc6                    2.9-3           GNU C Library: Shared libraries
ii  libcrack2                2.8.13-6        pro-active password checker librar
ii  python                   2.5.4-2         An interactive high-level object-o
ii  python-central           0.6.11          register and build utility for Pyt
ii  python-crypto            2.0.1+dfsg1-2.3 cryptographic algorithms and proto
ii  python-gnome2            2.22.0-1        Python bindings for the GNOME desk
ii  python-gnome2-extras     2.19.1-3.1      Extra Python bindings for the GNOM
ii  python-gtk2              2.12.1-6        Python bindings for the GTK+ widge
ii  python-xml               0.8.4-10.1      XML tools for Python
ii  shared-mime-info         0.60-2          FreeDesktop.org shared MIME databa

revelation recommends no packages.

revelation suggests no packages.

-- no debconf information
--- /usr/lib/python2.5/site-packages/revelation/ui.py	2008-10-05 06:47:05.000000000 -0700
+++ ui.py	2009-03-06 11:08:16.000000000 -0800
@@ -1258,7 +1258,7 @@ class ImageMenuItem(gtk.ImageMenuItem):
 		gtk.ImageMenuItem.__init__(self, stock)
 
 		self.label = self.get_children()[0]
-		self.image = self.get_children()[1]
+		self.image = self.get_image()
 
 		if text is not None:
 			self.set_text(text)

Reply via email to