Re: gtk_init problem

Roland Bock <> writes:

> Hi!
> I have a curious problem using gtk_init.
> I want to use a gtk-object in a webserver application, which has no
> display (why should it, it is a webserver). When I start the program, I
> call gtk_init in order to use the gtk-object, but gtk_init ends the
> program telling me, that it cannot find a display (of course not).
> I must initialize gtk, or I cannot use any gtk_***_new() function as far
> as I know. 
> So my question is: Is there a way to initialize all of gtk that does not
> depend on a display?

  gtk_type_init ();
  gtk_signal_init ();

Should do it.


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