Package: zenity
Version: 3.8.0-1
Severity: important
Tags: patch upstream
Dear Maintainer,
When using zenity with --list option the returned result is doubled
(item|item instead of just item) when the item is selected by double-
clicking it.
This has been already reported to upstream
https://bugzilla.gnome.org/show_bug.cgi?id=698683 and fixed
https://git.gnome.org/browse/zenity/commit/?id=7c234ed9b71d5f009abff509ef2bf576f61a0cbb
Patch is attached for convenience.
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.9-1-686-pae (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 zenity depends on:
ii libc6 2.17-7
ii libgdk-pixbuf2.0-0 2.28.2-1
ii libglib2.0-02.36.3-3
ii libgtk-3-0 3.8.2-3
ii libnotify4 0.7.5-2
ii libpango-1.0-0 1.32.5-5+b1
ii libwebkitgtk-3.0-0 1.8.1-3.4
ii libx11-62:1.6.0-1
ii zenity-common 3.8.0-1
zenity recommends no packages.
zenity suggests no packages.
--- tree.c 2013-03-14 03:46:04.0 +0200
+++ zenity-3.8.0/src/tree.c 2013-07-16 13:54:49.0 +0300
@@ -710,12 +710,6 @@
GtkTreeViewColumn *tree_col, gpointer data)
{
ZenityData *zen_data = data;
- GtkTreeSelection *selection;
-
- selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (tree_view));
- gtk_tree_selection_selected_foreach (selection,
- (GtkTreeSelectionForeachFunc) zenity_tree_dialog_get_selected,
- GTK_TREE_VIEW (tree_view));
zenity_tree_dialog_output ();
zen_data-exit_code = zenity_util_return_exit_code (ZENITY_OK);