geometry hints screwing up window sizes



I've poured over the GTK+ api docs and googled myself
into the ground looking for a solution to the
following issue.


I have an app that creates a window.  inside this
window is an eventbox and inside that is a GtkFixed
(no slapping me for using a GtkFixed, it works well
for this purpose)

I want to be a be able to scale the window to ANY
size. (yes i know the fixed widget doesn't handle
scaling, I plan on handling that once i can sort out
the resizing problems)

I've used gtk_window_set_geometry_hints to set the
aspect ratio, and minimum size.  The problem is  the
windows ALWAYS default displays at the minimum size.
NOT at a size I specify using (gtk_window_resize) or
similar.
If I do NOT set the minimum geometry hint. I CAN set
the size to be larger than the Fixed widget (with its
children).

All I want to be able to do is tell GTK/window manager
 that there's a window that can be no smaller than
100x100 and no larger than 1000x1000, and I want ot be
able ot set the size to any point in between those
extremes. (GTK ignores me, when using the hints)

any ideas?

GtkFixed is required as the objects placed into it are
not really widgets in the normal sense, they are
mainly display items arrange in a very specific (and
customizable) way, so GtkFixed was the only way to
arrange things without having to do lots of manual
drawing with a GtkDrawingArea.


-- David J. Andruczyk


       
____________________________________________________________________________________
Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz 



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