updated exports

2001-01-06  Hans Breuer  <hans@breuer.org>

	* gdk/gdk.def : updated exports

	* gdk/win32/makefile.msc : -DGDK_ENABLE_BROKEN otherwise
	gdk won't compile anymore

	* gdk/win32/gdkevents-win32.c : initialize ret_val when
	processing GDK_FILTER functions, initialize event.key->hardware_keycode.
	Improved gdk_flush () to not only do pending drawing operations
	but also process all currently pending events. This should make
	the behaviour more similar to the X11 version.

	* gdk/win32/gdkgc-win32.c (predraw_set_background) : a background
	option needs to be set even if there is no GDK_GC_BACKGROUND.
	(gdk_win32_hdc_get) : use predraw_set_background () independent
	of value_mask. This allows to draw dashed lines leaving the original
	background intact.

	* gdk/win32/gdkimage-win32.c (gdk_image_new_bitamp) : free data
	after processing, because we can't reuse it as the X11 version does.

	* gtk/gtk.def : updated exports

	* gtk/makefile.msc.in : added ATK, removed all test apps. (I
	would like to get rid of this file again, and use straight
	makefile.msc again, as the other Gtk+ subdirs do)

	* test/makefile.msc (new file) : build the test apps here
This commit is contained in:
Hans Breuer
2001-05-06 14:02:45 +00:00
committed by Hans Breuer
parent bd7502f9ce
commit 1fa43ed5b4
12 changed files with 247 additions and 6 deletions

View File

@ -1623,6 +1623,8 @@ gdk_event_translate (GdkEvent *event,
if (result != GDK_FILTER_CONTINUE)
{
return_val = (result == GDK_FILTER_TRANSLATE) ? TRUE : FALSE;
*ret_val_flagp = TRUE;
*ret_valp = return_val;
goto done;
}
}
@ -1748,6 +1750,8 @@ gdk_event_translate (GdkEvent *event,
switch (result)
{
case GDK_FILTER_REMOVE:
*ret_val_flagp = TRUE;
*ret_valp = 0;
return_val = FALSE;
break;
@ -1756,6 +1760,8 @@ gdk_event_translate (GdkEvent *event,
break;
case GDK_FILTER_CONTINUE:
*ret_val_flagp = TRUE;
*ret_valp = 1;
return_val = TRUE;
event->client.type = GDK_CLIENT_EVENT;
event->client.window = window;
@ -1828,6 +1834,8 @@ gdk_event_translate (GdkEvent *event,
keyup_or_down:
event->key.window = window;
event->key.hardware_keycode = msg->wParam;
switch (msg->wParam)
{
case VK_LBUTTON:
@ -3130,6 +3138,14 @@ gdk_event_send_clientmessage_toall (GdkEvent *event)
void
gdk_flush (void)
{
MSG msg;
/* Process all messages currently available */
while (PeekMessage (&msg, NULL, 0, 0, PM_REMOVE))
{
TranslateMessage (&msg); /* Translate virt. key codes */
DispatchMessage (&msg); /* Dispatch msg. to window */
}
GdiFlush ();
}