Re: Gnome equivalent for gtk_init_check() ?



Gustavo Joćo Alves Marques Carneiro <ee96090@fe.up.pt> writes: 
>   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.


No, I think you can just do this:

if (gtk_init_check (&argc, &argv))
  gnome_init_with_popt_table (...);

>  If there was
> a gnome_init_check_with_popt_table, it would be simpler.
> 

Yes, of course.

Havoc




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