[gnome-calendar/ui-rewrite] week-view: fix unref of not added widget
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/ui-rewrite] week-view: fix unref of not added widget
- Date: Wed, 22 Oct 2014 13:25:32 +0000 (UTC)
commit e27620310f7b2871b1e03e98ec0bbdf86213db10
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Wed Oct 22 01:06:08 2014 -0400
week-view: fix unref of not added widget
This works in conjunction with code implemented in GcalSubscriber where
the ownership of the event widget passes into the container, so the
container is free to delete it in case it does not fit into the range
represented by the view.
src/gcal-week-view.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-week-view.c b/src/gcal-week-view.c
index 77b8362..6c37e00 100644
--- a/src/gcal-week-view.c
+++ b/src/gcal-week-view.c
@@ -888,7 +888,8 @@ gcal_week_view_add (GtkContainer *container,
{
//TODO: remove once the main-dev phase its over
g_warning ("Trying to add an event with the same uuid to the view");
- g_object_unref (widget); /* FIXME: check if this destroy it */
+ g_free (date);
+ gtk_widget_destroy (widget);
return;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]