[Goodies-commits] r3458 - in xfce4-fsguard-plugin/trunk: . panel-plugin
Mike Massonnet
mmassonnet at xfce.org
Fri Oct 26 04:26:34 CEST 2007
Author: mmassonnet
Date: 2007-10-26 02:26:34 +0000 (Fri, 26 Oct 2007)
New Revision: 3458
Modified:
xfce4-fsguard-plugin/trunk/ChangeLog
xfce4-fsguard-plugin/trunk/panel-plugin/fsguard.c
Log:
* panel-plugin/fsguard.c(fsguard_check_fs): If size is in MB, display a
natural number.
Modified: xfce4-fsguard-plugin/trunk/ChangeLog
===================================================================
--- xfce4-fsguard-plugin/trunk/ChangeLog 2007-10-26 01:51:26 UTC (rev 3457)
+++ xfce4-fsguard-plugin/trunk/ChangeLog 2007-10-26 02:26:34 UTC (rev 3458)
@@ -1,5 +1,10 @@
2007-10-26 Mike Massonnet <mmassonnet at xfce.org>
+ * panel-plugin/fsguard.c(fsguard_check_fs): If size is in MB, display a
+ natural number.
+
+2007-10-26 Mike Massonnet <mmassonnet at xfce.org>
+
* panel-plugin/fsguard.c: Replace label5 against check1 to set the
visibility of the name by choice. This keeps the name saved, and if you
feel borred you can simply switch the state on click, and not on select,
Modified: xfce4-fsguard-plugin/trunk/panel-plugin/fsguard.c
===================================================================
--- xfce4-fsguard-plugin/trunk/panel-plugin/fsguard.c 2007-10-26 01:51:26 UTC (rev 3457)
+++ xfce4-fsguard-plugin/trunk/panel-plugin/fsguard.c 2007-10-26 02:26:34 UTC (rev 3458)
@@ -241,12 +241,12 @@
if (total > 1024) {
g_snprintf (msg_total_size, sizeof (msg_total_size), _("%.2f GB"), total/1024);
} else {
- g_snprintf (msg_total_size, sizeof (msg_total_size), _("%.2f MB"), total);
+ g_snprintf (msg_total_size, sizeof (msg_total_size), _("%.0f MB"), total);
}
if (size > 1024) {
g_snprintf (msg_size, sizeof (msg_size), _("%.2f GB"), size/1024);
} else {
- g_snprintf (msg_size, sizeof (msg_size), _("%.2f MB"), size);
+ g_snprintf (msg_size, sizeof (msg_size), _("%.0f MB"), size);
}
gtk_label_set_text (GTK_LABEL(fsguard->lab_size), msg_size);
gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR(fsguard->progress_bar), size / total);
More information about the Goodies-commits
mailing list