Mercurial > pidgin.yaz
comparison src/gtkft.c @ 4607:8742023570be
[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 <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 23 Feb 2003 06:24:00 +0000 |
parents | bf42e10c1d8a |
children | 858979ab3867 |
comparison
equal
deleted
inserted
replaced
4606:864518c3767d | 4607:8742023570be |
---|---|
867 COLUMN_PROGRESS, gaim_xfer_get_progress(xfer), | 867 COLUMN_PROGRESS, gaim_xfer_get_progress(xfer), |
868 COLUMN_SIZE, size_str, | 868 COLUMN_SIZE, size_str, |
869 COLUMN_REMAINING, remaining_str, | 869 COLUMN_REMAINING, remaining_str, |
870 -1); | 870 -1); |
871 | 871 |
872 if (gaim_xfer_is_completed(xfer)) { | |
873 GdkPixbuf *pixbuf; | |
874 | |
875 pixbuf = gtk_widget_render_icon(dialog->window, | |
876 GAIM_STOCK_FILE_DONE, | |
877 GTK_ICON_SIZE_MENU, NULL); | |
878 | |
879 gtk_list_store_set(GTK_LIST_STORE(xfer_dialog->model), &data->iter, | |
880 COLUMN_STATUS, pixbuf, | |
881 COLUMN_REMAINING, "Finished.", | |
882 -1); | |
883 | |
884 g_object_unref(pixbuf); | |
885 } | |
886 | |
872 selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(xfer_dialog->tree)); | 887 selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(xfer_dialog->tree)); |
873 | 888 |
874 if (xfer == dialog->selected_xfer) | 889 if (xfer == dialog->selected_xfer) |
875 update_detailed_info(xfer_dialog, xfer); | 890 update_detailed_info(xfer_dialog, xfer); |
876 | 891 |