diff options
Diffstat (limited to 'features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c')
-rw-r--r-- | features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c b/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c index 51ed70a9f..996c9ef75 100644 --- a/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c +++ b/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c @@ -34,6 +34,7 @@ static FN_TABLE gtkFunctions[] = { FN_TABLE_ENTRY(gtk_window_resize, 1), FN_TABLE_ENTRY(gtk_window_set_title, 1), FN_TABLE_ENTRY(gtk_window_set_decorated, 1), + FN_TABLE_ENTRY(gtk_window_set_type_hint, 1), FN_TABLE_ENTRY(gtk_window_set_position, 1), { NULL, NULL } }; @@ -100,8 +101,9 @@ int loadGtk() { #endif void *gdkLib = NULL, *gtkLib = NULL, *objLib = NULL, *pixLib = NULL, *x11Lib = NULL; - - if (getenv("SWT_GTK3")) { + + char *gtk3 = getenv("SWT_GTK3"); + if (gtk3 == NULL || strcmp(gtk3,"1") == 0) { gdkLib = dlopen(GDK3_LIB, DLFLAGS); gtkLib = dlopen(GTK3_LIB, DLFLAGS); } |