gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r9569 - gnunet-gtk/src/plugins/fs


From: gnunet
Subject: [GNUnet-SVN] r9569 - gnunet-gtk/src/plugins/fs
Date: Wed, 18 Nov 2009 02:07:21 -0700

Author: grothoff
Date: 2009-11-18 02:07:20 -0700 (Wed, 18 Nov 2009)
New Revision: 9569

Modified:
   gnunet-gtk/src/plugins/fs/download.c
Log:
fix Mantis 1474

Modified: gnunet-gtk/src/plugins/fs/download.c
===================================================================
--- gnunet-gtk/src/plugins/fs/download.c        2009-11-18 08:25:52 UTC (rev 
9568)
+++ gnunet-gtk/src/plugins/fs/download.c        2009-11-18 09:07:20 UTC (rev 
9569)
@@ -790,7 +790,13 @@
 on_searchResults_button_press_fs (GtkWidget * treeview,
                                   GdkEventButton * event, gpointer data)
 {
-  if (event->type == GDK_2BUTTON_PRESS)
+  if (event->window != gtk_tree_view_get_bin_window (GTK_TREE_VIEW (treeview)))
+    return FALSE;
+  if ( (event->type == GDK_2BUTTON_PRESS) &&
+       (TRUE == gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (treeview),
+                                              event->x, event->y,
+                                              NULL, NULL,
+                                              NULL, NULL)) )
     on_downloadButton_clicked_fs (treeview, NULL);
   return FALSE;
 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]