diff options
| author | Glenn Morris | 2007-09-06 07:01:41 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-09-06 07:01:41 +0000 |
| commit | f63f5da887b9bad0a0c99687075331833829a53d (patch) | |
| tree | 66648785dd265cb2a6472c1b33c0ec536a4edb6b /src | |
| parent | 5cb3987159778dcdc3a140c232a76c8c405f5ae8 (diff) | |
| download | emacs-f63f5da887b9bad0a0c99687075331833829a53d.tar.gz emacs-f63f5da887b9bad0a0c99687075331833829a53d.zip | |
(menu_grab_callback) <cnt>: Move static variable to file scope.
Diffstat (limited to 'src')
| -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 @@ | |||
| 1 | 2007-09-06 Glenn Morris <rgm@gnu.org> | 1 | 2007-09-06 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * gtkutil.c (menu_grab_callback) <cnt>: | ||
| 3 | * xselect.c (x_reply_selection_request) <cnt>: Move static | 4 | * xselect.c (x_reply_selection_request) <cnt>: Move static |
| 4 | variable to file scope. | 5 | variable to file scope. |
| 5 | 6 | ||
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 | ||