Re: Glib Newbie Question: manual
- From: rsteinke w-link net
- To: xsd12 web de, gtk-list gnome org
- Subject: Re: Glib Newbie Question: manual
- Date: Mon, 29 Jul 2002 21:50:49 -0700
> From: Andr? K?ster <xsd12 web de>
>
> Hi,
>
> I want to play a little bit with the glib2.0 Mainloop, now I have a
> question. I can add multiple Eventsources, but they are obviously
> timer-controled. In GTK I have gtk_signal_connect, to connect a signal
> to a specific event. I think glib's g_source_set_callback will do some
> similar (with the exception, that the callback is invoked by the timer
> and not by an event)
> But my question is, how do I invoke a callback-function directly? In
> GTK I could send a signal with gtk_signal_emit. But I dont found
> something similar in the glib-manual.
> Is the only way to do this calling the function directly with it's name?
> Or do I have to define an event? I couldnt find suitable informations.
Signals are a separate layer, on top of the mainloop. They're implemented
in libgobject (which is packaged with glib).
Ron Steinke
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]