Re: Simple question
- From: Neil Hodge <neh attbi com>
- To: vladimir <vladeck sezampro yu>
- Cc: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: Simple question
- Date: 02 Nov 2002 20:03:41 -0800
vladimir:
On Sat, 2002-11-02 at 19:13, vladimir wrote:
have a window with >> delete_event << attached to a callback, something
like:
void
delete_event_cb (GtkWidget *widget,
GdkEvent *event,
gpointer data)
{
...
/* destroy window */
...
}
When I call this event I pass it a window I want to destroy as data
argument (gpointer). Now, is it OK to call this func from a button
callback (I want to destroy window from this callback now - eg cancel
button):
void
button_cancel (GtkWidget *widget,
gpointer data)
{
...
delete_event (widget, NULL, data);
}
Yes, you can call it from anywhere at any time.
Neil
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]