[9443] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: Detecting window from button
daemon@ATHENA.MIT.EDU (Damon Chaplin)
Tue Oct 20 10:48:41 1998
From: "Damon Chaplin" <DAChaplin@email.msn.com>
To: <gtk-list@redhat.com>, "Martin Schulze" <joey@infodrom.north.de>
Date: Tue, 20 Oct 1998 15:37:19 +0100
In-Reply-To: <Pine.GSO.3.95.981019155130.22731D-100000@harper.uchicago.edu>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
> On Mon, 19 Oct 1998, Martin Schulze wrote:
> >
> > The new dialog has a Close button. However the signal handler doesn't
> > know which window to close. Storing one global variable for this very
> > windows isn't a solution but a bad workaround.
> >
>
> Why not pass the dialog as callback data? i.e.
>
> gtk_signal_connect(button, "clicked", callback_func, dialog);
You can also use gtk_widget_get_toplevel (button) to get the dialog.
Damon
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null