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

Comparing rxvt-unicode/src/rxvttoolkit.C (file contents):
Revision 1.115 by sf-exg, Fri Feb 11 01:24:46 2011 UTC vs.
Revision 1.117 by sf-exg, Sat Feb 12 00:30:00 2011 UTC

2 * File: rxvttoolkit.C 2 * File: rxvttoolkit.C
3 *----------------------------------------------------------------------* 3 *----------------------------------------------------------------------*
4 * 4 *
5 * All portions of code are copyright by their respective author/s. 5 * All portions of code are copyright by their respective author/s.
6 * Copyright (c) 2003-2007 Marc Lehmann <pcg@goof.com> 6 * Copyright (c) 2003-2007 Marc Lehmann <pcg@goof.com>
7 * Copyright (c) 2011 Emanuele Giaquinta <e.giaquinta@glauco.it>
7 * 8 *
8 * This program is free software; you can redistribute it and/or modify 9 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by 10 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or 11 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version. 12 * (at your option) any later version.
903 x_ev.set<rxvt_selection, &rxvt_selection::x_cb> (this); 904 x_ev.set<rxvt_selection, &rxvt_selection::x_cb> (this);
904 905
905 incr_buf = 0; 906 incr_buf = 0;
906 incr_buf_size = incr_buf_fill = 0; 907 incr_buf_size = incr_buf_fill = 0;
907 selection_wait = Sel_normal; 908 selection_wait = Sel_normal;
909 selection_type = selnum;
910}
911
912void
913rxvt_selection::run ()
914{
915 int selnum = selection_type;
908 916
909#if X_HAVE_UTF8_STRING 917#if X_HAVE_UTF8_STRING
910 selection_type = Sel_UTF8String; 918 selection_type = Sel_UTF8String;
911 if (request (display->xa[XA_UTF8_STRING], selnum)) 919 if (request (display->xa[XA_UTF8_STRING], selnum))
912 return; 920 return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines