[470] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] GTK Questions

daemon@ATHENA.MIT.EDU (Jay Painter)
Fri Jul 18 02:00:46 1997

Date: Thu, 17 Jul 1997 23:01:00 -0700 (PDT)
From: Jay Painter <jay@a42.com>
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

I've been hacking away at a small e-mail client, and I would like to do a
few things with GTK that are a bit off the beaten track.


* I have a list of messages in a scrolling window, and a text window
directly under it.  I would like to be able to re-proportion the sizes  
of the two windows by a click/drag somewhere between them.

* In the message index, which is a gtk_list (actually 3 with the mouse
click events linked together), I would like to designate a different
action for each mouse button pressed.  Specifically, I'd like a popup menu
of mail folders to come up (for moving mail messages) bound to the right
button.  I think this could be solved by inheriting the gtk_list and then
overriding the mouse event and adding a new signal; however, I'm not
farmiliar with GTK's object/class emulation to be sure this would work
that easily.


I've also had a problem which might be a bug in GTK.  I first create a
scrolled window, and set up the main window.  Later on in the program I
create a list of messages and add it to the scrolled window with
gtk_container_add.  When I do this, the scrolled window remains grayed
out, but the scroll bars adjust as if the list had been added.  If I then
do a gtk_widget_hide and then a gtk_widget_show on the scrolled window,
the list shows up correctly.


-------------------------------------------
Jay Painter -- jay@ssc.com -- jay@a42.com
Systema Admin., SSC/Linux Journal
http://www.a42.com/~jay

--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post