[gtk+] gail-util: Constify gchar argument



commit e42c29ca98c9a6316d5fe9158514ec0d0db52f9b
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Jul 14 16:01:45 2010 +0100

    gail-util: Constify gchar argument
    
    And avoid a compiler warning.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=624349

 modules/other/gail/libgail-util/gailmisc.c |    2 +-
 modules/other/gail/libgail-util/gailmisc.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/other/gail/libgail-util/gailmisc.c b/modules/other/gail/libgail-util/gailmisc.c
index 81b1382..349478e 100644
--- a/modules/other/gail/libgail-util/gailmisc.c
+++ b/modules/other/gail/libgail-util/gailmisc.c
@@ -195,7 +195,7 @@ gail_misc_add_attribute (AtkAttributeSet *attrib_set,
 AtkAttributeSet* 
 gail_misc_layout_get_run_attributes (AtkAttributeSet *attrib_set,
                                      PangoLayout     *layout,
-                                     gchar           *text,
+                                     const gchar     *text,
                                      gint            offset,
                                      gint            *start_offset,
                                      gint            *end_offset)
diff --git a/modules/other/gail/libgail-util/gailmisc.h b/modules/other/gail/libgail-util/gailmisc.h
index eaece96..f430b3c 100644
--- a/modules/other/gail/libgail-util/gailmisc.h
+++ b/modules/other/gail/libgail-util/gailmisc.h
@@ -32,7 +32,7 @@ AtkAttributeSet* gail_misc_add_attribute          (AtkAttributeSet   *attrib_set
 AtkAttributeSet* gail_misc_layout_get_run_attributes
                                                   (AtkAttributeSet   *attrib_set,
                                                    PangoLayout       *layout,
-                                                   gchar             *text,
+                                                   const gchar       *text,
                                                    gint              offset,
                                                    gint              *start_offset,
                                                    gint              *end_offset);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]