unconditionally set right alignment for the size column

This commit is contained in:
Benjamin Otte
2009-06-18 21:10:33 +02:00
parent 4d49843317
commit 655e0d8ddc

View File

@@ -4697,6 +4697,9 @@ create_file_list (GtkFileChooserDefault *impl)
gtk_tree_view_column_set_title (column, _("Size"));
renderer = gtk_cell_renderer_text_new ();
g_object_set (renderer,
"alignment", PANGO_ALIGN_RIGHT,
NULL);
gtk_tree_view_column_pack_start (column, renderer, TRUE); /* bug: it doesn't expand */
gtk_tree_view_column_set_cell_data_func (column, renderer,
list_size_data_func, impl, NULL);
@@ -11235,7 +11238,6 @@ list_size_data_func (GtkTreeViewColumn *tree_column,
g_object_set (cell,
"text", str,
"sensitive", sensitive,
"alignment", PANGO_ALIGN_RIGHT,
NULL);
g_free (str);