jmp_buf eljbuf;
-#if 0
- if (running && !Eoktorun) {
- err(ERRRECRUN, ERR2, NULL, 0);
- return NULL;
- }
-#endif
Eoktorun = FALSE;
if (!co)
/* LEFTY builtin */
int C2Lreadcsmessage (int argc, lvar_t *argv) {
-
-#if 0 /* not finished yet */
- io_t *p;
- int ioi, n;
- Msg_call_t msg;
- Tobj to;
- int tm;
-
- ioi = Tgetnumber (argv[0].o);
- if (ioi < 0 || ioi >= ion)
- return L_FAILURE;
-
- p = &iop[ioi];
- fseek (p->ofp, 0L, 1);
- if ((n = msgrecv (fileno (p->ifp), &msg)) <= 0)
- return L_FAILURE;
- to = Ttable (6);
- tm = Mpushmark (to);
- Tinss (to, "id", Tinteger (MSG_CHANNEL_USR (msg.channel)));
- Tinss (to, "pid", Tinteger (MSG_CHANNEL_SYS (msg.channel)));
- rtno = to;
- Mpopmark (tm);
-#endif
-
return L_SUCCESS;
}
jmp_buf eljbuf;
-#if 0
- if (running && !Eoktorun) {
- err (ERRRECRUN, ERR2, NULL, 0);
- return NULL;
- }
-#endif
Eoktorun = FALSE;
if (!co)
c.red = attrp[ai].u.c.r * 257;
c.green = attrp[ai].u.c.g * 257;
c.blue = attrp[ai].u.c.b * 257;
-/* if (XAllocColor (
- Gdisplay, DefaultColormap (Gdisplay, Gscreenn), &c
- )) {
- if (color == 0)
- ADD2ARGS (XtNbackground, c.pixel);
- else
- ADD2ARGS (XtNforeground, c.pixel);
- }
-*/
break;
case G_ATTRWINDOWID:
Gerr(POS, G_ERRCANNOTSETATTR1, "windowid");
int Gaworder(Gwidget_t * widget, void *data, Gawordercb func)
{
-/* (*func) (data, NULL); */
dolayout(widget, TRUE);
}
c.red = attrp[ai].u.c.r * 257;
c.green = attrp[ai].u.c.g * 257;
c.blue = attrp[ai].u.c.b * 257;
- /* if (XAllocColor (
- Gdisplay, DefaultColormap (Gdisplay, Gscreenn), &c
- )) {
- if (color == 0)
- ADD2ARGS (XtNbackground, c.pixel);
- else
- ADD2ARGS (XtNforeground, c.pixel);
- }
- */
break;
case G_ATTRWINDOWID:
Gerr(POS, G_ERRCANNOTSETATTR1, "windowid");
Gerr(POS, G_ERRCANNOTSETATTR1, "childcenter");
return -1;
case G_ATTRMODE:
- /* if (Strcmp ("forcebars", attrp[ai].u.t) == 0)
- ADD2ARGS (XtNforceBars, True);
- else {
- Gerr (POS, G_ERRBADATTRVALUE, attrp[ai].u.t);
- return -1;
- }
- */
break;
case G_ATTRCOLOR:
color = attrp[ai].u.c.index;
c.red = attrp[ai].u.c.r * 257;
c.green = attrp[ai].u.c.g * 257;
c.blue = attrp[ai].u.c.b * 257;
- /* if (XAllocColor (
- Gdisplay, DefaultColormap (Gdisplay, Gscreenn), &c
- )) {
- if (color == 0)
- ADD2ARGS (XtNbackground, c.pixel);
- else
- ADD2ARGS (XtNforeground, c.pixel);
- }
- */
break;
case G_ATTRWINDOWID:
Gerr(POS, G_ERRCANNOTSETATTR1, "windowid");
c.red = attrp[ai].u.c.r * 257;
c.green = attrp[ai].u.c.g * 257;
c.blue = attrp[ai].u.c.b * 257;
- /* if (XAllocColor (
- Gdisplay, DefaultColormap (Gdisplay, Gscreenn), &c
- )) {
- if (color == 0)
- ADD2ARGS (XtNbackground, c.pixel);
- else
- ADD2ARGS (XtNforeground, c.pixel);
- }
- */
break;
case G_ATTRZORDER:
Gerr(POS, G_ERRCANNOTSETATTR1, "zorder");
return -1;
}
}
- /* if (haveorigin) {
- hints.x = po.x, hints.y = po.y;
- hints.width = ps.x, hints.height = ps.y;
- hints.flags = USPosition;
- Glazyrealize (widget->w, TRUE, &hints);
- } else
- Glazyrealize (widget->w, FALSE, NULL);
- */
widget->w = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_widget_set_events(widget->w, GDK_ALL_EVENTS_MASK);