aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libindicator/indicator-object.h4
-rw-r--r--tests/dummy-indicator-null.c2
-rw-r--r--tests/dummy-indicator-signaler.c2
-rw-r--r--tests/dummy-indicator-simple.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/libindicator/indicator-object.h b/libindicator/indicator-object.h
index ea303f8..b79aef4 100644
--- a/libindicator/indicator-object.h
+++ b/libindicator/indicator-object.h
@@ -102,7 +102,7 @@ struct _IndicatorObjectClass {
GtkLabel * (*get_label) (IndicatorObject * io);
GtkImage * (*get_image) (IndicatorObject * io);
GtkMenu * (*get_menu) (IndicatorObject * io);
- gchar * (*get_accessible_name) (IndicatorObject * io);
+ const gchar * (*get_accessible_name) (IndicatorObject * io);
GList * (*get_entries) (IndicatorObject * io);
guint (*get_location) (IndicatorObject * io, IndicatorObjectEntry * entry);
@@ -151,7 +151,7 @@ struct _IndicatorObjectEntry {
GtkLabel * label;
GtkImage * image;
GtkMenu * menu;
- gchar * accessible_name;
+ const gchar * accessible_name;
};
GType indicator_object_get_type (void);
diff --git a/tests/dummy-indicator-null.c b/tests/dummy-indicator-null.c
index acebdb8..34adf58 100644
--- a/tests/dummy-indicator-null.c
+++ b/tests/dummy-indicator-null.c
@@ -46,7 +46,7 @@ get_menu (IndicatorObject * io)
{
return NULL;
}
-gchar *
+const gchar *
get_accessible_name (IndicatorObject * io)
{
return NULL;
diff --git a/tests/dummy-indicator-signaler.c b/tests/dummy-indicator-signaler.c
index 7dbe704..bb70d1e 100644
--- a/tests/dummy-indicator-signaler.c
+++ b/tests/dummy-indicator-signaler.c
@@ -50,7 +50,7 @@ get_menu (IndicatorObject * io)
return main_menu;
}
-gchar *
+const gchar *
get_accessible_name (IndicatorObject * io)
{
return "Signaler Item";
diff --git a/tests/dummy-indicator-simple.c b/tests/dummy-indicator-simple.c
index 0bbcde6..9a5cbbd 100644
--- a/tests/dummy-indicator-simple.c
+++ b/tests/dummy-indicator-simple.c
@@ -50,7 +50,7 @@ get_menu (IndicatorObject * io)
return main_menu;
}
-gchar *
+const gchar *
get_accessible_name (IndicatorObject * io)
{
return "Simple Item";