Mercurial > geeqie.yaz
diff src/bar.c @ 1739:70f58b0dd4aa
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 | 2ef885dfa3a7 |
children |
line wrap: on
line diff
--- a/src/bar.c Fri Dec 04 21:01:11 2009 +0000 +++ b/src/bar.c Thu Dec 10 17:44:31 2009 +0000 @@ -517,7 +517,7 @@ gtk_box_pack_start(GTK_BOX(bd->vbox), expander, FALSE, TRUE, 0); - g_signal_connect(expander, "button_press_event", G_CALLBACK(bar_menu_cb), bd); + g_signal_connect(expander, "button_release_event", G_CALLBACK(bar_menu_cb), bd); gtk_container_add(GTK_CONTAINER(expander), pane); @@ -610,7 +610,7 @@ g_signal_connect(G_OBJECT(bd->widget), "size-allocate", G_CALLBACK(bar_size_allocate), bd); - g_signal_connect(G_OBJECT(bd->widget), "button_press_event", G_CALLBACK(bar_menu_cb), bd); + g_signal_connect(G_OBJECT(bd->widget), "button_release_event", G_CALLBACK(bar_menu_cb), bd); bd->width = SIDEBAR_DEFAULT_WIDTH; gtk_widget_set_size_request(bd->widget, bd->width, -1);