[dia] [warningectomy] Handle deprecations of glib-2-30



commit d9d799e69a59be9724c7d9012d513612cb9d807f
Author: Hans Breuer <hans breuer org>
Date:   Sat May 4 19:12:18 2013 +0200

    [warningectomy] Handle deprecations of glib-2-30
    
    we still don't require it so fall back to g_format_size_for_display()

 app/confirm.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/app/confirm.c b/app/confirm.c
index b6467f3..3c0b70e 100644
--- a/app/confirm.c
+++ b/app/confirm.c
@@ -60,7 +60,11 @@ confirm_export_size (Diagram *dia, GtkWindow *parent, guint flags)
     return TRUE;
   
   /* message and limits depend on the flags give */
+#if GLIB_CHECK_VERSION(2,30,0)
+  size = g_format_size (bytes);
+#else
   size = g_format_size_for_display (bytes);
+#endif
   if (flags & CONFIRM_PRINT)
     msg = g_strdup_printf (_("You are about to print a diagram with %d pages."), pages);
   else if ((flags & ~CONFIRM_PAGES) == 0)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]