Re: emits a signal?
- From: Axel <axel azerty netcourrier com>
- To: gtk-list gnome org, gtk-app-devel-list gnome org
- Subject: Re: emits a signal?
- Date: Mon, 24 Mar 2003 22:50:23 +0100
John K Luebs wrote:
On Mon, Mar 24, 2003 at 10:00:39PM +0100, Axel wrote:
is it possible to emit a signal "arbitrarly", in a function, in example,
make a widget emit a signal "activate" without have to click on it, or
juste like gtk_signal_emit("my_signal") ?
What's wrong with gtk_signal_emit?
I just imagined a function which send signal like that, I didn ' t know
it really exist :)
Thanks to all.
here s the reply from Harring Figueiredo:
Good imagination.. this is exactly the function you use.
These function used to be on the gtk_sig* , but where moved down to glib.
>From the docs:
void g_signal_emit (gpointer instance,
guint signal_id,
GQuark detail,
...);
void g_signal_emit_by_name (gpointer instance,
const gchar *detailed_signal,
...);
http://developer.gnome.org/doc/API/2.0/gobject/gobject-Signals.html
Good luck.
Harring.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]