[gnome-calendar] style: remove unneeded curly brackets
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] style: remove unneeded curly brackets
- Date: Mon, 25 May 2015 17:03:20 +0000 (UTC)
commit d4f6963328d1c2ef0d16c34c30861751ba82ecab
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Sat May 16 18:01:14 2015 -0400
style: remove unneeded curly brackets
src/gcal-source-dialog.c | 14 ++++----------
1 files changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c
index 2edc684..69b430f 100644
--- a/src/gcal-source-dialog.c
+++ b/src/gcal-source-dialog.c
@@ -252,11 +252,9 @@ add_button_clicked (GtkWidget *button,
{
GList *l;
+ // Commit each new remote source
for (l = priv->remote_sources; l != NULL; l = l->next)
- {
- // Commit each new remote source
- gcal_manager_save_source (priv->manager, l->data);
- }
+ gcal_manager_save_source (priv->manager, l->data);
g_list_free (priv->remote_sources);
priv->remote_sources = NULL;
@@ -1488,13 +1486,9 @@ check_activated_cb (GtkWidget *check,
source = g_object_get_data (G_OBJECT (row), "source");
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (check)))
- {
- priv->remote_sources = g_list_append (priv->remote_sources, source);
- }
+ priv->remote_sources = g_list_append (priv->remote_sources, source);
else
- {
- priv->remote_sources = g_list_remove (priv->remote_sources, source);
- }
+ priv->remote_sources = g_list_remove (priv->remote_sources, source);
gtk_widget_set_sensitive (priv->add_button, g_list_length (priv->remote_sources) > 0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]