]> www.fi.muni.cz Git - evince.git/commitdiff
Give focus to the ev-view, rather than the scrolled_window that it's in.
authorJames Bowes <bowes@cs.dal.ca>
Wed, 18 May 2005 14:46:27 +0000 (14:46 +0000)
committerJames Bowes <jbowes@src.gnome.org>
Wed, 18 May 2005 14:46:27 +0000 (14:46 +0000)
2005-05-18  James Bowes  <bowes@cs.dal.ca>

        * shell/ev-window.c: (ev_window_init): Give focus to the ev-view,
        rather than the scrolled_window that it's in. Fixes bug #304655.

ChangeLog
shell/ev-window.c

index 7e3fe8e08de527c41107d36bf62fb4cc88332ca4..4fb751ff61143601a17d581394b91674730406d2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-18  James Bowes  <bowes@cs.dal.ca>
+
+       * shell/ev-window.c: (ev_window_init): Give focus to the ev-view,
+       rather than the scrolled_window that it's in. Fixes bug #304655.
+
 Tue May 17 22:54:17 2005  Jonathan Blandford  <jrb@redhat.com>
 
        * shell/ev-view.c: (view_update_adjustments),
index 65b8812560d158212532f02a56ed7fdd1c590963..102e56c39c6212d25e3dbfca7f429df704991599 100644 (file)
@@ -2873,8 +2873,8 @@ ev_window_init (EvWindow *ev_window)
                          G_CALLBACK (find_bar_search_changed_cb),
                          ev_window);
 
-       /* Give focus to the scrolled window */
-       gtk_widget_grab_focus (ev_window->priv->scrolled_window);
+       /* Give focus to the document view */
+       gtk_widget_grab_focus (ev_window->priv->view);
 
        /* Drag and Drop */
        gtk_drag_dest_unset (GTK_WIDGET (ev_window));