Alright ... added GtkPaned.set_position (I must have missed it somewhere).
Now for adding new signals ... If I did this, you realise that you would
only be able to attach python handlers and call them with GtkObject.emit()
method? In this case, it may be easier to store a list of tuples like
(func, user_data) and run
for func,user_data in handlers:
func(object, some_arg, user_data)
Now for editable styles. I am personally in favour of using RC files to
set this sort of information, but maybe it should be included for
completeness.
For this sort of thing, first we would need a copy() method for GtkStyle
objects, so you can copy the style before modifying it. It is quite easy
to let the python programmer alter most of the attributes, except the ones
that are stored as arrays in the style structure. These ones are
currently exported as tuples of colours/pixmaps/whatever. You can't
assign to a tuple, and changing over to lists doesn't solve the problem
either since you can't set callbacks for when the list contents changes.
Does anyone else have any good ideas for this (would a
GtkStyle.set_fg(state, colour) method be acceptable?)
Comments are welcome
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Sun, 14 Feb 1999, David M. Cook wrote:
> On Sun, Feb 14, 1999 at 08:15:21PM +0800, James Henstridge wrote:
>
> > Anyway, the code will be in CVS soon, and I will probably put out a new
> > release in the next few days. (Is there any bugs/missing features people
> > want fixed before this next release?)
>
> * GtkPaned._set_position() (unfortunately, I can't figure out how to get this
> to work in C-Gtk, but it would probably be a good idea to add anyway.)
>
> Longstanding things:
>
> * Ability to create my own signals (that's probably not a weekend job)
>
> * Ditto for styles
>
> * Access to widget structure fields that are not covered by C-Gtk
> accessor methods.
>
> Dave
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
>
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]