… | |
… | |
404 | dSP; |
404 | dSP; |
405 | EXTEND (SP, 2); |
405 | EXTEND (SP, 2); |
406 | PUSHs (sv_2mortal (newSVterm (term))); |
406 | PUSHs (sv_2mortal (newSVterm (term))); |
407 | PUSHs (sv_2mortal (newSViv (type))); |
407 | PUSHs (sv_2mortal (newSViv (type))); |
408 | PUTBACK; |
408 | PUTBACK; |
409 | call_pv ("urxvt::usage", G_VOID | G_DISCARD | G_EVAL); |
409 | call_pv ("urxvt::usage", G_VOID | G_DISCARD); |
410 | |
410 | |
411 | FREETMPS; |
411 | FREETMPS; |
412 | LEAVE; |
412 | LEAVE; |
413 | } |
413 | } |
414 | |
414 | |
415 | uint8_t |
415 | uint8_t |
416 | rxvt_perl_interp::resource (rxvt_term *term, const char *name, bool arg, bool longopt, bool flag, const char *value) |
416 | rxvt_perl_interp::parse_resource (rxvt_term *term, const char *name, bool arg, bool longopt, bool flag, const char *value) |
417 | { |
417 | { |
418 | localise_env set_environ (perl_environ); |
418 | localise_env set_environ (perl_environ); |
419 | |
419 | |
420 | ENTER; |
420 | ENTER; |
421 | SAVETMPS; |
421 | SAVETMPS; |
… | |
… | |
427 | PUSHs (arg ? &PL_sv_yes : &PL_sv_no); |
427 | PUSHs (arg ? &PL_sv_yes : &PL_sv_no); |
428 | PUSHs (longopt ? &PL_sv_yes : &PL_sv_no); |
428 | PUSHs (longopt ? &PL_sv_yes : &PL_sv_no); |
429 | PUSHs (flag ? &PL_sv_yes : &PL_sv_no); |
429 | PUSHs (flag ? &PL_sv_yes : &PL_sv_no); |
430 | PUSHs (value ? sv_2mortal (newSVpv (value, 0)) : &PL_sv_undef); |
430 | PUSHs (value ? sv_2mortal (newSVpv (value, 0)) : &PL_sv_undef); |
431 | PUTBACK; |
431 | PUTBACK; |
432 | call_pv ("urxvt::resource", G_SCALAR | G_EVAL); |
432 | call_pv ("urxvt::parse_resource", G_SCALAR); |
|
|
433 | SPAGAIN; |
433 | |
434 | |
434 | uint8_t ret = POPi; |
435 | uint8_t ret = POPi; |
435 | |
436 | |
436 | FREETMPS; |
437 | FREETMPS; |
437 | LEAVE; |
438 | LEAVE; |
… | |
… | |
1061 | if (count) |
1062 | if (count) |
1062 | THIS->get_window_origin (THIS->parent_x, THIS->parent_y); |
1063 | THIS->get_window_origin (THIS->parent_x, THIS->parent_y); |
1063 | } |
1064 | } |
1064 | } |
1065 | } |
1065 | |
1066 | |
|
|
1067 | void |
|
|
1068 | rxvt_term::put_option_db (octet_string specifier, octet_string value) |
|
|
1069 | CODE: |
|
|
1070 | XrmPutStringResource (&THIS->option_db, specifier, value); |
|
|
1071 | |
1066 | int |
1072 | int |
1067 | rxvt_term::grab_button (int button, U32 modifiers, Window window = THIS->vt) |
1073 | rxvt_term::grab_button (int button, U32 modifiers, Window window = THIS->vt) |
1068 | CODE: |
1074 | CODE: |
1069 | RETVAL = XGrabButton (THIS->dpy, button, modifiers, window, 1, |
1075 | RETVAL = XGrabButton (THIS->dpy, button, modifiers, window, 1, |
1070 | ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | PointerMotionMask, |
1076 | ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | PointerMotionMask, |