Package: pinentry-gtk2
Version: 0.8.0-1
Severity: normal
Tags: upstream patch

Steps to reproduce:
1. At a terminal, enter:
$ echo GETPIN | pinentry-gtk-2

2. In the pinentry window, click the mimimize button.

Result:
The window disappears and "Segmentation fault" is printed in the terminal.

pinentry-gtk-2 also crashes on startup for me when maximus is running,
making it unusable. (maximus maximizes all windows and removes the window
decorations. I use it on a netbook with limited screen real estate.)

Here is a patch adapted from:
http://osdir.com/ml/general/2010-04/msg23999.html

--- pinentry-0.8.0.orig/gtk+-2/pinentry-gtk-2.c
+++ pinentry-0.8.0/gtk+-2/pinentry-gtk-2.c
@@ -145,7 +145,8 @@ ungrab_keyboard (GtkWidget *win, GdkEven
 {
   gdk_keyboard_ungrab (gdk_event_get_time (event));
   /* Unmake window transient for the root window.  */
-  gdk_window_set_transient_for (win->window, NULL);
+  gdk_property_delete (win->window,
+    gdk_atom_intern_static_string ("WM_TRANSIENT_FOR"));
 }

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

Kernel: Linux 2.6.32-3-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pinentry-gtk2 depends on:
ii  libc6                     2.10.2-9       Embedded GNU C Library: Shared lib
ii  libglib2.0-0              2.24.1-1       The GLib library of C routines
ii  libgtk2.0-0               2.20.1-1       The GTK+ graphical user interface 
ii  libncurses5               5.7+20100313-2 shared libraries for terminal hand
ii  libpango1.0-0             1.28.0-1       Layout and rendering of internatio

pinentry-gtk2 recommends no packages.

Versions of packages pinentry-gtk2 suggests:
pn  pinentry-doc                  <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to