Mercurial > pidgin.yaz
comparison pidgin/gtkwebview.c @ 32604:e7eba7a6a989
Let webview manage the navigation ONLY if the reason is the user clicked a link.
author | masca@cpw.pidgin.im |
---|---|
date | Fri, 09 Sep 2011 03:27:52 +0000 |
parents | 8e1ec44ede75 |
children | 68fe7b5211a7 |
comparison
equal
deleted
inserted
replaced
32601:def5b2a97fee | 32604:e7eba7a6a989 |
---|---|
194 | 194 |
195 if (reason == WEBKIT_WEB_NAVIGATION_REASON_LINK_CLICKED) { | 195 if (reason == WEBKIT_WEB_NAVIGATION_REASON_LINK_CLICKED) { |
196 /* the gtk imhtml way was to create an idle cb, not sure | 196 /* the gtk imhtml way was to create an idle cb, not sure |
197 * why, so right now just using purple_notify_uri directly */ | 197 * why, so right now just using purple_notify_uri directly */ |
198 purple_notify_uri(NULL, uri); | 198 purple_notify_uri(NULL, uri); |
199 } | 199 } else |
200 | 200 webkit_web_policy_decision_use(policy_decision); |
201 webkit_web_policy_decision_use(policy_decision); | |
202 | 201 |
203 return TRUE; | 202 return TRUE; |
204 } | 203 } |
205 | 204 |
206 static gboolean | 205 static gboolean |