summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eel/eel-editable-label.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c
index 0b2cef59..6683b476 100644
--- a/eel/eel-editable-label.c
+++ b/eel/eel-editable-label.c
@@ -41,6 +41,14 @@
#include <gdk/gdkx.h>
#include <gdk/gdkkeysyms.h>
+#ifndef PANGO_CHECK_VERSION
+#define PANGO_CHECK_VERSION(major, minor, micro) \
+ (PANGO_VERSION_MAJOR > (major) || \
+ (PANGO_VERSION_MAJOR == (major) && PANGO_VERSION_MINOR > (minor)) || \
+ (PANGO_VERSION_MAJOR == (major) && PANGO_VERSION_MINOR == (minor) && \
+ PANGO_VERSION_MICRO >= (micro)))
+#endif
+
enum
{
@@ -1005,6 +1013,9 @@ eel_editable_label_ensure_layout (EelEditableLabel *label,
if (label->font_desc != NULL)
pango_layout_set_font_description (label->layout, label->font_desc);
+ #if PANGO_CHECK_VERSION (1, 44, 0)
+ pango_attr_list_insert (tmp_attrs, pango_attr_insert_hyphens_new (FALSE));
+ #endif
pango_layout_set_attributes (label->layout, tmp_attrs);
if (preedit_string)