[gimp] app: s/0/GDK_GRAB_SUCCESS/.



commit 316d94d80039f22251e8040f89c14488ffd5a14f
Author: Jehan <jehan girinstud io>
Date:   Sat Sep 5 22:30:30 2015 +0200

    app: s/0/GDK_GRAB_SUCCESS/.
    
    Let's use semantic names rather than raw meaningless values.

 app/widgets/gimppopup.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimppopup.c b/app/widgets/gimppopup.c
index 4a7df39..08417f8 100644
--- a/app/widgets/gimppopup.c
+++ b/app/widgets/gimppopup.c
@@ -147,10 +147,10 @@ gimp_popup_map_event (GtkWidget                 *widget,
   if (gdk_pointer_grab (gtk_widget_get_window (widget), TRUE,
                         GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK |
                         GDK_POINTER_MOTION_MASK,
-                        NULL, NULL, GDK_CURRENT_TIME) == 0)
+                        NULL, NULL, GDK_CURRENT_TIME) == GDK_GRAB_SUCCESS)
     {
       if (gdk_keyboard_grab (gtk_widget_get_window (widget), TRUE,
-                             GDK_CURRENT_TIME) == 0)
+                             GDK_CURRENT_TIME) == GDK_GRAB_SUCCESS)
         {
           gtk_grab_add (widget);
 


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