[gtk+/filesystemmodel: 7/28] unconditionally set right alignment for the size column
- From: Benjamin Otte <otte src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/filesystemmodel: 7/28] unconditionally set right alignment for the size column
- Date: Tue, 23 Jun 2009 16:17:26 -0400 (EDT)
commit 51bb899881f5be63995b875df9e3d91b1a92efa5
Author: Benjamin Otte <otte gnome org>
Date: Thu Jun 18 21:10:33 2009 +0200
unconditionally set right alignment for the size column
gtk/gtkfilechooserdefault.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index cedd452..f0afa40 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -4698,6 +4698,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);
@@ -11239,7 +11242,6 @@ list_size_data_func (GtkTreeViewColumn *tree_column,
g_object_set (cell,
"text", str,
"sensitive", sensitive,
- "alignment", PANGO_ALIGN_RIGHT,
NULL);
g_free (str);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]