[gnome-calendar/search-improvements] debug: changed warning statements
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/search-improvements] debug: changed warning statements
- Date: Mon, 5 Jan 2015 22:32:47 +0000 (UTC)
commit d0175487aa9a70608ddd3a63307641599be03cd9
Author: Erick PĂ©rez Castellanos <erick red gmail com>
Date: Wed Dec 31 10:09:52 2014 -0500
debug: changed warning statements
src/gcal-manager.c | 2 +-
src/gcal-subscriber-view.c | 14 ++++++++++----
2 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/src/gcal-manager.c b/src/gcal-manager.c
index 56768de..0bb7daf 100644
--- a/src/gcal-manager.c
+++ b/src/gcal-manager.c
@@ -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);
diff --git a/src/gcal-subscriber-view.c b/src/gcal-subscriber-view.c
index c0f6e71..4c96daa 100644
--- a/src/gcal-subscriber-view.c
+++ b/src/gcal-subscriber-view.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]