[anjuta] git: Rename the path list functions.
- From: James Liggett <jrliggett src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjuta] git: Rename the path list functions.
- Date: Thu, 11 Jun 2009 20:19:09 -0400 (EDT)
commit efbc1e9322cd8b1434317c2d8896585f02a0daa1
Author: James Liggett <jrliggett cox net>
Date: Thu Jun 11 17:15:13 2009 -0700
git: Rename the path list functions.
Since they can be used for any list of strings, use the names git_copy_path_list and
git_free_path_list.
plugins/git/git-add-command.c | 4 ++--
plugins/git/git-checkout-files-command.c | 4 ++--
plugins/git/git-checkout-files-dialog.c | 2 +-
plugins/git/git-command.c | 4 ++--
plugins/git/git-command.h | 4 ++--
plugins/git/git-commit-command.c | 4 ++--
plugins/git/git-commit-dialog.c | 2 +-
plugins/git/git-ignore-command.c | 4 ++--
plugins/git/git-ignore-dialog.c | 2 +-
plugins/git/git-push-command.c | 4 ++--
plugins/git/git-push-dialog.c | 2 +-
plugins/git/git-remove-command.c | 4 ++--
plugins/git/git-reset-files-command.c | 4 ++--
plugins/git/git-resolve-dialog.c | 2 +-
plugins/git/git-unstage-dialog.c | 2 +-
15 files changed, 24 insertions(+), 24 deletions(-)
---
diff --git a/plugins/git/git-add-command.c b/plugins/git/git-add-command.c
index 06c00bb..a4095e3 100644
--- a/plugins/git/git-add-command.c
+++ b/plugins/git/git-add-command.c
@@ -45,7 +45,7 @@ git_add_command_finalize (GObject *object)
self = GIT_ADD_COMMAND (object);
- git_command_free_path_list (self->priv->paths);
+ git_command_free_string_list (self->priv->paths);
g_free (self->priv);
G_OBJECT_CLASS (git_add_command_parent_class)->finalize (object);
@@ -106,7 +106,7 @@ git_add_command_new_list (const gchar *working_directory, GList *path_list,
"working-directory", working_directory,
NULL);
- self->priv->paths = git_command_copy_path_list (path_list);
+ self->priv->paths = git_command_copy_string_list (path_list);
self->priv->force = force;
return self;
diff --git a/plugins/git/git-checkout-files-command.c b/plugins/git/git-checkout-files-command.c
index 108934f..c198969 100644
--- a/plugins/git/git-checkout-files-command.c
+++ b/plugins/git/git-checkout-files-command.c
@@ -57,7 +57,7 @@ git_checkout_files_command_finalize (GObject *object)
self = GIT_CHECKOUT_FILES_COMMAND (object);
- git_command_free_path_list (self->priv->paths);
+ git_command_free_string_list (self->priv->paths);
g_free (self->priv);
G_OBJECT_CLASS (git_checkout_files_command_parent_class)->finalize (object);
@@ -85,7 +85,7 @@ git_checkout_files_command_new (const gchar *working_directory, GList *paths)
"working-directory", working_directory,
NULL);
- self->priv->paths = git_command_copy_path_list (paths);
+ self->priv->paths = git_command_copy_string_list (paths);
return self;
}
diff --git a/plugins/git/git-checkout-files-dialog.c b/plugins/git/git-checkout-files-dialog.c
index 72c7d97..050a21c 100644
--- a/plugins/git/git-checkout-files-dialog.c
+++ b/plugins/git/git-checkout-files-dialog.c
@@ -56,7 +56,7 @@ on_checkout_files_dialog_response (GtkDialog *dialog, gint response_id,
checkout_files_command = git_checkout_files_command_new (data->plugin->project_root_directory,
selected_paths);
- git_command_free_path_list (selected_paths);
+ git_command_free_string_list (selected_paths);
g_signal_connect (G_OBJECT (checkout_files_command), "command-finished",
G_CALLBACK (on_checkout_files_command_finished),
diff --git a/plugins/git/git-command.c b/plugins/git/git-command.c
index 5999415..c333464 100644
--- a/plugins/git/git-command.c
+++ b/plugins/git/git-command.c
@@ -538,7 +538,7 @@ git_command_send_output_to_info (GitCommand *git_command, const gchar *output)
}
GList *
-git_command_copy_path_list (GList *list)
+git_command_copy_string_list (GList *list)
{
GList *current_path;
GList *new_list;
@@ -556,7 +556,7 @@ git_command_copy_path_list (GList *list)
}
void
-git_command_free_path_list (GList *list)
+git_command_free_string_list (GList *list)
{
GList *current_path;
diff --git a/plugins/git/git-command.h b/plugins/git/git-command.h
index 50a88aa..d9464a8 100644
--- a/plugins/git/git-command.h
+++ b/plugins/git/git-command.h
@@ -74,8 +74,8 @@ void git_command_send_output_to_info (GitCommand *git_command,
const gchar *output);
/* Static helper methods */
-GList *git_command_copy_path_list (GList *path_list);
-void git_command_free_path_list (GList *path_list);
+GList *git_command_copy_string_list (GList *path_list);
+void git_command_free_string_list (GList *path_list);
G_END_DECLS
diff --git a/plugins/git/git-commit-command.c b/plugins/git/git-commit-command.c
index b69e79e..df2bad9 100644
--- a/plugins/git/git-commit-command.c
+++ b/plugins/git/git-commit-command.c
@@ -82,7 +82,7 @@ git_commit_command_finalize (GObject *object)
self = GIT_COMMIT_COMMAND (object);
- git_command_free_path_list (self->priv->paths);
+ git_command_free_string_list (self->priv->paths);
g_free (self->priv->log);
g_free (self->priv->author_name);
g_free (self->priv->author_email);
@@ -118,7 +118,7 @@ git_commit_command_new (const gchar *working_directory, gboolean amend,
"single-line-output", TRUE,
NULL);
- self->priv->paths = git_command_copy_path_list (paths);
+ self->priv->paths = git_command_copy_string_list (paths);
self->priv->amend = amend;
self->priv->resolve_merge = resolve_merge;
self->priv->log = g_strdup (log);
diff --git a/plugins/git/git-commit-dialog.c b/plugins/git/git-commit-dialog.c
index e29947e..0814e4c 100644
--- a/plugins/git/git-commit-dialog.c
+++ b/plugins/git/git-commit-dialog.c
@@ -134,7 +134,7 @@ on_commit_dialog_response (GtkDialog *dialog, gint response_id,
selected_paths);
g_free (log);
- git_command_free_path_list (selected_paths);
+ git_command_free_string_list (selected_paths);
git_create_message_view (data->plugin);
diff --git a/plugins/git/git-ignore-command.c b/plugins/git/git-ignore-command.c
index 09259f1..41be367 100644
--- a/plugins/git/git-ignore-command.c
+++ b/plugins/git/git-ignore-command.c
@@ -44,7 +44,7 @@ git_ignore_command_finalize (GObject *object)
self = GIT_IGNORE_COMMAND (object);
- git_command_free_path_list (self->priv->paths);
+ git_command_free_string_list (self->priv->paths);
g_free (self->priv);
G_OBJECT_CLASS (git_ignore_command_parent_class)->finalize (object);
@@ -134,7 +134,7 @@ git_ignore_command_new_list (const gchar *working_directory, GList *path_list)
"working-directory", working_directory,
NULL);
- self->priv->paths = git_command_copy_path_list (path_list);
+ self->priv->paths = git_command_copy_string_list (path_list);
return self;
}
diff --git a/plugins/git/git-ignore-dialog.c b/plugins/git/git-ignore-dialog.c
index 9486718..e331929 100644
--- a/plugins/git/git-ignore-dialog.c
+++ b/plugins/git/git-ignore-dialog.c
@@ -39,7 +39,7 @@ on_ignore_dialog_response (GtkDialog *dialog, gint response_id,
ignore_command = git_ignore_command_new_list (data->plugin->project_root_directory,
selected_paths);
- git_command_free_path_list (selected_paths);
+ git_command_free_string_list (selected_paths);
g_signal_connect (G_OBJECT (ignore_command), "command-finished",
G_CALLBACK (on_git_command_finished),
diff --git a/plugins/git/git-push-command.c b/plugins/git/git-push-command.c
index ba51aaf..b9b3196 100644
--- a/plugins/git/git-push-command.c
+++ b/plugins/git/git-push-command.c
@@ -48,7 +48,7 @@ git_push_command_finalize (GObject *object)
self = GIT_PUSH_COMMAND (object);
g_free (self->priv->url);
- git_command_free_path_list (self->priv->refs);
+ git_command_free_string_list (self->priv->refs);
g_free (self->priv);
G_OBJECT_CLASS (git_push_command_parent_class)->finalize (object);
@@ -105,7 +105,7 @@ git_push_command_new (const gchar *working_directory,
NULL);
self->priv->url = g_strdup (url);
- self->priv->refs = git_command_copy_path_list (refs);
+ self->priv->refs = git_command_copy_string_list (refs);
self->priv->push_all = push_all;
self->priv->push_tags = push_tags;
diff --git a/plugins/git/git-push-dialog.c b/plugins/git/git-push-dialog.c
index b49cd13..29951f8 100644
--- a/plugins/git/git-push-dialog.c
+++ b/plugins/git/git-push-dialog.c
@@ -96,7 +96,7 @@ on_push_dialog_response (GtkDialog *dialog, gint response_id,
progress_data = git_progress_data_new (data->plugin, _("Git: Pushing..."));
g_free (url);
- git_command_free_path_list (selected_refs);
+ git_command_free_string_list (selected_refs);
git_create_message_view (data->plugin);
diff --git a/plugins/git/git-remove-command.c b/plugins/git/git-remove-command.c
index fc12272..87a218f 100644
--- a/plugins/git/git-remove-command.c
+++ b/plugins/git/git-remove-command.c
@@ -45,7 +45,7 @@ git_remove_command_finalize (GObject *object)
self = GIT_REMOVE_COMMAND (object);
- git_command_free_path_list (self->priv->paths);
+ git_command_free_string_list (self->priv->paths);
g_free (self->priv);
G_OBJECT_CLASS (git_remove_command_parent_class)->finalize (object);
@@ -106,7 +106,7 @@ git_remove_command_new_list (const gchar *working_directory, GList *path_list,
"working-directory", working_directory,
NULL);
- self->priv->paths = git_command_copy_path_list (path_list);
+ self->priv->paths = git_command_copy_string_list (path_list);
self->priv->force = force;
return self;
diff --git a/plugins/git/git-reset-files-command.c b/plugins/git/git-reset-files-command.c
index 99da108..c76377e 100644
--- a/plugins/git/git-reset-files-command.c
+++ b/plugins/git/git-reset-files-command.c
@@ -59,7 +59,7 @@ git_reset_files_command_finalize (GObject *object)
self = GIT_RESET_FILES_COMMAND (object);
- git_command_free_path_list (self->priv->paths);
+ git_command_free_string_list (self->priv->paths);
g_free (self->priv->revision);
g_free (self->priv);
@@ -90,7 +90,7 @@ git_reset_files_command_new (const gchar *working_directory,
"single-line-output", TRUE,
NULL);
- self->priv->paths = git_command_copy_path_list (paths);
+ self->priv->paths = git_command_copy_string_list (paths);
self->priv->revision = g_strdup (revision);
return self;
diff --git a/plugins/git/git-resolve-dialog.c b/plugins/git/git-resolve-dialog.c
index 6f66652..58f85e8 100644
--- a/plugins/git/git-resolve-dialog.c
+++ b/plugins/git/git-resolve-dialog.c
@@ -57,7 +57,7 @@ on_resolve_dialog_response (GtkDialog *dialog, gint response_id,
add_command = git_add_command_new_list (data->plugin->project_root_directory,
selected_paths, FALSE);
- git_command_free_path_list (selected_paths);
+ git_command_free_string_list (selected_paths);
g_signal_connect (G_OBJECT (add_command), "command-finished",
G_CALLBACK (on_add_command_finished),
diff --git a/plugins/git/git-unstage-dialog.c b/plugins/git/git-unstage-dialog.c
index 54c3ed1..f0b80ec 100644
--- a/plugins/git/git-unstage-dialog.c
+++ b/plugins/git/git-unstage-dialog.c
@@ -58,7 +58,7 @@ on_unstage_dialog_response (GtkDialog *dialog, gint response_id,
GIT_RESET_FILES_HEAD,
selected_paths);
- git_command_free_path_list (selected_paths);
+ git_command_free_string_list (selected_paths);
g_signal_connect (G_OBJECT (reset_files_command), "command-finished",
G_CALLBACK (on_reset_files_command_finished),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]