Commit 301652de authored by Timm Bäder's avatar Timm Bäder 👎

Remove useless casts from gdk_event_triggers_context_menu calls

parent c34bb3b9
......@@ -4376,7 +4376,7 @@ gtk_entry_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
tmp_pos = gtk_entry_find_position (entry, x);
if (gdk_event_triggers_context_menu ((GdkEvent *) event))
if (gdk_event_triggers_context_menu (event))
{
gtk_entry_do_popup (entry, event);
}
......
......@@ -4976,7 +4976,7 @@ gtk_label_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
info->in_drag = FALSE;
info->select_words = FALSE;
if (gdk_event_triggers_context_menu ((GdkEvent *) event))
if (gdk_event_triggers_context_menu (event))
gtk_label_do_popup (label, (GdkEventButton*) event);
else if (button == GDK_BUTTON_PRIMARY)
{
......
......@@ -2668,7 +2668,7 @@ gtk_range_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
NULL);
if (priv->mouse_location == priv->slider_gadget &&
gdk_event_triggers_context_menu ((GdkEvent *)event))
gdk_event_triggers_context_menu (event))
{
gboolean handled;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment