Mercurial > audlegacy
changeset 1073:28949899e412 trunk
[svn] - fix
author | nenolod |
---|---|
date | Wed, 17 May 2006 08:02:49 -0700 |
parents | 43718511bd0f |
children | ac0da4976e09 |
files | audacious/prefswin.c |
diffstat | 1 files changed, 24 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- a/audacious/prefswin.c Tue May 16 21:57:16 2006 -0700 +++ b/audacious/prefswin.c Wed May 17 08:02:49 2006 -0700 @@ -1,4 +1,7 @@ -/* BMP - Cross-platform multimedia player +/* Audacious - Cross-platform multimedia player + * Copyright (C) 2005-2006 Audacious development team. + * + * BMP - Cross-platform multimedia player * Copyright (C) 2003-2004 BMP development team. * * This program is free software; you can redistribute it and/or modify @@ -961,10 +964,11 @@ gboolean ret; db = bmp_cfg_db_open(); - bmp_cfg_db_get_bool(db, NULL, "use_proxy", &ret); + + if (bmp_cfg_db_get_bool(db, NULL, "use_proxy", &ret) != FALSE) + gtk_toggle_button_set_active(button, ret); + bmp_cfg_db_close(db); - - gtk_toggle_button_set_active(button, ret); } static void @@ -987,10 +991,11 @@ gboolean ret; db = bmp_cfg_db_open(); - bmp_cfg_db_get_bool(db, NULL, "proxy_use_auth", &ret); + + if (bmp_cfg_db_get_bool(db, NULL, "proxy_use_auth", &ret) != FALSE) + gtk_toggle_button_set_active(button, ret); + bmp_cfg_db_close(db); - - gtk_toggle_button_set_active(button, ret); } static void @@ -1013,11 +1018,11 @@ gchar *ret; db = bmp_cfg_db_open(); - bmp_cfg_db_get_string(db, NULL, "proxy_host", &ret); - bmp_cfg_db_close(db); - if (ret != NULL && *ret != '\0') + if (bmp_cfg_db_get_string(db, NULL, "proxy_host", &ret) != FALSE) gtk_entry_set_text(entry, ret); + + bmp_cfg_db_close(db); } static void @@ -1042,11 +1047,11 @@ gchar *ret; db = bmp_cfg_db_open(); - bmp_cfg_db_get_string(db, NULL, "proxy_port", &ret); - bmp_cfg_db_close(db); - if (ret != NULL && *ret != '\0') + if (bmp_cfg_db_get_string(db, NULL, "proxy_port", &ret) != FALSE) gtk_entry_set_text(entry, ret); + + bmp_cfg_db_close(db); } static void @@ -1071,11 +1076,11 @@ gchar *ret; db = bmp_cfg_db_open(); - bmp_cfg_db_get_string(db, NULL, "proxy_user", &ret); - bmp_cfg_db_close(db); - if (ret != NULL && *ret != '\0') + if (bmp_cfg_db_get_string(db, NULL, "proxy_user", &ret) != FALSE) gtk_entry_set_text(entry, ret); + + bmp_cfg_db_close(db); } static void @@ -1100,11 +1105,11 @@ gchar *ret; db = bmp_cfg_db_open(); - bmp_cfg_db_get_string(db, NULL, "proxy_pass", &ret); - bmp_cfg_db_close(db); - if (ret != NULL && *ret != '\0') + if (bmp_cfg_db_get_string(db, NULL, "proxy_pass", &ret) != FALSE) gtk_entry_set_text(entry, ret); + + bmp_cfg_db_close(db); } static void