[gtk+/wip/baedert/gtkimageview: 250/255] 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: 250/255] Remove useless casts from gdk_event_triggers_context_menu calls
- Date: Thu, 12 May 2016 17:38:58 +0000 (UTC)
commit d780adc891ec97309a5cbbaffa31e4e273e37f36
Author: Timm Bäder <mail baedert org>
Date: Mon Apr 18 20:48:53 2016 +0200
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 f345e76..7094b48 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -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);
}
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 148faa9..f86869a 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -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)
{
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 8cbaf4f..3b9efce 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]