misc: fix styling
This commit is contained in:
+2
-2
@@ -1185,9 +1185,9 @@ gcal_manager_disable_source (GcalManager *manager,
|
|||||||
/* add source's uid from disabled_sources array */
|
/* add source's uid from disabled_sources array */
|
||||||
new_disabled_sources = g_new0 (gchar*, g_strv_length (priv->disabled_sources) + 2);
|
new_disabled_sources = g_new0 (gchar*, g_strv_length (priv->disabled_sources) + 2);
|
||||||
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,10 +799,8 @@ 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",
|
||||||
|
query != NULL? query : "");
|
||||||
search_query = g_strdup_printf ("(contains? \"%s\" \"%s\")", field != NULL? field : "summary",
|
|
||||||
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