Mercurial > pidgin
comparison console/libgnt/gntmain.c @ 14314:8b8188fa98f4
[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.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 23 Aug 2006 18:50:46 +0000 |
parents | a766441af5ea |
children | c8ddda5d8ec8 |
comparison
equal
deleted
inserted
replaced
14313:8a2b571f9990 | 14314:8b8188fa98f4 |
---|---|
558 button = MOUSE_NONE; | 558 button = MOUSE_NONE; |
559 remember = NULL; | 559 remember = NULL; |
560 offset = 0; | 560 offset = 0; |
561 } else | 561 } else |
562 return FALSE; | 562 return FALSE; |
563 return TRUE; | 563 return FALSE; /* XXX: this should be TRUE */ |
564 } | 564 } |
565 | 565 |
566 static gboolean | 566 static gboolean |
567 io_invoke(GIOChannel *source, GIOCondition cond, gpointer null) | 567 io_invoke(GIOChannel *source, GIOCondition cond, gpointer null) |
568 { | 568 { |
883 nodes = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, free_node); | 883 nodes = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, free_node); |
884 | 884 |
885 wbkgdset(stdscr, '\0' | COLOR_PAIR(GNT_COLOR_NORMAL)); | 885 wbkgdset(stdscr, '\0' | COLOR_PAIR(GNT_COLOR_NORMAL)); |
886 refresh(); | 886 refresh(); |
887 | 887 |
888 #ifdef NCURSES_BUTTON_PRESSEDaa | |
888 if ((mouse_enabled = gnt_style_get_bool(GNT_STYLE_MOUSE, FALSE))) | 889 if ((mouse_enabled = gnt_style_get_bool(GNT_STYLE_MOUSE, FALSE))) |
889 mousemask(NCURSES_BUTTON_PRESSED | NCURSES_BUTTON_RELEASED , NULL); | 890 mousemask(NCURSES_BUTTON_PRESSED | NCURSES_BUTTON_RELEASED | REPORT_MOUSE_POSITION, NULL); |
891 #endif | |
890 | 892 |
891 wbkgdset(stdscr, '\0' | COLOR_PAIR(GNT_COLOR_NORMAL)); | 893 wbkgdset(stdscr, '\0' | COLOR_PAIR(GNT_COLOR_NORMAL)); |
892 werase(stdscr); | 894 werase(stdscr); |
893 wrefresh(stdscr); | 895 wrefresh(stdscr); |
894 | 896 |