From a31c25320318115914e009048a4081b2a1b58f50 Mon Sep 17 00:00:00 2001 From: Gustavo Noronha Silva Date: Mon, 14 Dec 2009 12:24:42 +0100 Subject: Let web pages handle mouse clicks before doing our own handling This allows applications to provide their own context menus, and perform their own handling for right-click events. Bug #603326 --- src/ephy-window.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/ephy-window.c') diff --git a/src/ephy-window.c b/src/ephy-window.c index 0f2ceed43..2780aaed0 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -2862,9 +2862,14 @@ ephy_window_set_active_tab (EphyWindow *window, EphyEmbed *new_embed) g_signal_connect_object (view, "notify::progress", G_CALLBACK (sync_tab_load_progress), window, 0); + /* We run our button-press-event after the default + * handler to make sure pages have a chance to perform + * their own handling - for instance, have their own + * context menus, or provide specific functionality + * for the right mouse button */ g_signal_connect_object (view, "button-press-event", G_CALLBACK (ephy_window_dom_mouse_click_cb), - window, 0); + window, G_CONNECT_AFTER); g_signal_connect_object (view, "notify::visibility", G_CALLBACK (ephy_window_visibility_cb), window, 0); -- cgit v1.2.3