aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/status.c')
-rw-r--r--src/plugins/fs/status.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/plugins/fs/status.c b/src/plugins/fs/status.c
index 1ce858d3..47f383e3 100644
--- a/src/plugins/fs/status.c
+++ b/src/plugins/fs/status.c
@@ -75,5 +75,29 @@ getStatusName (enum GNUNET_URITRACK_STATE state)
75 return ""; 75 return "";
76} 76}
77 77
78const GdkPixbuf *
79getStatusLogo (enum GNUNET_URITRACK_STATE state)
80{
81 if (state & (GNUNET_URITRACK_DIRECTORY_ADDED))
82 return gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
83 GTK_STOCK_ADD, 16, 0, (GError **)NULL);
84 if (state & (GNUNET_URITRACK_INSERTED || GNUNET_URITRACK_INDEXED))
85 return gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
86 GTK_STOCK_HOME, 16, 0, (GError **)NULL);
87 if ((state & GNUNET_URITRACK_DOWNLOAD_STARTED) &&
88 (0 == (state &
89 (GNUNET_URITRACK_DOWNLOAD_COMPLETED |
90 GNUNET_URITRACK_DOWNLOAD_ABORTED))))
91 return gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
92 GTK_STOCK_GO_DOWN, 16, 0, (GError **)NULL);
93 if (state & GNUNET_URITRACK_DOWNLOAD_COMPLETED)
94 return gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
95 GTK_STOCK_APPLY, 16, 0, (GError **)NULL);
96 if (state & GNUNET_URITRACK_DOWNLOAD_ABORTED)
97 return gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
98 GTK_STOCK_CANCEL, 16, 0, (GError **)NULL);
99 return NULL;
100}
101
78 102
79/* end of status.c */ 103/* end of status.c */