~vcs-imports/cairo-dock-plugins/trunk

« back to all changes in this revision

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

  • Committer: fabounet
  • Date: 2008-01-03 19:50:56 UTC
  • Revision ID: vcs-imports@canonical.com-20080103195056-ggctillpksodn9cc
correction deplacement fichier + normalisation des themes d'applets + parabolic

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
extern cairo_surface_t *my_pEmptyBinSurface;
15
15
extern cairo_surface_t *my_pFullBinSurface;
16
16
extern GHashTable *my_pThemeTable;
17
 
extern gchar *my_theme;
 
17
//extern gchar *my_theme;
 
18
extern gchar *my_cThemePath;
18
19
extern gchar *my_cBrowser;
19
20
 
20
21
 
21
22
CD_APPLET_CONFIG_BEGIN ("Poubelle", NULL)
22
 
        my_theme = CD_CONFIG_GET_STRING_WITH_DEFAULT ("MODULE", "theme", "default");
 
23
        //my_theme = CD_CONFIG_GET_STRING_WITH_DEFAULT ("MODULE", "theme", "default");
23
24
        
24
25
        my_fCheckInterval = CD_CONFIG_GET_DOUBLE_WITH_DEFAULT ("MODULE", "check interval", 2.);
25
26
        
46
47
                }
47
48
        }
48
49
        
49
 
        //\_______________ On charge la liste des themes disponibles.
50
 
        gchar *cThemesDir = g_strdup_printf ("%s/themes", MY_APPLET_SHARE_DATA_DIR);
 
50
        //\_______________ On liste les themes disponibles et on recupere celui choisi.
 
51
        my_cThemePath = CD_CONFIG_GET_THEME_PATH ("MODULE", "theme", "themes", "Gion");
 
52
        /*gchar *cThemesDir = g_strdup_printf ("%s/themes", MY_APPLET_SHARE_DATA_DIR);
51
53
        my_pThemeTable = cairo_dock_list_themes (cThemesDir, NULL, &erreur);
52
54
        if (erreur != NULL)
53
55
        {
54
56
                g_print ("Attention : %s\n", erreur->message);
55
57
                g_error_free (erreur);
56
58
                return ;
57
 
        }
 
59
        }*/
58
60
CD_APPLET_CONFIG_END