"Tom Knowles" <[EMAIL PROTECTED]> 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
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list