Re: Change viewport size requisition?
- From: Lars Hamann <lars gtk org>
- To: gtk-devel-list redhat com
- Subject: Re: Change viewport size requisition?
- Date: Mon, 30 Nov 1998 21:11:48 +0100
On Mon, Nov 30, 1998 at 10:22:06AM -0500, Owen Taylor wrote:
> The problem with this is that setting an adjustment of a scrollable
> widget to NULL has a _different_ meaning that has existed for a long
> time for at least the Viewport and Text widgets, which
> is "create adjustments for yourself". If we were to follow
> your suggestion, that meaning would have to be changed,
> which certainly would most likely would break backwards
> compatibility in a few places.
Yes. But I don't see much differnces between these changes
and setting an usize. ;)
And I would prefere code like :
vp = gtk_viewport_new (NULL, NULL);
sw = gtk_scrolled_window_new (NULL, NULL);
gtk_container_add (GTK_CONTAINER (sw), vp);
currently I have to write :
vp = gtk_viewport_new (NULL, NULL);
sw = gtk_scrolled_window_new (gtk_viewport_get_hadjustment (vp),
gtk_viewport_get_vadjustment (vp));
gtk_container_add (GTK_CONTAINER (sw), vp);
to avoid double creation of adjustments.
bye,
Lars
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]