[gtk+] gtkwidget: Fix up some deprecation warnings
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkwidget: Fix up some deprecation warnings
- Date: Sun, 17 Nov 2013 23:51:04 +0000 (UTC)
commit 1941f3ff176c7cb58bc9680e1de05e6ab6098727
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Nov 17 18:47:51 2013 -0500
gtkwidget: Fix up some deprecation warnings
gtk/gtkwidget.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index c984db0..3d54f98 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -3764,10 +3764,14 @@ gtk_widget_set_property (GObject *object,
gtk_widget_set_valign (widget, g_value_get_enum (value));
break;
case PROP_MARGIN_LEFT:
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
gtk_widget_set_margin_left (widget, g_value_get_int (value));
+ G_GNUC_END_IGNORE_DEPRECATIONS;
break;
case PROP_MARGIN_RIGHT:
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
gtk_widget_set_margin_right (widget, g_value_get_int (value));
+ G_GNUC_END_IGNORE_DEPRECATIONS;
break;
case PROP_MARGIN_START:
gtk_widget_set_margin_start (widget, g_value_get_int (value));
@@ -3924,10 +3928,14 @@ gtk_widget_get_property (GObject *object,
g_value_set_enum (value, gtk_widget_get_valign (widget));
break;
case PROP_MARGIN_LEFT:
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
g_value_set_int (value, gtk_widget_get_margin_left (widget));
+ G_GNUC_END_IGNORE_DEPRECATIONS;
break;
case PROP_MARGIN_RIGHT:
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
g_value_set_int (value, gtk_widget_get_margin_right (widget));
+ G_GNUC_END_IGNORE_DEPRECATIONS;
break;
case PROP_MARGIN_TOP:
g_value_set_int (value, gtk_widget_get_margin_top (widget));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]