[gthumb] Fix broken passing of monitor file lists
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb] Fix broken passing of monitor file lists
- Date: Wed, 24 Jun 2009 19:29:56 +0000 (UTC)
commit 1ea1a83fc08667a23f5c000ad4b2ad17ac3f5109
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Wed Jun 24 15:29:36 2009 -0400
Fix broken passing of monitor file lists
libgthumb/gth-monitor.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/libgthumb/gth-monitor.c b/libgthumb/gth-monitor.c
index 237434e..5f9e1a7 100644
--- a/libgthumb/gth-monitor.c
+++ b/libgthumb/gth-monitor.c
@@ -505,16 +505,27 @@ void
gth_monitor_notify_update_files (GthMonitorEvent event,
GList *list)
{
+ GList *path_list = NULL;
+ GList *scan;
+
g_return_if_fail (GTH_IS_MONITOR (instance));
if (list == NULL)
return;
+ /* FIXME: use gfile list in signals */
+ for (scan = list; scan; scan = scan->next) {
+ GFile *gfile = scan->data;
+ path_list = g_list_prepend (path_list, g_file_get_parse_name (gfile));
+ }
+
g_signal_emit (G_OBJECT (instance),
monitor_signals[UPDATE_FILES],
0,
event,
- list);
+ path_list);
+
+ path_list_free (path_list);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]