[gtk+/gtk-2-24-quartz] win32: Don't use API_CALL for SetWindowLong
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24-quartz] win32: Don't use API_CALL for SetWindowLong
- Date: Wed, 23 Nov 2011 23:00:32 +0000 (UTC)
commit e40934203ba7e33f6908bb16b0919223ce8c0f56
Author: Alexander Larsson <alexl redhat com>
Date: Thu Oct 27 17:16:46 2011 +0200
win32: Don't use API_CALL for SetWindowLong
This can return 0 without it being an error.
Should fix the last issue with bug #142874
gdk/win32/gdkwindow-win32.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index a98fe41..98a14ef 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -3814,9 +3814,9 @@ gdk_window_set_opacity (GdkWindow *window,
exstyle = GetWindowLong (GDK_WINDOW_HWND (window), GWL_EXSTYLE);
if (!(exstyle & WS_EX_LAYERED))
- API_CALL (SetWindowLong, (GDK_WINDOW_HWND (window),
- GWL_EXSTYLE,
- exstyle | WS_EX_LAYERED));
+ SetWindowLong (GDK_WINDOW_HWND (window),
+ GWL_EXSTYLE,
+ exstyle | WS_EX_LAYERED);
setLayeredWindowAttributes =
(PFN_SetLayeredWindowAttributes)GetProcAddress (GetModuleHandle ("user32.dll"), "SetLayeredWindowAttributes");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]