[gnome-initial-setup] Remove old code
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] Remove old code
- Date: Sun, 19 Aug 2012 01:35:35 +0000 (UTC)
commit 336373aedc7edceb0677daafe4a4dceec95135a9
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sat Aug 18 21:30:10 2012 -0400
Remove old code
gnome-initial-setup/gis-utils.c | 78 -----------------------------
gnome-initial-setup/gis-utils.h | 2 -
gnome-initial-setup/gnome-initial-setup.c | 13 -----
gnome-initial-setup/gnome-initial-setup.h | 1 -
4 files changed, 0 insertions(+), 94 deletions(-)
---
diff --git a/gnome-initial-setup/gis-utils.c b/gnome-initial-setup/gis-utils.c
index 01c29ea..ad30f2b 100644
--- a/gnome-initial-setup/gis-utils.c
+++ b/gnome-initial-setup/gis-utils.c
@@ -7,84 +7,6 @@
#include <stdlib.h>
-void
-gis_copy_account_file (ActUser *act_user,
- const gchar *relative_path)
-{
- const gchar *username;
- const gchar *homedir;
- GSList *dirs = NULL, *l;
- gchar *p, *tmp;
- gchar *argv[20];
- gint i;
- gchar *from;
- gchar *to;
- GError *error = NULL;
-
- username = act_user_get_user_name (act_user);
- homedir = act_user_get_home_dir (act_user);
-
- from = g_build_filename (g_get_home_dir (), relative_path, NULL);
- to = g_build_filename (homedir, relative_path, NULL);
-
- p = g_path_get_dirname (relative_path);
- while (strcmp (p, ".") != 0) {
- dirs = g_slist_prepend (dirs, g_build_filename (homedir, p, NULL));
- tmp = g_path_get_dirname (p);
- g_free (p);
- p = tmp;
- }
-
- i = 0;
- argv[i++] = "/usr/bin/pkexec";
- argv[i++] = "install";
- argv[i++] = "--owner";
- argv[i++] = (gchar *)username;
- argv[i++] = "--group";
- argv[i++] = (gchar *)username;
- argv[i++] = "--mode";
- argv[i++] = "755";
- argv[i++] = "--directory";
- for (l = dirs; l; l = l->next) {
- argv[i++] = l->data;
- if (i == 20) {
- g_warning ("Too many subdirectories");
- goto out;
- }
- }
- argv[i++] = NULL;
-
- if (!g_spawn_sync (NULL, argv, NULL, 0, NULL, NULL, NULL, NULL, NULL, &error)) {
- g_warning ("Failed to copy account data: %s", error->message);
- g_error_free (error);
- goto out;
- }
-
- i = 0;
- argv[i++] = "/usr/bin/pkexec";
- argv[i++] = "install";
- argv[i++] = "--owner";
- argv[i++] = (gchar *)username;
- argv[i++] = "--group";
- argv[i++] = (gchar *)username;
- argv[i++] = "--mode";
- argv[i++] = "755";
- argv[i++] = from;
- argv[i++] = to;
- argv[i++] = NULL;
-
- if (!g_spawn_sync (NULL, argv, NULL, 0, NULL, NULL, NULL, NULL, NULL, &error)) {
- g_warning ("Failed to copy account data: %s", error->message);
- g_error_free (error);
- goto out;
- }
-
-out:
- g_slist_free_full (dirs, g_free);
- g_free (to);
- g_free (from);
-}
-
GtkBuilder *
gis_builder (gchar *resource)
{
diff --git a/gnome-initial-setup/gis-utils.h b/gnome-initial-setup/gis-utils.h
index 5b9d7e2..5e7a948 100644
--- a/gnome-initial-setup/gis-utils.h
+++ b/gnome-initial-setup/gis-utils.h
@@ -9,8 +9,6 @@
G_BEGIN_DECLS
-void gis_copy_account_file (ActUser *act_user,
- const gchar *relative_path);
GtkBuilder * gis_builder (gchar *resource);
void gis_gtk_text_buffer_insert_pango_text (GtkTextBuffer *buffer,
GtkTextIter *iter,
diff --git a/gnome-initial-setup/gnome-initial-setup.c b/gnome-initial-setup/gnome-initial-setup.c
index 07e3113..39f48d5 100644
--- a/gnome-initial-setup/gnome-initial-setup.c
+++ b/gnome-initial-setup/gnome-initial-setup.c
@@ -121,19 +121,6 @@ gis_get_assistant (SetupData *setup)
return setup->assistant;
}
-void
-gis_add_summary_callback (SetupData *setup,
- GFunc callback,
- gpointer user_data)
-{
- AsyncClosure *closure = g_slice_new (AsyncClosure);
-
- closure->callback = callback;
- closure->user_data = user_data;
-
- setup->finals = g_slist_append (setup->finals, closure);
-}
-
static GType
get_assistant_type (void)
{
diff --git a/gnome-initial-setup/gnome-initial-setup.h b/gnome-initial-setup/gnome-initial-setup.h
index bdcf4b0..ba1e44a 100644
--- a/gnome-initial-setup/gnome-initial-setup.h
+++ b/gnome-initial-setup/gnome-initial-setup.h
@@ -15,7 +15,6 @@ typedef struct _SetupData SetupData;
GtkWindow *gis_get_main_window (SetupData *setup);
GKeyFile *gis_get_overrides (SetupData *setup);
GisAssistant * gis_get_assistant (SetupData *setup);
-void gis_add_summary_callback (SetupData *setup, GFunc callback, gpointer user_data);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]