[gnome-online-accounts/gnome-3-10] alarm: The global default main context is always the same
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/gnome-3-10] alarm: The global default main context is always the same
- Date: Tue, 12 Nov 2013 16:18:36 +0000 (UTC)
commit b6b880f39de6c64d63a6df7aec1e8ee5ea3b2828
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Nov 8 18:36:46 2013 +0100
alarm: The global default main context is always the same
Fixes: https://bugzilla.gnome.org/711696
src/goaidentity/goaalarm.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/goaidentity/goaalarm.c b/src/goaidentity/goaalarm.c
index 3fa9523..9c71216 100644
--- a/src/goaidentity/goaalarm.c
+++ b/src/goaidentity/goaalarm.c
@@ -644,8 +644,8 @@ goa_alarm_set_time (GoaAlarm *self, GDateTime *time, GCancellable *cancellable)
self->priv->time = time;
- g_clear_pointer (&self->priv->context, (GDestroyNotify) g_main_context_unref);
- self->priv->context = g_main_context_ref (g_main_context_default ());
+ if (self->priv->context == NULL)
+ self->priv->context = g_main_context_ref (g_main_context_default ());
schedule_wakeups (self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]