Re: Signals in gtk
- From: "Andrew E. Makeev" <andrew solvo ru>
- To: lalitp tvm tcs co in
- Cc: gtk-main <gtk-list gnome org>
- Subject: Re: Signals in gtk
- Date: Tue, 02 Jul 2002 14:18:15 +0400
lalitp tvm tcs co in wrote:
>
> Hello Everybody
>
> This is my first mail to this list. I have a query.
>
> I want to connect two callbacks to a widget and ensure that the second
> one gets called only after the first one has finished executing. For
> example, in a notepad like application, if there is some text in the
> text area and I want to quit the application, then it should first
> allow me to save the text, before closing. Any ideas?
>
> Lalitha Prasad
I would recommend to look at this URL first:
http://developer.gnome.org/doc/API/2.0/gtk/gtk-signals.html
_sginal_connect (...)
_signal_connect_after (...)
_signal_emit_stop... (...)
Those functions should handle your request.
I've omitted prefix for functions, because it would be "g_" for GTK-2.0
and "gtk_" for GTK-1.2.
-Andrew
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]