diff options
| author | Glenn Morris | 2007-09-06 07:00:56 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-09-06 07:00:56 +0000 |
| commit | ea345d8fb99bc1f22351e00af5071b3b24454ee4 (patch) | |
| tree | e10f09a0b57a51eb5fec838e1b1216020b60d604 | |
| parent | 57fd5c55e459e10cd8a81a92ec2a6f8721f9c30f (diff) | |
| download | emacs-ea345d8fb99bc1f22351e00af5071b3b24454ee4.tar.gz emacs-ea345d8fb99bc1f22351e00af5071b3b24454ee4.zip | |
(menu_grab_callback) <cnt>: Move static variable to file scope.
| -rw-r--r-- | src/gtkutil.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) | |||
| 1780 | UNGRAB_P is TRUE if this is an ungrab, FALSE if it is a grab. | 1780 | UNGRAB_P is TRUE if this is an ungrab, FALSE if it is a grab. |
| 1781 | CLIENT_DATA is NULL (not used). */ | 1781 | CLIENT_DATA is NULL (not used). */ |
| 1782 | 1782 | ||
| 1783 | /* Keep track of total number of grabs. */ | ||
| 1784 | static int cnt; | ||
| 1785 | |||
| 1783 | static void | 1786 | static void |
| 1784 | menu_grab_callback (GtkWidget *widget, | 1787 | menu_grab_callback (GtkWidget *widget, |
| 1785 | gboolean ungrab_p, | 1788 | gboolean ungrab_p, |
| 1786 | gpointer client_data) | 1789 | gpointer client_data) |
| 1787 | { | 1790 | { |
| 1788 | /* Keep track of total number of grabs. */ | ||
| 1789 | static int cnt; | ||
| 1790 | |||
| 1791 | if (ungrab_p) cnt--; | 1791 | if (ungrab_p) cnt--; |
| 1792 | else cnt++; | 1792 | else cnt++; |
| 1793 | 1793 | ||