[PATCH] gtkfixed



I just uploaded a patch to gtk+970916 which adds a new container type:
gtkfixed.  GtkFixed allows one to place mulitple widgets at fixed x,y
positions, and to move them around after they are placed.

Here is the README:

This patch adds a new container widget to GTK called gtkfixed.  GtkFixed
allows absolute placement of widgets, and also allows one to move a
placed widget.  To place a widget in a gtkfixed container use:

gtk_fixed_put (GTK_FIXED (yourfixed), youwidget, x, y);

to move a placed widget:

gtk_fixed_move (GTK_FIXED (yourfixed), yourwidget, x, y);

Somthing to keep in mind while using GtkFixed is that
gtk_widget_set_uposition
does override the positon given by gtk_fixed_put and gtk_fixed_move.  The
disadvantage to gtk_widget_set_uposition is it ignores the container's
border width.

-----------------------------------------------------------------------
Jay Painter -- jpaint@serv.net     I'm not so drunk I can't re-program
http://www.serv.net/~jpaint        my window manager!



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