diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-04-26 17:28:23 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-06-09 19:34:55 +0800 |
commit | b6f9f49ea121fa1057a0b7b60a907051e7534d72 (patch) | |
tree | ff1ae5d03b236242d5b90b6df6d0c13cd3cd952b /libempathy-gtk | |
parent | 2815624c23a1a7acc9008926a1c2c513ef884c28 (diff) | |
download | gsoc2013-empathy-b6f9f49ea121fa1057a0b7b60a907051e7534d72.tar gsoc2013-empathy-b6f9f49ea121fa1057a0b7b60a907051e7534d72.tar.gz gsoc2013-empathy-b6f9f49ea121fa1057a0b7b60a907051e7534d72.tar.bz2 gsoc2013-empathy-b6f9f49ea121fa1057a0b7b60a907051e7534d72.tar.lz gsoc2013-empathy-b6f9f49ea121fa1057a0b7b60a907051e7534d72.tar.xz gsoc2013-empathy-b6f9f49ea121fa1057a0b7b60a907051e7534d72.tar.zst gsoc2013-empathy-b6f9f49ea121fa1057a0b7b60a907051e7534d72.zip |
Use a do while instead of a for loop where appropriate
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | 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 70a84180a..367d2f982 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); |