misc: fix styling
This commit is contained in:
+1
-1
@@ -1187,7 +1187,7 @@ gcal_manager_disable_source (GcalManager *manager,
|
|||||||
for (i = 0; i < g_strv_length (priv->disabled_sources); i++)
|
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);
|
g_strfreev (priv->disabled_sources);
|
||||||
priv->disabled_sources = new_disabled_sources;
|
priv->disabled_sources = new_disabled_sources;
|
||||||
|
|||||||
@@ -799,9 +799,7 @@ gcal_search_view_search (GcalSearchView *view,
|
|||||||
/* Only perform search on valid non-empty strings */
|
/* Only perform search on valid non-empty strings */
|
||||||
if (query && g_utf8_strlen (query, -1) > 0)
|
if (query && g_utf8_strlen (query, -1) > 0)
|
||||||
{
|
{
|
||||||
gchar *search_query;
|
gchar *search_query = g_strdup_printf ("(contains? \"%s\" \"%s\")", field != NULL? field : "summary",
|
||||||
|
|
||||||
search_query = g_strdup_printf ("(contains? \"%s\" \"%s\")", field != NULL? field : "summary",
|
|
||||||
query != NULL? query : "");
|
query != NULL? query : "");
|
||||||
|
|
||||||
if (!priv->subscribed)
|
if (!priv->subscribed)
|
||||||
|
|||||||
@@ -362,10 +362,10 @@ gcal_subscriber_view_component_added (ECalDataModelSubscriber *subscriber,
|
|||||||
event = gcal_event_widget_new_from_data (data);
|
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)));
|
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_widget_show (event);
|
||||||
gtk_container_add (GTK_CONTAINER (subscriber), event);
|
gtk_container_add (GTK_CONTAINER (subscriber), event);
|
||||||
|
|
||||||
|
g_free (data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user