Introduction
Introduction Statistics Contact Development Disclaimer Help
Simplified Xt argument processing. - sam - An updated version of the sam text e…
git clone git://vernunftzentrum.de/sam.git
Log
Files
Refs
LICENSE
---
commit 5c95796f29ca0fff4bf83b4c414278c0863eff32
parent 1d7381514a5589c78eca12a92b341fbd0de9ff2f
Author: Rob King <[email protected]>
Date: Thu, 20 Oct 2016 16:18:51 -0500
Simplified Xt argument processing.
Diffstat:
libXg/xtbinit.c | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/libXg/xtbinit.c b/libXg/xtbinit.c
@@ -130,7 +130,6 @@ void
xtbinit(Errfunc f, char *class, int *pargc, char **argv, char **fallbacks)
{
int n;
- Arg args[20];
char *p;
int compose;
@@ -148,17 +147,17 @@ xtbinit(Errfunc f, char *class, int *pargc, char **argv, …
onerr = f;
if (!fallbacks)
fallbacks = _fallbacks;
- n = 0;
- XtSetArg(args[n], XtNinput, true); n++;
char name[512] = {0};
snprintf(name, sizeof(name) - 1, "samterm on %s", machine);
- XtSetArg(args[n], XtNtitle, XtNewString(name)); n++;
- XtSetArg(args[n], XtNiconName, XtNewString(name)); n++;
-
+ Arg args[] ={
+ {XtNinput, true},
+ {XtNtitle, (XtArgVal)name},
+ {XtNiconName, (XtArgVal)name},
+ };
_toplevel = XtAppInitialize(&app, class,
NULL, 0,
- pargc, argv, fallbacks, args, n);
+ pargc, argv, fallbacks, args, XtNumber(args));
n = 0;
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.