[gtk] font button: fix compiler warnings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] font button: fix compiler warnings
- Date: Thu, 5 Apr 2018 10:24:35 +0000 (UTC)
commit dcdd95bbc8bd498261b50f27b0833834ebef4431
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Apr 5 06:22:43 2018 -0400
font button: fix compiler warnings
A PangoLanguage is not a string.
gtk/gtkfontbutton.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c
index 21c244681e..02b848589e 100644
--- a/gtk/gtkfontbutton.c
+++ b/gtk/gtkfontbutton.c
@@ -922,7 +922,7 @@ gtk_font_button_clicked (GtkButton *button,
gtk_font_chooser_set_show_preview_entry (font_dialog, priv->show_preview_entry);
gtk_font_chooser_set_level (GTK_FONT_CHOOSER (font_dialog), priv->level);
- gtk_font_chooser_set_language (GTK_FONT_CHOOSER (font_dialog), priv->language);
+ gtk_font_chooser_set_language (GTK_FONT_CHOOSER (font_dialog), pango_language_to_string
(priv->language));
if (priv->preview_text)
{
@@ -1264,7 +1264,9 @@ gtk_font_button_label_use_font (GtkFontButton *font_button)
if (!priv->use_size)
pango_font_description_unset_fields (desc, PANGO_FONT_MASK_SIZE);
- data = pango_font_description_to_css (desc, priv->font_features, priv->language);
+ data = pango_font_description_to_css (desc,
+ priv->font_features,
+ pango_language_to_string (priv->language));
gtk_css_provider_load_from_data (priv->provider, data, -1);
g_free (data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]