/pidgin/main: 26a3100b451e: Don't show link context menu when it...

Elliott Sales de Andrade qulogic at pidgin.im
Mon Aug 6 03:42:22 EDT 2012


Changeset: 26a3100b451e9c748dbe69b00a25a4422ab12af5
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2012-08-06 01:01 -0400
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/26a3100b451e

Description:

Don't show link context menu when it's part of the selection.

diffstat:

 pidgin/gtkwebview.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff --git a/pidgin/gtkwebview.c b/pidgin/gtkwebview.c
--- a/pidgin/gtkwebview.c
+++ b/pidgin/gtkwebview.c
@@ -265,7 +265,8 @@ do_popup_menu(WebKitWebView *webview, in
 	g_signal_connect(menu, "selection-done",
 	                 G_CALLBACK(gtk_widget_destroy), NULL);
 
-	if (context & WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK) {
+	if ((context & WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK)
+	 && !(context & WEBKIT_HIT_TEST_RESULT_CONTEXT_SELECTION)) {
 		GtkWebViewProtocol *proto = NULL;
 		GList *children;
 



More information about the Commits mailing list