[caribou: 8/23] caribou-module: check the GTK version, not glib



commit 3520624be9f81501a6befafcac57983cfebb885e
Author: Dan Winship <danw gnome org>
Date:   Thu Aug 4 15:49:13 2011 -0400

    caribou-module: check the GTK version, not glib
    
    Checking the glib version causes problems, because we may be compiling
    against a newer version of glib than gtk2 is linked against, causing
    it to not load. So just check the gtk version (just to make sure we
    got the right major version) instead.

 modules/gtk3/caribou-module.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/modules/gtk3/caribou-module.c b/modules/gtk3/caribou-module.c
index ab3382e..ad45752 100644
--- a/modules/gtk3/caribou-module.c
+++ b/modules/gtk3/caribou-module.c
@@ -14,8 +14,6 @@ gtk_module_init (gint *argc, gchar ***argv[]) {
 G_MODULE_EXPORT const gchar*
 g_module_check_init (GModule *module)
 {
-    return glib_check_version (GLIB_MAJOR_VERSION,
-                               GLIB_MINOR_VERSION,
-                               0);
+    return gtk_check_version (GTK_MAJOR_VERSION, 0, 0);
 }
 



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