summaryrefslogtreecommitdiff
path: root/iup/src/mot/iupmot_progressbar.c
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2010-06-15 00:59:57 -0700
committerPixel <pixel@nobis-crew.org>2010-06-15 00:59:57 -0700
commiteed0eb6a476d54ce19aeff137984aa981d9e3976 (patch)
tree807891636efd2f87dcbd261e971216269973ae07 /iup/src/mot/iupmot_progressbar.c
parentccc8261e4d48de89da4ddfe7b55e378ae0cd6f47 (diff)
Upgrading to iup 3.1
Diffstat (limited to 'iup/src/mot/iupmot_progressbar.c')
-rwxr-xr-xiup/src/mot/iupmot_progressbar.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/iup/src/mot/iupmot_progressbar.c b/iup/src/mot/iupmot_progressbar.c
index 7266d38..82fa178 100755
--- a/iup/src/mot/iupmot_progressbar.c
+++ b/iup/src/mot/iupmot_progressbar.c
@@ -98,25 +98,25 @@ static int motProgressBarMapMethod(Ihandle* ih)
Arg args[30];
/* Core */
- iupmotSetArg(args, num_args, XmNmappedWhenManaged, False); /* not visible when managed */
- iupmotSetArg(args, num_args, XmNx, 0); /* x-position */
- iupmotSetArg(args, num_args, XmNy, 0); /* y-position */
- iupmotSetArg(args, num_args, XmNwidth, 10); /* default width to avoid 0 */
- iupmotSetArg(args, num_args, XmNheight, 10); /* default height to avoid 0 */
+ iupMOT_SETARG(args, num_args, XmNmappedWhenManaged, False); /* not visible when managed */
+ iupMOT_SETARG(args, num_args, XmNx, 0); /* x-position */
+ iupMOT_SETARG(args, num_args, XmNy, 0); /* y-position */
+ iupMOT_SETARG(args, num_args, XmNwidth, 10); /* default width to avoid 0 */
+ iupMOT_SETARG(args, num_args, XmNheight, 10); /* default height to avoid 0 */
/* Primitive */
- iupmotSetArg(args, num_args, XmNtraversalOn, False);
- iupmotSetArg(args, num_args, XmNhighlightThickness, 0);
+ iupMOT_SETARG(args, num_args, XmNtraversalOn, False);
+ iupMOT_SETARG(args, num_args, XmNhighlightThickness, 0);
/* Scale */
- iupmotSetArg(args, num_args, XmNminimum, 0);
- iupmotSetArg(args, num_args, XmNmaximum, SHRT_MAX);
- iupmotSetArg(args, num_args, XmNslidingMode, XmTHERMOMETER); /* thermometer effect */
- iupmotSetArg(args, num_args, XmNsliderMark, XmNONE);
- iupmotSetArg(args, num_args, XmNeditable, False);
- iupmotSetArg(args, num_args, XmNshowValue, XmNONE);
+ iupMOT_SETARG(args, num_args, XmNminimum, 0);
+ iupMOT_SETARG(args, num_args, XmNmaximum, SHRT_MAX);
+ iupMOT_SETARG(args, num_args, XmNslidingMode, XmTHERMOMETER); /* thermometer effect */
+ iupMOT_SETARG(args, num_args, XmNsliderMark, XmNONE);
+ iupMOT_SETARG(args, num_args, XmNeditable, False);
+ iupMOT_SETARG(args, num_args, XmNshowValue, XmNONE);
if (iupStrEqualNoCase(iupAttribGetStr(ih, "ORIENTATION"), "VERTICAL"))
{
- iupmotSetArg(args, num_args, XmNorientation, XmVERTICAL);
+ iupMOT_SETARG(args, num_args, XmNorientation, XmVERTICAL);
if (ih->currentheight < ih->currentwidth)
{
@@ -126,7 +126,7 @@ static int motProgressBarMapMethod(Ihandle* ih)
}
}
else
- iupmotSetArg(args, num_args, XmNorientation, XmHORIZONTAL);
+ iupMOT_SETARG(args, num_args, XmNorientation, XmHORIZONTAL);
ih->handle = XtCreateManagedWidget(
iupDialogGetChildIdStr(ih), /* child identifier */