Handle the context menu on button press, not release.

As stated in the reference popup menus should be opended
from button-press-event instead of button-release-event.
This commit is contained in:
Christian Dywan 2008-01-03 02:16:06 +01:00
parent 75b0dc6735
commit 7c45654993
3 changed files with 3 additions and 3 deletions

View file

@ -1629,7 +1629,7 @@ CBrowser* browser_new(CBrowser* oldBrowser)
, "plugins-enabled" , config->enablePlugins
, NULL);
DOC_CONNECT ("button-release-event" , on_webView_button_release)
DOC_CONNECT ("button-press-event" , on_webView_button_press)
DOC_CONNECT ("popup-menu" , on_webView_popup);
DOC_CONNECT ("scroll-event" , on_webView_scroll);
DOC_CONNECT ("leave-notify-event" , on_webView_leave)

View file

@ -206,7 +206,7 @@ void webView_popup(GtkWidget* webView, GdkEventButton* event, CBrowser* browser)
sokoke_widget_popup(webView, GTK_MENU(browser->popup_webView), event);
}
gboolean on_webView_button_release(GtkWidget* webView, GdkEventButton* event
gboolean on_webView_button_press(GtkWidget* webView, GdkEventButton* event
, CBrowser* browser)
{
GdkModifierType state = (GdkModifierType)0;

View file

@ -58,7 +58,7 @@ on_webView_window_open(GtkWidget*, const gchar*, CBrowser*);
*/
gboolean
on_webView_button_release(GtkWidget*, GdkEventButton*, CBrowser*);
on_webView_button_press(GtkWidget*, GdkEventButton*, CBrowser*);
void
on_webView_popup(GtkWidget*, CBrowser*);