[almanah] UI: Removed deprecated gtk_style_context_get_font
- From: Álvaro Peña <alvaropg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [almanah] UI: Removed deprecated gtk_style_context_get_font
- Date: Tue, 20 Oct 2015 16:15:31 +0000 (UTC)
commit 688847aac0b77fa420fb8693041c5be44991c29a
Author: Álvaro Peña <alvaropg gmail com>
Date: Tue Oct 20 18:15:00 2015 +0200
UI: Removed deprecated gtk_style_context_get_font
src/widgets/tag.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/widgets/tag.c b/src/widgets/tag.c
index 2c0827c..97b2320 100644
--- a/src/widgets/tag.c
+++ b/src/widgets/tag.c
@@ -191,7 +191,7 @@ almanah_tag_ensure_layout (AlmanahTag *self)
self->priv->layout = gtk_widget_create_pango_layout (GTK_WIDGET (self), self->priv->tag);
style_context = gtk_widget_get_style_context (GTK_WIDGET (self));
- font_desc = (PangoFontDescription *) gtk_style_context_get_font (style_context,
GTK_STATE_FLAG_NORMAL);
+ gtk_style_context_get (style_context, GTK_STATE_FLAG_NORMAL, "font", &font_desc, NULL);
pango_font_description_set_size (font_desc, (pango_font_description_get_size (font_desc) *
0.8));
pango_font_description_set_weight (font_desc, PANGO_WEIGHT_BOLD);
pango_layout_set_font_description (self->priv->layout, font_desc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]