Commit 67643f6f authored by Hans Breuer's avatar Hans Breuer Committed by Hans Breuer

Implement keynav for the color picker - win32 too. Fixes bug #160437.

2004-12-06  Hans Breuer  <hans@breuer.org>

	* gtk/gtkcolorsel.c (key_press): Implement keynav for the color
	picker - win32 too. Fixes bug #160437.
parent ce02e5ca
2004-12-06 Hans Breuer <hans@breuer.org>
* gtk/gtkcolorsel.c (key_press): Implement keynav for the color
picker - win32 too. Fixes bug #160437.
2004-12-05 Tor Lillqvist <tml@iki.fi>
* demos/gtk-demo/main.c (load_file): Use g_fopen().
......
2004-12-06 Hans Breuer <hans@breuer.org>
* gtk/gtkcolorsel.c (key_press): Implement keynav for the color
picker - win32 too. Fixes bug #160437.
2004-12-05 Tor Lillqvist <tml@iki.fi>
* demos/gtk-demo/main.c (load_file): Use g_fopen().
......
2004-12-06 Hans Breuer <hans@breuer.org>
* gtk/gtkcolorsel.c (key_press): Implement keynav for the color
picker - win32 too. Fixes bug #160437.
2004-12-05 Tor Lillqvist <tml@iki.fi>
* demos/gtk-demo/main.c (load_file): Use g_fopen().
......
2004-12-06 Hans Breuer <hans@breuer.org>
* gtk/gtkcolorsel.c (key_press): Implement keynav for the color
picker - win32 too. Fixes bug #160437.
2004-12-05 Tor Lillqvist <tml@iki.fi>
* demos/gtk-demo/main.c (load_file): Use g_fopen().
......
......@@ -66,6 +66,9 @@
#ifdef GDK_WINDOWING_X11
#include <X11/Xlib.h>
#include "x11/gdkx.h"
#elif defined GDK_WINDOWING_WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
/* Number of elements in the custom palatte */
......@@ -1311,7 +1314,7 @@ key_press (GtkWidget *invisible,
return TRUE;
#ifdef GDK_WINDOWING_X11
#if defined GDK_WINDOWING_X11 || defined GDK_WINDOWING_WIN32
case GDK_Up:
case GDK_KP_Up:
dy = state == GDK_MOD1_MASK ? -BIG_STEP : -1;
......@@ -1340,6 +1343,12 @@ key_press (GtkWidget *invisible,
#ifdef GDK_WINDOWING_X11
XWarpPointer (gdk_x11_display_get_xdisplay (display),
None, None, 0, 0, 0, 0, dx, dy);
#elif defined GDK_WINDOWING_WIN32
{
POINT point;
if (GetCursorPos (&point))
SetCursorPos (point.x + dx, point.y + dy);
}
#endif
return TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment