diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-23 16:47:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-23 16:47:28 +0000 |
commit | 0fda5e76735580ddd9429ee97c3b98a0d8d999e9 (patch) | |
tree | 03ec5832f795fc1955ff116a5445ee40a1b6d000 | |
parent | fc6944474e69a7cc094a4f89bc8a4d49cab40af2 (diff) | |
download | gnunet-gtk-0fda5e76735580ddd9429ee97c3b98a0d8d999e9.tar.gz gnunet-gtk-0fda5e76735580ddd9429ee97c3b98a0d8d999e9.zip |
-fix warning
-rw-r--r-- | src/fs/gnunet-fs-gtk_event-handler.c | 54 |
1 files 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 | |||
@@ -2186,6 +2186,33 @@ change_download_color (struct DownloadEntry *de, | |||
2186 | 2186 | ||
2187 | 2187 | ||
2188 | /** | 2188 | /** |
2189 | * Change the status icon for the download. | ||
2190 | * | ||
2191 | * @param de download that had an error | ||
2192 | * @param icon status icon to display | ||
2193 | */ | ||
2194 | static void | ||
2195 | change_download_status_icon (struct DownloadEntry *de, | ||
2196 | GdkPixbuf *icon) | ||
2197 | { | ||
2198 | GtkTreeIter iter; | ||
2199 | GtkTreePath *path; | ||
2200 | |||
2201 | path = gtk_tree_row_reference_get_path (de->sr->rr); | ||
2202 | if (! gtk_tree_model_get_iter (GTK_TREE_MODEL (de->sr->tab->ts), &iter, path)) | ||
2203 | { | ||
2204 | GNUNET_break (0); | ||
2205 | gtk_tree_path_free (path); | ||
2206 | return; | ||
2207 | } | ||
2208 | gtk_tree_path_free (path); | ||
2209 | gtk_tree_store_set (de->sr->tab->ts, &iter, | ||
2210 | SEARCH_TAB_MC_STATUS_ICON, icon, | ||
2211 | -1); | ||
2212 | } | ||
2213 | |||
2214 | |||
2215 | /** | ||
2189 | * A download operation was stopped. Remove all state associated with | 2216 | * A download operation was stopped. Remove all state associated with |
2190 | * it and reset the search result's background color to 'white'. | 2217 | * it and reset the search result's background color to 'white'. |
2191 | * | 2218 | * |
@@ -2396,33 +2423,6 @@ mark_download_progress (struct DownloadEntry *de, | |||
2396 | 2423 | ||
2397 | 2424 | ||
2398 | /** | 2425 | /** |
2399 | * Change the status icon for the download. | ||
2400 | * | ||
2401 | * @param de download that had an error | ||
2402 | * @param icon status icon to display | ||
2403 | */ | ||
2404 | static void | ||
2405 | change_download_status_icon (struct DownloadEntry *de, | ||
2406 | GdkPixbuf *icon) | ||
2407 | { | ||
2408 | GtkTreeIter iter; | ||
2409 | GtkTreePath *path; | ||
2410 | |||
2411 | path = gtk_tree_row_reference_get_path (de->sr->rr); | ||
2412 | if (! gtk_tree_model_get_iter (GTK_TREE_MODEL (de->sr->tab->ts), &iter, path)) | ||
2413 | { | ||
2414 | GNUNET_break (0); | ||
2415 | gtk_tree_path_free (path); | ||
2416 | return; | ||
2417 | } | ||
2418 | gtk_tree_path_free (path); | ||
2419 | gtk_tree_store_set (de->sr->tab->ts, &iter, | ||
2420 | SEARCH_TAB_MC_STATUS_ICON, icon, | ||
2421 | -1); | ||
2422 | } | ||
2423 | |||
2424 | |||
2425 | /** | ||
2426 | * FS-API encountered an error downloading a file. Update the | 2426 | * FS-API encountered an error downloading a file. Update the |
2427 | * view accordingly. | 2427 | * view accordingly. |
2428 | * | 2428 | * |