[gtk+] Clean up some unfortunate formatting
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Clean up some unfortunate formatting
- Date: Sun, 22 Mar 2015 15:48:21 +0000 (UTC)
commit c0c1774b0158ebe299da8bc4a5aec4771ff1f6e5
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Mar 22 11:44:00 2015 -0400
Clean up some unfortunate formatting
"if (...) do" just looks wrong.
gtk/gtkfilechooserbutton.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c
index 810e542..b81e076 100644
--- a/gtk/gtkfilechooserbutton.c
+++ b/gtk/gtkfilechooserbutton.c
@@ -1033,11 +1033,12 @@ gtk_file_chooser_button_destroy (GtkWidget *widget)
priv->dialog = NULL;
}
- if (priv->model && gtk_tree_model_get_iter_first (priv->model, &iter)) do
+ if (priv->model && gtk_tree_model_get_iter_first (priv->model, &iter))
{
- model_free_row_data (button, &iter);
+ do
+ model_free_row_data (button, &iter);
+ while (gtk_tree_model_iter_next (priv->model, &iter));
}
- while (gtk_tree_model_iter_next (priv->model, &iter));
if (priv->dnd_select_folder_cancellable)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]