[evince] [libview] Do not create popup window if the annot doesn't have a popup



commit 91b6a07e23a5efcff9d69d69794b3a8c1142b1de
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Mon Jun 1 15:47:25 2009 +0200

    [libview] Do not create popup window if the annot doesn't have a popup
---
 libview/ev-view.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libview/ev-view.c b/libview/ev-view.c
index b7ca943..ee81680 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -2314,6 +2314,9 @@ show_annotation_windows (EvView *view,
 		if (!EV_IS_ANNOTATION_MARKUP (annot))
 			continue;
 
+		if (!ev_annotation_markup_has_popup (EV_ANNOTATION_MARKUP (annot)))
+			continue;
+
 		window = g_object_get_data (G_OBJECT (annot), "popup");
 		if (window) {
 			ev_view_window_child_move_with_parent (view, window);



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