summaryrefslogtreecommitdiff
path: root/atk/atkutil.h
diff options
context:
space:
mode:
authorMichael Meeks <michael@ximian.com>2001-11-22 11:56:09 +0000
committerMichael Meeks <michael@src.gnome.org>2001-11-22 11:56:09 +0000
commit98803cc8e887b6ef291d8e16bbdf0fd3e78441a6 (patch)
tree6de0cb56193661a1e884ef49aec92ddf695dd1df /atk/atkutil.h
parent35f5b212a8a7b522a450712d4fd59ce3abe2f86d (diff)
downloadatk-98803cc8e887b6ef291d8e16bbdf0fd3e78441a6.tar.gz
switch to class_peek.
2001-11-22 Michael Meeks <michael@ximian.com> * atk/atkutil.c (atk_add_key_event_listener): switch to class_peek. * atk/atkobject.c (atk_object_real_get_property): add missing 'break'. 2001-11-21 Michael Meeks <michael@ximian.com> * atk/atkrelation.c: pull in string.h for strcmp * atk/atktext.c (atk_text_get_selection): fix bug / warning. * atk/atkutil.c (atk_add_global_event_listener), (atk_get_toolkit_name, atk_get_toolkit_version): constify
Diffstat (limited to 'atk/atkutil.h')
-rwxr-xr-xatk/atkutil.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/atk/atkutil.h b/atk/atkutil.h
index fe6d6eb..df3df53 100755
--- a/atk/atkutil.h
+++ b/atk/atkutil.h
@@ -76,14 +76,14 @@ struct _AtkUtilClass
{
GObjectClass parent;
guint (* add_global_event_listener) (GSignalEmissionHook listener,
- gchar* event_type);
+ const gchar *event_type);
void (* remove_global_event_listener) (guint listener_id);
guint (* add_key_event_listener) (AtkKeySnoopFunc listener,
gpointer data);
void (* remove_key_event_listener) (guint listener_id);
AtkObject* (* get_root) (void);
- gchar* (* get_toolkit_name) (void);
- gchar* (* get_toolkit_version) (void);
+ G_CONST_RETURN gchar* (* get_toolkit_name) (void);
+ G_CONST_RETURN gchar* (* get_toolkit_version) (void);
};
GType atk_util_get_type (void);
@@ -132,7 +132,8 @@ void atk_focus_tracker_notify (AtkObject *object);
* Adds the specified function to the list of functions to be called
* when an event of type event_type occurs.
*/
-guint atk_add_global_event_listener (GSignalEmissionHook listener, gchar* event_type);
+guint atk_add_global_event_listener (GSignalEmissionHook listener,
+ const gchar *event_type);
/*
* Removes the specified event listener
@@ -158,12 +159,12 @@ AtkObject* atk_get_root(void);
/*
* Returns name string for the GUI toolkit.
*/
-gchar* atk_get_toolkit_name(void);
+G_CONST_RETURN gchar *atk_get_toolkit_name (void);
/*
* Returns version string for the GUI toolkit.
*/
-gchar* atk_get_toolkit_version(void);
+G_CONST_RETURN gchar *atk_get_toolkit_version (void);
#ifdef __cplusplus
}