[maemo-commits] [maemo-commits] r13932 - in projects/haf/branches/hildon-control-panel/refactoring: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Sep 20 14:13:30 EEST 2007
Author: lucasr
Date: 2007-09-20 14:13:28 +0300 (Thu, 20 Sep 2007)
New Revision: 13932

Modified:
   projects/haf/branches/hildon-control-panel/refactoring/ChangeLog
   projects/haf/branches/hildon-control-panel/refactoring/src/hcp-grid.c
Log:
2007-09-20  Lucas Rocha  <lucas.rocha at nokia.com>

	* src/hcp-grid.c (hcp_grid_button_pressed): don't move focus from one
	grid to another if there's no selectable item under the pointer.
	Fixes: NB#70345.


Modified: projects/haf/branches/hildon-control-panel/refactoring/ChangeLog
===================================================================
--- projects/haf/branches/hildon-control-panel/refactoring/ChangeLog	2007-09-20 11:07:37 UTC (rev 13931)
+++ projects/haf/branches/hildon-control-panel/refactoring/ChangeLog	2007-09-20 11:13:28 UTC (rev 13932)
@@ -1,3 +1,9 @@
+2007-09-20  Lucas Rocha  <lucas.rocha at nokia.com>
+
+	* src/hcp-grid.c (hcp_grid_button_pressed): don't move focus from one
+	grid to another if there's no selectable item under the pointer.
+	Fixes: NB#70345.
+
 2007-09-11  Lucas Rocha  <lucas.rocha at nokia.com>
 
 	* configure.ac: release 1.9.7

Modified: projects/haf/branches/hildon-control-panel/refactoring/src/hcp-grid.c
===================================================================
--- projects/haf/branches/hildon-control-panel/refactoring/src/hcp-grid.c	2007-09-20 11:07:37 UTC (rev 13931)
+++ projects/haf/branches/hildon-control-panel/refactoring/src/hcp-grid.c	2007-09-20 11:13:28 UTC (rev 13932)
@@ -152,8 +152,6 @@
  
   if (event->button == 1 && event->type == GDK_BUTTON_PRESS)
   {
-    gtk_widget_grab_focus (widget);
-
     selected_path = hcp_grid_get_selected_item (HCP_GRID (widget));
 
     clicked_path = gtk_icon_view_get_path_at_pos (GTK_ICON_VIEW (widget), 
@@ -171,6 +169,7 @@
 
     if (clicked_path != NULL) 
     {
+      gtk_widget_grab_focus (widget);
       gtk_icon_view_select_path (GTK_ICON_VIEW (widget), clicked_path);
     } 
 


More information about the maemo-commits mailing list