[gtk+] unconditionally set right alignment for the size column
- From: Benjamin Otte <otte src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+] unconditionally set right alignment for the size column
- Date: Sat, 27 Jun 2009 09:58:02 +0000 (UTC)
commit 655e0d8ddc704ce61938e14b52f7d3715c6ad578
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 34dc8b3..ccb5453 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]