[gtk+/wip/baedert/gtkimageview] Remove useless casts from gdk_event_triggers_context_menu calls
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gtkimageview] Remove useless casts from gdk_event_triggers_context_menu calls
- Date: Wed, 23 Mar 2016 20:03:00 +0000 (UTC)
commit 728ada58a3f0e8379c90c50baa571166dd60ab0b
Author: Timm Bäder <mail baedert org>
Date: Mon Mar 21 21:52:18 2016 +0100
Remove useless casts from gdk_event_triggers_context_menu calls
gtk/gtkentry.c | 2 +-
gtk/gtklabel.c | 2 +-
gtk/gtkrange.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 000322b..5d17af2 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -4374,7 +4374,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);
}
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index a51d71f..0dc8874 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -4992,7 +4992,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)
{
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 1370703..db0215f 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -2695,7 +2695,7 @@ gtk_range_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
NULL);
if (priv->mouse_location == MOUSE_SLIDER &&
- gdk_event_triggers_context_menu ((GdkEvent *)event))
+ gdk_event_triggers_context_menu (event))
{
gboolean handled;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]