RE: Gtk: How can they share a widget?



hi john:
why not try to  put a vbox or hbox in the window, then add GtkTable and GtkFixed in the box?

-----Original Message-----
From: John Cupitt ng-london org uk [mailto:John Cupitt ng-london org uk]
Sent: Wednesday, April 03, 2002 7:01 PM
To: bkna besta cc
Cc: gtk-list gnome org
Subject: Re: Gtk: How can they share a widget?


bkna besta cc wrote:
> I was working on resizing and repositioning of image drawing widgets.
> Unfortunately, I have errors and I do not know how to solve it.
> I put a part of my code on the bottom.

Hi,

A GtkWindow can only hold one widget, and a widget can only be inside
one container. You are trying to add both the GtkTable and the GtkFixed
to the window, and you are trying to add each GtkButton to the table,
but also to the fixed.

I suggest you get rid of the table and just use fixed. Have your widgets
like this:

window
  fixed
    button
      drawing area
    button
      drawing area
    ... etc

John



========================================================== 
Aelbert Cuyp 13 February - 12 May 2002 

For information and tickets: 
http://www.nationalgallery.org.uk/exhibitions/cuyp/
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list



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