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:
parent
75b0dc6735
commit
7c45654993
3 changed files with 3 additions and 3 deletions
|
@ -1629,7 +1629,7 @@ CBrowser* browser_new(CBrowser* oldBrowser)
|
||||||
, "plugins-enabled" , config->enablePlugins
|
, "plugins-enabled" , config->enablePlugins
|
||||||
, NULL);
|
, 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 ("popup-menu" , on_webView_popup);
|
||||||
DOC_CONNECT ("scroll-event" , on_webView_scroll);
|
DOC_CONNECT ("scroll-event" , on_webView_scroll);
|
||||||
DOC_CONNECT ("leave-notify-event" , on_webView_leave)
|
DOC_CONNECT ("leave-notify-event" , on_webView_leave)
|
||||||
|
|
|
@ -206,7 +206,7 @@ void webView_popup(GtkWidget* webView, GdkEventButton* event, CBrowser* browser)
|
||||||
sokoke_widget_popup(webView, GTK_MENU(browser->popup_webView), event);
|
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)
|
, CBrowser* browser)
|
||||||
{
|
{
|
||||||
GdkModifierType state = (GdkModifierType)0;
|
GdkModifierType state = (GdkModifierType)0;
|
||||||
|
|
|
@ -58,7 +58,7 @@ on_webView_window_open(GtkWidget*, const gchar*, CBrowser*);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
on_webView_button_release(GtkWidget*, GdkEventButton*, CBrowser*);
|
on_webView_button_press(GtkWidget*, GdkEventButton*, CBrowser*);
|
||||||
|
|
||||||
void
|
void
|
||||||
on_webView_popup(GtkWidget*, CBrowser*);
|
on_webView_popup(GtkWidget*, CBrowser*);
|
||||||
|
|
Loading…
Reference in a new issue