On Mon, Jul 19, 2004 at 10:15:38PM -0500, Alex Roitman wrote:
> As can be seen from this diff, previously the toolbar was populated with
> the button objects (well, gtk.Button, really :-). Now it is populated with
> gtk.ToolButton objects, which are new in pygtk2.4.
[...]
> I have to emphasize that the misbehavior occurs _only_ with setting toolbar
> style outside libglade. If the style is set in the XML then everything
> is displayed properly, both Buttons and ToolButtons. However, if the style
> is (1) not set (GNOME prefs should be used) or (2) set in the python code
> then Buttons get it correctly, while ToolButtons do not change it.
This does sound like a bug, and I'm not sure it's not in the wrapper.
I'm not familiar with how styles are set up and manipulated on
pre-created widgets, unfortunately, and I don't have a lot of time to
test. I'd suggest two things:
- Check if this is libglade-specific; if manually built ToolButtons
are styled correctly in Python code or not.
- File a bug on the issue, attaching a testcase that shows the
specific problem (perhaps a testcase with both a Button and a
ToolButton demonstrating what should be styled but isn't). If you
discover it's not libglade-specific, it can be pure PyGTK.
Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 2331
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/