Anyone here that have used gnome.ui.GnomeAbout in gnome-python 1.99.x? I
am currently using 1.99.13.

The short app at the end of this email print a lot of warnings when we
click on the OK button in the AboutWindow. After opening and closing the
about window a few times (closing with the OK button) the whole app
crashes.


bash-2.05b$ python2.2 gapp.py 
A

(appname:26569): GLib-GObject-WARNING **:
gsignal.c:1709:g_signal_handler_disconnect(): instance `0x831daa8' has
no handler with id `17'

(appname:26569): GLib-GObject-WARNING **:
gsignal.c:1709:g_signal_handler_disconnect(): instance `0x831daa8' has
no handler with id `18'

(appname:26569): GLib-GObject-WARNING **:
gsignal.c:1709:g_signal_handler_disconnect(): instance `0x831daa8' has
no handler with id `19'

(appname:26569): GLib-GObject-WARNING **:
gsignal.c:1709:g_signal_handler_disconnect(): instance `0x831daa8' has
no handler with id `20'
B

(appname:26569): GLib-GObject-WARNING **: invalid uninstantiatable type
`gpointer' in cast to `GtkWidget'

(appname:26569): Gtk-CRITICAL **: file gtkwidget.c: line 1579
(gtk_widget_destroy): assertion `GTK_IS_WIDGET (widget)' failed

(appname:26569): GLib-GObject-CRITICAL **: file gobject.c: line 1347
(g_object_set_qdata_full): assertion `G_IS_OBJECT (object)' failed

(appname:26569): GLib-GObject-CRITICAL **: file gobject.c: line 1307
(g_object_unref): assertion `G_IS_OBJECT (object)' failed


#!/usr/bin/python

import pygtk
pygtk.require("2.0")
import gnome, gnome.ui, gtk

class MyApp(gnome.ui.App):
    def __init__(self):
        gnome.ui.App.__init__(self, 'appname', 'apptitle')
        b = gtk.Button("About")
        b.connect('clicked', self.om)
        self.set_contents(b)
    def om(self, w):
        im = gtk.Image()
        a = gnome.ui.About("Gapp",
                           "0.0.1",
                           "Copyright Tom",
                           "comment text info",
                    ['Authors'], None)
        print "A"
        a.run()
        print "B"
        a.destroy()

gnome.program_init('appname', '0.0.1')
a = MyApp()
a.show_all()
a.connect('destroy', gtk.mainquit)
gtk.mainloop()
-- 
Tom Cato Amundsen <[EMAIL PROTECTED]>
GNU Solfege - free eartraining, http://www.gnu.org/software/solfege/
_______________________________________________
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