Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
valoq
zathura
Commits
30dad59f
Commit
30dad59f
authored
May 18, 2010
by
neldoreth
Browse files
Fixed redrawing search result
parent
1ef7b83b
Changes
1
Hide whitespace changes
Inline
Side-by-side
zathura.c
View file @
30dad59f
...
...
@@ -460,7 +460,7 @@ init_zathura()
Zathura
.
Search
.
results
=
NULL
;
Zathura
.
Search
.
page
=
0
;
Zathura
.
Search
.
draw
=
TRU
E
;
Zathura
.
Search
.
draw
=
FALS
E
;
Zathura
.
Inotify
.
fd
=
inotify_init
();
...
...
@@ -744,8 +744,6 @@ draw(int page_id)
}
}
Zathura
.
Search
.
draw
=
TRUE
;
gtk_widget_set_size_request
(
Zathura
.
UI
.
drawing_area
,
width
,
height
);
gtk_widget_queue_draw
(
Zathura
.
UI
.
drawing_area
);
}
...
...
@@ -1191,6 +1189,7 @@ set_page(int page)
}
Zathura
.
PDF
.
page_number
=
page
;
Zathura
.
Search
.
draw
=
FALSE
;
Argument
argument
;
argument
.
n
=
TOP
;
...
...
@@ -1291,6 +1290,7 @@ search(void* parameter)
Zathura
.
Search
.
results
=
results
;
Zathura
.
Search
.
page
=
next_page
;
Zathura
.
Search
.
draw
=
TRUE
;
gdk_threads_leave
();
}
...
...
@@ -3109,7 +3109,6 @@ gboolean cb_draw(GtkWidget* widget, GdkEventExpose* expose, gpointer data)
GList
*
list
;
for
(
list
=
Zathura
.
Search
.
results
;
list
&&
list
->
data
;
list
=
g_list_next
(
list
))
highlight_result
(
Zathura
.
Search
.
page
,
(
PopplerRectangle
*
)
list
->
data
);
Zathura
.
Search
.
draw
=
FALSE
;
}
cairo_set_source_surface
(
cairo
,
Zathura
.
PDF
.
surface
,
offset_x
,
offset_y
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment