rhythmbox r5548 - in trunk: . rhythmdb



Author: jmatthew
Date: Fri Jan 18 23:37:37 2008
New Revision: 5548
URL: http://svn.gnome.org/viewvc/rhythmbox?rev=5548&view=rev

Log:
2008-01-19  Jonathan Matthew  <jonathan d14n org>

	patch by:  Li Yuan  <li yuan sun com>

	* rhythmdb/rhythmdb-property-model.c:
	(rhythmdb_property_model_iter_nth_child):
	Adjust the index to account for the 'all' property at position 0.
	Fixes property view accessibility (nothing else uses _nth_child),
	#444793.


Modified:
   trunk/ChangeLog
   trunk/rhythmdb/rhythmdb-property-model.c

Modified: trunk/rhythmdb/rhythmdb-property-model.c
==============================================================================
--- trunk/rhythmdb/rhythmdb-property-model.c	(original)
+++ trunk/rhythmdb/rhythmdb-property-model.c	Fri Jan 18 23:37:37 2008
@@ -910,7 +910,8 @@
 		return FALSE;
 
 	if (n != 0) {
-		child = g_sequence_get_iter_at_pos (model->priv->properties, n);
+		/* -1 to account for the 'all' property at position 0 */
+		child = g_sequence_get_iter_at_pos (model->priv->properties, n-1);
 
 		if (g_sequence_iter_is_end (child))
 			return FALSE;



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