commit ed1a9e7ab22510bcaf5c3f7387813fd51bdc1cf7
Author: Maia Kozheva <si...@ubuntu.com>
Date:   Sat Aug 28 15:43:33 2010 +0700

    Fix rating column width (manual backport from master)

 src/display_tracks.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/display_tracks.c b/src/display_tracks.c
index 28b7599..70c1af1 100644
--- a/src/display_tracks.c
+++ b/src/display_tracks.c
@@ -2376,6 +2376,7 @@ static GtkTreeViewColumn *tm_add_column (TM_item tm_item, 
gint pos)
        g_return_val_if_fail (text, NULL);
 
        col = gtk_tree_view_column_new ();
+       gtk_tree_view_column_set_resizable (col, TRUE);
 
        switch (tm_item)
        {
@@ -2428,7 +2429,9 @@ static GtkTreeViewColumn *tm_add_column (TM_item tm_item, 
gint pos)
        /* for some column names we want to use shorter alternatives to
         get_tm_string() */
        case TM_COLUMN_RATING:
-         text = _("Rtng");
+         gtk_tree_view_column_set_fixed_width(col, 85);
+         gtk_tree_view_column_set_resizable(col, FALSE);
+         text = _("Rating");
          break;
        case TM_COLUMN_TRACK_NR:
          text = _("#");
@@ -2518,7 +2521,6 @@ static GtkTreeViewColumn *tm_add_column (TM_item tm_item, 
gint pos)
        gtk_tree_view_column_set_cell_data_func (col, renderer,
                                                 cell_data_func, NULL, NULL);
        gtk_tree_view_column_set_sort_column_id (col, tm_item);
-       gtk_tree_view_column_set_resizable (col, TRUE);
        gtk_tree_view_column_set_sizing (col, GTK_TREE_VIEW_COLUMN_FIXED);
        gtk_tree_sortable_set_sort_func (GTK_TREE_SORTABLE (model), tm_item,
                                   tm_data_compare_func, NULL, NULL);

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
gtkpod-cvs2 mailing list
gtkpod-cvs2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to