On Mon, Jul 12, 2004 at 02:57:50PM +0100, David Given wrote:
> So, as a temporary fix, is there any way of telling ion to make a particular 
> dialogue box larger? Some way of resizing a dialogue? That way I should at 
> least be able to *use* Eclipse...

While there's WRegion.request_geom routine, transient WClientWin:s always 
use min(available, last application-originated request) as height, so 
trying to manually resize with this function wont't work.

However, Ion should respond to transient size change requests correctly (it
even stores the requested height) and this works at least with preferences 
dialog of opera 5.0 that is really small initially. Maybe Eclipse is 
calculating the height request incorrectly, being confused as the transient
doesn't have a frame? Does resizing the containing frame do anything? 
Having just bought another 160GB of disk space for data, I still don't have
enough space in my apparently meager 5GB /usr to install Eclipse (what a 
piece of bloat!) with all its dependencies. 

In any case, as a really ugly kludge, one could add the following code to
clientwin.c:

EXTL_EXPORT
void clientwin_rqh(WClientWin *cwin, int h)
{
    XConfigureRequest ev;
    ev.value_mask=CWHeight;
    ev.height=h;

    clientwin_handle_configure_request(cwin, &ev);
}

and then call in the Mod1+F3 query, assuming there's only one transient:

_:current():managed_list()[1]:rqh(1000) -- for example

In Ion3 the following should also work:

_sub:current():rqh(1000)

If you're willing to debug it, it might be a good idea to add some
printf:s to the clientwin_handle_configure_request function printing
out what kind of sizes the program is requesting. And if these turn
out to be ok, elsewhere in the file (clientwin_fit etc.) to see what
sizes are actually used and where.

-- 
Tuomo

Reply via email to