diff options
author | Pablo Barciela <[email protected]> | 2019-05-02 01:09:20 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-05-06 13:53:37 +0200 |
commit | a110c542bd7a16625f03c97e2fefa3be8da50c85 (patch) | |
tree | 7af078f9084b33eb0d5df7f3657a1f8049ff6b83 /libcaja-private/caja-trash-monitor.c | |
parent | 476f56a25be636970b336d525a7766b6d1eb3fff (diff) | |
download | caja-a110c542bd7a16625f03c97e2fefa3be8da50c85.tar.bz2 caja-a110c542bd7a16625f03c97e2fefa3be8da50c85.tar.xz |
libcaja-private: reduce the scope of some variables
Diffstat (limited to 'libcaja-private/caja-trash-monitor.c')
-rw-r--r-- | libcaja-private/caja-trash-monitor.c | 8 |
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++) { |