Re: GtkDrawingArea size in a GtkScrolledWindow



On Sun, 2001-08-26 at 19:53, Simon Gornall wrote:
> 
> I've been scoring the FAQ/mailing list, but everyone else seems
> to have no problems, so if anyone can see what I'm doing wrong
> here, I'll be very grateful...
> 
> Basically my scrolled window is never being created at the
> correct size - it always ends up at ~100x100 or so. The map.w
> and map.h print out to be 1280x640, so the scrolled window should
> be 640x320 in size!

As far as I can see, the scrolled area _is_ of roughly that size.  The
window itself is smaller, but then you never actually set the size of
the window.  Try adding:

  gtk_widget_set_usize (_win, info.w/2, info.h/2);

somewhere.  This should set the size of _win.

	/mailund

-- 
I never realized it before, but having looked that over I'm certain
I'd rather have my eyes burned out by zombies with flaming dung sticks
than work on a conscientious Unicode regex engine.
                                   --- Tim Peters, 3 Dec 1998

Attachment: pgpaRDoIjn5VF.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]