[dia] Undef PANGO_DISABLE_DEPRECATED for pango_ft2_get_context
- From: Hans Breuer <hans src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [dia] Undef PANGO_DISABLE_DEPRECATED for pango_ft2_get_context
- Date: Sat, 7 Nov 2009 16:09:34 +0000 (UTC)
commit 55b88f584189e3bcd0780da20e6a616f1beeac1c
Author: Hans Breuer <hans breuer org>
Date: Sat Nov 7 17:06:01 2009 +0100
Undef PANGO_DISABLE_DEPRECATED for pango_ft2_get_context
Also some g_return_if_fail() to better diagnose Pango going havoc.
lib/font.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/font.c b/lib/font.c
index 1846145..9426044 100644
--- a/lib/font.c
+++ b/lib/font.c
@@ -28,6 +28,7 @@
#include <time.h>
#include <pango/pango.h>
+#undef PANGO_DISABLE_DEPRECATED /* pango_ft_get_context */
#ifdef HAVE_FREETYPE
#include <pango/pangoft2.h>
#endif
@@ -208,6 +209,7 @@ static void
dia_pfd_set_height(PangoFontDescription* pfd, real height)
{
/* ONLY place for the magic factor! */
+ g_return_if_fail (height > 0.0);
pango_font_description_set_absolute_size(pfd, dcm_to_pdu(height) * 0.8);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]