diff options
author | cyberix <cyberix@140774ce-b5e7-0310-ab8b-a85725594a96> | 2008-03-17 00:55:22 +0000 |
---|---|---|
committer | cyberix <cyberix@140774ce-b5e7-0310-ab8b-a85725594a96> | 2008-03-17 00:55:22 +0000 |
commit | 19adb43e76fa37deda10b4b132db7cafe8a7c173 (patch) | |
tree | 838fbeab3760f17a4c402e248e360e84bf75040e | |
parent | 3f0ca3af1ed334eeb138e081a2cf97e6f6ead40d (diff) | |
download | gnunet-gtk-19adb43e76fa37deda10b4b132db7cafe8a7c173.tar.gz gnunet-gtk-19adb43e76fa37deda10b4b132db7cafe8a7c173.zip |
Separate progress column and name column for downloads.
-rw-r--r-- | src/plugins/fs/fs.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/plugins/fs/fs.c b/src/plugins/fs/fs.c index 178cfd92..b85a56c4 100644 --- a/src/plugins/fs/fs.c +++ b/src/plugins/fs/fs.c | |||
@@ -525,6 +525,21 @@ fs_summary_start () | |||
525 | NULL, NULL, 0); | 525 | NULL, NULL, 0); |
526 | 526 | ||
527 | renderer = gtk_cell_renderer_text_new (); | 527 | renderer = gtk_cell_renderer_text_new (); |
528 | col = gtk_tree_view_insert_column_with_attributes (downloadList, | ||
529 | -1, | ||
530 | _("Name"), | ||
531 | renderer, | ||
532 | "text", DOWNLOAD_SHORTNAME, | ||
533 | NULL); | ||
534 | |||
535 | column = gtk_tree_view_get_column (downloadList, col - 1); | ||
536 | gtk_tree_view_column_set_resizable (column, TRUE); | ||
537 | gtk_tree_view_column_set_clickable (column, TRUE); | ||
538 | gtk_tree_view_column_set_reorderable (column, TRUE); | ||
539 | gtk_tree_view_column_set_sort_column_id (column, DOWNLOAD_SHORTNAME); | ||
540 | gtk_tree_view_column_set_resizable (column, TRUE); | ||
541 | |||
542 | renderer = gtk_cell_renderer_text_new (); | ||
528 | g_object_set (renderer, "xalign", 1.00, NULL); | 543 | g_object_set (renderer, "xalign", 1.00, NULL); |
529 | col = gtk_tree_view_insert_column_with_attributes (downloadList, | 544 | col = gtk_tree_view_insert_column_with_attributes (downloadList, |
530 | -1, | 545 | -1, |
@@ -543,12 +558,10 @@ fs_summary_start () | |||
543 | renderer = gtk_cell_renderer_progress_new (); | 558 | renderer = gtk_cell_renderer_progress_new (); |
544 | col = gtk_tree_view_insert_column_with_attributes (downloadList, | 559 | col = gtk_tree_view_insert_column_with_attributes (downloadList, |
545 | -1, | 560 | -1, |
546 | _("Name"), | 561 | _("Progress"), |
547 | renderer, | 562 | renderer, |
548 | "value", | 563 | "value", |
549 | DOWNLOAD_PROGRESS, | 564 | DOWNLOAD_PROGRESS, |
550 | "text", | ||
551 | DOWNLOAD_SHORTNAME, | ||
552 | NULL); | 565 | NULL); |
553 | g_object_set (G_OBJECT (renderer), "width", 400, NULL); | 566 | g_object_set (G_OBJECT (renderer), "width", 400, NULL); |
554 | column = gtk_tree_view_get_column (downloadList, col - 1); | 567 | column = gtk_tree_view_get_column (downloadList, col - 1); |