[171] in The GTK GIMP ToolKit mailing list archive

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

[gtk-list] Re: Notebook and listbox problems.

daemon@ATHENA.MIT.EDU (Tim Janik)
Thu May 15 19:50:56 1997

Date: Thu, 15 May 1997 23:50:13 +0200 (CEST)
From: Tim Janik <Tim.Janik@Hamburg.Netsurf.DE>
To: gtk-list@redhat.com
In-Reply-To: <"OAukv1.0.EC2.jWtUp"@mail2.redhat.com>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

On Wed, 14 May 1997, Owen Taylor wrote:

> That's because simple.c does some strange stuff ...
> 
>   button = gtk_button_new_with_label ("Hello World");
>   gtk_signal_connect (GTK_OBJECT (button), "clicked",
> 		      GTK_SIGNAL_FUNC (hello), NULL);
>   gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
> 			     GTK_SIGNAL_FUNC (gtk_widget_destroy),
> 			     GTK_OBJECT (window));
> 
> So two signals are connected. The hello() function calls gtk_exit so the
> second callback, which you modified, is never activated. If you remove
> the gtk_exit call from hello(), then you'll see the expected behavior.
> 
> I don't know what this was intended to demonstrate ...

a bug? ;)
sorry, couldn't resist.

---
ciaoTJ

Tim.Janik@Hamburg.Netsurf.DE	[signature: <CENS||ED>]

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


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