~helene-verhaeghe27/cairo-dock-core/bugfix

« back to all changes in this revision

Viewing changes to src/cairo-dock-gui-themes.c

  • Committer: fabounet
  • Date: 2010-03-14 02:21:34 UTC
  • mfrom: (503.1.10 cairo-dock-core2)
  • Revision ID: fabounet03@gmail.com-20100314022134-1you24295vgludts
the Core can now be compiled with cmake : cmake CMakeLists.txt  -DCMAKE_INSTALL_PREFIX=/usr

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include <glib/gstdio.h>
28
28
#include <glib/gi18n.h>
29
29
 
 
30
#include "../config.h"
30
31
#include "cairo-dock-config.h"
31
32
#include "cairo-dock-keyfile-utilities.h"
32
33
#include "cairo-dock-dock-factory.h"
63
64
        }
64
65
        
65
66
        //\___________________ On copie le fichier de conf par defaut dedans.
66
 
        gchar *cCommand = g_strdup_printf ("cp \"%s\" \"%s\"", CAIRO_DOCK_SHARE_DATA_DIR"/"CAIRO_DOCK_THEME_CONF_FILE, cTmpConfFile);
 
67
        gchar *cCommand = g_strdup_printf ("cp \"%s\" \"%s\"", CAIRO_DOCK_SHARE_DATA_DIR"/themes.conf", cTmpConfFile);
67
68
        int r = system (cCommand);
68
69
        g_free (cCommand);
69
70
 
83
84
                cairo_dock_reload_generic_gui (s_pThemeManager);
84
85
        }
85
86
        else
86
 
                cairo_dock_set_status_message (s_pThemeManager, _("Couldn't import the theme."));
 
87
                cairo_dock_set_status_message (s_pThemeManager, _("Could not import the theme."));
87
88
}
88
89
 
89
90
static void on_theme_destroy (gchar *cInitConfFile)
139
140
                        g_key_file_set_string (pKeyFile, "Save", "theme name", "");
140
141
                        cairo_dock_write_keys_to_file (pKeyFile, cInitConfFile);
141
142
                }
142
 
                cairo_dock_set_status_message (s_pThemeManager, bThemeSaved ? _("The theme has been saved") :  _("The theme couldn't be saved"));
 
143
                cairo_dock_set_status_message (s_pThemeManager, bThemeSaved ? _("The theme has been saved") :  _("The theme could not be saved"));
143
144
                
144
145
                g_free (cNewThemeName);
145
146
                g_key_file_free (pKeyFile);
165
166
                        cairo_dock_write_keys_to_file (pKeyFile, cInitConfFile);
166
167
                }
167
168
                if (cThemesList[1] == NULL)
168
 
                        cairo_dock_set_status_message (s_pThemeManager, bThemeDeleted ? _("The theme has been deleted") :  _("The theme couldn't be deleted"));
 
169
                        cairo_dock_set_status_message (s_pThemeManager, bThemeDeleted ? _("The theme has been deleted") :  _("The theme could not be deleted"));
169
170
                else
170
 
                        cairo_dock_set_status_message (s_pThemeManager, bThemeDeleted ? _("The themes have been deleted") :  _("The themes couldn't be deleted"));
 
171
                        cairo_dock_set_status_message (s_pThemeManager, bThemeDeleted ? _("The themes have been deleted") :  _("The themes could not be deleted"));
171
172
                
172
173
                g_strfreev (cThemesList);
173
174
                g_key_file_free (pKeyFile);