[evince/wip/gpoo/gtk4-rebase-port: 73/96] ev-view: enable multimedia unconditionally




commit 7c9203da57399d8a7229ab69f36a83b950ccbf75
Author: Qiu Wenbo <qiuwenbo kylinos com cn>
Date:   Mon Aug 23 10:29:04 2021 +0800

    ev-view: enable multimedia unconditionally
    
    Signed-off-by: Qiu Wenbo <qiuwenbo kylinos com cn>

 libview/ev-view.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index c5f1ae49e..d873bb5af 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -3067,7 +3067,6 @@ get_media_mapping_at_location (EvView *view,
                               gdouble y,
                               gint *page)
 {
-#ifdef ENABLE_MULTIMEDIA
        gint x_new = 0, y_new = 0;
        EvMappingList *media_mapping;
 
@@ -3080,9 +3079,6 @@ get_media_mapping_at_location (EvView *view,
        media_mapping = ev_page_cache_get_media_mapping (view->page_cache, *page);
 
        return media_mapping ? ev_mapping_list_get (media_mapping, x_new, y_new) : NULL;
-#else
-       return NULL;
-#endif
 }
 
 static EvMedia *
@@ -3102,7 +3098,6 @@ static gboolean
 ev_view_find_player_for_media (EvView  *view,
                               EvMedia *media)
 {
-#ifdef ENABLE_MULTIMEDIA
        GList *l;
 
        for (l = view->children; l; l = g_list_next (l)) {
@@ -3114,7 +3109,7 @@ ev_view_find_player_for_media (EvView  *view,
                //if (ev_media_player_get_media (EV_MEDIA_PLAYER (child->widget)) == media)
                //      return TRUE;
        }
-#endif
+
        return FALSE;
 }
 
@@ -3122,7 +3117,6 @@ static void
 ev_view_handle_media (EvView  *view,
                      EvMedia *media)
 {
-#ifdef ENABLE_MULTIMEDIA
        GtkWidget     *player;
        EvMappingList *media_mapping;
        EvMapping     *mapping;
@@ -3150,7 +3144,6 @@ ev_view_handle_media (EvView  *view,
 
        ev_view_put (view, player, render_area.x, render_area.y, page, &mapping->area);
        gtk_widget_show (player);
-#endif /* ENABLE_MULTIMEDIA */
 }
 
 /* Annotations */


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