* mu-msg-body-view.c: ignore the standard csm

This commit is contained in:
Dirk-Jan C. Binnema 2011-01-18 19:28:45 +02:00
parent 67b63a5b4a
commit 7fc00c5d10
1 changed files with 10 additions and 0 deletions

View File

@ -185,6 +185,13 @@ on_resource_request_starting (MuMsgBodyView *self, WebKitWebFrame *frame,
}
}
static gboolean
on_button_press_event (MuMsgBodyView *self, GdkEventButton *event, gpointer data)
{
/* ignore all but the first (typically, left) mouse button */
return (event->button > 1) ? TRUE : FALSE;
}
static void
mu_msg_body_view_init (MuMsgBodyView *obj)
@ -211,6 +218,9 @@ mu_msg_body_view_init (MuMsgBodyView *obj)
/* handle navigation requests */
g_signal_connect (obj, "navigation-policy-decision-requested",
G_CALLBACK (on_navigation_policy_decision_requested), NULL);
/* ignore right-button clicks */
g_signal_connect (obj, "button-press-event",
G_CALLBACK(on_button_press_event), NULL);
}
static void