[pygobject] Ignore deprecation warning for g_option_group_free()
- From: Simon Feltman <sfeltman src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Ignore deprecation warning for g_option_group_free()
- Date: Sat, 21 Feb 2015 05:59:40 +0000 (UTC)
commit 5dc113283c0a721c4027026bb8de7243585f1289
Author: Simon Feltman <sfeltman src gnome org>
Date: Fri Feb 20 21:59:10 2015 -0800
Ignore deprecation warning for g_option_group_free()
gi/pygoptiongroup.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gi/pygoptiongroup.c b/gi/pygoptiongroup.c
index 4c1664d..3248b18 100644
--- a/gi/pygoptiongroup.c
+++ b/gi/pygoptiongroup.c
@@ -118,8 +118,11 @@ pyg_option_group_dealloc(PyGOptionGroup *self)
{
GOptionGroup *tmp = self->group;
self->group = NULL;
- if (tmp)
+ if (tmp) {
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
g_option_group_free(tmp);
+ G_GNUC_END_IGNORE_DEPRECATIONS
+ }
}
PyObject_Del(self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]