Mercurial > projects > dwt-linux
comparison dwt/program/Program.d @ 351:f1bb3949939b
Update to SWT 3.4.1
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 03 Nov 2008 23:35:30 +0100 |
parents | 602a4fd8538f |
children | 8ebacc5c07dc |
comparison
equal
deleted
inserted
replaced
350:373b48b9eaf0 | 351:f1bb3949939b |
---|---|
244 * our native library that depends on gnome-vfs. | 244 * our native library that depends on gnome-vfs. |
245 */ | 245 */ |
246 if (desktop is DESKTOP_UNKNOWN) { | 246 if (desktop is DESKTOP_UNKNOWN) { |
247 String gnomeName = "_NET_SUPPORTING_WM_CHECK"; | 247 String gnomeName = "_NET_SUPPORTING_WM_CHECK"; |
248 int /*long*/ gnome = OS.XInternAtom(xDisplay, gnomeName.ptr, true); | 248 int /*long*/ gnome = OS.XInternAtom(xDisplay, gnomeName.ptr, true); |
249 if (gnome !is OS.None && gnome_init()) { | 249 if (gnome !is OS.None && (OS.GTK_VERSION >= OS.buildVERSION (2, 2, 0)) && gnome_init()) { |
250 desktop = DESKTOP_GNOME; | 250 desktop = DESKTOP_GNOME; |
251 int icon_theme = cast(int)GNOME.gnome_icon_theme_new(); | 251 int icon_theme = cast(int)GNOME.gnome_icon_theme_new(); |
252 display.setData(ICON_THEME_DATA, new ValueWrapperInt(icon_theme)); | 252 display.setData(ICON_THEME_DATA, new ValueWrapperInt(icon_theme)); |
253 display.addListener(DWT.Dispose, new class(display) Listener { | 253 display.addListener(DWT.Dispose, new class(display) Listener { |
254 Display display; | 254 Display display; |