(menu_grab_callback) <cnt>: Move static variable to file scope.
This commit is contained in:
parent
57fd5c55e4
commit
ea345d8fb9
1 changed files with 3 additions and 3 deletions
|
@ -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++;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue