Changeset 255


Ignore:
Timestamp:
May 20, 2006, 11:38:37 PM (15 years ago)
Author:
joshe
Message:

Allow column resizing and ellipsize long torrent names.

merged from rev 311 of repository 3a18642e-ffe5-da11-b5ee-000e0c69aae8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r251 r255  
    420420  namerend = gtk_cell_renderer_text_new();
    421421  col = gtk_tree_view_column_new_with_attributes(_("Name"), namerend, NULL);
     422  g_object_set(namerend, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
    422423  gtk_tree_view_column_set_cell_data_func(col, namerend, dfname, NULL, NULL);
    423424  gtk_tree_view_column_set_expand(col, TRUE);
     425  gtk_tree_view_column_set_resizable(col, TRUE);
    424426  gtk_tree_view_append_column(GTK_TREE_VIEW(view), col);
    425427
     
    431433  col = gtk_tree_view_column_new_with_attributes(_("Progress"), progrend, NULL);
    432434  gtk_tree_view_column_set_cell_data_func(col, progrend, dfprog, NULL, NULL);
     435  gtk_tree_view_column_set_resizable(col, TRUE);
    433436  gtk_tree_view_append_column(GTK_TREE_VIEW(view), col);
    434437
Note: See TracChangeset for help on using the changeset viewer.