~cairo-dock-team/ubuntu/oneiric/cairo-dock-plug-ins/2.3.0-2.1

« 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: 2011-04-20 20:46:51 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20110420204651-ftnpzesj6uc7qeul
Tags: 2.3.0~1-0ubuntu1
* New Upstream Version (LP: #723995)
* Upstream short ChangeLog (since 2.3.0~0rc1):
 - Updated translations
 - Updated the integration of the new versions of kwin and compiz
    (Switcher, ShowDesktop, etc.)
 - Removed a lot of useless g_print
 - Updated a few plug-ins to fit with the new version of the API (gldit)
 - Fixed a few bugs
 - Updated MeMenu, MessagingMenu and Status-Notifier to works
    with the latest version of dbusmenu, etc.
* Switch to dpkg-source 3.0 (quilt) format
* debian/cairo-dock-plug-ins.install:
 - Added new files (interfaces for python, ruby, vala and mono)
* debian/control:
 - Added new dependences for new applets (sensors and zeitgeist)
    and new interfaces (python, valac, ruby and mono)
 - Updated the version of cairo-dock build-dependences
* debian/rules:
 - Added a new CMake flag to install python interface in debian/tmp
* Updated debian/watch

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
                if (*myConfig.cDirPath == '~')
36
36
                {
37
37
                        gchar *tmp = myConfig.cDirPath;
38
 
                        myConfig.cDirPath = g_strdup_printf ("%s/%s", g_getenv ("HOME"), myConfig.cDirPath);
 
38
                        myConfig.cDirPath = g_strdup_printf ("%s%s", g_getenv ("HOME"), myConfig.cDirPath+1);
39
39
                        g_free (tmp);
40
40
                }
41
41
                if (*myConfig.cDirPath == '/')
45
45
                        g_free (tmp);
46
46
                }
47
47
        }
 
48
        myConfig.bShowFiles = CD_CONFIG_GET_BOOLEAN_WITH_DEFAULT ("Configuration", "show files", TRUE);
48
49
        myConfig.cRenderer = CD_CONFIG_GET_STRING ("Configuration", "renderer");
49
50
        //myConfig.iNbIcons = CD_CONFIG_GET_INTEGER ("Configuration", "nb icons");
50
51
        myConfig.iSortType = CD_CONFIG_GET_INTEGER ("Configuration", "sort type");
51
52
        myConfig.bFoldersFirst = CD_CONFIG_GET_BOOLEAN ("Configuration", "folders first");
52
53
        myConfig.bShowHiddenFiles = CD_CONFIG_GET_BOOLEAN ("Configuration", "show hidden");
53
 
        myConfig.iSubdockViewType = CD_CONFIG_GET_INTEGER ("Icon", "view type");
 
54
        if (myConfig.bShowFiles)
 
55
                myConfig.iSubdockViewType = CD_CONFIG_GET_INTEGER ("Icon", "view type");
 
56
        else
 
57
                myConfig.iSubdockViewType = 0;  // image definie en conf.
54
58
CD_APPLET_GET_CONFIG_END
55
59
 
56
60