diff 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
line wrap: on
line diff
--- 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)