[gnome-utils] make gdict compile against latest gtk+
- From: Saleem Abdulrasool <asaleem src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-utils] make gdict compile against latest gtk+
- Date: Tue, 21 Dec 2010 02:51:02 +0000 (UTC)
commit b7c59f65a593d87b8e366fab77645d810b860427
Author: Saleem Abdulrasool <compnerd compnerd org>
Date: Sun Dec 19 16:07:17 2010 -0800
make gdict compile against latest gtk+
gnome-dictionary/libgdict/gdict-defbox.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gnome-dictionary/libgdict/gdict-defbox.c b/gnome-dictionary/libgdict/gdict-defbox.c
index 80415f4..5d2f6a0 100644
--- a/gnome-dictionary/libgdict/gdict-defbox.c
+++ b/gnome-dictionary/libgdict/gdict-defbox.c
@@ -2853,7 +2853,11 @@ gdict_defbox_set_font_name (GdictDefbox *defbox,
else
font_desc = NULL;
+#if GTK_CHECK_VERSION (2, 91, 6)
+ gtk_widget_override_font (priv->text_view, font_desc);
+#else
gtk_widget_modify_font (priv->text_view, font_desc);
+#endif
if (font_desc)
pango_font_description_free (font_desc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]