diff src/bar_keywords.c @ 1778:e82401bf20c8

Fix contextual menus in lateral bars. Use button_release_event instead of button_press_event, this makes contextual menus persistent until an option is selected or the menu is closed.
author zas_
date Thu, 10 Dec 2009 17:44:31 +0000
parents a4f3c93294c9
children f64e346a3d9c
line wrap: on
line diff
--- a/src/bar_keywords.c	Fri Dec 04 21:01:11 2009 +0000
+++ b/src/bar_keywords.c	Thu Dec 10 17:44:31 2009 +0000
@@ -1356,7 +1356,7 @@
 	g_signal_connect(G_OBJECT(pkd->keyword_treeview), "drag_motion",
 			 G_CALLBACK(bar_pane_keywords_dnd_motion), pkd);
 
-	g_signal_connect(G_OBJECT(pkd->keyword_treeview), "button_press_event", 
+	g_signal_connect(G_OBJECT(pkd->keyword_treeview), "button_release_event", 
 			 G_CALLBACK(bar_pane_keywords_menu_cb), pkd);
 	
 	gtk_container_add(GTK_CONTAINER(scrolled), pkd->keyword_treeview);