diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2010-03-27 11:56:40 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2010-03-27 11:56:40 +0000 |
commit | b3d743fcef4320c3231a770bc390fe6a58af3c68 (patch) | |
tree | 0702f1ffee2423e16bac208b30616a2da27230bb /app/viewres/viewres.c | |
parent | 62ea0a4ee68cb307201badc572889bbe0b2846f6 (diff) |
Update to viewres 1.0.2
Diffstat (limited to 'app/viewres/viewres.c')
-rw-r--r-- | app/viewres/viewres.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/viewres/viewres.c b/app/viewres/viewres.c index 211e6529f..259af2853 100644 --- a/app/viewres/viewres.c +++ b/app/viewres/viewres.c @@ -75,11 +75,13 @@ typedef struct { XtIsManaged(VData(node)->resource_lw)) -struct { +struct WidgetList { int n_elements; int max_elements; XmuWidgetNode **elements; -} selected_list = { 0, 0, (XmuWidgetNode **) NULL }; +}; + +static struct WidgetList selected_list = { 0, 0, (XmuWidgetNode **) NULL }; #define INSERT_NODE(node,i) \ selected_list.elements[VData(node)->selection_index = (i)] = (node) @@ -88,7 +90,7 @@ struct { selected_list.elements[VData(node)->selection_index] = \ (XmuWidgetNode *) NULL; VData(node)->selection_index = (-1) -const char *ProgramName; +static const char *ProgramName; static int NumberShowing = 0; static Arg sensitiveargs[2] = {{ XtNsensitive, (XtArgVal) FALSE }, |