From 1e8dae5bb6ad57ea71cef146a55c269f168dd010 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sun, 7 Aug 2016 14:24:57 +0200 Subject: GTK+-3 logview-findbar: avoid deprecated gtk_widget_modify_font () --- logview/src/logview-findbar.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'logview/src') diff --git a/logview/src/logview-findbar.c b/logview/src/logview-findbar.c index 71c2ada8..72cf9ebd 100644 --- a/logview/src/logview-findbar.c +++ b/logview/src/logview-findbar.c @@ -139,7 +139,11 @@ unbold_timeout_cb (gpointer user_data) PangoFontDescription *desc; desc = pango_font_description_new (); +#if GTK_CHECK_VERSION(3,0,0) + gtk_widget_override_font (findbar->priv->message, desc); +#else gtk_widget_modify_font (findbar->priv->message, desc); +#endif pango_font_description_free (desc); findbar->priv->status_bold_id = 0; @@ -343,7 +347,11 @@ logview_findbar_set_message (LogviewFindbar *findbar, if (text) { desc = pango_font_description_new (); pango_font_description_set_weight (desc, PANGO_WEIGHT_BOLD); +#if GTK_CHECK_VERSION(3,0,0) + gtk_widget_override_font (findbar->priv->message, desc); +#else gtk_widget_modify_font (findbar->priv->message, desc); +#endif pango_font_description_free (desc); findbar->priv->status_bold_id = g_timeout_add (600, unbold_timeout_cb, findbar); -- cgit v1.2.1