[gthumb] file list: correctly reset the update timeout
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] file list: correctly reset the update timeout
- Date: Sun, 13 Apr 2014 09:21:56 +0000 (UTC)
commit ceb2f5648dcacef25ecf0d5821fc7659065d3078
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Apr 13 11:18:52 2014 +0200
file list: correctly reset the update timeout
gthumb/gth-file-list.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-file-list.c b/gthumb/gth-file-list.c
index 7f6b126..592883f 100644
--- a/gthumb/gth-file-list.c
+++ b/gthumb/gth-file-list.c
@@ -222,6 +222,7 @@ _gth_file_list_clear_queue (GthFileList *file_list)
if (file_list->priv->update_event != 0) {
g_source_remove (file_list->priv->update_event);
+ file_list->priv->update_event = 0;
file_list->priv->dirty = FALSE;
}
@@ -448,6 +449,11 @@ restart_thumb_update_cb (gpointer data)
{
GthFileList *file_list = data;
+ if (file_list->priv->update_event != 0) {
+ g_source_remove (file_list->priv->update_event);
+ file_list->priv->update_event = 0;
+ }
+
if (file_list->priv->restart_thumb_update != 0) {
g_source_remove (file_list->priv->restart_thumb_update);
file_list->priv->restart_thumb_update = 0;
@@ -1608,6 +1614,12 @@ static gboolean
start_thumbnail_job (gpointer user_data)
{
ThumbnailJob *job = user_data;
+ GthFileList *file_list = job->file_list;
+
+ if (file_list->priv->update_event != 0) {
+ g_source_remove (file_list->priv->update_event);
+ file_list->priv->update_event = 0;
+ }
job->started = TRUE;
gth_thumb_loader_load (job->loader,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]