Update of /cvsroot/gtkpod/gtkpod/src
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv5460/src

Modified Files:
        ipod_init.c 
Log Message:
        * ipod_init.c (set_cell): display iPod sizes smaller 1 GB in
          MB, instead of displaying "0 GB".



Index: ipod_init.c
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/src/ipod_init.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- ipod_init.c 10 Jun 2006 11:08:58 -0000      1.6
+++ ipod_init.c 17 Sep 2006 07:14:07 -0000      1.7
@@ -1,4 +1,4 @@
-/* Time-stamp: <2006-06-10 19:58:33 jcs>
+/* Time-stamp: <2006-09-17 16:11:25 jcs>
 |
 |  Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
 |  Part of the gtkpod project.
@@ -112,14 +112,22 @@
   }
   else
   {
-      if (info->capacity > 0)
-      {
-         text = g_strdup_printf ("%2.0fGB %s (x%s)",
+      if (info->capacity >= 1)
+      {   /* size in GB */
+         text = g_strdup_printf ("%2.0f GB %s (x%s)",
                                  info->capacity,
                                  itdb_info_get_ipod_model_name_string (
                                      info->ipod_model),
                                  info->model_number);
       }
+      else if (info->capacity > 0)
+      {   /* size in MB */
+         text = g_strdup_printf ("%3.0f MB %s (x%s)",
+                                 info->capacity * 1024,
+                                 itdb_info_get_ipod_model_name_string (
+                                     info->ipod_model),
+                                 info->model_number);
+      }
       else
       {   /* no capacity information available */
          text = g_strdup_printf ("%s (x%s)",


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to