summaryrefslogtreecommitdiff
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authorbl0ckeduser <[email protected]>2014-02-08 20:02:49 -0500
committerbl0ckeduser <[email protected]>2014-02-08 20:02:49 -0500
commitd771130748b90fdeb3c05d12c8652c7ab3f7f081 (patch)
tree4bd83ac222c92bd1601039370549845095cc688b /shell/ev-window.c
parent9ba2765d71e217254d2a3429b043430dbc9ff5d1 (diff)
downloadatril-d771130748b90fdeb3c05d12c8652c7ab3f7f081.tar.bz2
atril-d771130748b90fdeb3c05d12c8652c7ab3f7f081.tar.xz
Fix for #47 (Ctrl-A in search field)
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 1f989f85..45e733a5 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -3651,7 +3651,16 @@ ev_window_cmd_edit_select_all (GtkAction *action, EvWindow *ev_window)
{
g_return_if_fail (EV_IS_WINDOW (ev_window));
- ev_view_select_all (EV_VIEW (ev_window->priv->view));
+ /*
+ * If the find bar is open, select all applies to
+ * the find field contents. Otherwise it applies
+ * to the viewing window's contents.
+ */
+ if (ev_window->priv->chrome & EV_CHROME_FINDBAR) {
+ egg_find_bar_grab_focus(ev_window->priv->find_bar);
+ } else {
+ ev_view_select_all (EV_VIEW (ev_window->priv->view));
+ }
}
static void