pkgsrc - initial commit
[pkgsrc.git] / audio / gbemol / patches / patch-aa
1 $NetBSD: patch-aa,v 1.1 2009/09/03 01:29:34 joerg Exp $
2
3 --- src/gbemol-app.c.orig       2009-04-25 04:38:51.000000000 +0200
4 +++ src/gbemol-app.c
5 @@ -449,7 +449,7 @@ gbemol_app_init (GbemolApp* app)
6         gbemol_app_build_gui (app);
7  
8         /* Check if there is a config file */
9 -       if (!(host = gbemol_cfg_get_string ("MPD", "host")))
10 +       if (!(host = gbemol_cfg_get_string ("mpd", "host")))
11         {
12                 app->mpd = gbemol_mpd_new_with_defaults ();
13  
14 @@ -471,13 +471,13 @@ gbemol_app_init (GbemolApp* app)
15         else 
16         {
17                 /* We need a password? */
18 -               if (gbemol_cfg_get_int ("MPD", "use_auth"))
19 -                       pass = gbemol_cfg_get_string ("MPD", "pass");
20 +               if (gbemol_cfg_get_int ("mpd", "use_auth"))
21 +                       pass = gbemol_cfg_get_string ("mpd", "pass");
22                 else
23                         pass = NULL;
24  
25 -               app->mpd = gbemol_mpd_new (host, pass, gbemol_cfg_get_int ("MPD", "port"), 
26 -                               gbemol_cfg_get_double ("MPD", "timeout"));
27 +               app->mpd = gbemol_mpd_new (host, pass, gbemol_cfg_get_int ("mpd", "port"), 
28 +                               gbemol_cfg_get_double ("mpd", "timeout"));
29                 g_free (host);
30                 g_free (pass);
31         }
32 @@ -564,10 +564,7 @@ void gbemol_app_connect_mpd (GbemolApp* 
33         if (!app->mpd)
34                 return;
35  
36 -       if (gbemol_cfg_get_bool("MPD", "use_auth"))
37 -               gbemol_mpd_connect_and_authenticate (app->mpd);
38 -       else
39 -               gbemol_mpd_connect (app->mpd);
40 +       gbemol_mpd_connect (app->mpd);
41  
42         gbemol_app_set_connected (app, gbemol_mpd_is_connected (app->mpd));
43         if (gbemol_mpd_is_connected (app->mpd))