Hi all,
I have a problem with the window focus. I have a main window
and a second window. I want to show the second window always on top but
set the focus in the main window. I'm setted this in the second window:
gtk_window_set_transient_for(GTK_WINDOW(popup),GTK_WINDOW(window));
gtk_window_set_focus_on_map(GTK_WINDOW(popup), FALSE);
But when I show the second window, the focus is losed. The main window
has not the focus and the second window neither.
If I try to set the focus on the main window with
gtk_window_present(GTK_WINDOW(window));
gtk_window_activate_focus(GTK_WINDOW(window));
gtk_widget_grab_focus(GTK_WIDGET(view));
Only works the first time I show the second window.
I think it's a gtk bug or a window manager bug...
Can you help me?? (I attach the example)
I'm using ubuntu 8.10 with gnome.
Regards,
Perriman
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list