Commit b7b0f74b authored by Matthias Clasen's avatar Matthias Clasen

Deprecate bidi apis

We agreed that people should just use fribidi for this
information.
parent e9336a0a
Pipeline #41684 passed with stage
in 3 minutes and 52 seconds
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <pango/pango-version-macros.h> #include <pango/pango-version-macros.h>
G_BEGIN_DECLS G_BEGIN_DECLS
#ifndef PANGO_DISABLE_DEPRECATED
/** /**
* PangoBidiType: * PangoBidiType:
* @PANGO_BIDI_TYPE_L: Left-to-Right * @PANGO_BIDI_TYPE_L: Left-to-Right
...@@ -54,6 +55,7 @@ G_BEGIN_DECLS ...@@ -54,6 +55,7 @@ G_BEGIN_DECLS
* <ulink url="http://www.unicode.org/reports/tr9/">Unicode bidirectional algorithm</ulink>. * <ulink url="http://www.unicode.org/reports/tr9/">Unicode bidirectional algorithm</ulink>.
* *
* Since: 1.22 * Since: 1.22
* Deprecated: 1.44: Use fribidi for this information
**/ **/
typedef enum { typedef enum {
/* Strong types */ /* Strong types */
...@@ -82,7 +84,7 @@ typedef enum { ...@@ -82,7 +84,7 @@ typedef enum {
PANGO_BIDI_TYPE_ON PANGO_BIDI_TYPE_ON
} PangoBidiType; } PangoBidiType;
PANGO_AVAILABLE_IN_1_22 PANGO_DEPRECATED_IN_1_44
PangoBidiType pango_bidi_type_for_unichar (gunichar ch) G_GNUC_CONST; PangoBidiType pango_bidi_type_for_unichar (gunichar ch) G_GNUC_CONST;
/** /**
...@@ -112,6 +114,8 @@ PangoBidiType pango_bidi_type_for_unichar (gunichar ch) G_GNUC_CONST; ...@@ -112,6 +114,8 @@ PangoBidiType pango_bidi_type_for_unichar (gunichar ch) G_GNUC_CONST;
* enumeration as the writing direction of a block of * enumeration as the writing direction of a block of
* text and are no longer used; See #PangoGravity for how * text and are no longer used; See #PangoGravity for how
* vertical text is handled in Pango. * vertical text is handled in Pango.
*
* Deprecated: 1.44: Use fribidi for this information
**/ **/
typedef enum { typedef enum {
PANGO_DIRECTION_LTR, PANGO_DIRECTION_LTR,
...@@ -123,13 +127,12 @@ typedef enum { ...@@ -123,13 +127,12 @@ typedef enum {
PANGO_DIRECTION_NEUTRAL PANGO_DIRECTION_NEUTRAL
} PangoDirection; } PangoDirection;
PANGO_AVAILABLE_IN_ALL PANGO_DEPRECATED_IN_1_44
PangoDirection pango_unichar_direction (gunichar ch) G_GNUC_CONST; PangoDirection pango_unichar_direction (gunichar ch) G_GNUC_CONST;
PANGO_AVAILABLE_IN_1_4 PANGO_DEPRECATED_IN_1_44
PangoDirection pango_find_base_dir (const gchar *text, PangoDirection pango_find_base_dir (const gchar *text,
gint length); gint length);
#ifndef PANGO_DISABLE_DEPRECATED
PANGO_DEPRECATED_FOR(g_unichar_get_mirror_char) PANGO_DEPRECATED_FOR(g_unichar_get_mirror_char)
gboolean pango_get_mirror_char (gunichar ch, gboolean pango_get_mirror_char (gunichar ch,
gunichar *mirrored_ch); gunichar *mirrored_ch);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment