From ea345d8fb99bc1f22351e00af5071b3b24454ee4 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 6 Sep 2007 07:00:56 +0000 Subject: [PATCH] (menu_grab_callback) : Move static variable to file scope. --- src/gtkutil.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gtkutil.c b/src/gtkutil.c index 36873f23e6d..c057cc719e0 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -1780,14 +1780,14 @@ menu_destroy_callback (w, client_data) UNGRAB_P is TRUE if this is an ungrab, FALSE if it is a grab. CLIENT_DATA is NULL (not used). */ +/* Keep track of total number of grabs. */ +static int cnt; + static void menu_grab_callback (GtkWidget *widget, gboolean ungrab_p, gpointer client_data) { - /* Keep track of total number of grabs. */ - static int cnt; - if (ungrab_p) cnt--; else cnt++; -- 2.39.5