New function, callback proc for EnumWindows().
2003-06-30 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkdnd-win32.c (find_window_enum_proc): New function, callback proc for EnumWindows(). (gdk_drag_find_window_for_screen): Actually take the drag_window argument into account: Instead of using WindowFromPoint(), use EnumWindows(), to be able to skip the drag_window. (#116320, Tony M Brown, Herman Bloggs) * gdk/win32/*.c: Replace gdk_drawable_ref()/unref() and gdk_window_ref()/unref() calls with g_object_ref()/unref(). Consistently use %p format in debugging output of pointers and HANDLEs.
This commit is contained in:
committed by
Tor Lillqvist
parent
c921fdf53b
commit
33902a67f0
@ -884,7 +884,7 @@ gdk_window_queue_append (GdkWindow *window,
|
||||
g_print ("%s\n",
|
||||
_gdk_win32_gdkregion_to_string (item->u.antiexpose.area)))));
|
||||
|
||||
gdk_drawable_ref (window);
|
||||
g_object_ref (window);
|
||||
translate_queue = g_slist_append (translate_queue, item) ;
|
||||
}
|
||||
|
||||
@ -975,7 +975,7 @@ _gdk_window_process_expose (GdkWindow *window,
|
||||
GDK_NOTE (EVENTS, g_print ("...item %ld being removed\n", item->serial));
|
||||
|
||||
translate_queue = g_slist_remove_link (translate_queue, translate_queue);
|
||||
gdk_drawable_unref (item->window);
|
||||
g_object_unref (item->window);
|
||||
|
||||
if (item->type == GDK_WINDOW_QUEUE_ANTIEXPOSE)
|
||||
gdk_region_destroy (item->u.antiexpose.area);
|
||||
|
||||
Reference in New Issue
Block a user