quick-lounge-applet r249 - trunk/src



Author: paobac
Date: Tue Feb  3 14:00:26 2009
New Revision: 249
URL: http://svn.gnome.org/viewvc/quick-lounge-applet?rev=249&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/src/quick-lounge.c

Modified: trunk/src/quick-lounge.c
==============================================================================
--- trunk/src/quick-lounge.c	(original)
+++ trunk/src/quick-lounge.c	Tue Feb  3 14:00:26 2009
@@ -467,7 +467,7 @@
 	int       pos;
 
 	children = gtk_container_get_children (GTK_CONTAINER (quick_box));
-	for (pos = 0, scan = children; scan; pos++, scan = scan->next) {
+	for (pos = 0, scan = children; scan; scan = scan->next) {
 		GtkWidget *child_widget = scan->data;
 		
 		if (! QUICK_IS_BUTTON (child_widget))
@@ -477,6 +477,8 @@
 			found = TRUE;
 			break;
 		}
+		
+		pos++;
 	}
 	g_list_free (children);
 



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