]> www.fi.muni.cz Git - evince.git/commitdiff
libview: Fix goto window in presentation mode
authorCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 23 May 2011 16:00:24 +0000 (18:00 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 23 May 2011 16:00:24 +0000 (18:00 +0200)
It wasn't correctly set as modal.

libview/ev-view-presentation.c

index 53acf2f361a671392d7c2a0ea0a3f95a2e5cc49a..8694e5e304ef6d4a48d9d872f4fd5372b752cb02 100644 (file)
@@ -649,9 +649,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))
@@ -661,6 +661,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))