Fix bug #3581: sys:1: Warning: Source ID # was…
authorRicardo Mones <ricardo@mones.org>
Fri, 19 Feb 2016 17:58:34 +0000 (18:58 +0100)
committerRicardo Mones <ricardo@mones.org>
Fri, 19 Feb 2016 17:58:34 +0000 (18:58 +0100)
…not found when attempting to remove it, and remove unused logic.

src/plugins/fancy/fancy_viewer.c
src/plugins/fancy/fancy_viewer.h

index 80ab139d0cc3dbe61ae64ec428455bc0a25f9e68..bafeb0b235f3e0d11d130ebef0a8ce5ec10cd84b 100644 (file)
@@ -268,15 +268,7 @@ static gint fancy_show_mimepart_prepare(MimeViewer *_viewer)
 {
        FancyViewer *viewer = (FancyViewer *) _viewer;
 
-       if (viewer->tag > 0) {
-               gtk_timeout_remove(viewer->tag);
-               viewer->tag = -1;
-               if (viewer->loading) {
-                       viewer->stop_previous = TRUE;
-               }
-       }
-
-       viewer->tag = g_timeout_add(5, (GSourceFunc)fancy_show_mimepart_real, viewer);
+       g_timeout_add(5, (GSourceFunc)fancy_show_mimepart_real, viewer);
        return FALSE;
 }
 
@@ -894,7 +886,6 @@ static MimeViewer *fancy_viewer_create(void)
        viewer->settings = webkit_web_settings_new();
        g_object_set(viewer->settings, "user-agent", "Fancy Viewer", NULL);
        viewer->scrollwin = gtk_scrolled_window_new(NULL, NULL);
-       viewer->tag = -1;
        gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(viewer->scrollwin),
                                       GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
        gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(viewer->scrollwin),
index 093d971314e3f975384324dc56e1c9093b955f04..bc497a58949cef4302a13e120c3067a6421f86fb 100644 (file)
@@ -114,9 +114,7 @@ struct _FancyViewer
        gchar             *filename;
        MimeInfo          *to_load;
        gulong            doc_handle;
-       gint              tag;
        gint              loading;
-       gint              stop_previous;
 
        /* DOM Objects */
 #if WEBKIT_CHECK_VERSION(1,5,1)