[gtk+/font-chooser] Don't use deprecated style api
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/font-chooser] Don't use deprecated style api
- Date: Wed, 20 Jul 2011 20:17:02 +0000 (UTC)
commit 93578fbdf85724cbfd097305e72a5ce1d5cc413d
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jul 15 11:07:38 2011 -0400
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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkmessagedialog.c b/gtk/gtkmessagedialog.c
index 1189a8b..673319a 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]