From: Michael Schwendt Date: Fri, 1 Feb 2013 17:44:12 +0000 (+0100) Subject: Patch to fix duplicate window update X-Git-Tag: v1.3~28 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=8a2a3697a9c356169ff25945bd85f824d4d737fd Patch to fix duplicate window update Fixes #190. Signed-off-by: Klaus Ethgen --- diff --git a/src/filedata.c b/src/filedata.c index ec23e217..db900700 100644 --- a/src/filedata.c +++ b/src/filedata.c @@ -2909,10 +2909,21 @@ gboolean file_data_send_notification_idle_cb(gpointer data) void file_data_send_notification(FileData *fd, NotifyType type) { + GList *work = notify_func_list; + + while (work) + { + NotifyData *nd = (NotifyData *)work->data; + + nd->func(fd, type, nd->data); + work = work->next; + } + /* NotifyIdleData *nid = g_new0(NotifyIdleData, 1); nid->fd = file_data_ref(fd); nid->type = type; g_idle_add_full(G_PRIORITY_HIGH, file_data_send_notification_idle_cb, nid, NULL); + */ } static GHashTable *file_data_monitor_pool = NULL;