summaryrefslogtreecommitdiff
path: root/libview/ev-view-presentation.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <[email protected]>2011-05-23 18:00:24 +0200
committerraveit65 <[email protected]>2018-03-26 15:36:36 +0200
commit454ca8b142f2f6c8b3715a73de3f3c6770666ee3 (patch)
tree3d1852e0183b99720ac504cacb1462635ddc3598 /libview/ev-view-presentation.c
parentb9dcc2af55184359ea4da1b8bc416ccbb057ee2c (diff)
downloadatril-454ca8b142f2f6c8b3715a73de3f3c6770666ee3.tar.bz2
atril-454ca8b142f2f6c8b3715a73de3f3c6770666ee3.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/ev-view-presentation.c')
-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 1916da86..204aff02 100644
--- a/libview/ev-view-presentation.c
+++ b/libview/ev-view-presentation.c
@@ -668,9 +668,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))
@@ -680,6 +680,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))