ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/main.C
(Generate patch)

Comparing rxvt-unicode/src/main.C (file contents):
Revision 1.256 by root, Sun Nov 11 04:08:00 2007 UTC vs.
Revision 1.260 by root, Sun Nov 18 02:45:26 2007 UTC

370 370
371 destroy_ev.start (); 371 destroy_ev.start ();
372} 372}
373 373
374void 374void
375rxvt_term::destroy_cb (ev::check &w, int revents) 375rxvt_term::destroy_cb (ev::idle &w, int revents)
376{ 376{
377 make_current (); 377 make_current ();
378 378
379 delete this; 379 delete this;
380} 380}
615 615
616void 616void
617rxvt_init () 617rxvt_init ()
618{ 618{
619 ptytty::init (); 619 ptytty::init ();
620
620 ev::ev_default_loop (0); 621 if (!ev::ev_default_loop (0))
622 rxvt_fatal ("cannot initialise libev (bad value for LIBEV_METHODS?)\n");
621 623
622 rxvt_environ = environ; 624 rxvt_environ = environ;
623 625
624 signal (SIGHUP, SIG_IGN); 626 signal (SIGHUP, SIG_IGN);
625 signal (SIGPIPE, SIG_IGN); 627 signal (SIGPIPE, SIG_IGN);
1001 /*TODO: handle Color_BD, scrollbar background, etc. */ 1003 /*TODO: handle Color_BD, scrollbar background, etc. */
1002 1004
1003 update_fade_color (idx); 1005 update_fade_color (idx);
1004 recolour_cursor (); 1006 recolour_cursor ();
1005 scr_recolour (); 1007 scr_recolour ();
1006#endif /* XTERM_COLOR_CHANGE */ 1008#endif /* XTERM_COLOR_CHANGE */
1007} 1009}
1008 1010
1009void 1011void
1010rxvt_term::recolour_cursor () 1012rxvt_term::recolour_cursor ()
1011{ 1013{
1704 XFree (status_attr); 1706 XFree (status_attr);
1705 } 1707 }
1706 1708
1707 XFree (preedit_attr); 1709 XFree (preedit_attr);
1708} 1710}
1709#endif /* USE_XIM */ 1711#endif /* USE_XIM */
1710 1712
1711void 1713void
1712rxvt_term::get_window_origin (int &x, int &y) 1714rxvt_term::get_window_origin (int &x, int &y)
1713{ 1715{
1714 Window cr; 1716 Window cr;
1736 } 1738 }
1737 return None; 1739 return None;
1738} 1740}
1739 1741
1740#ifdef HAVE_BG_PIXMAP 1742#ifdef HAVE_BG_PIXMAP
1743# if TRACE_PIXMAPS
1744# undef update_background
1745int rxvt_term::trace_update_background (const char* file, int line)
1746{
1747 fprintf (stderr, "%s:%d:update_background()\n", file, line);
1748 update_background ();
1749}
1750# endif
1741int 1751int
1742rxvt_term::update_background () 1752rxvt_term::update_background ()
1743{ 1753{
1744 bgPixmap.invalidate (); 1754 bgPixmap.invalidate ();
1745 1755

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines