# HG changeset patch # User Mark Doliner # Date 1045981440 0 # Node ID 8742023570beb60cc99957284b7902c078c682e7 # Parent 864518c3767dc19ffc3cc03503143c95016c61e4 [gaim-migrate @ 4895] I even used 4 space tabs so my code would blend in with the rest of Christian's! This fixes 2 very very very minor bugs (they're no 18 yet). 1) When a file is finished, time remaining says "Unknown" 2) When a file finishes, the up/down/check icon doesn't update unless you've clicked on it (or maybe unless details are shown for that transfer) This might not be as pretty as Chip's code, but it looks ok to me. committer: Tailor Script diff -r 864518c3767d -r 8742023570be src/gtkft.c --- a/src/gtkft.c Sun Feb 23 02:21:17 2003 +0000 +++ b/src/gtkft.c Sun Feb 23 06:24:00 2003 +0000 @@ -869,6 +869,21 @@ COLUMN_REMAINING, remaining_str, -1); + if (gaim_xfer_is_completed(xfer)) { + GdkPixbuf *pixbuf; + + pixbuf = gtk_widget_render_icon(dialog->window, + GAIM_STOCK_FILE_DONE, + GTK_ICON_SIZE_MENU, NULL); + + gtk_list_store_set(GTK_LIST_STORE(xfer_dialog->model), &data->iter, + COLUMN_STATUS, pixbuf, + COLUMN_REMAINING, "Finished.", + -1); + + g_object_unref(pixbuf); + } + selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(xfer_dialog->tree)); if (xfer == dialog->selected_xfer)