aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtkutil.c
diff options
context:
space:
mode:
authorGlenn Morris <[email protected]>2007-09-06 07:01:41 +0000
committerGlenn Morris <[email protected]>2007-09-06 07:01:41 +0000
commitf63f5da887b9bad0a0c99687075331833829a53d (patch)
tree66648785dd265cb2a6472c1b33c0ec536a4edb6b /src/gtkutil.c
parent5cb3987159778dcdc3a140c232a76c8c405f5ae8 (diff)
(menu_grab_callback) <cnt>: Move static variable to file scope.
Diffstat (limited to 'src/gtkutil.c')
-rw-r--r--src/gtkutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 36873f23e6..c057cc719e 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++;