entry: Warn about deprecated buildable features

Pango attributes are a property.
This commit is contained in:
Matthias Clasen 2025-01-04 11:29:33 -05:00
parent 1519810883
commit f65141df1a

View File

@ -57,6 +57,7 @@
#include "gtkdragsourceprivate.h"
#include "gtkdragicon.h"
#include "gtkwidgetpaintable.h"
#include "gtkbuilderprivate.h"
#include <cairo-gobject.h>
#include <string.h>
@ -363,6 +364,8 @@ gtk_entry_buildable_custom_tag_start (GtkBuildable *buildable,
{
GtkPangoAttributeParserData *parser_data;
gtk_buildable_tag_deprecation_warning (buildable, builder, "attributes", "attributes");
parser_data = g_new0 (GtkPangoAttributeParserData, 1);
parser_data->builder = g_object_ref (builder);
parser_data->object = (GObject *) g_object_ref (buildable);