Re: problem with FileChooserDialog in latest git



On Tue, Dec 28, 2010 at 2:24 PM, Robert Park <rbpark exolucere ca> wrote:
> Tomeu, can you think of any specifc things I should test in order to
> properly identify this problem? I am at a complete loss as to how
> something that works flawlessly in the interactive shell could fail in
> my app. I just don't see how my app could be removing a method from a
> Gtk object. It makes no sense to me.

Ok, I've managed to isolate this problem in the interactive shell.
Turns out libchamplain is definitely the culprit. Here it is:

$ jhbuild run python
Python 2.7 (r27:82500, Sep 16 2010, 18:02:00)
[GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gi.repository import Clutter, GtkChamplain, Gtk
>>> Clutter.init([])
(<enum CLUTTER_INIT_SUCCESS of type ClutterInitError>, [])
>>> GtkChamplain.Embed()
<Embed object at 0x7fd887a9baa0 (GtkChamplainEmbed at 0x207ead0)>
>>> dialog = Gtk.FileChooserDialog("Open", None, Gtk.FileChooserAction.OPEN, buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, Gtk.STOCK_OPEN, Gtk.ResponseType.ACCEPT))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/gnome/lib64/python2.7/site-packages/gi/overrides/Gtk.py",
line 456, in __init__
    buttons=buttons)
  File "/opt/gnome/lib64/python2.7/site-packages/gi/overrides/Gtk.py",
line 371, in __init__
    self.add_buttons(*buttons)
  File "/opt/gnome/lib64/python2.7/site-packages/gi/overrides/Gtk.py",
line 393, in add_buttons
    self.add_button(text, response)
AttributeError: 'FileChooserDialog' object has no attribute 'add_button'
>>>


-- 
http://exolucere.ca


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