Re: [gtk-list] Re: gtk_widget_size_allocate doesn't seem to change the size of my widgets in a GtkFixed container



Jason Trenouth wrote:
> 
> On Wed, 11 Aug 1999 11:34:27 -0400 (EDT), Havoc Pennington <hp@redhat.com>
> wrote:
> 
> >
> > On Wed, 11 Aug 1999, Jason Trenouth wrote:
> > >
> > > I've got a bunch of widgets in a GtkFixed container and I'm trying to set
> > > their sizes and positions using gtk_widget_size_allocate but it has no visual
> > > effect and if I query the sizes using gtk_widget_size_request then they don't
> > > appear to have changed. What am I doing wrong? :-(
> > >
> >
> > Use gtk_widget_set_usize()
> 
> That doesn't seem to work either.

Glade uses gtk_widget_set_usize() to change the size of widgets in a GtkFixed
container. It works for me!

To move the widgets, I currently use:

  gtk_fixed_move (GTK_FIXED (widget->parent), widget, new_x, new_y);
  gtk_widget_set_uposition (widget, new_x, new_y);

gtk_fixed_move() doesn't seem to do everything necessary at present - some
widgets do not move unless you call set_uposition() as well.

Damon




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