[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r22227 - gnunet-gtk/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r22227 - gnunet-gtk/src/fs |
Date: |
Sat, 23 Jun 2012 18:47:28 +0200 |
Author: grothoff
Date: 2012-06-23 18:47:28 +0200 (Sat, 23 Jun 2012)
New Revision: 22227
Modified:
gnunet-gtk/src/fs/gnunet-fs-gtk_event-handler.c
Log:
-fix warning
Modified: gnunet-gtk/src/fs/gnunet-fs-gtk_event-handler.c
===================================================================
--- gnunet-gtk/src/fs/gnunet-fs-gtk_event-handler.c 2012-06-23 16:38:33 UTC
(rev 22226)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk_event-handler.c 2012-06-23 16:47:28 UTC
(rev 22227)
@@ -2186,6 +2186,33 @@
/**
+ * 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'.
*
@@ -2396,33 +2423,6 @@
/**
- * 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.
*
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r22227 - gnunet-gtk/src/fs,
gnunet <=