Wed, 23 Aug 2006 18:50:46 +0000
[gaim-migrate @ 17007]
This is a temporary change, allowing people with slightly older versions of ncurses
to build. I plan to evetually add mouse support for older versions.
| console/libgnt/gntmain.c | file | annotate | diff | comparison | revisions |
--- a/console/libgnt/gntmain.c Wed Aug 23 16:36:58 2006 +0000 +++ b/console/libgnt/gntmain.c Wed Aug 23 18:50:46 2006 +0000 @@ -560,7 +560,7 @@ offset = 0; } else return FALSE; - return TRUE; + return FALSE; /* XXX: this should be TRUE */ } static gboolean @@ -885,8 +885,10 @@ wbkgdset(stdscr, '\0' | COLOR_PAIR(GNT_COLOR_NORMAL)); refresh(); +#ifdef NCURSES_BUTTON_PRESSEDaa if ((mouse_enabled = gnt_style_get_bool(GNT_STYLE_MOUSE, FALSE))) - mousemask(NCURSES_BUTTON_PRESSED | NCURSES_BUTTON_RELEASED , NULL); + mousemask(NCURSES_BUTTON_PRESSED | NCURSES_BUTTON_RELEASED | REPORT_MOUSE_POSITION, NULL); +#endif wbkgdset(stdscr, '\0' | COLOR_PAIR(GNT_COLOR_NORMAL)); werase(stdscr);