summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOz N Tiram <[email protected]>2020-06-14 17:09:56 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2020-06-18 10:48:28 +0200
commit2c2a092d3cfc1cd598d54b4daed7ec43a10b347f (patch)
tree0704b8532804b52d81da351c202d5f4b2a4a1d92
parent527caa272f9534a3b97d30fb902d8d44fc961226 (diff)
downloadatril-2c2a092d3cfc1cd598d54b4daed7ec43a10b347f.tar.bz2
atril-2c2a092d3cfc1cd598d54b4daed7ec43a10b347f.tar.xz
Re-enable highlight_find_results
-rw-r--r--libview/ev-view-private.h2
-rw-r--r--libview/ev-view.c9
2 files changed, 3 insertions, 8 deletions
diff --git a/libview/ev-view-private.h b/libview/ev-view-private.h
index 4f6179e4..e9515723 100644
--- a/libview/ev-view-private.h
+++ b/libview/ev-view-private.h
@@ -125,9 +125,7 @@ struct _EvView {
GList **find_pages;
gint find_result;
gboolean jump_to_find_result;
-#ifdef ENABLE_SYNCTEX
gboolean highlight_find_results;
-#endif
EvDocumentModel *model;
EvPixbufCache *pixbuf_cache;
gsize pixbuf_cache_size;
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 7c9281ce..29b06fbe 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -177,10 +177,10 @@ static void ev_view_remove_all (EvView
static AtkObject *ev_view_get_accessible (GtkWidget *widget);
/*** Drawing ***/
-#if ENABLE_SYNCTEX
static void highlight_find_results (EvView *view,
cairo_t *cr,
int page);
+#if ENABLE_SYNCTEX
static void highlight_forward_search_results (EvView *view,
cairo_t *cr,
int page);
@@ -4076,10 +4076,8 @@ ev_view_draw (GtkWidget *widget,
if (page_ready && should_draw_caret_cursor (view, i))
draw_caret_cursor (view, cr);
-#ifdef ENABLE_SYNCTEX
if (page_ready && view->find_pages && view->highlight_find_results)
highlight_find_results (view, cr, i);
-#endif
if (page_ready && EV_IS_DOCUMENT_ANNOTATIONS (view->document))
show_annotation_windows (view, i);
if (page_ready && view->focused_element)
@@ -5627,6 +5625,7 @@ ev_view_style_updated (GtkWidget *widget)
/*** Drawing ***/
+
static void
draw_rubberband (EvView *view,
cairo_t *cr,
@@ -5658,7 +5657,6 @@ draw_rubberband (EvView *view,
}
-#ifdef ENABLE_SYNCTEX
static void
highlight_find_results (EvView *view, cairo_t *cr, int page)
{
@@ -5683,6 +5681,7 @@ highlight_find_results (EvView *view, cairo_t *cr, int page)
}
}
+#ifdef ENABLE_SYNCTEX
static void
highlight_forward_search_results (EvView *view, cairo_t *cr, int page)
{
@@ -7525,9 +7524,7 @@ ev_view_find_search_changed (EvView *view)
void
ev_view_find_set_highlight_search (EvView *view, gboolean value)
{
-#ifdef ENABLE_SYNCTEX
view->highlight_find_results = value;
-#endif
gtk_widget_queue_draw (GTK_WIDGET (view));
}