[gtk+] widget: Get rid of deprecation warnings
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] widget: Get rid of deprecation warnings
- Date: Tue, 2 Apr 2013 09:48:41 +0000 (UTC)
commit 231520af8f654059f3ef2e41ee32d200592351db
Author: Benjamin Otte <otte redhat com>
Date: Mon Apr 1 15:37:20 2013 +0200
widget: Get rid of deprecation warnings
gtk/gtkwidget.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index e571aec..5cf7d3e 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -7799,8 +7799,10 @@ gtk_widget_set_state (GtkWidget *widget,
{
GtkStateFlags flags;
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
if (state == gtk_widget_get_state (widget))
return;
+ G_GNUC_END_IGNORE_DEPRECATIONS;
switch (state)
{
@@ -11368,7 +11370,9 @@ gtk_widget_propagate_state (GtkWidget *widget,
GtkStateFlags new_flags, old_flags = priv->state_flags;
GtkStateType old_state;
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
old_state = gtk_widget_get_state (widget);
+ G_GNUC_END_IGNORE_DEPRECATIONS;
priv->state_flags |= data->flags_to_set;
priv->state_flags &= ~(data->flags_to_unset);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]