[evince] libview: Remove calls to deprecated functions gdk_threads_{enter, leave}



commit b5f6f957ca709d3b49f872605a0acca06230632c
Author: Jonas Hahnfeld <hahnjo hahnjo de>
Date:   Thu Aug 17 20:45:15 2017 +0200

    libview: Remove calls to deprecated functions gdk_threads_{enter,leave}
    
    These weren't needed anyway:
      * ev_timeline_run_frame is referenced from two calls to g_timeout_add.
        The callbacks will be emitted in the main thread.
      * The function does neither call any GTK+ nor GDK function.
    
    "Tested" with an example presentation using transitions.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=786440

 libview/ev-timeline.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/libview/ev-timeline.c b/libview/ev-timeline.c
index 1f7644b..34809d8 100644
--- a/libview/ev-timeline.c
+++ b/libview/ev-timeline.c
@@ -150,8 +150,6 @@ ev_timeline_run_frame (EvTimeline *timeline)
        gdouble         progress;
        guint           elapsed_time;
 
-       gdk_threads_enter ();
-
        priv = EV_TIMELINE_GET_PRIV (timeline);
 
        elapsed_time = (guint) (g_timer_elapsed (priv->timer, NULL) * 1000);
@@ -174,8 +172,6 @@ ev_timeline_run_frame (EvTimeline *timeline)
                }
        }
 
-       gdk_threads_leave ();
-
        return TRUE;
 }
 


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