Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/screen.c @ 935:97e6a6da2b2c
Fix ncurses #include (again)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 08 Jul 2006 15:32:55 +0200 |
parents | ede9260be93d |
children | 3e592fb33aab |
comparison
equal
deleted
inserted
replaced
934:a09bf67d1dfb | 935:97e6a6da2b2c |
---|---|
27 #include <time.h> | 27 #include <time.h> |
28 #include <ctype.h> | 28 #include <ctype.h> |
29 #include <locale.h> | 29 #include <locale.h> |
30 #include <langinfo.h> | 30 #include <langinfo.h> |
31 #include <config.h> | 31 #include <config.h> |
32 | |
33 #if HAVE_NCURSESW_NCURSES_H | |
34 # include <ncursesw/ncurses.h> | |
35 #elif HAVE_NCURSES_NCURSES_H | |
36 # include <ncurses/ncurses.h> | |
37 #elif HAVE_NCURSES_H | |
38 # include <ncurses.h> | |
39 #else | |
40 # include <curses.h> | |
41 #endif | |
42 | 32 |
43 #include "screen.h" | 33 #include "screen.h" |
44 #include "utf8.h" | 34 #include "utf8.h" |
45 #include "hbuf.h" | 35 #include "hbuf.h" |
46 #include "commands.h" | 36 #include "commands.h" |
488 } | 478 } |
489 } | 479 } |
490 return NULL; | 480 return NULL; |
491 } | 481 } |
492 | 482 |
493 bool scr_BuddyBufferExists(const char *jid) | 483 int scr_BuddyBufferExists(const char *jid) |
494 { | 484 { |
495 return (scr_SearchWindow(jid, FALSE) != NULL); | 485 return (scr_SearchWindow(jid, FALSE) != NULL); |
496 } | 486 } |
497 | 487 |
498 // scr_UpdateWindow() | 488 // scr_UpdateWindow() |
1288 { | 1278 { |
1289 scr_WriteMessage(jidto, text, 0, HBB_PREFIX_OUT|HBB_PREFIX_HLIGHT); | 1279 scr_WriteMessage(jidto, text, 0, HBB_PREFIX_OUT|HBB_PREFIX_HLIGHT); |
1290 scr_ShowWindow(jidto, FALSE); | 1280 scr_ShowWindow(jidto, FALSE); |
1291 } | 1281 } |
1292 | 1282 |
1293 inline void set_autoaway(bool setaway) | 1283 static inline void set_autoaway(bool setaway) |
1294 { | 1284 { |
1295 static enum imstatus oldstatus; | 1285 static enum imstatus oldstatus; |
1296 static char *oldmsg; | 1286 static char *oldmsg; |
1297 Autoaway = setaway; | 1287 Autoaway = setaway; |
1298 | 1288 |
1319 } | 1309 } |
1320 } | 1310 } |
1321 } | 1311 } |
1322 | 1312 |
1323 // Check if we should enter/leave automatic away status | 1313 // Check if we should enter/leave automatic away status |
1324 void scr_CheckAutoAway(bool activity) | 1314 void scr_CheckAutoAway(int activity) |
1325 { | 1315 { |
1326 static time_t LastActivity; | 1316 static time_t LastActivity; |
1327 enum imstatus cur_st; | 1317 enum imstatus cur_st; |
1328 unsigned int autoaway_timeout = settings_opt_get_int("autoaway"); | 1318 unsigned int autoaway_timeout = settings_opt_get_int("autoaway"); |
1329 | 1319 |