/* upload interface functions (CORE -> UI)*/ void gcu_upload_stats_gui_add(struct ul_stats *s) { if (!running_topless) { upload_stats_gui_add(s); } }
/** * Update the visible statistics for a given file. */ void upload_stats_gui_update_model(struct ul_stats *us) { GtkListStore *store; struct upload_data *data; g_assert(us); store = GTK_LIST_STORE(gtk_tree_view_get_model(upload_stats_treeview)); g_return_if_fail(store); data = upload_stats_gui_find(us); if (data) { gtk_list_store_set(store, &data->iter, 0, data, (-1)); } else { upload_stats_gui_add(us); } }