[gtk+/gestures: 64/173] gesture: fix compiler warning



commit 5b16e765acf87398b2e21f54c4f388d797649667
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Apr 8 20:41:09 2014 +0200

    gesture: fix compiler warning

 gtk/gtkgesture.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c
index f2d208f..59d09ab 100644
--- a/gtk/gtkgesture.c
+++ b/gtk/gtkgesture.c
@@ -642,9 +642,9 @@ gtk_gesture_set_sequence_state (GtkGesture            *gesture,
   PointData *data;
   guint old_state;
 
-  g_return_if_fail (GTK_IS_GESTURE (gesture));
-  g_return_if_fail (state >= GTK_EVENT_SEQUENCE_NONE &&
-                    state <= GTK_EVENT_SEQUENCE_DENIED);
+  g_return_val_if_fail (GTK_IS_GESTURE (gesture), FALSE);
+  g_return_val_if_fail (state >= GTK_EVENT_SEQUENCE_NONE &&
+                        state <= GTK_EVENT_SEQUENCE_DENIED, FALSE);
 
   priv = gtk_gesture_get_instance_private (gesture);
   data = g_hash_table_lookup (priv->points, sequence);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]