changeset 78744:b342cac5976b

(menu_grab_callback) <cnt>: Move static variable to file scope.
author Glenn Morris <rgm@gnu.org>
date Thu, 06 Sep 2007 07:01:23 +0000
parents 4c7b6a25a97b
children 853738fb50ec
files src/gtkutil.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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++;