[gthumb] fixed run-time warnings



commit e9c6eeecc23759e64b16d2e59b69f02c8cb6c2cd
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Wed Feb 18 12:59:58 2015 +0100

    fixed run-time warnings

 extensions/image_viewer/gth-image-viewer-page.c |    5 +++--
 gthumb/gth-file-list.c                          |    5 +++++
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/extensions/image_viewer/gth-image-viewer-page.c b/extensions/image_viewer/gth-image-viewer-page.c
index a5091ac..dfc0def 100644
--- a/extensions/image_viewer/gth-image-viewer-page.c
+++ b/extensions/image_viewer/gth-image-viewer-page.c
@@ -386,14 +386,15 @@ update_overview_visibility_now (gpointer user_data)
        gboolean            revealed;
 
        self = GTH_IMAGE_VIEWER_PAGE (user_data);
-       if (! self->priv->active)
-               return FALSE;
 
        if (self->priv->update_visibility_id != 0) {
                g_source_remove (self->priv->update_visibility_id);
                self->priv->update_visibility_id = 0;
        }
 
+       if (! self->priv->active)
+               return FALSE;
+
        overview_visible = self->priv->pointer_on_overview || (self->priv->pointer_on_viewer && 
gth_image_viewer_has_scrollbars (GTH_IMAGE_VIEWER (self->priv->viewer)));
        gtk_revealer_set_reveal_child (GTK_REVEALER (self->priv->overview_revealer), overview_visible);
 
diff --git a/gthumb/gth-file-list.c b/gthumb/gth-file-list.c
index c11416b..299b814 100644
--- a/gthumb/gth-file-list.c
+++ b/gthumb/gth-file-list.c
@@ -1697,6 +1697,11 @@ update_thumbs_stopped (gpointer callback_data)
 {
        GthFileList *file_list = callback_data;
 
+       if (file_list->priv->update_event != 0) {
+               g_source_remove (file_list->priv->update_event);
+               file_list->priv->update_event = 0;
+       }
+
        file_list->priv->loading_thumbs = FALSE;
        _gth_file_list_exec_next_op (file_list);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]