debug: changed warning statements

This commit is contained in:
Erick Pérez Castellanos
2015-01-05 10:33:27 -05:00
parent e0b26dd6f7
commit b27402e870
2 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ thread_job_data_free (gpointer ptr)
/* This should go to UI with more info/description,
* if it is not G_IOI_ERROR_CANCELLED */
if (tjd->error != NULL)
g_warning ("Job faile: %s\n", tjd->error->message);
g_warning ("Job failed: %s\n", tjd->error->message);
if (tjd->free_user_data != NULL)
tjd->free_user_data (tjd->user_data);
+10 -4
View File
@@ -385,8 +385,9 @@ gcal_subscriber_view_component_modified (ECalDataModelSubscriber *subscriber,
}
else
{
g_warning ("%s: Widget with uuid: %s not found",
G_STRFUNC, gcal_event_widget_peek_uuid (GCAL_EVENT_WIDGET (new_widget)));
g_warning ("%s: Widget with uuid: %s not found in view: %s",
G_STRFUNC, gcal_event_widget_peek_uuid (GCAL_EVENT_WIDGET (new_widget)),
gtk_widget_get_name (GTK_WIDGET (subscriber)));
gtk_widget_destroy (new_widget);
}
}
@@ -412,9 +413,14 @@ gcal_subscriber_view_component_removed (ECalDataModelSubscriber *subscriber,
l = g_hash_table_lookup (priv->children, uuid);
if (l != NULL)
gtk_widget_destroy (l->data);
{
gtk_widget_destroy (l->data);
}
else
g_warning ("%s: Widget with uuid: %s not found", G_STRFUNC, uuid);
{
g_warning ("%s: Widget with uuid: %s not found in view: %s",
G_STRFUNC, uuid, gtk_widget_get_name (GTK_WIDGET (subscriber)));
}
g_free (uuid);
}