Re: GTK+ Windows: how to catch WM_HOTKEY
- From: "Tor Lillqvist" <tml iki fi>
- To: myasar free fr
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GTK+ Windows: how to catch WM_HOTKEY
- Date: Fri, 9 May 2008 11:13:12 +0300
I suppose Windows messages may be eaten by gdk between the reception and the
call of the callback function ?
Yes. Instead of creating a separatw window and a GIOChannel watching
for messages for it you should just register a filter function for the
window using gdk_window_add_filter().
I think g_io_channel_win32_new_messages() can be reliably used only in
non-GTK+ programs, as GDK itself wants messages in general for *any*
window, and indeed eats them. I guess that is a bug in the
documentation, this probably should be pointed out.
--tml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]