[gtk+] win32: Fix some warnings
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] win32: Fix some warnings
- Date: Thu, 10 Nov 2011 16:50:09 +0000 (UTC)
commit 52be8cb9e99cefa07f57fd4f51047bb3573689d4
Author: Alexander Larsson <alexl redhat com>
Date: Wed Nov 2 16:49:55 2011 +0100
win32: Fix some warnings
gdk/win32/gdkdisplay-win32.c | 3 +++
gdk/win32/gdkevents-win32.c | 2 --
gdk/win32/gdkprivate-win32.h | 2 +-
gdk/win32/gdkselection-win32.c | 2 +-
gdk/win32/gdkwindow-win32.c | 3 ++-
5 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/gdk/win32/gdkdisplay-win32.c b/gdk/win32/gdkdisplay-win32.c
index 31cfcad..fe7079c 100644
--- a/gdk/win32/gdkdisplay-win32.c
+++ b/gdk/win32/gdkdisplay-win32.c
@@ -25,6 +25,7 @@
#include "gdkwin32display.h"
#include "gdkwin32screen.h"
#include "gdkwin32window.h"
+#include "gdkwin32.h"
#define HAVE_MONITOR_INFO
@@ -383,7 +384,9 @@ inner_clipboard_window_procedure (HWND hwnd,
{
int success;
HWND hwndOwner;
+#ifdef G_ENABLE_DEBUG
UINT nFormat = 0;
+#endif
GdkEvent *event;
GdkWindow *owner;
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c
index b3932a1..2627e79 100644
--- a/gdk/win32/gdkevents-win32.c
+++ b/gdk/win32/gdkevents-win32.c
@@ -2613,8 +2613,6 @@ gdk_event_translate (MSG *msg,
case WM_MOUSEACTIVATE:
{
- GdkWindow *tmp;
-
if (gdk_window_get_window_type (window) == GDK_WINDOW_TEMP
|| !window->accept_focus)
{
diff --git a/gdk/win32/gdkprivate-win32.h b/gdk/win32/gdkprivate-win32.h
index 7456de2..c039c9e 100644
--- a/gdk/win32/gdkprivate-win32.h
+++ b/gdk/win32/gdkprivate-win32.h
@@ -404,7 +404,7 @@ gboolean _gdk_win32_display_set_selection_owner (GdkDisplay *display,
guint32 time,
gboolean send_event);
void _gdk_win32_display_send_selection_notify (GdkDisplay *display,
- HWND requestor,
+ GdkWindow *requestor,
GdkAtom selection,
GdkAtom target,
GdkAtom property,
diff --git a/gdk/win32/gdkselection-win32.c b/gdk/win32/gdkselection-win32.c
index af38356..ebfbc2b 100644
--- a/gdk/win32/gdkselection-win32.c
+++ b/gdk/win32/gdkselection-win32.c
@@ -874,7 +874,7 @@ _gdk_selection_property_delete (GdkWindow *window)
void
_gdk_win32_display_send_selection_notify (GdkDisplay *display,
- HWND requestor,
+ GdkWindow *requestor,
GdkAtom selection,
GdkAtom target,
GdkAtom property,
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index 4985103..3c3cf6e 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -870,7 +870,9 @@ adjust_for_gravity_hints (GdkWindow *window,
if (impl->hint_flags & GDK_HINT_WIN_GRAVITY)
{
+#ifdef G_ENABLE_DEBUG
gint orig_x = *x, orig_y = *y;
+#endif
switch (impl->hints.win_gravity)
{
@@ -933,7 +935,6 @@ show_window_internal (GdkWindow *window,
gboolean deiconify)
{
GdkWindowImplWin32 *window_impl;
- HWND old_active_window;
gboolean focus_on_map = FALSE;
DWORD exstyle;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]