From: <sa...@us...> - 2006-08-23 18:50:53
|
Revision: 17007 Author: sadrul Date: 2006-08-23 11:50:46 -0700 (Wed, 23 Aug 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=17007&view=rev Log Message: ----------- 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. Modified Paths: -------------- trunk/console/libgnt/gntmain.c Modified: trunk/console/libgnt/gntmain.c =================================================================== --- trunk/console/libgnt/gntmain.c 2006-08-23 17:01:31 UTC (rev 17006) +++ trunk/console/libgnt/gntmain.c 2006-08-23 18:50:46 UTC (rev 17007) @@ -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); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |