Re: [pygtk] Better support for GError**
Matt I've implemented this a bit differently (sans memory leak, etc) Matt and checked it in. Much appreciated. Skip ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
[pygtk] TreeItem gtk_object_unref error
Hi, I have been using GtkTreeItem and getting some errors from the underlying GTK C code. It seems that when python determines that the object can be garbage colleted, it is calling the gtk_object_unref on the wrong object. I was wondering if this is a bug, or am I doing something bass ackwards... I thought I could just loose references to widgets, and python/pygtk should take care of it. Here is my code. I want to create a new GtkTreeItem and stick in in the dictionary, with 'ad' as the key. The old TreeItem gets wiped out, but that is when the GTK errors start coming... If I save a reference to 'oldti' somewhere, I don't get the error. def _add_tree_item_for_app_data(self,ad): print 1 if self.app_data_2_ti.has_key(ad): oldti = self.app_data_2_ti[ ad ] print oldti: , oldti ti = self.app_data_2_ti[ ad ] = gtk.GtkTreeItem(ad.name) print 2 Here is the console output when this function is called... 1 oldti: gtk.GtkTreeItem instance at 0x102b55f0 2 Log from: MainView: added tree item for app data object Gtk-CRITICAL **: file gtkobject.c: line 1172 (gtk_object_unref): assertion `GTK_IS_OBJECT (object)' failed. thanks for any help, Rob ps. I am using 0.6.8 and gtk 1.2.10 ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
Re: [pygtk] CTree and checkboxes
gal-python module?? Oooh, how did I miss this? Is that shortcut bar widget in it? Where can I get it? Is/are there reasons for things like gal not being in pygnome? Eg are the developers just waiting for more stability before submiting it to james? -- Rob Brown-Bayliss ---==o==--- ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk
Re: [pygtk] CTree and checkboxes
On Mon, Nov 19, 2001 at 02:13:37PM +1300, Rob Brown-Bayliss wrote: gal-python module?? Oooh, how did I miss this? Is that shortcut bar widget in it? Where can I get it? Is/are there reasons for things like gal not being in pygnome? Eg are the developers just waiting for more stability before submiting it to james? Well, gal is not part of the GNOME platform at the moment (not even for GNOME 2); it's an extra library that only some applications depend upon. In fact, if you look back at various discussions on the gnome-devel and gnome-hackers (and gnome-2-0) mailing lists, the various people who work on this module have discouraged others from relying on it too much and would rather move any acceptable functionality into other modules. So, I would guess (not wanting to try and read the mind of James) that writing gal wrappers would be lower priority than other key modules like wrapping pango, gtk, libgnome, etc. Of course, that shouldn't stop anybody else from doing the bindings. :) Cheers, Malcolm -- Plan to be spontaneous - tomorrow. ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk