? deskbar_test
? mozilla-fix-max.patch
? data/art/.cvsignore
? deskbar/evolution/.deps
? deskbar/evolution/.libs
? deskbar/evolution/_evolution.la
? deskbar/gnomedesktop/.deps
? deskbar/gnomedesktop/.libs
? deskbar/gnomedesktop/_gnomedesktop.la
? deskbar/gnomedesktop/_gnomedesktop.lo
? deskbar/gnomedesktop/_gnomedesktopmodule.lo
? deskbar/handlers/tracker.py
? deskbar/handlers/tracker2.py
? deskbar/iconentry/.deps
? deskbar/iconentry/.libs
? deskbar/iconentry/_iconentry.la
? deskbar/iconentry/_iconentry.lo
? deskbar/iconentry/_iconentrymodule.lo
? deskbar/iconentry/ephy-icon-entry.lo
? deskbar/keybinder/.deps
? deskbar/keybinder/.libs
? deskbar/keybinder/_keybinder.la
? deskbar/ui/flatlist
? deskbar/ui/flatlist-0.0.0.0.0.1.tgz
? po/.intltool-merge-cache
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/deskbar-applet/ChangeLog,v
retrieving revision 1.349
diff -u -r1.349 ChangeLog
--- ChangeLog	5 Apr 2006 18:25:41 -0000	1.349
+++ ChangeLog	6 Apr 2006 12:27:18 -0000
@@ -1,3 +1,9 @@
+2006-04-06  Mikkel Kamstrup Erlandsen  <kamstrup@daimi.au.dk>
+
+	* deskbar/ui/cuemiac/Cuemiac.py:
+	* deskbar/ui/entriac/CuemiacEntryUI.py:
+	Fix bug #335367. Activate the bottom hit of the view when the cuem/entr-iac is at a bottom panel.
+
 2006-04-05  Raphael Slinckx  <rslinckx@cvs.gnome.org>
 
 	* deskbar/handlers/beagle-live.py:
Index: deskbar/ui/cuemiac/Cuemiac.py
===================================================================
RCS file: /cvs/gnome/deskbar-applet/deskbar/ui/cuemiac/Cuemiac.py,v
retrieving revision 1.65
diff -u -r1.65 Cuemiac.py
--- deskbar/ui/cuemiac/Cuemiac.py	5 Apr 2006 18:25:47 -0000	1.65
+++ deskbar/ui/cuemiac/Cuemiac.py	6 Apr 2006 12:27:19 -0000
@@ -888,12 +888,18 @@
 			iter = self.model.get_iter (path)
 			
 		if iter is None:
-			# No selection, select top element # FIXME do this
-			iter = self.model.get_iter_first()
-			while (not self.model.iter_has_child(iter)) or (not self.cview.row_expanded(self.model.get_path(iter))):
-				iter = self.model.iter_next(iter)
-			iter = self.model.iter_children(iter)
+			if self.applet.get_orient () in [gnomeapplet.ORIENT_DOWN, gnomeapplet.ORIENT_LEFT, gnomeapplet.ORIENT_RIGHT]:
+				# No selection, select top element # FIXME do this
+				iter = self.model.get_iter_first()
+				while (not self.model.iter_has_child(iter)) or (not self.cview.row_expanded(self.model.get_path(iter))):
+					iter = self.model.iter_next(iter)
+				iter = self.model.iter_children(iter)
 
+			else:
+				# We are on a bottom panel - select the bottom element in the list 
+				#FIXME: Should we iterate backwards up the list if the hit is a category?
+				iter = self.model.get_iter (self.cview.last_visible_path())
+				
 		if iter is None:
 			return
 			
Index: deskbar/ui/entriac/CuemiacEntryUI.py
===================================================================
RCS file: /cvs/gnome/deskbar-applet/deskbar/ui/entriac/CuemiacEntryUI.py,v
retrieving revision 1.11
diff -u -r1.11 CuemiacEntryUI.py
--- deskbar/ui/entriac/CuemiacEntryUI.py	1 Mar 2006 22:36:02 -0000	1.11
+++ deskbar/ui/entriac/CuemiacEntryUI.py	6 Apr 2006 12:27:19 -0000
@@ -346,13 +346,17 @@
 			iter = self.model.get_iter (path)
 			
 		if iter is None:
-			# No selection, select top element # FIXME do this
-			iter = self.model.get_iter_first()
-			if iter == None:
-				return
-			while (not self.model.iter_has_child(iter)) or (not self.cview.row_expanded(self.model.get_path(iter))):
-				iter = self.model.iter_next(iter)
-			iter = self.model.iter_children(iter)
+			if self.applet.get_orient () in [gnomeapplet.ORIENT_DOWN, gnomeapplet.ORIENT_LEFT, gnomeapplet.ORIENT_RIGHT]:
+				# No selection, select top element # FIXME do this
+				iter = self.model.get_iter_first()
+				while (not self.model.iter_has_child(iter)) or (not self.cview.row_expanded(self.model.get_path(iter))):
+					iter = self.model.iter_next(iter)
+				iter = self.model.iter_children(iter)
+
+			else:
+				# We are on a bottom panel - select the bottom element in the list 
+				#FIXME: Should we iterate backwards up the list if the hit is a category?
+				iter = self.model.get_iter (self.cview.last_visible_path())
 
 		if iter is None:
 			return
