[gtk+] Fix bad check of GtkActionPadType in gtk_pad_controller_set_action



commit 4bef292253c8eef25911a0b8f83e122dae4ddb7e
Author: cedlemo <cedlemo gmx com>
Date:   Mon Feb 27 18:08:17 2017 +0100

    Fix bad check of GtkActionPadType in gtk_pad_controller_set_action
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779317

 gtk/gtkpadcontroller.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkpadcontroller.c b/gtk/gtkpadcontroller.c
index c1a9af7..e7fedfb 100644
--- a/gtk/gtkpadcontroller.c
+++ b/gtk/gtkpadcontroller.c
@@ -514,7 +514,7 @@ gtk_pad_controller_set_action (GtkPadController *controller,
                               (gchar *) label, (gchar *) action_name };
 
   g_return_if_fail (GTK_IS_PAD_CONTROLLER (controller));
-  g_return_if_fail (type <= GTK_PAD_ACTION_RING);
+  g_return_if_fail (type <= GTK_PAD_ACTION_STRIP);
 
   gtk_pad_controller_add_entry (controller, &entry);
 }


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