[gtk+/wip/baedert/gtkimageview: 148/150] 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: 148/150] Remove useless casts from gdk_event_triggers_context_menu calls
- Date: Mon, 18 Apr 2016 19:01:10 +0000 (UTC)
commit 693593d21d77d20aa4affe207e0c076b8dbe592a
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 127875c..888855c 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 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 9f6b4b1..aab5a1e 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -2675,7 +2675,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]