aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-09-13 11:35:45 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-13 11:35:45 +0800
commite841a0b22395bae0097f89a208c8b5309f77166b (patch)
tree7d29aee2c1fd0b1addbacd3517dc47cc5b99bb9b /widgets/misc
parent43594a8b6eeeb072a672041cd72b2b211dd56958 (diff)
downloadgsoc2013-evolution-e841a0b22395bae0097f89a208c8b5309f77166b.tar.gz
gsoc2013-evolution-e841a0b22395bae0097f89a208c8b5309f77166b.tar.zst
gsoc2013-evolution-e841a0b22395bae0097f89a208c8b5309f77166b.zip
Bug 594863 - Message body doesn't allow right click pop up menu
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-web-view.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/widgets/misc/e-web-view.c b/widgets/misc/e-web-view.c
index a49fd22527..afbe2d9455 100644
--- a/widgets/misc/e-web-view.c
+++ b/widgets/misc/e-web-view.c
@@ -346,7 +346,7 @@ web_view_button_press_event_cb (EWebView *web_view,
uri = e_web_view_extract_uri (web_view, event, frame);
- if (uri == NULL || g_str_has_prefix (uri, "##")) {
+ if (uri != NULL && g_str_has_prefix (uri, "##")) {
g_free (uri);
return FALSE;
}
@@ -637,6 +637,9 @@ web_view_popup_event (EWebView *web_view,
GdkEventButton *event,
const gchar *uri)
{
+ if (uri == NULL)
+ return FALSE;
+
e_web_view_set_selected_uri (web_view, uri);
e_web_view_show_popup_menu (web_view, event, NULL, NULL);