summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2013-01-03 19:35:36 +0100
committerCosimo Cecchi <cosimoc@gnome.org>2013-01-03 19:36:21 +0100
commit6a7d30d1d92ab7cb2a3ca3ba29034329d50bfbae (patch)
tree5909e40da2b1ac044bfd1df1c7f8923287e0eb2c /eel
parentfff281bb18d58f921c680d2560c26017355632b7 (diff)
downloadnautilus-6a7d30d1d92ab7cb2a3ca3ba29034329d50bfbae.tar.gz
eel: remove more unused code
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-accessibility.c64
-rw-r--r--eel/eel-accessibility.h3
2 files changed, 0 insertions, 67 deletions
diff --git a/eel/eel-accessibility.c b/eel/eel-accessibility.c
index 22b22df56..dbdc147d7 100644
--- a/eel/eel-accessibility.c
+++ b/eel/eel-accessibility.c
@@ -43,19 +43,6 @@ eel_accessibility_set_up_label_widget_relation (GtkWidget *label, GtkWidget *wid
}
static GQuark
-get_quark_accessible (void)
-{
- static GQuark quark_accessible_object = 0;
-
- if (!quark_accessible_object) {
- quark_accessible_object = g_quark_from_static_string
- ("accessible-object");
- }
-
- return quark_accessible_object;
-}
-
-static GQuark
get_quark_gobject (void)
{
static GQuark quark_accessible_gobject = 0;
@@ -69,20 +56,6 @@ get_quark_gobject (void)
}
/**
- * eel_accessibility_get_atk_object:
- * @object: a GObject of some sort
- *
- * gets an AtkObject associated with a GObject
- *
- * Return value: the associated accessible if one exists or NULL
- **/
-AtkObject *
-eel_accessibility_get_atk_object (gpointer object)
-{
- return g_object_get_qdata (object, get_quark_accessible ());
-}
-
-/**
* eel_accessibility_get_gobject:
* @object: an AtkObject
*
@@ -97,43 +70,6 @@ eel_accessibility_get_gobject (AtkObject *object)
return g_object_get_qdata (G_OBJECT (object), get_quark_gobject ());
}
-static void
-eel_accessibility_destroy (gpointer data,
- GObject *where_the_object_was)
-{
- g_object_set_qdata
- (G_OBJECT (data), get_quark_gobject (), NULL);
- atk_object_notify_state_change
- (ATK_OBJECT (data), ATK_STATE_DEFUNCT, TRUE);
- g_object_unref (data);
-}
-
-/**
- * eel_accessibility_set_atk_object_return:
- * @object: a GObject
- * @atk_object: it's AtkObject
- *
- * used to register and return a new accessible object for something
- *
- * Return value: @atk_object.
- **/
-AtkObject *
-eel_accessibility_set_atk_object_return (gpointer object,
- AtkObject *atk_object)
-{
- atk_object_initialize (atk_object, object);
-
- if (!ATK_IS_GOBJECT_ACCESSIBLE (atk_object)) {
- g_object_set_qdata_full
- (object, get_quark_accessible (), atk_object,
- (GDestroyNotify)eel_accessibility_destroy);
- g_object_set_qdata
- (G_OBJECT (atk_object), get_quark_gobject (), object);
- }
-
- return atk_object;
-}
-
static GailTextUtil *
get_simple_text (gpointer object)
{
diff --git a/eel/eel-accessibility.h b/eel/eel-accessibility.h
index 2739466c4..c6971bc86 100644
--- a/eel/eel-accessibility.h
+++ b/eel/eel-accessibility.h
@@ -33,10 +33,7 @@
void eel_accessibility_set_up_label_widget_relation (GtkWidget *label, GtkWidget *widget);
-AtkObject *eel_accessibility_get_atk_object (gpointer object);
gpointer eel_accessibility_get_gobject (AtkObject *object);
-AtkObject *eel_accessibility_set_atk_object_return (gpointer object,
- AtkObject *atk_object);
char* eel_accessibility_text_get_text (AtkText *text,
gint start_pos,