[dasher: 115/217] Fix Gtk2 compatibility



commit 7bd8885b8bcd1bdee074452ddcdc44b2f4fe51c6
Author: lbaudoin <lbaudoin google com>
Date:   Sun Nov 8 11:12:50 2015 -0800

    Fix Gtk2 compatibility

 Src/Gtk2/dasher_editor.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/Src/Gtk2/dasher_editor.cpp b/Src/Gtk2/dasher_editor.cpp
index 78aa0ce..f06e373 100644
--- a/Src/Gtk2/dasher_editor.cpp
+++ b/Src/Gtk2/dasher_editor.cpp
@@ -718,7 +718,11 @@ dasher_editor_internal_handle_font(DasherEditor *pSelf, const gchar *szFont) {
     DasherEditorPrivate *pPrivate = DASHER_EDITOR_GET_PRIVATE(pSelf);
 
     PangoFontDescription *pFD = pango_font_description_from_string(szFont);
+#if GTK_CHECK_VERSION(3, 0, 0)
     gtk_widget_override_font(GTK_WIDGET(pPrivate->pTextView), pFD);
+#else
+    gtk_widget_modify_font(GTK_WIDGET(pPrivate->pTextView), pFD);
+#endif
   }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]