[easytag] Use g_file_enumerator_get_child() in expand_cb()
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Use g_file_enumerator_get_child() in expand_cb()
- Date: Fri, 8 Jan 2016 08:28:25 +0000 (UTC)
commit 567cc99b03d8e35945a6bd851e05dc2c3eaed3a1
Author: David King <amigadave amigadave com>
Date: Fri Jan 8 08:12:04 2016 +0000
Use g_file_enumerator_get_child() in expand_cb()
src/browser.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/browser.c b/src/browser.c
index 6db9fa3..7bb82c5 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -3545,12 +3545,10 @@ expand_cb (EtBrowser *self, GtkTreeIter *iter, GtkTreePath *gtreePath, GtkTreeVi
NULL, NULL))
!= NULL)
{
- const gchar *name;
GFile *child;
gboolean isdir;
- name = g_file_info_get_name (childinfo);
- child = g_file_get_child (dir, name);
+ child = g_file_enumerator_get_child (enumerator, childinfo);
fullpath_file = g_file_get_path (child);
isdir = g_file_info_get_file_type (childinfo) == G_FILE_TYPE_DIRECTORY;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]