[sylpheed:31518] Re: [Libsylph] Account preferences, and more...

Massimiliano Calamelli mcalamelli at gmail.com
Thu Jul 12 01:12:55 JST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 11 Jul 2007 11:43:46 +0900
Hiroyuki Yamamoto <hiro-y at kcn.ne.jp> wrote:

> They are okay for normal POP3 accounts. In addition to them, I would
> want full name (in your case, "Massimiliano Calamelli").

Ok, you're right, i've added this field to required list

> Very simple example:
> 
> PrefsAccount *account;
> 
> account = prefs_account_new(); /* account is filled with default values */
> 
> /* modify members of account */
> g_free(account->account_name);
> account->account_name = g_strdup("Test");
> g_free(account->address);
> account->address = g_strdup("foo at bar.baz");
> account->protocol = A_POP3;
> ...
> 
> account_append(account); /* append to internal account list */
> account_write_config_all(); /* save all accounts to configuration file */

Very simple, but very great: now i can save account prefs!

> 
> Sorry, not yet. Until then, please look at Sylpheed's code ;)

Ok, i'll wait.

My next step is to build the dialog with full preferences; finished
this step, i've to check your code to understand how to set the folder
tree's sorting order, in order to make my app similar to Sylpheed
If you want, take a look to these images, E-Mail
(http://mcalamelli.netsons.org/files/e-mail.jpg) and Sylpheed
(http://mcalamelli.netsons.org/files/sylpheed.jpg).

Ciao
Massimiliano
- -- 
Massimiliano Calamelli
http://mcalamelli.netsons.org
mcalamelli at gmail.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (MingW32)

iD8DBQFGlQGHleGEL56NNP4RApOoAJ0TjXVcl2A2EnNMXKMlInfhmbPJKwCfU5/o
5l5TiK62GWyavO6BXp7qLlI=
=xlWk
-----END PGP SIGNATURE-----


More information about the Sylpheed mailing list