summaryrefslogtreecommitdiff
path: root/libview
diff options
context:
space:
mode:
authorCarlos Garcia Campos <[email protected]>2011-05-23 18:00:24 +0200
committermonsta <[email protected]>2018-04-04 11:33:09 +0300
commitfecc271e23f91f57c4a9498dfbce67d98163c239 (patch)
tree064b9cd73b538d53b184ca8b52de4779367242a8 /libview
parent4bc8ddd5ef4642ccd4dd07ed9ba94fefd7dd2d2c (diff)
downloadatril-fecc271e23f91f57c4a9498dfbce67d98163c239.tar.bz2
atril-fecc271e23f91f57c4a9498dfbce67d98163c239.tar.xz
libview: Fix goto window in presentation mode
It wasn't correctly set as modal. origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-2&id=987aab6
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-view-presentation.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c
index 74ce60ee..eafa9743 100644
--- a/libview/ev-view-presentation.c
+++ b/libview/ev-view-presentation.c
@@ -650,9 +650,9 @@ ev_view_presentation_goto_window_create (EvViewPresentation *pview)
GtkWindow *toplevel, *goto_window;
toplevel = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (pview)));
- goto_window = GTK_WINDOW (pview->goto_window);
if (pview->goto_window) {
+ goto_window = GTK_WINDOW (pview->goto_window);
if (gtk_window_has_group (toplevel))
gtk_window_group_add_window (gtk_window_get_group (toplevel), goto_window);
else if (gtk_window_has_group (goto_window))
@@ -662,6 +662,7 @@ ev_view_presentation_goto_window_create (EvViewPresentation *pview)
}
pview->goto_window = gtk_window_new (GTK_WINDOW_POPUP);
+ goto_window = GTK_WINDOW (pview->goto_window);
gtk_window_set_screen (goto_window, gtk_widget_get_screen (GTK_WIDGET (pview)));
if (gtk_window_has_group (toplevel))