From: Carlos Garcia Campos Date: Mon, 1 Jun 2009 13:47:25 +0000 (+0200) Subject: [libview] Do not create popup window if the annot doesn't have a popup X-Git-Tag: EVINCE_2_27_3~53 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=91b6a07e23a5efcff9d69d69794b3a8c1142b1de;p=evince.git [libview] Do not create popup window if the annot doesn't have a popup --- diff --git a/libview/ev-view.c b/libview/ev-view.c index b7ca9433..ee81680a 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);