Re: Problem in viewport new behaviour
- From: Owen Taylor <otaylor redhat com>
- To: Roberto <ral1 ibm net>
- Cc: gtk-list redhat com
- Subject: Re: Problem in viewport new behaviour
- Date: 15 Mar 1999 10:55:38 -0500
Roberto <ral1@ibm.net> writes:
> Hello!
>
> I am porting an application (a font viewer,
> http://www.geocities.com/SiliconValley/Foothills/1458) from GTK+ 1.0
> to GTK+ 1.2.
> In 1.0, I used a viewport to contain a preview of the font (it contained
> a gtk_pixmap). If the pixmap did not fit in the viewport, it just
> displayed a part of it. Which was exactly what I wanted.
> But in 1.2, the viewport resizes itself to display the whole pixmap,
> which makes my main window resize for each font. And the window cannot
> be resized smaller.
>
> Can I get the old behaviour somehow? I do not want to use scrollbars.
gtk_widget_set_usize (widget, xsize_i_want, ysize_i_want);
Since GtkLabel does clip its contents, there is probably
no reason to use a Viewport at all.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]