From 1f264ddb4be91166d91839d56c75706a20a34b52 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 15 Jul 2011 11:07:38 -0400 Subject: [PATCH] Don't use deprecated style api gtk_widget_modify_font() has been superseded by gtk_widget_override_font(), so use that in GtkMessageDialog. --- gtk/gtkmessagedialog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkmessagedialog.c b/gtk/gtkmessagedialog.c index 1189a8b041..673319adf5 100644 --- a/gtk/gtkmessagedialog.c +++ b/gtk/gtkmessagedialog.c @@ -391,7 +391,7 @@ setup_primary_label_font (GtkMessageDialog *dialog) GtkStateFlags state; /* unset the font settings */ - gtk_widget_modify_font (priv->label, NULL); + gtk_widget_override_font (priv->label, NULL); if (priv->has_secondary_text && !priv->has_primary_markup) { @@ -402,7 +402,7 @@ setup_primary_label_font (GtkMessageDialog *dialog) font_desc = pango_font_description_new (); pango_font_description_set_weight (font_desc, PANGO_WEIGHT_BOLD); pango_font_description_set_size (font_desc, size * PANGO_SCALE_LARGE); - gtk_widget_modify_font (priv->label, font_desc); + gtk_widget_override_font (priv->label, font_desc); pango_font_description_free (font_desc); } }