Mercurial > geeqie
comparison src/filedata.c @ 1498:5f49f305a6b6
improved debug messages
author | nadvornik |
---|---|
date | Tue, 31 Mar 2009 20:05:16 +0000 |
parents | 2441a90c4bcf |
children | 4eed0789a828 |
comparison
equal
deleted
inserted
replaced
1497:2c54f3f71634 | 1498:5f49f305a6b6 |
---|---|
2279 nd->func = func; | 2279 nd->func = func; |
2280 nd->data = data; | 2280 nd->data = data; |
2281 nd->priority = priority; | 2281 nd->priority = priority; |
2282 | 2282 |
2283 notify_func_list = g_list_insert_sorted(notify_func_list, nd, file_data_notify_sort); | 2283 notify_func_list = g_list_insert_sorted(notify_func_list, nd, file_data_notify_sort); |
2284 DEBUG_1("Notify func registered: %p", nd); | 2284 DEBUG_2("Notify func registered: %p", nd); |
2285 | 2285 |
2286 return TRUE; | 2286 return TRUE; |
2287 } | 2287 } |
2288 | 2288 |
2289 gboolean file_data_unregister_notify_func(FileDataNotifyFunc func, gpointer data) | 2289 gboolean file_data_unregister_notify_func(FileDataNotifyFunc func, gpointer data) |
2296 | 2296 |
2297 if (nd->func == func && nd->data == data) | 2297 if (nd->func == func && nd->data == data) |
2298 { | 2298 { |
2299 notify_func_list = g_list_delete_link(notify_func_list, work); | 2299 notify_func_list = g_list_delete_link(notify_func_list, work); |
2300 g_free(nd); | 2300 g_free(nd); |
2301 DEBUG_1("Notify func unregistered: %p", nd); | 2301 DEBUG_2("Notify func unregistered: %p", nd); |
2302 return TRUE; | 2302 return TRUE; |
2303 } | 2303 } |
2304 work = work->next; | 2304 work = work->next; |
2305 } | 2305 } |
2306 | 2306 |
2314 | 2314 |
2315 while (work) | 2315 while (work) |
2316 { | 2316 { |
2317 NotifyData *nd = (NotifyData *)work->data; | 2317 NotifyData *nd = (NotifyData *)work->data; |
2318 | 2318 |
2319 DEBUG_1("Notify func calling: %p %s", nd, fd->path); | |
2320 nd->func(fd, type, nd->data); | 2319 nd->func(fd, type, nd->data); |
2321 work = work->next; | 2320 work = work->next; |
2322 } | 2321 } |
2323 } | 2322 } |
2324 | 2323 |