gtkwidget: Actually mark set_double_buffered as deprecated

This commit is contained in:
Jasper St. Pierre 2014-06-23 17:36:43 -04:00
parent 24b9e91f47
commit f4c2c4c667
3 changed files with 8 additions and 2 deletions

View File

@ -1647,6 +1647,7 @@ gtk_main_do_event (GdkEvent *event)
break;
case GDK_EXPOSE:
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
if (event->any.window && gtk_widget_get_double_buffered (event_widget))
{
/* We handle exposes only on native windows, relying on the
@ -1662,6 +1663,7 @@ gtk_main_do_event (GdkEvent *event)
}
}
else
G_GNUC_END_IGNORE_DEPRECATIONS
{
gtk_widget_send_expose (event_widget, event);
}

View File

@ -3813,7 +3813,9 @@ gtk_widget_set_property (GObject *object,
gtk_widget_queue_tooltip_query (widget);
break;
case PROP_DOUBLE_BUFFERED:
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_widget_set_double_buffered (widget, g_value_get_boolean (value));
G_GNUC_END_IGNORE_DEPRECATIONS
break;
case PROP_HALIGN:
gtk_widget_set_halign (widget, g_value_get_enum (value));
@ -3977,7 +3979,9 @@ gtk_widget_get_property (GObject *object,
g_value_set_object (value, gtk_widget_get_window (widget));
break;
case PROP_DOUBLE_BUFFERED:
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
g_value_set_boolean (value, gtk_widget_get_double_buffered (widget));
G_GNUC_END_IGNORE_DEPRECATIONS
break;
case PROP_HALIGN:
g_value_set_enum (value, gtk_widget_get_halign (widget));

View File

@ -892,10 +892,10 @@ void gtk_widget_set_app_paintable (GtkWidget *widget,
GDK_AVAILABLE_IN_ALL
gboolean gtk_widget_get_app_paintable (GtkWidget *widget);
GDK_AVAILABLE_IN_ALL
GDK_DEPRECATED_IN_3_14
void gtk_widget_set_double_buffered (GtkWidget *widget,
gboolean double_buffered);
GDK_AVAILABLE_IN_ALL
GDK_DEPRECATED_IN_3_14
gboolean gtk_widget_get_double_buffered (GtkWidget *widget);
GDK_AVAILABLE_IN_ALL