Make prefix argument const. (#91662, Gustavo Carneiro)
authorOwen Taylor <otaylor@redhat.com>
Mon, 14 Oct 2002 19:38:30 +0000 (19:38 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 14 Oct 2002 19:38:30 +0000 (19:38 +0000)
Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com>

        * glib/gcompletion.[ch] (g_completion_complete): Make
        prefix argument const. (#91662, Gustavo Carneiro)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gcompletion.c
glib/gcompletion.h

index cd880d6..af7d6a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gcompletion.[ch] (g_completion_complete): Make
+       prefix argument const. (#91662, Gustavo Carneiro) 
+
 Mon Oct 14 15:32:14 2002  Owen Taylor  <otaylor@redhat.com>
  
        * tests/mainloop-test.c (adder_response): Fix a minor memory
index cd880d6..af7d6a2 100644 (file)
@@ -1,3 +1,8 @@
+Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gcompletion.[ch] (g_completion_complete): Make
+       prefix argument const. (#91662, Gustavo Carneiro) 
+
 Mon Oct 14 15:32:14 2002  Owen Taylor  <otaylor@redhat.com>
  
        * tests/mainloop-test.c (adder_response): Fix a minor memory
index cd880d6..af7d6a2 100644 (file)
@@ -1,3 +1,8 @@
+Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gcompletion.[ch] (g_completion_complete): Make
+       prefix argument const. (#91662, Gustavo Carneiro) 
+
 Mon Oct 14 15:32:14 2002  Owen Taylor  <otaylor@redhat.com>
  
        * tests/mainloop-test.c (adder_response): Fix a minor memory
index cd880d6..af7d6a2 100644 (file)
@@ -1,3 +1,8 @@
+Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gcompletion.[ch] (g_completion_complete): Make
+       prefix argument const. (#91662, Gustavo Carneiro) 
+
 Mon Oct 14 15:32:14 2002  Owen Taylor  <otaylor@redhat.com>
  
        * tests/mainloop-test.c (adder_response): Fix a minor memory
index cd880d6..af7d6a2 100644 (file)
@@ -1,3 +1,8 @@
+Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gcompletion.[ch] (g_completion_complete): Make
+       prefix argument const. (#91662, Gustavo Carneiro) 
+
 Mon Oct 14 15:32:14 2002  Owen Taylor  <otaylor@redhat.com>
  
        * tests/mainloop-test.c (adder_response): Fix a minor memory
index cd880d6..af7d6a2 100644 (file)
@@ -1,3 +1,8 @@
+Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gcompletion.[ch] (g_completion_complete): Make
+       prefix argument const. (#91662, Gustavo Carneiro) 
+
 Mon Oct 14 15:32:14 2002  Owen Taylor  <otaylor@redhat.com>
  
        * tests/mainloop-test.c (adder_response): Fix a minor memory
index cd880d6..af7d6a2 100644 (file)
@@ -1,3 +1,8 @@
+Mon Oct 14 15:36:11 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gcompletion.[ch] (g_completion_complete): Make
+       prefix argument const. (#91662, Gustavo Carneiro) 
+
 Mon Oct 14 15:32:14 2002  Owen Taylor  <otaylor@redhat.com>
  
        * tests/mainloop-test.c (adder_response): Fix a minor memory
index 9a33ff5..702cb33 100644 (file)
@@ -162,7 +162,7 @@ completion_check_cache (GCompletion* cmp,
 
 GList* 
 g_completion_complete (GCompletion* cmp,
-                      gchar*       prefix,
+                      const gchar* prefix,
                       gchar**      new_prefix)
 {
   gsize plen, len;
index eab0699..0a48e73 100644 (file)
@@ -59,7 +59,7 @@ void         g_completion_remove_items (GCompletion*    cmp,
                                         GList*          items);
 void         g_completion_clear_items  (GCompletion*    cmp);
 GList*       g_completion_complete     (GCompletion*    cmp,
-                                        gchar*          prefix,
+                                        const gchar*    prefix,
                                         gchar**         new_prefix);
 void         g_completion_set_compare (GCompletion *cmp,
                                       GCompletionStrncmpFunc strncmp_func);