From 0fda5e76735580ddd9429ee97c3b98a0d8d999e9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 23 Jun 2012 16:47:28 +0000 Subject: -fix warning --- src/fs/gnunet-fs-gtk_event-handler.c | 54 ++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/src/fs/gnunet-fs-gtk_event-handler.c b/src/fs/gnunet-fs-gtk_event-handler.c index bfd39d87..5b738a8b 100644 --- a/src/fs/gnunet-fs-gtk_event-handler.c +++ b/src/fs/gnunet-fs-gtk_event-handler.c @@ -2185,6 +2185,33 @@ change_download_color (struct DownloadEntry *de, } +/** + * Change the status icon for the download. + * + * @param de download that had an error + * @param icon status icon to display + */ +static void +change_download_status_icon (struct DownloadEntry *de, + GdkPixbuf *icon) +{ + GtkTreeIter iter; + GtkTreePath *path; + + path = gtk_tree_row_reference_get_path (de->sr->rr); + if (! gtk_tree_model_get_iter (GTK_TREE_MODEL (de->sr->tab->ts), &iter, path)) + { + GNUNET_break (0); + gtk_tree_path_free (path); + return; + } + gtk_tree_path_free (path); + gtk_tree_store_set (de->sr->tab->ts, &iter, + SEARCH_TAB_MC_STATUS_ICON, icon, + -1); +} + + /** * A download operation was stopped. Remove all state associated with * it and reset the search result's background color to 'white'. @@ -2395,33 +2422,6 @@ mark_download_progress (struct DownloadEntry *de, } -/** - * Change the status icon for the download. - * - * @param de download that had an error - * @param icon status icon to display - */ -static void -change_download_status_icon (struct DownloadEntry *de, - GdkPixbuf *icon) -{ - GtkTreeIter iter; - GtkTreePath *path; - - path = gtk_tree_row_reference_get_path (de->sr->rr); - if (! gtk_tree_model_get_iter (GTK_TREE_MODEL (de->sr->tab->ts), &iter, path)) - { - GNUNET_break (0); - gtk_tree_path_free (path); - return; - } - gtk_tree_path_free (path); - gtk_tree_store_set (de->sr->tab->ts, &iter, - SEARCH_TAB_MC_STATUS_ICON, icon, - -1); -} - - /** * FS-API encountered an error downloading a file. Update the * view accordingly. -- cgit v1.2.3