Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2008-03-31 11:32:38 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2008-03-31 11:32:38 (GMT)
commit6651a58fd33c8256b002ed05946811293a757e71 (patch)
treef33b437dec1f58f5578e2486e399474f7e3f7308 /shell
parent3937a33dfda49381aae84fe3f37f08f2dd9244c0 (diff)
Only grab the focus for the current visible proxy widget. Fixes bug
2008-03-31 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-page-action.c: (ev_page_action_grab_focus): Only grab the focus for the current visible proxy widget. Fixes bug #521224. svn path=/trunk/; revision=2984
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-page-action.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/ev-page-action.c b/shell/ev-page-action.c
index aab86ec..39ce3ec 100644
--- a/shell/ev-page-action.c
+++ b/shell/ev-page-action.c
@@ -361,7 +361,9 @@ ev_page_action_grab_focus (EvPageAction *page_action)
EvPageActionWidget *proxy;
proxy = EV_PAGE_ACTION_WIDGET (proxies->data);
- gtk_widget_grab_focus (proxy->entry);
+
+ if (GTK_WIDGET_MAPPED (GTK_WIDGET (proxy)))
+ gtk_widget_grab_focus (proxy->entry);
}
}