Author: rpmcruz Date: Wed Mar 26 11:42:40 2008 New Revision: 45739 URL: http://svn.opensuse.org/viewcvs/yast?rev=45739&view=rev Log: Condensed a couple of lines. Modified: trunk/gtk/src/YGPackageSelector.cc Modified: trunk/gtk/src/YGPackageSelector.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGPackageSelector.cc?rev=45739&r1=45738&r2=45739&view=diff ============================================================================== --- trunk/gtk/src/YGPackageSelector.cc (original) +++ trunk/gtk/src/YGPackageSelector.cc Wed Mar 26 11:42:40 2008 @@ -371,8 +371,7 @@ GList *paths = pThis->getSelectedPaths (NULL); if (paths && !paths->next /* single selection */) pThis->ensureVisible ((GtkTreePath *) paths->data); - for (GList *i = paths; i; i = i->next) - gtk_tree_path_free ((GtkTreePath *) i->data); + g_list_foreach (paths, (GFunc) gtk_tree_path_free, 0); g_list_free (paths); } }; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org