diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-07-07 12:00:54 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-07-07 12:01:12 +0200 |
commit | ab75d2b61d58bcfc9c8c22d53b0b4cf2658b17c3 (patch) | |
tree | a7946318e2d6962d3f3f743a64a2a57cab151a77 /fiv-browser.c | |
parent | 92deba3890bbc74258e3f3bf8f9fe4b8a02fbb8d (diff) | |
download | fiv-ab75d2b61d58bcfc9c8c22d53b0b4cf2658b17c3.tar.gz fiv-ab75d2b61d58bcfc9c8c22d53b0b4cf2658b17c3.tar.xz fiv-ab75d2b61d58bcfc9c8c22d53b0b4cf2658b17c3.zip |
Fix build under Cygwin
Diffstat (limited to 'fiv-browser.c')
-rw-r--r-- | fiv-browser.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fiv-browser.c b/fiv-browser.c index 3bda18e..867786a 100644 --- a/fiv-browser.c +++ b/fiv-browser.c @@ -17,9 +17,6 @@ #include "config.h" -#include <math.h> -#include <pixman.h> - #include <gtk/gtk.h> #ifdef GDK_WINDOWING_X11 #include <gdk/gdkx.h> @@ -27,6 +24,10 @@ #ifdef GDK_WINDOWING_QUARTZ #include <gdk/gdkquartz.h> #endif // GDK_WINDOWING_QUARTZ +#include <pixman.h> + +#include <math.h> +#include <stdlib.h> #include "fiv-browser.h" #include "fiv-collection.h" @@ -240,10 +241,12 @@ relayout(FivBrowser *self, int width) pango_layout_set_wrap(label, PANGO_WRAP_WORD_CHAR); pango_layout_set_ellipsize(label, PANGO_ELLIPSIZE_END); +#if PANGO_VERSION_CHECK(1, 44, 0) PangoAttrList *attrs = pango_attr_list_new(); pango_attr_list_insert(attrs, pango_attr_insert_hyphens_new(FALSE)); pango_layout_set_attributes(label, attrs); pango_attr_list_unref (attrs); +#endif } g_array_append_val(items, ((Item) { |