mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
Allow column resizing and ellipsize long torrent names.
merged from rev 311 of repository 3a18642e-ffe5-da11-b5ee-000e0c69aae8
This commit is contained in:
parent
aeb4c6e208
commit
30a89e1f70
1 changed files with 3 additions and 0 deletions
|
@ -419,8 +419,10 @@ makewind_list(struct cbdata *data) {
|
||||||
|
|
||||||
namerend = gtk_cell_renderer_text_new();
|
namerend = gtk_cell_renderer_text_new();
|
||||||
col = gtk_tree_view_column_new_with_attributes(_("Name"), namerend, NULL);
|
col = gtk_tree_view_column_new_with_attributes(_("Name"), namerend, NULL);
|
||||||
|
g_object_set(namerend, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
|
||||||
gtk_tree_view_column_set_cell_data_func(col, namerend, dfname, NULL, NULL);
|
gtk_tree_view_column_set_cell_data_func(col, namerend, dfname, NULL, NULL);
|
||||||
gtk_tree_view_column_set_expand(col, TRUE);
|
gtk_tree_view_column_set_expand(col, TRUE);
|
||||||
|
gtk_tree_view_column_set_resizable(col, TRUE);
|
||||||
gtk_tree_view_append_column(GTK_TREE_VIEW(view), col);
|
gtk_tree_view_append_column(GTK_TREE_VIEW(view), col);
|
||||||
|
|
||||||
progrend = tr_cell_renderer_torrent_new();
|
progrend = tr_cell_renderer_torrent_new();
|
||||||
|
@ -430,6 +432,7 @@ makewind_list(struct cbdata *data) {
|
||||||
g_free(str);
|
g_free(str);
|
||||||
col = gtk_tree_view_column_new_with_attributes(_("Progress"), progrend, NULL);
|
col = gtk_tree_view_column_new_with_attributes(_("Progress"), progrend, NULL);
|
||||||
gtk_tree_view_column_set_cell_data_func(col, progrend, dfprog, NULL, NULL);
|
gtk_tree_view_column_set_cell_data_func(col, progrend, dfprog, NULL, NULL);
|
||||||
|
gtk_tree_view_column_set_resizable(col, TRUE);
|
||||||
gtk_tree_view_append_column(GTK_TREE_VIEW(view), col);
|
gtk_tree_view_append_column(GTK_TREE_VIEW(view), col);
|
||||||
|
|
||||||
/* XXX this shouldn't be necessary */
|
/* XXX this shouldn't be necessary */
|
||||||
|
|
Loading…
Reference in a new issue