revert previous, it turns out the atk api is inconsistent. marking the

prototype of a function as ATK_DISABLE_DEPRECATED, and the comment above
the implementation is also marked as deprecated, but it's not wrapped in
ifdefs and it's used in various places.
This commit is contained in:
jasper 2011-05-30 07:48:49 +00:00
parent 7877ff965a
commit ef7d5a7201
2 changed files with 2 additions and 34 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.36 2011/05/27 14:46:06 jasper Exp $
# $OpenBSD: Makefile,v 1.37 2011/05/30 07:48:49 jasper Exp $
COMMENT= accessibility toolkit used by gtk+
GNOME_PROJECT= atk
GNOME_VERSION= 2.0.0
REVISION= 1
REVISION= 2
SHARED_LIBS += atk-1.0 2800.1 # 9.1

View File

@ -1,32 +0,0 @@
$OpenBSD: patch-atk_atkhyperlink_c,v 1.1 2011/05/27 14:46:06 jasper Exp $
https://bugzilla.gnome.org/show_bug.cgi?id=651253
--- atk/atkhyperlink.c.orig Fri May 27 15:23:46 2011
+++ atk/atkhyperlink.c Fri May 27 15:25:33 2011
@@ -162,7 +162,9 @@ atk_hyperlink_real_get_property (GObject *object,
switch (prop_id)
{
case PROP_SELECTED_LINK:
+#ifndef ATK_DISABLE_DEPRECATED
g_value_set_boolean (value, atk_hyperlink_is_selected_link (link));
+#endif /* ATK_DISABLE_DEPRECATED */
break;
case PROP_NUMBER_ANCHORS:
g_value_set_int (value, atk_hyperlink_get_n_anchors (link));
@@ -351,6 +353,7 @@ atk_hyperlink_get_n_anchors (AtkHyperlink *link)
return 0;
}
+#ifndef ATK_DISABLE_DEPRECATED
/**
* atk_hyperlink_is_selected_link:
* @link_: an #AtkHyperlink
@@ -378,6 +381,7 @@ atk_hyperlink_is_selected_link (AtkHyperlink *link)
else
return FALSE;
}
+#endif /* ATK_DISABLE_DEPRECATED */
static void atk_hyperlink_action_iface_init (AtkActionIface *iface)
{