[gnome-packagekit] Do not show a critical warning when we try to remove a missing GSource



commit ed1aa313f6c8375a4553dda50e6c0ea862da335a
Author: Richard Hughes <richard hughsie com>
Date:   Tue Nov 5 09:59:15 2013 +0000

    Do not show a critical warning when we try to remove a missing GSource

 src/gpk-animated-icon.c |    1 +
 src/gpk-application.c   |    1 +
 src/gpk-update-viewer.c |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gpk-animated-icon.c b/src/gpk-animated-icon.c
index b8fa29a..87ddf06 100644
--- a/src/gpk-animated-icon.c
+++ b/src/gpk-animated-icon.c
@@ -183,6 +183,7 @@ gpk_animated_icon_update (GpkAnimatedIcon *icon)
        /* have we loaded a file */
        if (icon->frames == NULL) {
                g_warning ("no frames to process");
+               icon->animation_id = 0;
                return FALSE;
        }
 
diff --git a/src/gpk-application.c b/src/gpk-application.c
index 668c14d..7442964 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -1120,6 +1120,7 @@ gpk_application_clear_details_cb (GpkApplicationPrivate *priv)
        gtk_widget_hide (widget);
 
        /* never repeat */
+       priv->details_event_id = 0;
        return FALSE;
 }
 
diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index 841ee7d..0e2fad3 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -166,6 +166,7 @@ gpk_update_viewer_auto_shutdown_cb (GtkDialog *dialog)
 {
        g_debug ("autoclosing dialog");
        gtk_dialog_response (dialog, GTK_RESPONSE_CANCEL);
+       auto_shutdown_id = 0;
        return FALSE;
 }
 


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