diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index cb73e401d5..366af3d4de 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -6551,6 +6551,8 @@ gtk_widget_update_default_pango_context (GtkWidget *widget) * * When not set, the default font options for the `GdkDisplay` * will be used. + * + * Deprecated: 4.16 */ void gtk_widget_set_font_options (GtkWidget *widget, @@ -6580,8 +6582,9 @@ gtk_widget_set_font_options (GtkWidget *widget, * * Seee [method@Gtk.Widget.set_font_options]. * - * Returns: (transfer none) (nullable): the `cairo_font_options_t` - * of widget + * Returns: (transfer none) (nullable): the `cairo_font_options_t` of widget + * + * Deprecated: 4.16 */ const cairo_font_options_t * gtk_widget_get_font_options (GtkWidget *widget) diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h index 242b075449..5fb0a361e1 100644 --- a/gtk/gtkwidget.h +++ b/gtk/gtkwidget.h @@ -636,10 +636,10 @@ GDK_AVAILABLE_IN_ALL PangoContext *gtk_widget_create_pango_context (GtkWidget *widget); GDK_AVAILABLE_IN_ALL PangoContext *gtk_widget_get_pango_context (GtkWidget *widget); -GDK_AVAILABLE_IN_ALL +GDK_DEPRECATED_IN_4_16 void gtk_widget_set_font_options (GtkWidget *widget, const cairo_font_options_t *options); -GDK_AVAILABLE_IN_ALL +GDK_DEPRECATED_IN_4_16 const cairo_font_options_t *gtk_widget_get_font_options (GtkWidget *widget); GDK_AVAILABLE_IN_ALL PangoLayout *gtk_widget_create_pango_layout (GtkWidget *widget,