]> granicus.if.org Git - graphviz/commitdiff
handle_keypress: return a C99 bool instead of boolean
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 11 Jan 2022 04:17:50 +0000 (20:17 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 12 Jan 2022 01:19:32 +0000 (17:19 -0800)
plugin/glitz/gvdevice_glitz.c

index f00162bdefc49aa1d603237c356694280d6894c3..3a8f342bc4d7e915ec4633b4af3771d1e003d092 100644 (file)
@@ -105,7 +105,7 @@ static void handle_client_message(GVJ_t * job, XClientMessageEvent * cmev)
         exit(0);
 }
 
-static boolean handle_keypress(GVJ_t *job, XKeyEvent *kev)
+static bool handle_keypress(GVJ_t *job, XKeyEvent *kev)
 {
     
     int i;
@@ -114,9 +114,9 @@ static boolean handle_keypress(GVJ_t *job, XKeyEvent *kev)
     keycodes = (KeyCode *)job->keycodes;
     for (i=0; i < job->numkeys; i++) {
        if (kev->keycode == keycodes[i])
-           return (job->keybindings[i].callback)(job);
+           return (job->keybindings[i].callback)(job) != 0;
     }
-    return FALSE;
+    return false;
 }
 
 static Visual *find_argb_visual(Display * dpy, int scr)