gtranslator r3703 - in trunk: . plugins/subversion
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gtranslator r3703 - in trunk: . plugins/subversion
- Date: Mon, 22 Sep 2008 09:43:54 +0000 (UTC)
Author: icq
Date: Mon Sep 22 09:43:54 2008
New Revision: 3703
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3703&view=rev
Log:
2008-08-21 Ignacio Casal Quinteiro <nacho resa gmail com>
* plugins/subversion/subversion-enum-types.c.template:
* plugins/subversion/svn-add-command.c (svn_add_command_new):
* plugins/subversion/svn-add-command.h:
* plugins/subversion/svn-cat-command.c (svn_cat_command_new):
* plugins/subversion/svn-cat-command.h:
* plugins/subversion/svn-command.c (svn_command_push_info),
(svn_command_make_canonical_path), (svn_command_get_revision):
* plugins/subversion/svn-command.h:
* plugins/subversion/svn-commit-command.c (svn_commit_command_new):
* plugins/subversion/svn-commit-command.h:
* plugins/subversion/svn-diff-command.c (svn_diff_command_new):
* plugins/subversion/svn-diff-command.h:
* plugins/subversion/svn-status-command.c (svn_status_command_new):
* plugins/subversion/svn-status-command.h:
* plugins/subversion/svn-update-command.c (svn_update_command_new):
* plugins/subversion/svn-update-command.h:
Using const where neccessary.
Modified:
trunk/ChangeLog
trunk/plugins/subversion/subversion-enum-types.c.template
trunk/plugins/subversion/svn-add-command.c
trunk/plugins/subversion/svn-add-command.h
trunk/plugins/subversion/svn-cat-command.c
trunk/plugins/subversion/svn-cat-command.h
trunk/plugins/subversion/svn-command.c
trunk/plugins/subversion/svn-command.h
trunk/plugins/subversion/svn-commit-command.c
trunk/plugins/subversion/svn-commit-command.h
trunk/plugins/subversion/svn-diff-command.c
trunk/plugins/subversion/svn-diff-command.h
trunk/plugins/subversion/svn-status-command.c
trunk/plugins/subversion/svn-status-command.h
trunk/plugins/subversion/svn-update-command.c
trunk/plugins/subversion/svn-update-command.h
Modified: trunk/plugins/subversion/subversion-enum-types.c.template
==============================================================================
--- trunk/plugins/subversion/subversion-enum-types.c.template (original)
+++ trunk/plugins/subversion/subversion-enum-types.c.template Mon Sep 22 09:43:54 2008
@@ -1,5 +1,5 @@
/*** BEGIN file-header ***/
-#include "gtranslator-enum-types.h"
+#include "subversion-enum-types.h"
/*** END file-header ***/
Modified: trunk/plugins/subversion/svn-add-command.c
==============================================================================
--- trunk/plugins/subversion/svn-add-command.c (original)
+++ trunk/plugins/subversion/svn-add-command.c Mon Sep 22 09:43:54 2008
@@ -99,7 +99,7 @@
SvnAddCommand *
-svn_add_command_new (gchar *path, gboolean force, gboolean recursive)
+svn_add_command_new (const gchar *path, gboolean force, gboolean recursive)
{
SvnAddCommand *self;
Modified: trunk/plugins/subversion/svn-add-command.h
==============================================================================
--- trunk/plugins/subversion/svn-add-command.h (original)
+++ trunk/plugins/subversion/svn-add-command.h Mon Sep 22 09:43:54 2008
@@ -57,7 +57,7 @@
};
GType svn_add_command_get_type (void) G_GNUC_CONST;
-SvnAddCommand * svn_add_command_new (gchar *path, gboolean force, gboolean recursive);
+SvnAddCommand * svn_add_command_new (const gchar *path, gboolean force, gboolean recursive);
void svn_add_command_destroy (SvnAddCommand *self);
G_END_DECLS
Modified: trunk/plugins/subversion/svn-cat-command.c
==============================================================================
--- trunk/plugins/subversion/svn-cat-command.c (original)
+++ trunk/plugins/subversion/svn-cat-command.c Mon Sep 22 09:43:54 2008
@@ -143,7 +143,7 @@
SvnCatCommand *
-svn_cat_command_new (gchar *path, glong revision)
+svn_cat_command_new (const gchar *path, glong revision)
{
SvnCatCommand *self;
Modified: trunk/plugins/subversion/svn-cat-command.h
==============================================================================
--- trunk/plugins/subversion/svn-cat-command.h (original)
+++ trunk/plugins/subversion/svn-cat-command.h Mon Sep 22 09:43:54 2008
@@ -54,7 +54,7 @@
};
GType svn_cat_command_get_type (void) G_GNUC_CONST;
-SvnCatCommand * svn_cat_command_new (gchar *path, glong revision);
+SvnCatCommand * svn_cat_command_new (const gchar *path, glong revision);
void svn_cat_command_destroy (SvnCatCommand *self);
GQueue *svn_cat_command_get_output (SvnCatCommand *self);
Modified: trunk/plugins/subversion/svn-command.c
==============================================================================
--- trunk/plugins/subversion/svn-command.c (original)
+++ trunk/plugins/subversion/svn-command.c Mon Sep 22 09:43:54 2008
@@ -578,7 +578,7 @@
void
-svn_command_push_info (SvnCommand *self, gchar *message)
+svn_command_push_info (SvnCommand *self, const gchar *message)
{
gtranslator_async_command_lock (GTR_ASYNC_COMMAND (self));
g_queue_push_tail (self->priv->info_messages, g_strdup (message));
@@ -651,7 +651,7 @@
}
gchar *
-svn_command_make_canonical_path (SvnCommand *self, gchar *path)
+svn_command_make_canonical_path (SvnCommand *self, const gchar *path)
{
const gchar *canonical_path;
@@ -661,7 +661,7 @@
}
svn_opt_revision_t *
-svn_command_get_revision (gchar *revision)
+svn_command_get_revision (const gchar *revision)
{
svn_opt_revision_t* svn_revision;
Modified: trunk/plugins/subversion/svn-command.h
==============================================================================
--- trunk/plugins/subversion/svn-command.h (original)
+++ trunk/plugins/subversion/svn-command.h Mon Sep 22 09:43:54 2008
@@ -60,7 +60,7 @@
GType svn_command_get_type (void) G_GNUC_CONST;
-void svn_command_push_info (SvnCommand *self, gchar *message);
+void svn_command_push_info (SvnCommand *self, const gchar *message);
GQueue * svn_command_get_info_queue (SvnCommand *self);
@@ -74,10 +74,10 @@
void svn_command_unlock_ui (SvnCommand *self);
-gchar *svn_command_make_canonical_path (SvnCommand *self, gchar *path);
+gchar *svn_command_make_canonical_path (SvnCommand *self, const gchar *path);
/* Static methods */
-svn_opt_revision_t *svn_command_get_revision (gchar *revision);
+svn_opt_revision_t *svn_command_get_revision (const gchar *revision);
GList *svn_command_copy_path_list (GList *list);
Modified: trunk/plugins/subversion/svn-commit-command.c
==============================================================================
--- trunk/plugins/subversion/svn-commit-command.c (original)
+++ trunk/plugins/subversion/svn-commit-command.c Mon Sep 22 09:43:54 2008
@@ -149,7 +149,7 @@
}
SvnCommitCommand *
-svn_commit_command_new (GList *paths, gchar *log_message,
+svn_commit_command_new (GList *paths, const gchar *log_message,
gboolean recursive)
{
SvnCommitCommand *self;
Modified: trunk/plugins/subversion/svn-commit-command.h
==============================================================================
--- trunk/plugins/subversion/svn-commit-command.h (original)
+++ trunk/plugins/subversion/svn-commit-command.h Mon Sep 22 09:43:54 2008
@@ -57,7 +57,7 @@
};
GType svn_commit_command_get_type (void) G_GNUC_CONST;
-SvnCommitCommand * svn_commit_command_new (GList *paths, gchar *log_message,
+SvnCommitCommand * svn_commit_command_new (GList *paths, const gchar *log_message,
gboolean recursive);
void svn_commit_command_destroy (SvnCommitCommand *self);
Modified: trunk/plugins/subversion/svn-diff-command.c
==============================================================================
--- trunk/plugins/subversion/svn-diff-command.c (original)
+++ trunk/plugins/subversion/svn-diff-command.c Mon Sep 22 09:43:54 2008
@@ -195,7 +195,7 @@
}
SvnDiffCommand *
-svn_diff_command_new (gchar *path, glong revision1, glong revision2,
+svn_diff_command_new (const gchar *path, glong revision1, glong revision2,
gboolean recursive)
{
SvnDiffCommand *self;
Modified: trunk/plugins/subversion/svn-diff-command.h
==============================================================================
--- trunk/plugins/subversion/svn-diff-command.h (original)
+++ trunk/plugins/subversion/svn-diff-command.h Mon Sep 22 09:43:54 2008
@@ -61,7 +61,7 @@
};
GType svn_diff_command_get_type (void) G_GNUC_CONST;
-SvnDiffCommand *svn_diff_command_new (gchar *path, glong revision1,
+SvnDiffCommand *svn_diff_command_new (const gchar *path, glong revision1,
glong revision2, gboolean recursive);
void svn_diff_command_destroy (SvnDiffCommand *self);
Modified: trunk/plugins/subversion/svn-status-command.c
==============================================================================
--- trunk/plugins/subversion/svn-status-command.c (original)
+++ trunk/plugins/subversion/svn-status-command.c Mon Sep 22 09:43:54 2008
@@ -147,7 +147,7 @@
}
SvnStatusCommand *
-svn_status_command_new (gchar *path, gboolean recursive, gboolean get_all_items)
+svn_status_command_new (const gchar *path, gboolean recursive, gboolean get_all_items)
{
SvnStatusCommand *self;
Modified: trunk/plugins/subversion/svn-status-command.h
==============================================================================
--- trunk/plugins/subversion/svn-status-command.h (original)
+++ trunk/plugins/subversion/svn-status-command.h Mon Sep 22 09:43:54 2008
@@ -55,7 +55,7 @@
};
GType svn_status_command_get_type (void) G_GNUC_CONST;
-SvnStatusCommand *svn_status_command_new (gchar *path, gboolean recursive,
+SvnStatusCommand *svn_status_command_new (const gchar *path, gboolean recursive,
gboolean get_all_items);
void svn_status_command_destroy (SvnStatusCommand *self);
GQueue *svn_status_command_get_status_queue (SvnStatusCommand *self);
Modified: trunk/plugins/subversion/svn-update-command.c
==============================================================================
--- trunk/plugins/subversion/svn-update-command.c (original)
+++ trunk/plugins/subversion/svn-update-command.c Mon Sep 22 09:43:54 2008
@@ -120,7 +120,7 @@
SvnUpdateCommand *
-svn_update_command_new (gchar *path, gchar *revision, gboolean recursive)
+svn_update_command_new (const gchar *path, const gchar *revision, gboolean recursive)
{
SvnUpdateCommand *self;
Modified: trunk/plugins/subversion/svn-update-command.h
==============================================================================
--- trunk/plugins/subversion/svn-update-command.h (original)
+++ trunk/plugins/subversion/svn-update-command.h Mon Sep 22 09:43:54 2008
@@ -59,7 +59,7 @@
};
GType svn_update_command_get_type (void) G_GNUC_CONST;
-SvnUpdateCommand * svn_update_command_new (gchar *path, gchar *revision,
+SvnUpdateCommand * svn_update_command_new (const gchar *path, const gchar *revision,
gboolean recursive);
void svn_update_command_destroy (SvnUpdateCommand *self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]