Hi,

Jeff Shipman <[EMAIL PROTECTED]> writes:

> I think this should work:
> 
> gtk_widget_connect_object(GTK_OBJECT(mydialog), "delete_event",
>                           GTK_SIGNAL_FUNC(gtk_widget_hide),
>                           GTK_OBJECT(mydialog));
> 

It should work, but the simpler 

gtk_widget_connect (GTK_OBJECT (mydialog), "delete_event",
                    GTK_SIGNAL_FUNC (gtk_widget_hide),
                    NULL);

should do as well since the signal handler is called with the
emitting object as the first parameter which happens to be 
the correct pointer in this special case.


Salut, Sven

_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to