quick-lounge-applet r248 - in trunk: . src



Author: paobac
Date: Tue Feb  3 13:59:03 2009
New Revision: 248
URL: http://svn.gnome.org/viewvc/quick-lounge-applet?rev=248&view=rev

Log:
2009-02-03  Paolo Bacchilega  <paobac svn gnome org>

	* src/quick-lounge.c (get_child_position): do not increment pos 
	twice per cycle.


Modified:
   trunk/ChangeLog
   trunk/src/quick-lounge.c

Modified: trunk/src/quick-lounge.c
==============================================================================
--- trunk/src/quick-lounge.c	(original)
+++ trunk/src/quick-lounge.c	Tue Feb  3 13:59:03 2009
@@ -469,15 +469,18 @@
 	children = gtk_container_get_children (GTK_CONTAINER (quick_box));
 	for (pos = 0, scan = children; scan; pos++, scan = scan->next) {
 		GtkWidget *child_widget = scan->data;
+		
+		if (! QUICK_IS_BUTTON (child_widget))
+			continue;
+		
 		if (child_widget == widget) {
 			found = TRUE;
 			break;
 		}
-		pos++;
 	}
 	g_list_free (children);
 
-	if (!found)
+	if (! found)
 		return -1;
 	else
 		return pos;



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