[empathy: 33/80] Use a do while instead of a for loop where appropriate
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 33/80] Use a do while instead of a for loop where appropriate
- Date: Fri, 10 Jun 2011 08:41:56 +0000 (UTC)
commit b6f9f49ea121fa1057a0b7b60a907051e7534d72
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Tue Apr 26 10:28:23 2011 +0100
Use a do while instead of a for loop where appropriate
libempathy-gtk/empathy-log-window.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index 70a8418..367d2f9 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -1820,7 +1820,6 @@ log_window_chats_set_selected (EmpathyLogWindow *window)
GtkTreeSelection *selection;
GtkTreeIter iter;
GtkTreePath *path;
- gboolean ok;
view = GTK_TREE_VIEW (window->treeview_who);
model = gtk_tree_view_get_model (view);
@@ -1829,7 +1828,7 @@ log_window_chats_set_selected (EmpathyLogWindow *window)
if (!gtk_tree_model_get_iter_first (model, &iter))
return;
- for (ok = TRUE; ok; ok = gtk_tree_model_iter_next (model, &iter))
+ do
{
TpAccount *this_account;
TplEntity *this_target;
@@ -1861,6 +1860,7 @@ log_window_chats_set_selected (EmpathyLogWindow *window)
g_object_unref (this_account);
g_object_unref (this_target);
}
+ while (gtk_tree_model_iter_next (model, &iter));
tp_clear_object (&window->selected_account);
tp_clear_pointer (&window->selected_chat_id, g_free);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]