diff options
| author | Glenn Morris | 2007-09-12 17:17:59 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-09-12 17:17:59 +0000 |
| commit | c29ec096c7d43dc6449bc9cc12e100737eae031b (patch) | |
| tree | e08364c46b859b0b65840ccddb6c82fdadfa8ed8 | |
| parent | 0f0c86fc73f3864a68b25ad94d9da561603aae3b (diff) | |
| download | emacs-c29ec096c7d43dc6449bc9cc12e100737eae031b.tar.gz emacs-c29ec096c7d43dc6449bc9cc12e100737eae031b.zip | |
(cnt): Rename to menu_grab_callback_cnt for clarity.
(menu_grab_callback): All uses changed.
| -rw-r--r-- | src/gtkutil.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c index c057cc719e0..7b1e4c5272d 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -1781,18 +1781,18 @@ menu_destroy_callback (w, client_data) | |||
| 1781 | CLIENT_DATA is NULL (not used). */ | 1781 | CLIENT_DATA is NULL (not used). */ |
| 1782 | 1782 | ||
| 1783 | /* Keep track of total number of grabs. */ | 1783 | /* Keep track of total number of grabs. */ |
| 1784 | static int cnt; | 1784 | static int menu_grab_callback_cnt; |
| 1785 | 1785 | ||
| 1786 | static void | 1786 | static void |
| 1787 | menu_grab_callback (GtkWidget *widget, | 1787 | menu_grab_callback (GtkWidget *widget, |
| 1788 | gboolean ungrab_p, | 1788 | gboolean ungrab_p, |
| 1789 | gpointer client_data) | 1789 | gpointer client_data) |
| 1790 | { | 1790 | { |
| 1791 | if (ungrab_p) cnt--; | 1791 | if (ungrab_p) menu_grab_callback_cnt--; |
| 1792 | else cnt++; | 1792 | else menu_grab_callback_cnt++; |
| 1793 | 1793 | ||
| 1794 | if (cnt > 0 && ! xg_timer) xg_start_timer (); | 1794 | if (menu_grab_callback_cnt > 0 && ! xg_timer) xg_start_timer (); |
| 1795 | else if (cnt == 0 && xg_timer) xg_stop_timer (); | 1795 | else if (menu_grab_callback_cnt == 0 && xg_timer) xg_stop_timer (); |
| 1796 | } | 1796 | } |
| 1797 | 1797 | ||
| 1798 | /* Make a GTK widget that contains both UTF8_LABEL and UTF8_KEY (both | 1798 | /* Make a GTK widget that contains both UTF8_LABEL and UTF8_KEY (both |