summaryrefslogtreecommitdiff
path: root/iup/src/mot/iupmot_filedlg.c
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-09-09 02:26:30 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-09-09 02:32:26 +0200
commit7505e88db66798b2b8fcdff2d92a7136cd826b5b (patch)
treeb6ced565318f8e8112e35cb0ad53abe4212ef8de /iup/src/mot/iupmot_filedlg.c
parente9a184546b18cf3b796bd560561f312934004c54 (diff)
Upgrading to IUP 3.2 - and cleaning up.
Diffstat (limited to 'iup/src/mot/iupmot_filedlg.c')
-rwxr-xr-xiup/src/mot/iupmot_filedlg.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/iup/src/mot/iupmot_filedlg.c b/iup/src/mot/iupmot_filedlg.c
index 0be6319..5d8ebe0 100755
--- a/iup/src/mot/iupmot_filedlg.c
+++ b/iup/src/mot/iupmot_filedlg.c
@@ -483,6 +483,7 @@ static int motFileDlgPopup(Ihandle* ih, int x, int y)
XtVaSetValues(filebox,
XmNdialogStyle, style,
XmNautoUnmanage, False,
+ XmNresizePolicy, XmRESIZE_GROW,
NULL);
if (dialogtype == IUP_DIALOGDIR)
@@ -620,6 +621,14 @@ static int motFileDlgPopup(Ihandle* ih, int x, int y)
file_cb(ih, NULL, "INIT");
}
+ if (ih->userwidth && ih->userheight)
+ {
+ XtVaSetValues(dialog,
+ XmNwidth, (XtArgVal)(ih->userwidth),
+ XmNheight, (XtArgVal)(ih->userheight),
+ NULL);
+ }
+
if (style == XmDIALOG_MODELESS)
XtPopup(dialog, XtGrabExclusive);