[vlc-devel] vlc: svn commit r22912 (funman)

Rémi Denis-Courmont rdenis at simphalempin.com
Tue Oct 30 19:47:40 CET 2007


Le Tuesday 30 October 2007 20:38:53 Jean-Baptiste Kempf, vous avez écrit :
> What I suggest is, if no user config file, or first start, open the
> preferences on the good tab to activate those options (art fetching,
> meta-data fetching, update)

add_bool ("net-usage-dont-ask", VLC_FALSE, NULL, TEXT, LONGTEXT, VLC_TRUE);

....

if (!config_getBool ("net-usage-dont-ask"))
{
	Dialog d = new Dialog;
	d.Show();
	if (dontAskAgain.checked)
		config_putBool ("net-usage-dont-ask", VLC_TRUE);

	config_putBool ("fetch-art", d.YesPressed);
	config_putBool ("check-update", d.YesPressed);
	....
}

/* No, this code won't compile out of the box */

-- 
Rémi Denis-Courmont
http://www.remlab.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20071030/0cb4d246/attachment.sig>


More information about the vlc-devel mailing list