[Xfce4-commits] r23614 - in thunar/trunk: . thunar

Benedikt Meurer benny at xfce.org
Fri Nov 3 19:39:26 CET 2006


Author: benny
Date: 2006-11-03 18:39:24 +0000 (Fri, 03 Nov 2006)
New Revision: 23614

Modified:
   thunar/trunk/ChangeLog
   thunar/trunk/thunar/thunar-window.c
Log:
2006-11-03	Benedikt Meurer <benny at xfce.org>

	* thunar/thunar-window.c(thunar_window_set_current_directory): Place
	  focus on the main view after changing the currently displayed
	  folder. Bug #2367.




Modified: thunar/trunk/ChangeLog
===================================================================
--- thunar/trunk/ChangeLog	2006-11-03 18:27:31 UTC (rev 23613)
+++ thunar/trunk/ChangeLog	2006-11-03 18:39:24 UTC (rev 23614)
@@ -1,5 +1,11 @@
 2006-11-03	Benedikt Meurer <benny at xfce.org>
 
+	* thunar/thunar-window.c(thunar_window_set_current_directory): Place
+	  focus on the main view after changing the currently displayed
+	  folder. Bug #2367.
+
+2006-11-03	Benedikt Meurer <benny at xfce.org>
+
 	* thunar/thunar-icon-renderer.c(thunar_icon_renderer_render): Make sure
 	  emblems don't get too large with SVG icon themes. Bug #2466.
 

Modified: thunar/trunk/thunar/thunar-window.c
===================================================================
--- thunar/trunk/thunar/thunar-window.c	2006-11-03 18:27:31 UTC (rev 23613)
+++ thunar/trunk/thunar/thunar-window.c	2006-11-03 18:39:24 UTC (rev 23614)
@@ -2302,6 +2302,10 @@
     
       /* update window icon and title */
       thunar_window_current_directory_changed (current_directory, window);
+
+      /* grab the focus to the main view */
+      if (G_LIKELY (window->view != NULL))
+        gtk_widget_grab_focus (window->view);
     }
 
   /* enable the 'Open new window' action if we have a valid directory */



More information about the Xfce4-commits mailing list