Re: [Evolution-hackers] Error while trying to obtain ESource list



Cool, thanks for the clarification. gtk_init() is definitely simpler!

Have fun,

Peter

On 7/26/06, Ross Burton <ross burtonini com> wrote:
On Tue, 2006-07-25 at 19:19 -0400, Peter Colijn wrote:
> I think the issue here is that g_type_init() is not being called.
> Generally for gnome programs, the first thing main() should do is call
> gnome_program_init, which will call the init()s of a bunch of
> libraries and make sure that everything is happy. I can get
> e_source_list_new() to not complain with the following code:

libgnome is being deprecated, so unless you have a massive requirement
to use GnomeProgram, the gtk_init (&argc, &argv); will be sufficient.

Ross
--
Ross Burton                                 mail: ross burtonini com
                                          jabber: ross burtonini com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQBExyAsLQnkR9C0M98RAq9cAKCLLo61+X3fqJhRm+mrpPVRSGzTtwCgtSuo
4O6PeWcsqSPQKnth0MbGhzo=
=7vYN
-----END PGP SIGNATURE-----






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