Re: passing args



>Is there a way to add a timeout, wich is only triggered once?

    gint
    func (void *arg)
    {
	/* do something */
	return FALSE;
    }

    gtk_timeout_add (N, func, some_arg);

func will be called once and once only (because it returns FALSE).

but it sound as if you want:

    gtk_idle_add (func, some_arg);

which will also result in func being called once and once only
(because it returns FALSE), but doesn't use the timeout mechanism.

--p




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]