diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-10-30 21:14:15 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-10-30 21:14:15 +0100 |
| commit | 031a7a8414eb05c7e9f218afe37da0ba0041102b (patch) | |
| tree | df76509779fe3d883f2a6928c41a173be0482503 | |
| parent | 527327b8e454caa6bd2c0b2947ea8c0563883ba1 (diff) | |
| parent | 1f9d027bb617d151cd8ebc7f3bb42c0715e8b4ab (diff) | |
Merge remote-tracking branch 'refs/remotes/origin/master'
| -rw-r--r-- | src/drivers/X11/Fl_X11_System_Driver.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/drivers/X11/Fl_X11_System_Driver.cxx b/src/drivers/X11/Fl_X11_System_Driver.cxx index 412d64667..89902b463 100644 --- a/src/drivers/X11/Fl_X11_System_Driver.cxx +++ b/src/drivers/X11/Fl_X11_System_Driver.cxx @@ -529,7 +529,7 @@ bool Fl_X11_System_Driver::probe_for_GTK(int major, int minor, void **ptr_gtk) { *ptr_gtk = RTLD_DEFAULT; // Caution: NULL under linux, not-NULL under Darwin } else { // Try first with GTK3 - *ptr_gtk = Fl::system_driver()->dlopen("libgtk3.0.so"); + *ptr_gtk = Fl::system_driver()->dlopen("libgtk-3.so"); if (*ptr_gtk) { #ifdef DEBUG puts("selected GTK-3\n"); @@ -537,12 +537,13 @@ bool Fl_X11_System_Driver::probe_for_GTK(int major, int minor, void **ptr_gtk) { } else { // Try then with GTK2 *ptr_gtk = Fl::system_driver()->dlopen("libgtk-x11-2.0.so"); - } - if (*ptr_gtk) { #ifdef DEBUG - puts("selected GTK-2\n"); + if (*ptr_gtk) { + puts("selected GTK-2\n"); + } #endif - } else { + } + if (!(*ptr_gtk)) { #ifdef DEBUG puts("Failure to load libgtk"); #endif |
