[gnome-disk-utility/new-ui] Fix build



commit 88e6f48a13d7e5d9bef0c13b007f66b6678b4376
Author: David Zeuthen <davidz redhat com>
Date:   Wed Sep 2 13:49:27 2009 -0400

    Fix build

 src/format-tool/gdu-format-tool.c      |    4 +++-
 src/playground/grid/gdu-grid-element.c |   18 +++++++++++++-----
 2 files changed, 16 insertions(+), 6 deletions(-)
---
diff --git a/src/format-tool/gdu-format-tool.c b/src/format-tool/gdu-format-tool.c
index 86f72c5..5a90a24 100644
--- a/src/format-tool/gdu-format-tool.c
+++ b/src/format-tool/gdu-format-tool.c
@@ -289,7 +289,9 @@ main (int argc, char *argv[])
         if (toplevel != NULL && GDU_IS_DRIVE (toplevel)) {
                 drive_name = gdu_presentable_get_name (toplevel);
         }
-        size_str = gdu_util_get_size_for_display (gdu_device_get_size (device), FALSE);
+        size_str = gdu_util_get_size_for_display (gdu_device_get_size (device),
+                                                  FALSE,
+                                                  FALSE);
 
         if (drive_name != NULL) {
                 if (gdu_device_is_partition (device)) {
diff --git a/src/playground/grid/gdu-grid-element.c b/src/playground/grid/gdu-grid-element.c
index d3a7cfb..3cb4fe4 100644
--- a/src/playground/grid/gdu-grid-element.c
+++ b/src/playground/grid/gdu-grid-element.c
@@ -546,7 +546,7 @@ gdu_grid_element_expose_event (GtkWidget           *widget,
                         fstype_str = gdu_util_get_fstype_for_display (gdu_device_id_get_type (d),
                                                                       gdu_device_id_get_version (d),
                                                                       FALSE);
-                        size_str = gdu_util_get_size_for_display (gdu_device_get_size (d), FALSE);
+                        size_str = gdu_util_get_size_for_display (gdu_device_get_size (d), FALSE, FALSE);
                         s1 = g_strdup_printf ("%s %s", size_str, fstype_str);
                         g_free (fstype_str);
                         g_free (size_str);
@@ -555,16 +555,24 @@ gdu_grid_element_expose_event (GtkWidget           *widget,
                             g_strcmp0 (gdu_device_partition_get_type (d), "0x0f") == 0 ||
                             g_strcmp0 (gdu_device_partition_get_type (d), "0x85") == 0)) {
                         s = g_strdup (_("Extended"));
-                        s1 = gdu_util_get_size_for_display (gdu_presentable_get_size (element->priv->presentable), FALSE);
+                        s1 = gdu_util_get_size_for_display (gdu_presentable_get_size (element->priv->presentable),
+                                                            FALSE,
+                                                            FALSE);
                 } else if (d != NULL && g_strcmp0 (gdu_device_id_get_usage (d), "crypto") == 0) {
                         s = g_strdup (_("Encrypted"));
-                        s1 = gdu_util_get_size_for_display (gdu_presentable_get_size (element->priv->presentable), FALSE);
+                        s1 = gdu_util_get_size_for_display (gdu_presentable_get_size (element->priv->presentable),
+                                                            FALSE,
+                                                            FALSE);
                 } else if (!gdu_presentable_is_allocated (element->priv->presentable)) {
                         s = g_strdup (_("Free"));
-                        s1 = gdu_util_get_size_for_display (gdu_presentable_get_size (element->priv->presentable), FALSE);
+                        s1 = gdu_util_get_size_for_display (gdu_presentable_get_size (element->priv->presentable),
+                                                            FALSE,
+                                                            FALSE);
                 } else if (!gdu_presentable_is_recognized (element->priv->presentable)) {
                         s = g_strdup (_("Unknown"));
-                        s1 = gdu_util_get_size_for_display (gdu_presentable_get_size (element->priv->presentable), FALSE);
+                        s1 = gdu_util_get_size_for_display (gdu_presentable_get_size (element->priv->presentable),
+                                                            FALSE,
+                                                            FALSE);
                 }
 
                 if (s == NULL)



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