Re: window/dialog focus
- From: Havoc Pennington <hp redhat com>
- To: "Tom Knowles" <tom peters co uk>
- Cc: "GTK-GNOME" <gtk-list gnome org>
- Subject: Re: window/dialog focus
- Date: 14 Mar 2001 15:09:23 -0500
"Tom Knowles" <tom peters co uk> writes:
> I am developing a touch screen EPOS application using gtk. When I raise
> another window/dialog I would like that item to be highlighed. The focus, as
> I call it, remains where the button was pressed and the new item is bordered
> in lowlight until an item is selected on it, by which time it's too late.
> Can I force this situation, so that the new item essentailly 'gets the users
> attention'?
You need a function like this:
void
gdk_window_focus (GdkWindow *window,
guint32 timestamp)
{
g_return_if_fail (GDK_IS_WINDOW (window));
if (GDK_WINDOW_DESTROYED (window))
return;
XSetInputFocus (GDK_DISPLAY (),
GDK_WINDOW_XWINDOW (window),
RevertToNone,
timestamp);
}
Which comes with GTK 2, when that's available.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]