From e907201780d40a19fc69624260160d64d9df687f Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 12 Nov 2015 00:07:18 +0100 Subject: [PATCH] Avoid a warning with Gtk+ 3 --- src/plugins/mailing-lists.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/mailing-lists.c b/src/plugins/mailing-lists.c index b81cb61..8537f1b 100644 --- a/src/plugins/mailing-lists.c +++ b/src/plugins/mailing-lists.c @@ -80,7 +80,11 @@ static MailerPlugin * _ml_init(MailerPluginHelper * helper) pango_font_description_set_weight(bold, PANGO_WEIGHT_BOLD); ml->vbox = gtk_vbox_new(FALSE, 4); ml->folder = gtk_label_new(""); +#if GTK_CHECK_VERSION(3, 0, 0) + gtk_widget_override_font(ml->folder, bold); +#else gtk_widget_modify_font(ml->folder, bold); +#endif #if GTK_CHECK_VERSION(3, 14, 0) g_object_set(ml->folder, "halign", GTK_ALIGN_START, NULL); #else