Focus problem
- From: Perriman <chuchiperriman gmail com>
- To: Gtk app list <gtk-app-devel-list gnome org>, gedit-list <gedit-list gnome org>
- Subject: Focus problem
- Date: Sat, 29 Nov 2008 18:04:18 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]