diff options
Diffstat (limited to 'src/plugins/fs/download.c')
-rw-r--r-- | src/plugins/fs/download.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/plugins/fs/download.c b/src/plugins/fs/download.c index aad51417..7d1ab986 100644 --- a/src/plugins/fs/download.c +++ b/src/plugins/fs/download.c | |||
@@ -685,6 +685,7 @@ static int addDownloadView(void * cls, | |||
685 | void fs_download_start() { | 685 | void fs_download_start() { |
686 | GtkWidget * downloadList; | 686 | GtkWidget * downloadList; |
687 | GtkCellRenderer * renderer; | 687 | GtkCellRenderer * renderer; |
688 | int col; | ||
688 | 689 | ||
689 | 690 | ||
690 | downloadList = glade_xml_get_widget(getMainXML(), | 691 | downloadList = glade_xml_get_widget(getMainXML(), |
@@ -702,27 +703,36 @@ void fs_download_start() { | |||
702 | gtk_tree_view_set_model(GTK_TREE_VIEW(downloadList), | 703 | gtk_tree_view_set_model(GTK_TREE_VIEW(downloadList), |
703 | GTK_TREE_MODEL(summary)); | 704 | GTK_TREE_MODEL(summary)); |
704 | renderer = gtk_cell_renderer_progress_new(); | 705 | renderer = gtk_cell_renderer_progress_new(); |
705 | gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(downloadList), | 706 | col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(downloadList), |
706 | -1, | 707 | -1, |
707 | _("Name"), | 708 | _("Name"), |
708 | renderer, | 709 | renderer, |
709 | "value", DOWNLOAD_PROGRESS, | 710 | "value", DOWNLOAD_PROGRESS, |
710 | "text", DOWNLOAD_LINKNAME, | 711 | "text", DOWNLOAD_LINKNAME, |
711 | NULL); | 712 | NULL); |
713 | gtk_tree_view_column_set_resizable(gtk_tree_view_get_column(GTK_TREE_VIEW(downloadList), | ||
714 | col - 1), | ||
715 | TRUE); | ||
712 | renderer = gtk_cell_renderer_text_new(); | 716 | renderer = gtk_cell_renderer_text_new(); |
713 | gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(downloadList), | 717 | col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(downloadList), |
714 | -1, | 718 | -1, |
715 | _("Size"), | 719 | _("Size"), |
716 | renderer, | 720 | renderer, |
717 | "text", DOWNLOAD_SIZE, | 721 | "text", DOWNLOAD_SIZE, |
718 | NULL); | 722 | NULL); |
723 | gtk_tree_view_column_set_resizable(gtk_tree_view_get_column(GTK_TREE_VIEW(downloadList), | ||
724 | col - 1), | ||
725 | TRUE); | ||
719 | renderer = gtk_cell_renderer_text_new(); | 726 | renderer = gtk_cell_renderer_text_new(); |
720 | gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(downloadList), | 727 | col = gtk_tree_view_insert_column_with_attributes(GTK_TREE_VIEW(downloadList), |
721 | -1, | 728 | -1, |
722 | _("URI"), | 729 | _("URI"), |
723 | renderer, | 730 | renderer, |
724 | "text", DOWNLOAD_URISTRING, | 731 | "text", DOWNLOAD_URISTRING, |
725 | NULL); | 732 | NULL); |
733 | gtk_tree_view_column_set_resizable(gtk_tree_view_get_column(GTK_TREE_VIEW(downloadList), | ||
734 | col - 1), | ||
735 | TRUE); | ||
726 | FSUI_listDownloads(ctx, | 736 | FSUI_listDownloads(ctx, |
727 | NULL, | 737 | NULL, |
728 | &addDownloadView, | 738 | &addDownloadView, |