[evince] libview: Open annotation windows when opening the document
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] libview: Open annotation windows when opening the document
- Date: Wed, 12 Jan 2022 02:01:16 +0000 (UTC)
commit ad215dc600905ebfbe1be0ddf84e03d94124e3af
Author: andreastedile <andreastedile97 gmail com>
Date: Sat Aug 21 17:26:34 2021 +0200
libview: Open annotation windows when opening the document
By right clicking an annotation and selecting "Annotation Properties...",
there exists an option called "Initial window state" which regulates
whether the annotation window should be opened when opening the document.
This behavior was altered by commit aed1af6fa7ad6ccc17c826a8e9df6dfb7bea29fe,
whose purpose was exactly to prevent annotation windows from opening
for performance reasons.
Fixes: https://gitlab.gnome.org/GNOME/evince/-/issues/1425
libview/ev-view.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index ee6526cb7..22e48d488 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -3401,6 +3401,9 @@ show_annotation_windows (EvView *view,
{
EvMappingList *annots;
GList *l;
+ GtkWindow *parent;
+
+ parent = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (view)));
annots = ev_page_cache_get_annot_mapping (view->page_cache, page);
@@ -3419,6 +3422,8 @@ show_annotation_windows (EvView *view,
window = get_window_for_annot (view, annot);
if (window) {
ev_view_window_child_move_with_parent (view, window);
+ } else {
+ ev_view_create_annotation_window (view, annot, parent);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]