Re: How to raise / focus a window?



Functions that you should consider (Gtk1.2)

/* raise a window to the top */
gdk_window_raise (window->window);

/* set position and size: this does 2 jobs, 
check also the equivalent 1-job functions 
gdk_window_move and gdk_window_resize */

gdk_window_move_resize (window->window->window,
window->origin_x, window->origin_y, window->width, window->height);

/* this makes dialog to always come on top of window */
gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (window));

Carlos



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