evince r2984 - in trunk: . shell



Author: carlosgc
Date: Mon Mar 31 12:32:38 2008
New Revision: 2984
URL: http://svn.gnome.org/viewvc/evince?rev=2984&view=rev

Log:
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.


Modified:
   trunk/ChangeLog
   trunk/shell/ev-page-action.c

Modified: trunk/shell/ev-page-action.c
==============================================================================
--- trunk/shell/ev-page-action.c	(original)
+++ trunk/shell/ev-page-action.c	Mon Mar 31 12:32:38 2008
@@ -361,7 +361,9 @@
 		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);
 	}
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]