From d5ac9a9b3a3ca48f92daea4ae7ae54a2a1c33297 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 15 Sep 2014 00:28:06 +0000 Subject: add experimental data pointer --- Sgraph.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Sgraph.c') diff --git a/Sgraph.c b/Sgraph.c index 3c26fef..04b1e4f 100644 --- a/Sgraph.c +++ b/Sgraph.c @@ -142,7 +142,10 @@ GetGC(Widget w) static void Initialize(Widget request, Widget w, ArgList args, Cardinal *nargs) { + SgraphWidget sw = (SgraphWidget)w; + sw->sgraph.data = NULL; + warnx("Initialize"); GetGC(w); } @@ -209,6 +212,9 @@ Redisplay(Widget w, XEvent *event, Region r) width + BORDER, BORDER, width - 2 * BORDER, height - 2 * BORDER); */ + if (sw->sgraph.data != NULL) + warnx("%d", *sw->sgraph.data); + XClearWindow(XtDisplay(sw), XtWindow(sw)); n = (n + 1) % width; XCopyArea(XtDisplay(sw), sw->sgraph.bg, XtWindow(sw), sw->sgraph.foreGC, -- cgit v1.2.3