]> www.fi.muni.cz Git - evince.git/commitdiff
Only grab the focus for the current visible proxy widget. Fixes bug
authorCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 31 Mar 2008 11:32:38 +0000 (11:32 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Mon, 31 Mar 2008 11:32:38 +0000 (11:32 +0000)
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

ChangeLog
shell/ev-page-action.c

index 001f6f9c178856292f566a5c568ce5a08d78aeb1..9c45ab507a23153aaf8e5cd2974bcc84b2924de9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
+       
 2008-03-30  Emil Soleyman  <emil@nishra.com>
 
        * shell/ev-window.c: (launch_external_uri):
index aab86ec7dbede280cd73e765e2fdb7c2e3ab1b34..39ce3ec560e21bf411d931997dd32517d0ac1f14 100644 (file)
@@ -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);
        }
 }