]> www.fi.muni.cz Git - evince.git/commitdiff
[libview] Do not create popup window if the annot doesn't have a popup
authorCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 1 Jun 2009 13:47:25 +0000 (15:47 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 1 Jun 2009 13:47:25 +0000 (15:47 +0200)
libview/ev-view.c

index b7ca94331ee3c3a58e76d76fc6d4c16f7b987f05..ee81680a4695ff6813dc8eb32b2a8238463fb720 100644 (file)
@@ -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);