From 8fa2c7b218c6757c878dfed3475f016751c9f7be Mon Sep 17 00:00:00 2001 From: jasper Date: Fri, 27 May 2011 14:46:06 +0000 Subject: [PATCH] wrap function call and implementation of deprecated function in ATK_DISABLE_DEPRECATED, like it's prototype --- devel/atk/Makefile | 4 +-- devel/atk/patches/patch-atk_atkhyperlink_c | 32 ++++++++++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 devel/atk/patches/patch-atk_atkhyperlink_c diff --git a/devel/atk/Makefile b/devel/atk/Makefile index 2473272bf77..746f8c5cc68 100644 --- a/devel/atk/Makefile +++ b/devel/atk/Makefile @@ -1,11 +1,11 @@ -# $OpenBSD: Makefile,v 1.35 2011/04/07 07:15:02 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.36 2011/05/27 14:46:06 jasper Exp $ COMMENT= accessibility toolkit used by gtk+ GNOME_PROJECT= atk GNOME_VERSION= 2.0.0 -REVISION= 0 +REVISION= 1 SHARED_LIBS += atk-1.0 2800.1 # 9.1 diff --git a/devel/atk/patches/patch-atk_atkhyperlink_c b/devel/atk/patches/patch-atk_atkhyperlink_c new file mode 100644 index 00000000000..ba7b9fdd68f --- /dev/null +++ b/devel/atk/patches/patch-atk_atkhyperlink_c @@ -0,0 +1,32 @@ +$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) + {