[10600] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] object unref error

daemon@ATHENA.MIT.EDU (D. Emilio Grimaldo Tunon)
Wed Dec 2 11:26:02 1998

Date: Wed, 02 Dec 1998 17:19:48 +0100
From: "D. Emilio Grimaldo Tunon" <emilio_tunon@nl.compuware.com>
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

Hi gtk*
   I am experiencing a problem with 1.1.5 that didn't occur
in 1.0.5. I have a dialog :O and it has a button :O :O when
I press OK the dialog dissapers but I get this:

  
   Gtk-CRITICAL **: file gtkobject.c: line 1164 (gtk_object_unref):
      assertion `object != NULL' failed.

yes, object is not null but what on earth does it mean? why does
it occur in 1.1.5 and not in 1.0.5? The signal connection to the
OK button is as follows:

    dlg = gtk_dialog_new();
    gtk_signal_connect(GTK_OBJECT(dlg), "destroy",
	    	       GTK_SIGNAL_FUNC(gtk_widget_destroyed), &dlg);
               : some code omitted for clarity
   gtk_signal_connect(GTK_OBJECT(okBtn), "clicked",
                       (GtkSignalFunc)popupCB, (gpointer)dlg);


I don't know what gtk_widget_destroyed does by the way...

and the callback is:

  
  static void popupCB(GtkWidget *widget, gpointer dlg)
  {
       gtk_widget_destroy((GtkWidget *)dlg);
  }


Any ideas?

-- 
D. Emilio Grimaldo Tunon       Compuware Europe B.V. (Uniface Lab)
Software Engineer	       Amsterdam, The Netherlands
emilio_tunon@nl.compuware.com  Tel. +31 (0)20 3126 516
*** The opinions expressed hereby are mine and not my employer's ***

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post