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

Comparing rxvt-unicode/src/rxvtperl.xs (file contents):
Revision 1.128 by root, Sat Dec 26 09:42:16 2009 UTC vs.
Revision 1.130 by sf-exg, Sun Feb 14 19:34:42 2010 UTC

1594 THIS->selection.screen = screen; 1594 THIS->selection.screen = screen;
1595 OUTPUT: 1595 OUTPUT:
1596 RETVAL 1596 RETVAL
1597 1597
1598void 1598void
1599rxvt_term::selection_clear () 1599rxvt_term::selection_clear (bool clipboard = false)
1600 1600
1601void 1601void
1602rxvt_term::selection_make (Time eventtime, bool rect = false) 1602rxvt_term::selection_make (Time eventtime, bool rect = false)
1603 CODE: 1603 CODE:
1604 THIS->selection.op = SELECTION_CONT; 1604 THIS->selection.op = SELECTION_CONT;
1605 THIS->selection.rect = rect; 1605 THIS->selection.rect = rect;
1606 THIS->selection_make (eventtime); 1606 THIS->selection_make (eventtime);
1607 1607
1608int 1608int
1609rxvt_term::selection_grab (Time eventtime) 1609rxvt_term::selection_grab (Time eventtime, bool clipboard = false)
1610 1610
1611void 1611void
1612rxvt_term::selection (SV *newtext = 0) 1612rxvt_term::selection (SV *newtext = 0, bool clipboard = false)
1613 PPCODE: 1613 PPCODE:
1614{ 1614{
1615 wchar_t * &text = clipboard ? THIS->selection.clip_text : THIS->selection.text;
1616 unsigned int &len = clipboard ? THIS->selection.clip_len : THIS->selection.len;
1617
1615 if (GIMME_V != G_VOID) 1618 if (GIMME_V != G_VOID)
1616 XPUSHs (THIS->selection.text 1619 XPUSHs (text
1617 ? sv_2mortal (wcs2sv (THIS->selection.text, THIS->selection.len)) 1620 ? sv_2mortal (wcs2sv (text, len))
1618 : &PL_sv_undef); 1621 : &PL_sv_undef);
1619 1622
1620 if (newtext) 1623 if (newtext)
1621 { 1624 {
1622 free (THIS->selection.text); 1625 free (text);
1623 1626
1624 THIS->selection.text = sv2wcs (newtext); 1627 text = sv2wcs (newtext);
1625 THIS->selection.len = wcslen (THIS->selection.text); 1628 len = wcslen (text);
1626 } 1629 }
1627} 1630}
1628 1631
1629char 1632char
1630rxvt_term::cur_charset () 1633rxvt_term::cur_charset ()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines