# HG changeset patch # User Glenn Morris # Date 1189062083 0 # Node ID b342cac5976bb4d01a86c6abf91c75015787b865 # Parent 4c7b6a25a97b1ff187e516f0e9275b5b99ba3ed7 (menu_grab_callback) : Move static variable to file scope. diff -r 4c7b6a25a97b -r b342cac5976b src/gtkutil.c --- a/src/gtkutil.c Thu Sep 06 06:55:01 2007 +0000 +++ b/src/gtkutil.c Thu Sep 06 07:01:23 2007 +0000 @@ -1780,14 +1780,14 @@ 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++;