Re: Gnome equivalent for gtk_init_check() ?

On 14 Jun 2000, Havoc Pennington wrote:

> Rick Niles <> writes:
> > I'd like to move a GTK+ app I'm writting from GTK+ to Gnome, but I
> > can't find the equivalent of gtk_init_check () in Gnome.  In
> > particular I'd like gnome_init_with_popt_table_check ().  So if the
> > display is not set correctly I can fall back to curses.  Why does this
> > not exist?
> > 
> An oversight. I think it's OK to do gtk_init_check(), and then call
> gnome_init(). I don't know for sure, but, worth a try.

  Yes, but what about the popt table? One has to call gtk_init_check. If
it fails, we have to call some popt function to parse the arguments and
skip gnome_init, otherwise call  gnome_init_with_popt_table. If there was
a gnome_init_check_with_popt_table, it would be simpler.

> Havoc
> _______________________________________________
> gnome-devel-list mailing list

Gustavo J.A.M. Carneiro

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