[gtk+] modules: Add a check for GTK3 symbols



commit 84918c7e6f31339eccd3b27587ecfbd01a85f431
Author: Benjamin Otte <otte redhat com>
Date:   Sun Nov 20 11:44:19 2016 +0100

    modules: Add a check for GTK3 symbols
    
    This way, we can warn if GTK2 or GTK3 are linked into libgtk4.

 gtk/gtkmodules.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmodules.c b/gtk/gtkmodules.c
index 93f52c4..e05ffd3 100644
--- a/gtk/gtkmodules.c
+++ b/gtk/gtkmodules.c
@@ -593,6 +593,8 @@ _gtk_module_has_mixed_deps (GModule *module_to_check)
 
   if (g_module_symbol (module, "gtk_progress_get_type", &func))
     result = TRUE;
+  else if (g_module_symbol (module, "gtk_misc_get_type", &func))
+    result = TRUE;
   else
     result = FALSE;
 


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