~ubuntu-branches/ubuntu/vivid/cairo-dock-plug-ins/vivid

« back to all changes in this revision

Viewing changes to quick-browser/src/applet-config.c

Tags: upstream-2.0.9
ImportĀ upstreamĀ versionĀ 2.0.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
18
*/
19
19
 
20
 
/******************************************************************************
21
 
 
22
 
This file is a part of the cairo-dock program, 
23
 
released under the terms of the GNU General Public License.
24
 
 
25
 
Written by Fabrice Rey (for any bug report, please mail me to fabounet@users.berlios.de)
26
 
 
27
 
******************************************************************************/
28
 
 
29
20
#include <string.h>
30
21
#include <cairo-dock.h>
31
22
 
46
37
        myConfig.iNbSubItemsAtOnce = CD_CONFIG_GET_INTEGER ("Configuration", "granularity");
47
38
        if (myConfig.iNbSubItemsAtOnce < 1)
48
39
                myConfig.iNbSubItemsAtOnce = 1;
 
40
        int iIconSize = CD_CONFIG_GET_INTEGER ("Configuration", "icon size");
 
41
        switch (iIconSize)
 
42
        {
 
43
                case 0:
 
44
                        myConfig.iIconSize = 16;
 
45
                break ;
 
46
                case 1:
 
47
                        myConfig.iIconSize = 24;
 
48
                break ;
 
49
                case 2:
 
50
                        myConfig.iIconSize = 32;
 
51
                break ;
 
52
        }
49
53
        
50
54
        // On gere les chemins relatifs.
51
55
        if (myConfig.cDirPath != NULL && *myConfig.cDirPath == '~')