aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Sgraph.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/Sgraph.c b/Sgraph.c
index 0059113..5d525b4 100644
--- a/Sgraph.c
+++ b/Sgraph.c
@@ -23,6 +23,7 @@
static void Initialize(Widget request, Widget w, ArgList args, Cardinal *nargs);
static void Action(Widget w, XEvent *event, String *params, Cardinal *num_params);
static void Resize(Widget w);
+static void Redisplay(Widget w);
#define BORDER 2
#define SGRAPH_WIDTH 1024
@@ -83,7 +84,7 @@ SgraphClassRec sgraphClassRec = {
False, /* visible_interest */
NULL, /* destroy */
Resize, /* resize */
- NULL, /* expose */
+ Redisplay, /* expose */
NULL, /* set_values */
NULL, /* set_values_hook */
XtInheritSetValuesAlmost, /* set_values_almost */
@@ -114,7 +115,7 @@ Initialize(Widget request, Widget w, ArgList args, Cardinal *nargs)
static void
Resize(Widget w)
{
- if (!XtIsREalized(w))
+ if (!XtIsRealized(w))
return;
winwidth = w->core.width;
@@ -122,6 +123,13 @@ Resize(Widget w)
}
static void
+Redisplay(Widget w)
+{
+ if (!XtIsRealized(w))
+ return;
+}
+
+static void
Action(Widget w, XEvent *event, String *params, Cardinal *num_params)
{
}