# HG changeset patch # User Glenn Morris # Date 1189062056 0 # Node ID d514db1d656bb5f878da80c6cfca4e968b9545da # Parent 78079888213024729810fa8e6a4d97c533562d14 (menu_grab_callback) : Move static variable to file scope. diff -r 780798882130 -r d514db1d656b src/gtkutil.c --- a/src/gtkutil.c Thu Sep 06 07:00:30 2007 +0000 +++ b/src/gtkutil.c Thu Sep 06 07:00:56 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++;