changing focus between windows



Hello gtk-list.

Given the following code, is there a function which changes focus between the two windows?

>    init_toolkit (&argc, &argv); /*gtk_init ()*/
>
>    window_1 = create_window("no 1", 120, 120);
>    window_2 = create_window("no 2", 60, 60);
>
>    /*Is there a function that forces the focus to "no 1" instead of "no 2" when this test opens?*/
>
>    event_loop (); /*gtk_main()*/

Best wishes, Frederik Jensen.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]