[gnome-calendar] misc: fix styling



commit b502ccd363b6b7c53401efd1b36dcaaa9545b791
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Mon Feb 16 12:53:29 2015 -0500

    misc: fix styling

 src/gcal-manager.c         |    4 ++--
 src/gcal-search-view.c     |    6 ++----
 src/gcal-subscriber-view.c |    4 ++--
 3 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/src/gcal-manager.c b/src/gcal-manager.c
index 75fc70d..f184fab 100644
--- a/src/gcal-manager.c
+++ b/src/gcal-manager.c
@@ -1185,9 +1185,9 @@ gcal_manager_disable_source (GcalManager *manager,
   /* add source's uid from disabled_sources array */
   new_disabled_sources = g_new0 (gchar*, g_strv_length (priv->disabled_sources) + 2);
   for (i = 0; i < g_strv_length (priv->disabled_sources); i++)
-      new_disabled_sources[i] = g_strdup (priv->disabled_sources[i]);
+    new_disabled_sources[i] = g_strdup (priv->disabled_sources[i]);
 
-  new_disabled_sources[g_strv_length (priv->disabled_sources)] = e_source_dup_uid (source);
+  new_disabled_sources[g_strv_length (priv->disabled_sources)] = g_strdup (source_uid);
 
   g_strfreev (priv->disabled_sources);
   priv->disabled_sources = new_disabled_sources;
diff --git a/src/gcal-search-view.c b/src/gcal-search-view.c
index 031e9e4..85b9e1e 100644
--- a/src/gcal-search-view.c
+++ b/src/gcal-search-view.c
@@ -799,10 +799,8 @@ gcal_search_view_search (GcalSearchView *view,
   /* Only perform search on valid non-empty strings */
   if (query && g_utf8_strlen (query, -1) > 0)
     {
-      gchar *search_query;
-
-      search_query = g_strdup_printf ("(contains? \"%s\" \"%s\")", field != NULL? field : "summary",
-                                      query != NULL? query : "");
+      gchar *search_query = g_strdup_printf ("(contains? \"%s\" \"%s\")", field != NULL? field : "summary",
+                                             query != NULL? query : "");
 
       if (!priv->subscribed)
       {
diff --git a/src/gcal-subscriber-view.c b/src/gcal-subscriber-view.c
index 91c6682..937c763 100644
--- a/src/gcal-subscriber-view.c
+++ b/src/gcal-subscriber-view.c
@@ -362,10 +362,10 @@ gcal_subscriber_view_component_added (ECalDataModelSubscriber *subscriber,
   event = gcal_event_widget_new_from_data (data);
   gcal_event_widget_set_read_only (GCAL_EVENT_WIDGET (event), e_client_is_readonly (E_CLIENT (client)));
 
-  g_free (data);
-
   gtk_widget_show (event);
   gtk_container_add (GTK_CONTAINER (subscriber), event);
+
+  g_free (data);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]