~ubuntu-branches/ubuntu/quantal/cairo-dock-plug-ins/quantal-201208191523

« back to all changes in this revision

Viewing changes to Folders/src/applet-config.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2010-09-07 02:38:17 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20100907023817-ish9a53i2wn0m7zg
Tags: 2.2.0~0rc1-0ubuntu1
* New Upstream Version (LP: #632054)
* Fixed a few bugs on LP:
 - LP: #616176 Dust Bin Hang and Incorrect Configuration
 - LP: #604034 Change terminal tab's name lost the color
 - LP: #582452 GMenu does not contain any applications
* Fixed a few bugs on glx-dock forum:
 - Fixed support of GMusicBrowser.
 - AlsaMixer has no emblem.
 - Status-Notifier doesn't be drawed into the dock.
* Updated translations
* debian/control:
 - Added cairo-dock-core as build-depends in order to prevent
   some builds errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        myConfig.cDefaultTitle = CD_CONFIG_GET_STRING ("Icon", "name");
31
31
        myConfig.cImageFile = CD_CONFIG_GET_STRING ("Icon", "image file");
32
32
        myConfig.cDirPath = CD_CONFIG_GET_STRING ("Configuration", "dir path");
33
 
        if (myConfig.cDirPath && *myConfig.cDirPath == '/')
 
33
        if (myConfig.cDirPath)
34
34
        {
35
 
                gchar *tmp = myConfig.cDirPath;
36
 
                myConfig.cDirPath = g_filename_to_uri (myConfig.cDirPath, NULL, NULL);
37
 
                g_free (tmp);
 
35
                if (*myConfig.cDirPath == '~')
 
36
                {
 
37
                        gchar *tmp = myConfig.cDirPath;
 
38
                        myConfig.cDirPath = g_strdup_printf ("%s/%s", g_getenv ("HOME"), myConfig.cDirPath);
 
39
                        g_free (tmp);
 
40
                }
 
41
                if (*myConfig.cDirPath == '/')
 
42
                {
 
43
                        gchar *tmp = myConfig.cDirPath;
 
44
                        myConfig.cDirPath = g_filename_to_uri (myConfig.cDirPath, NULL, NULL);
 
45
                        g_free (tmp);
 
46
                }
38
47
        }
39
48
        myConfig.cRenderer = CD_CONFIG_GET_STRING ("Configuration", "renderer");
40
49
        //myConfig.iNbIcons = CD_CONFIG_GET_INTEGER ("Configuration", "nb icons");