summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-trash-monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private/caja-trash-monitor.c')
-rw-r--r--libcaja-private/caja-trash-monitor.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libcaja-private/caja-trash-monitor.c b/libcaja-private/caja-trash-monitor.c
index 678b506a..fcde8570 100644
--- a/libcaja-private/caja-trash-monitor.c
+++ b/libcaja-private/caja-trash-monitor.c
@@ -100,10 +100,7 @@ update_info_cb (GObject *source_object,
{
CajaTrashMonitor *trash_monitor;
GFileInfo *info;
- GIcon *icon;
- const char * const *names;
gboolean empty;
- int i;
trash_monitor = CAJA_TRASH_MONITOR (user_data);
@@ -112,6 +109,8 @@ update_info_cb (GObject *source_object,
if (info != NULL)
{
+ GIcon *icon;
+
icon = g_file_info_get_icon (info);
if (icon)
@@ -121,6 +120,9 @@ update_info_cb (GObject *source_object,
empty = TRUE;
if (G_IS_THEMED_ICON (icon))
{
+ const char * const *names;
+ int i;
+
names = g_themed_icon_get_names (G_THEMED_ICON (icon));
for (i = 0; names[i] != NULL; i++)
{