aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk_event-handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-fs-gtk_event-handler.c')
-rw-r--r--src/fs/gnunet-fs-gtk_event-handler.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/fs/gnunet-fs-gtk_event-handler.c b/src/fs/gnunet-fs-gtk_event-handler.c
index 4c588547..c6044090 100644
--- a/src/fs/gnunet-fs-gtk_event-handler.c
+++ b/src/fs/gnunet-fs-gtk_event-handler.c
@@ -739,8 +739,8 @@ GNUNET_FS_GTK_search_treeview_popup_menu (GtkWidget *widget,
739 * @param widget the GtkTreeView with the search result list 739 * @param widget the GtkTreeView with the search result list
740 * @param event the event, we only care about button events 740 * @param event the event, we only care about button events
741 * @param user_data the 'struct SearchTab' the widget is in 741 * @param user_data the 'struct SearchTab' the widget is in
742 * @return FALSE if no menu could be popped up, 742 * @return FALSE to propagate the event further,
743 * TRUE if there is now a pop-up menu 743 * TRUE to stop the propagation
744 */ 744 */
745gboolean 745gboolean
746GNUNET_FS_GTK_search_treeview_button_press_event (GtkWidget * widget, 746GNUNET_FS_GTK_search_treeview_button_press_event (GtkWidget * widget,
@@ -765,10 +765,11 @@ GNUNET_FS_GTK_search_treeview_button_press_event (GtkWidget * widget,
765 if (! gtk_tree_model_get_iter (tm, &iter, path)) 765 if (! gtk_tree_model_get_iter (tm, &iter, path))
766 return FALSE; /* not sure how we got a path but no iter... */ 766 return FALSE; /* not sure how we got a path but no iter... */
767 gtk_tree_path_free (path); 767 gtk_tree_path_free (path);
768 return search_list_popup (tm, tab, 768 search_list_popup (tm, tab,
769 event_button->button, 769 event_button->button,
770 event_button->time, 770 event_button->time,
771 &iter); 771 &iter);
772 return FALSE;
772} 773}
773 774
774 775
@@ -2767,14 +2768,14 @@ GNUNET_FS_GTK_publish_treeview_popup_menu (GtkWidget *widget,
2767 2768
2768 2769
2769/** 2770/**
2770 * We got a right-click on the search result list. Display the context 2771 * We got a button press on the search result list. Display the context
2771 * menu. 2772 * menu.
2772 * 2773 *
2773 * @param widget the GtkTreeView with the search result list 2774 * @param widget the GtkTreeView with the search result list
2774 * @param event the event, we only care about button events 2775 * @param event the event, we only care about button events
2775 * @param user_data the 'struct SearchTab' the widget is in 2776 * @param user_data the 'struct SearchTab' the widget is in
2776 * @return FALSE if no menu could be popped up, 2777 * @return FALSE to propagate the event further,
2777 * TRUE if there is now a pop-up menu 2778 * TRUE to stop the event propagation.
2778 */ 2779 */
2779gboolean 2780gboolean
2780GNUNET_FS_GTK_publish_treeview_button_press_event (GtkWidget * widget, 2781GNUNET_FS_GTK_publish_treeview_button_press_event (GtkWidget * widget,
@@ -2799,10 +2800,11 @@ GNUNET_FS_GTK_publish_treeview_button_press_event (GtkWidget * widget,
2799 if (! gtk_tree_model_get_iter (tm, &iter, path)) 2800 if (! gtk_tree_model_get_iter (tm, &iter, path))
2800 return FALSE; /* not sure how we got a path but no iter... */ 2801 return FALSE; /* not sure how we got a path but no iter... */
2801 gtk_tree_path_free (path); 2802 gtk_tree_path_free (path);
2802 return publish_list_popup (tm, tab, 2803 publish_list_popup (tm, tab,
2803 event_button->button, 2804 event_button->button,
2804 event_button->time, 2805 event_button->time,
2805 &iter); 2806 &iter);
2807 return FALSE; /* propagate further, to focus on the item (for example) */
2806} 2808}
2807 2809
2808 2810