gtk Paned, altered...




http://users.aol.com/suboner/gtksplitter.tar.gz

  I've changed GtkHPaned, widget code, renamed it splitter, and it looks and
works more like the windows MFC splitter. In a paned window instead of
grabbing a small handle to adjust the views, the entire gutter is the handle
and can be clicked any where on the gutter, and it doesn't draw any boxes (for
the handle or in the gutter), and it uses the horizontal double arrow when the
mouse is moved over it, its only a horizontal for now, so it will work on GMC
oriented views (if the author wishes to try it).

  I plan on having it be more configurable, like single, double, triple, and
quad configurations for up to 4 widgets in any order, and the configurations
be dynamic, so that a programmer could allow his programs interface be more
configurable to the user, and allow the user to change view orientations at
will.

if your a programmer give it a try, all that is required is to drop it in the
project directory, add a #include <gtksplitter.h>, replace or comment out and
add in lines that say function names splitter instead of paned, so
gtk_paned_add1, becomes gtk_splitter_add1, the only function that is no longer
supported is gtk_paned_handle_size, since the handle is always the size of the
gutter, although the gutter width is still adjustable. To compile just add in
gtksplitter.c, when compiling your project.

For the record, this is something I wanted added in because I didn't care to
much for having to move the mouse over and click on a small handle to adjust a
paned view, I prefer being able to click any where in the gutter to move it.
Since I wanted it in I figured I should do it myself, or it will never get
there, that fast, PLUS I'm working on my own project that is going to require
a good configurable quad view. :)

(I hope I didn't forget anything...)



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