[gtksourceview] Use 'const gchar' instead of 'gchar const'
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtksourceview] Use 'const gchar' instead of 'gchar const'
- Date: Tue, 29 Sep 2009 21:06:46 +0000 (UTC)
commit bfd4b52b01698788418f9566078c699183da3b75
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Tue Sep 29 22:22:20 2009 +0200
Use 'const gchar' instead of 'gchar const'
.../words/gtksourcecompletionwords.c | 2 +-
.../words/gtksourcecompletionwords.h | 2 +-
.../words/gtksourcecompletionwordsbuffer.c | 4 ++--
.../words/gtksourcecompletionwordslibrary.c | 14 +++++++-------
.../words/gtksourcecompletionwordslibrary.h | 6 +++---
.../words/gtksourcecompletionwordsproposal.c | 4 ++--
.../words/gtksourcecompletionwordsproposal.h | 4 ++--
7 files changed, 18 insertions(+), 18 deletions(-)
---
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwords.c b/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
index edf7ef1..3da031c 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwords.c
@@ -540,7 +540,7 @@ gtk_source_completion_words_init (GtkSourceCompletionWords *self)
}
GtkSourceCompletionWords *
-gtk_source_completion_words_new (gchar const *name,
+gtk_source_completion_words_new (const gchar *name,
GdkPixbuf *icon)
{
return g_object_new (GTK_TYPE_SOURCE_COMPLETION_WORDS,
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwords.h b/gtksourceview/completion-providers/words/gtksourcecompletionwords.h
index 5529342..98ad7cd 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwords.h
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwords.h
@@ -53,7 +53,7 @@ struct _GtkSourceCompletionWordsClass {
GType gtk_source_completion_words_get_type (void) G_GNUC_CONST;
GtkSourceCompletionWords *
- gtk_source_completion_words_new (gchar const *name,
+ gtk_source_completion_words_new (const gchar *name,
GdkPixbuf *icon);
void gtk_source_completion_words_register (GtkSourceCompletionWords *words,
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c b/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
index bb1e688..a456b8a 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
@@ -178,7 +178,7 @@ gtk_source_completion_words_buffer_init (GtkSourceCompletionWordsBuffer *self)
static void
on_insert_text_cb (GtkTextBuffer *textbuffer,
GtkTextIter *location,
- gchar const *text,
+ const gchar *text,
gint len,
GtkSourceCompletionWordsBuffer *buffer)
{
@@ -540,7 +540,7 @@ handle_text_inserted (GtkSourceCompletionWordsBuffer *buffer,
static void
on_insert_text_after_cb (GtkTextBuffer *text_buffer,
GtkTextIter *location,
- gchar const *text,
+ const gchar *text,
gint len,
GtkSourceCompletionWordsBuffer *buffer)
{
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.c b/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.c
index 458c04e..d6c2031 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.c
@@ -106,9 +106,9 @@ compare_two_items (GtkSourceCompletionWordsProposal *a,
static gint
compare_items (GtkSourceCompletionWordsProposal *a,
GtkSourceCompletionWordsProposal *b,
- gchar const *word)
+ const gchar *word)
{
- gchar const *m1 =
+ const gchar *m1 =
gtk_source_completion_words_proposal_get_word (a == NULL ? b : a);
return strcmp (m1, word);
@@ -116,7 +116,7 @@ compare_items (GtkSourceCompletionWordsProposal *a,
static gboolean
iter_match_prefix (GSequenceIter *iter,
- gchar const *word,
+ const gchar *word,
gint len)
{
GtkSourceCompletionWordsProposal *item;
@@ -141,7 +141,7 @@ gtk_source_completion_words_library_get_proposal (GSequenceIter *iter)
GSequenceIter *
gtk_source_completion_words_library_find_first (GtkSourceCompletionWordsLibrary *library,
- gchar const *word,
+ const gchar *word,
gint len)
{
GSequenceIter *iter;
@@ -203,7 +203,7 @@ gtk_source_completion_words_library_find_first (GtkSourceCompletionWordsLibrary
GSequenceIter *
gtk_source_completion_words_library_find_next (GSequenceIter *iter,
- gchar const *word,
+ const gchar *word,
gint len)
{
g_return_val_if_fail (iter != NULL, NULL);
@@ -225,7 +225,7 @@ gtk_source_completion_words_library_find (GtkSourceCompletionWordsLibrary *libr
{
GSequenceIter *iter;
GtkSourceCompletionWordsProposal *other;
- gchar const *word = gtk_source_completion_words_proposal_get_word (proposal);
+ const gchar *word = gtk_source_completion_words_proposal_get_word (proposal);
gint len = strlen (word);
g_return_val_if_fail (GTK_IS_SOURCE_COMPLETION_WORDS_LIBRARY (library), NULL);
@@ -270,7 +270,7 @@ on_proposal_unused (GtkSourceCompletionWordsProposal *proposal,
GtkSourceCompletionWordsProposal *
gtk_source_completion_words_library_add_word (GtkSourceCompletionWordsLibrary *library,
- gchar const *word)
+ const gchar *word)
{
GtkSourceCompletionWordsProposal *proposal;
GSequenceIter *iter;
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.h b/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.h
index 544f377..5661baf 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.h
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.h
@@ -59,11 +59,11 @@ GtkSourceCompletionWordsLibrary *
GSequenceIter *gtk_source_completion_words_library_find (GtkSourceCompletionWordsLibrary *library,
GtkSourceCompletionWordsProposal *proposal);
GSequenceIter *gtk_source_completion_words_library_find_first (GtkSourceCompletionWordsLibrary *library,
- gchar const *word,
+ const gchar *word,
gint len);
GSequenceIter *gtk_source_completion_words_library_find_next (GSequenceIter *iter,
- gchar const *word,
+ const gchar *word,
gint len);
/* Getting */
@@ -73,7 +73,7 @@ GtkSourceCompletionWordsProposal *
/* Adding/removing */
GtkSourceCompletionWordsProposal *
gtk_source_completion_words_library_add_word (GtkSourceCompletionWordsLibrary *library,
- gchar const *word);
+ const gchar *word);
void gtk_source_completion_words_library_remove_word (GtkSourceCompletionWordsLibrary *library,
GtkSourceCompletionWordsProposal *proposal);
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.c b/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.c
index b2a2295..2dceccc 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.c
@@ -104,7 +104,7 @@ gtk_source_completion_words_proposal_init (GtkSourceCompletionWordsProposal *sel
}
GtkSourceCompletionWordsProposal *
-gtk_source_completion_words_proposal_new (gchar const *word)
+gtk_source_completion_words_proposal_new (const gchar *word)
{
GtkSourceCompletionWordsProposal *proposal =
g_object_new (GTK_TYPE_SOURCE_COMPLETION_WORDS_PROPOSAL, NULL);
@@ -132,7 +132,7 @@ gtk_source_completion_words_proposal_unuse (GtkSourceCompletionWordsProposal *pr
}
}
-gchar const *
+const gchar *
gtk_source_completion_words_proposal_get_word (GtkSourceCompletionWordsProposal *proposal)
{
g_return_val_if_fail (GTK_IS_SOURCE_COMPLETION_WORDS_PROPOSAL (proposal), NULL);
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.h b/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.h
index 807af09..30ca3cb 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.h
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.h
@@ -53,9 +53,9 @@ struct _GtkSourceCompletionWordsProposalClass {
GType gtk_source_completion_words_proposal_get_type (void) G_GNUC_CONST;
GtkSourceCompletionWordsProposal *
- gtk_source_completion_words_proposal_new (gchar const *word);
+ gtk_source_completion_words_proposal_new (const gchar *word);
-gchar const *gtk_source_completion_words_proposal_get_word (GtkSourceCompletionWordsProposal *proposal);
+const gchar *gtk_source_completion_words_proposal_get_word (GtkSourceCompletionWordsProposal *proposal);
void gtk_source_completion_words_proposal_use (GtkSourceCompletionWordsProposal *proposal);
void gtk_source_completion_words_proposal_unuse (GtkSourceCompletionWordsProposal *proposal);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]