summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorraveit <[email protected]>2012-11-05 17:14:51 +0100
committerraveit <[email protected]>2012-11-05 17:14:51 +0100
commite06e9b088a12dd098e11110f7d0d77ab8032e4eb (patch)
tree40a96b1b0e2ccd44771f5000e374e1920764ae59 /src/main.c
parent8f8784ba4ebcd8eb099c4e119a9a8d5a349efd61 (diff)
downloadengrampa-e06e9b088a12dd098e11110f7d0d77ab8032e4eb.tar.bz2
engrampa-e06e9b088a12dd098e11110f7d0d77ab8032e4eb.tar.xz
Port to gsettings
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c85
1 files changed, 1 insertions, 84 deletions
diff --git a/src/main.c b/src/main.c
index 2276e58..898547d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -49,7 +49,6 @@
#include "fr-command-lrzip.h"
#include "fr-process.h"
#include "fr-stock.h"
-#include "mateconf-utils.h"
#include "fr-window.h"
#include "typedefs.h"
#include "preferences.h"
@@ -335,9 +334,6 @@ main (int argc, char **argv)
static void
initialize_data (void)
{
- eel_mateconf_monitor_add ("/apps/engrampa");
- eel_mateconf_monitor_add (PREF_CAJA_CLICK_POLICY);
-
ProgramsCache = g_hash_table_new_full (g_str_hash,
g_str_equal,
g_free,
@@ -385,88 +381,12 @@ release_data ()
{
g_hash_table_destroy (ProgramsCache);
- eel_global_client_free ();
-
while (CommandList != NULL) {
CommandData *cdata = CommandList->data;
command_done (cdata);
}
}
-/* Create the windows. */
-
-
-static void
-migrate_dir_from_to (const char *from_dir,
- const char *to_dir)
-{
- char *from_path;
- char *to_path;
-
- from_path = get_home_relative_path (from_dir);
- to_path = get_home_relative_path (to_dir);
-
- if (uri_is_dir (from_path) && ! uri_exists (to_path)) {
- char *line;
- char *e1;
- char *e2;
-
- e1 = g_shell_quote (from_path);
- e2 = g_shell_quote (to_path);
- line = g_strdup_printf ("mv -f %s %s", e1, e2);
- g_free (e1);
- g_free (e2);
-
- g_spawn_command_line_sync (line, NULL, NULL, NULL, NULL);
- g_free (line);
- }
-
- g_free (from_path);
- g_free (to_path);
-}
-
-
-static void
-migrate_file_from_to (const char *from_file,
- const char *to_file)
-{
- char *from_path;
- char *to_path;
-
- from_path = get_home_relative_path (from_file);
- to_path = get_home_relative_path (to_file);
-
- if (uri_is_file (from_path) && ! uri_exists (to_path)) {
- char *line;
- char *e1;
- char *e2;
-
- e1 = g_shell_quote (from_path);
- e2 = g_shell_quote (to_path);
- line = g_strdup_printf ("mv -f %s %s", e1, e2);
- g_free (e1);
- g_free (e2);
-
- g_spawn_command_line_sync (line, NULL, NULL, NULL, NULL);
- g_free (line);
- }
-
- g_free (from_path);
- g_free (to_path);
-}
-
-
-static void
-migrate_to_new_directories (void)
-{
- migrate_dir_from_to (OLD_RC_OPTIONS_DIR, RC_OPTIONS_DIR);
- migrate_file_from_to (OLD_RC_BOOKMARKS_FILE, RC_BOOKMARKS_FILE);
- migrate_file_from_to (OLD_RC_RECENT_FILE, RC_RECENT_FILE);
-
- eel_mateconf_set_boolean (PREF_MIGRATE_DIRECTORIES, FALSE);
-}
-
-
/* -- FrRegisteredCommand -- */
@@ -915,7 +835,7 @@ prepare_app (void)
uri = get_home_relative_uri (RC_DIR);
- if (uri_is_file (uri)) { /* before the mateconf port this was a file, now it's folder. */
+ if (uri_is_file (uri)) { /* before the MateConf port this was a file, now it's folder. */
GFile *file;
file = g_file_new_for_uri (uri);
@@ -926,9 +846,6 @@ prepare_app (void)
ensure_dir_exists (uri, 0700, NULL);
g_free (uri);
- if (eel_mateconf_get_boolean (PREF_MIGRATE_DIRECTORIES, TRUE))
- migrate_to_new_directories ();
-
register_commands ();
compute_supported_archive_types ();