dia r4231 - trunk/app



Author: hans
Date: Sun Jan 25 22:12:44 2009
New Revision: 4231
URL: http://svn.gnome.org/viewvc/dia?rev=4231&view=rev

Log:
conditional use of glib-2-16 function

Modified:
   trunk/app/confirm.c

Modified: trunk/app/confirm.c
==============================================================================
--- trunk/app/confirm.c	(original)
+++ trunk/app/confirm.c	Sun Jan 25 22:12:44 2009
@@ -60,7 +60,11 @@
     return TRUE;
   
   /* message and limits depend on the flags give */
+#if GLIB_CHECK_VERSION(3,16,0)
   size = g_format_size_for_display (bytes);
+#else
+  size = g_strdup_printf ("%d MB", (guint)(bytes >> 20));
+#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]