[gnome-color-manager] trivial: show the file size in the prefs dialog, not the clut size
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: show the file size in the prefs dialog, not the clut size
- Date: Thu, 10 Dec 2009 17:43:04 +0000 (UTC)
commit 99e9f26fe78202515187dc14b93917664ad01dc0
Author: Richard Hughes <richard hughsie com>
Date: Thu Dec 10 17:41:49 2009 +0000
trivial: show the file size in the prefs dialog, not the clut size
src/gcm-prefs.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/gcm-prefs.c b/src/gcm-prefs.c
index 9141b36..7f9cd63 100644
--- a/src/gcm-prefs.c
+++ b/src/gcm-prefs.c
@@ -1431,6 +1431,7 @@ gcm_prefs_profiles_treeview_clicked_cb (GtkTreeSelection *selection, gpointer us
const gchar *profile_colorspace_text;
gboolean ret;
guint size;
+ guint filesize;
/* This will only work in single or browse selection mode! */
if (!gtk_tree_selection_get_selected (selection, &model, &iter)) {
@@ -1446,7 +1447,7 @@ gcm_prefs_profiles_treeview_clicked_cb (GtkTreeSelection *selection, gpointer us
/* get the new details from the profile */
g_object_get (profile,
"filename", &filename,
- "size", &size,
+ "size", &filesize,
"copyright", &profile_copyright,
"manufacturer", &profile_manufacturer,
"model", &profile_model,
@@ -1514,12 +1515,12 @@ gcm_prefs_profiles_treeview_clicked_cb (GtkTreeSelection *selection, gpointer us
/* set size */
widget = GTK_WIDGET (gtk_builder_get_object (builder, "hbox_size"));
- if (size == 0) {
+ if (filesize == 0) {
gtk_widget_hide (widget);
} else {
gtk_widget_show (widget);
widget = GTK_WIDGET (gtk_builder_get_object (builder, "label_size"));
- size_text = g_format_size_for_display (size);
+ size_text = g_format_size_for_display (filesize);
gtk_label_set_label (GTK_LABEL (widget), size_text);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]