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.142 by sf-exg, Fri Jul 1 19:07:08 2011 UTC vs.
Revision 1.149 by sf-exg, Sat Jan 7 12:01:30 2012 UTC

799 const_iv (XIMDontChange), 799 const_iv (XIMDontChange),
800# endif 800# endif
801# endif 801# endif
802 }; 802 };
803 803
804 for (civ = const_iv + ecb_array_length (const_iv); civ-- > const_iv; ) 804 for (civ = const_iv + ecb_array_length (const_iv); civ > const_iv; civ--)
805 newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); 805 newCONSTSUB (stash, (char *)civ[-1].name, newSViv (civ[-1].iv));
806} 806}
807 807
808void 808void
809warn (const char *msg) 809warn (const char *msg)
810 CODE: 810 CODE:
920 CODE: 920 CODE:
921{ 921{
922 rxvt_term *term = new rxvt_term; 922 rxvt_term *term = new rxvt_term;
923 923
924 stringvec *argv = new stringvec; 924 stringvec *argv = new stringvec;
925 stringvec *envv = new stringvec;
926
927 for (int i = 0; i <= AvFILL (arg); i++) 925 for (int i = 0; i <= AvFILL (arg); i++)
928 argv->push_back (strdup (SvPVbyte_nolen (*av_fetch (arg, i, 1)))); 926 argv->push_back (strdup (SvPVbyte_nolen (*av_fetch (arg, i, 1))));
929 927
928 stringvec *envv = new stringvec;
930 for (int i = AvFILL (env) + 1; i--; ) 929 for (int i = AvFILL (env) + 1; i--; )
931 envv->push_back (strdup (SvPVbyte_nolen (*av_fetch (env, i, 1)))); 930 envv->push_back (strdup (SvPVbyte_nolen (*av_fetch (env, i, 1))));
932
933 envv->push_back (0);
934 931
935 try 932 try
936 { 933 {
937 term->init (argv, envv); 934 term->init (argv, envv);
938 } 935 }
978 975
979void 976void
980rxvt_term::XUngrabKey (int keycode, U32 modifiers, Window window = THIS->vt) 977rxvt_term::XUngrabKey (int keycode, U32 modifiers, Window window = THIS->vt)
981 CODE: 978 CODE:
982 XUngrabKey (THIS->dpy, keycode, modifiers, window); 979 XUngrabKey (THIS->dpy, keycode, modifiers, window);
983
984void
985rxvt_term::XUngrabKeyboard (Time eventtime)
986 CODE:
987 XUngrabKeyboard (THIS->dpy, eventtime);
988 980
989bool 981bool
990rxvt_term::grab (Time eventtime, int sync = 0) 982rxvt_term::grab (Time eventtime, int sync = 0)
991 CODE: 983 CODE:
992{ 984{
1104 rxvt_pop_locale (); 1096 rxvt_pop_locale ();
1105 1097
1106 RETVAL = wcs2sv (wstr); 1098 RETVAL = wcs2sv (wstr);
1107 free (wstr); 1099 free (wstr);
1108} 1100}
1109 OUTPUT:
1110 RETVAL
1111
1112char *
1113rxvt_term::locale ()
1114 CODE:
1115 RETVAL = THIS->locale;
1116 OUTPUT: 1101 OUTPUT:
1117 RETVAL 1102 RETVAL
1118 1103
1119#define TERM_OFFSET(sym) offsetof (TermWin_t, sym) 1104#define TERM_OFFSET(sym) offsetof (TermWin_t, sym)
1120 1105
1266} 1251}
1267 OUTPUT: 1252 OUTPUT:
1268 RETVAL 1253 RETVAL
1269 1254
1270void 1255void
1256rxvt_term::set_urgency (bool enable)
1257
1258void
1271rxvt_term::focus_in () 1259rxvt_term::focus_in ()
1272 1260
1273void 1261void
1274rxvt_term::focus_out () 1262rxvt_term::focus_out ()
1275 1263
1588 CODE: 1576 CODE:
1589 RETVAL = 0 < THIS->parse_keysym (keysym, str); 1577 RETVAL = 0 < THIS->parse_keysym (keysym, str);
1590 THIS->keyboard->register_done (); 1578 THIS->keyboard->register_done ();
1591 OUTPUT: 1579 OUTPUT:
1592 RETVAL 1580 RETVAL
1581
1582void
1583rxvt_term::register_command (int keysym, unsigned int state, SV *str)
1584 CODE:
1585 wchar_t *wstr = sv2wcs (str);
1586 THIS->keyboard->register_user_translation (keysym, state, wstr);
1587 free (wstr);
1593 1588
1594void 1589void
1595rxvt_term::screen_cur (...) 1590rxvt_term::screen_cur (...)
1596 PROTOTYPE: $;$$ 1591 PROTOTYPE: $;$$
1597 ALIAS: 1592 ALIAS:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines