RE: Inner window size issue
- From: Nikolaj Kiær Thygesen <Nikolaj Thygesen ciber dk>
- To: "Gus Koppel" <gtk spamkiller bytechase cx>, <gtk-app-devel-list gnome org>
- Cc:
- Subject: RE: Inner window size issue
- Date: Sun, 27 Nov 2005 00:25:20 +0100
Well, I think my problem is somewhat like the one of Mr. Kost. I'm doing a photo retouching package, and
when initially opening the window of an image, I'd like to fit the window to the image, but since the user
might zoom the image in and out, the scrollbars may pop up all the sudden.
I did look into the geometry-stuff which seems to deal with min- (size requests) and max-sizes, but I'd
like for the user to be able to freely resize the window, so setting a min-size the size of the image is not
really what I want. Some of your other ideas presented may make sence, and I'll look into those. Still if
anyone has alternative suggestions, I'd very much like to hear about them.
br - Nikolaj Thygesen :o)
-----Original Message-----
From: gtk-app-devel-list-bounces gnome org on behalf of Gus Koppel
Sent: Sat 26-11-2005 13:01
To: gtk-app-devel-list gnome org
Cc:
Subject: Re: Inner window size issue
Nikolaj Kiær Thygesen wrote:
How on earth do I open a window containing a couple of widgets,
one of which is a ScrolledWindow?? This ScrolledWindow displays
an image, and now I'd like to fit the size of the ScrolledWindow
to the size of the image in pixels.
I have understood it like this: you have a GtkImage inside a
GtkScrolledWindow. The GtkScrolledWindow should be just large enough to
allow the GtkImage to be entirely visible, i.e. there is no need to
scroll the GtkImage (the contents of the GtkScrolledWindow).
Pardon me, but why is there a GtkScrolledWindow at all if you apparently
intend to avoid the need of scrolling inside the bitmap (because it's
entirely visible)? Wouldn't just removing the GtkScrolledWindow and
placing the GtkImage directly into the container fulfill your demand?
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]