diff options
| -rw-r--r-- | src/ChangeLog | 1 | ||||
| -rw-r--r-- | src/gtkutil.c | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3c2c9c53b6c..ad81e6c63f4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,6 @@ 2007-09-06 Glenn Morris <rgm@gnu.org> + * gtkutil.c (menu_grab_callback) <cnt>: * xselect.c (x_reply_selection_request) <cnt>: Move static variable to file scope. 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++; |
