Christian,

Thanks for your response.

On 07/20/2004 08:10:41 AM, Christian Robottom Reis wrote:
> 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.

I have done some testing and filed the bug. The bugzilla page contains all 
the details and testcases. Short story is that the new ToolButtons break the
old (now deprectaed) Toolbar API. Unfortunately, there's no alternative
to using old API in libglade, since at this time both new and old objects
can be used, and the old objects do not support new API, and mixing
old and new API is not allowed. 

Short conclusion is that the ToolButton should be fixed to fully comply 
with old deprecated toolbar API. I did not figure whether the breakage is
in PyGtk or in GTK+. The bug page is here:
    http://bugzilla.gnome.org/show_bug.cgi?id=148010

Thanks,
Alex

-- 
Alexander Roitman   http://ebner.neuroscience.umn.edu/people/alex.html
Dept. of Neuroscience, Lions Research Building
2001 6th Street SE, Minneapolis, MN  55455
Tel (612) 625-7566   FAX (612) 626-9201

Attachment: pgpieTg16Mnqw.pgp
Description: PGP signature

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to