From 7505e88db66798b2b8fcdff2d92a7136cd826b5b Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 9 Sep 2010 02:26:30 +0200 Subject: Upgrading to IUP 3.2 - and cleaning up. --- iup/src/mot/iupmot_filedlg.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'iup/src/mot/iupmot_filedlg.c') 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); -- cgit v1.2.3