[gtk+/rendering-cleanup: 6/40] gail: Make string argument const
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 6/40] gail: Make string argument const
- Date: Tue, 13 Jul 2010 22:28:29 +0000 (UTC)
commit 4875b560ad289c41748e9ad5fe1fb06a86e90375
Author: Benjamin Otte <otte redhat com>
Date: Mon Jul 12 14:30:24 2010 +0200
gail: Make string argument const
Otherwise here'd be constness warnings from calling this function.
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]