summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-08-07 14:24:57 +0200
committerraveit65 <[email protected]>2016-08-07 16:53:00 +0200
commit1e8dae5bb6ad57ea71cef146a55c269f168dd010 (patch)
tree906c5cfdaaa7363f2231c36b66ebcd4844a6584c
parent46d29ffcb42fab0f6e3965332cb6992c1760f14c (diff)
downloadmate-utils-1e8dae5bb6ad57ea71cef146a55c269f168dd010.tar.bz2
mate-utils-1e8dae5bb6ad57ea71cef146a55c269f168dd010.tar.xz
GTK+-3 logview-findbar: avoid deprecated gtk_widget_modify_font ()
-rw-r--r--logview/src/logview-findbar.c8
1 files changed, 8 insertions, 0 deletions
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);