[gnome-packagekit] Demote the size column in the update viewer to belong to the status column



commit ce7897819ca20c9cf1e715fde052fc673252d319
Author: Richard Hughes <richard hughsie com>
Date:   Sat Apr 18 16:06:51 2009 +0100

    Demote the size column in the update viewer to belong to the status column
---
 src/gpk-update-viewer.c |   24 +++++++++++-------------
 1 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index d509ee6..d3225dd 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -1069,19 +1069,6 @@ gpk_update_viewer_treeview_add_columns_update (GtkTreeView *treeview)
 	gtk_tree_view_append_column (treeview, column);
 	g_signal_connect (treeview, "size-allocate", G_CALLBACK (gpk_update_viewer_treeview_updates_size_allocate_cb), renderer);
 
-	/* column for size */
-	renderer = gpk_cell_renderer_size_new ();
-	g_object_set (renderer,
-		      "alignment", PANGO_ALIGN_RIGHT,
-		      "xalign", 1.0f,
-		      NULL);
-	/* TRANSLATORS: a column that has size of the package */
-	column = gtk_tree_view_column_new_with_attributes (_("Size"), renderer,
-							   "value", GPK_UPDATES_COLUMN_SIZE, NULL);
-	gtk_tree_view_column_set_sort_column_id (column, GPK_UPDATES_COLUMN_SIZE);
-	gtk_tree_view_column_set_expand (GTK_TREE_VIEW_COLUMN (column), FALSE);
-	gtk_tree_view_append_column (treeview, column);
-
 	/* --- column for progress --- */
 	column = gtk_tree_view_column_new ();
 	/* TRANSLATORS: a column that has state of each package */
@@ -1097,6 +1084,17 @@ gpk_update_viewer_treeview_add_columns_update (GtkTreeView *treeview)
 	gtk_tree_view_column_pack_start (column, renderer, FALSE);
 	gtk_tree_view_column_add_attribute (column, renderer, "value", GPK_UPDATES_COLUMN_STATUS);
 
+	/* size */
+	renderer = gpk_cell_renderer_size_new ();
+	g_object_set (renderer,
+		      "alignment", PANGO_ALIGN_RIGHT,
+		      "xalign", 1.0f,
+		      NULL);
+	g_object_set (renderer,
+		      "value", GPK_UPDATES_COLUMN_SIZE, NULL);
+	gtk_tree_view_column_pack_start (column, renderer, FALSE);
+	gtk_tree_view_column_add_attribute (column, renderer, "value", GPK_UPDATES_COLUMN_SIZE);
+
 	/* column for progress */
 	renderer = gpk_cell_renderer_percentage_new ();
 	gtk_tree_view_column_pack_start (column, renderer, FALSE);



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