Re: window on top of parent window



Here is a piece of code used in bluefish to implement an autocompletion
window. It works fine.


        autocompletwindow = gtk_window_new(GTK_WINDOW_TOPLEVEL);

        /* Remove title bar */
        gtk_widget_realize(autocompletwindow);
        gdk_window_set_decorations(autocompletwindow->window, 0);

        /* Place on top of the main window */
        gtk_window_set_transient_for(GTK_WINDOW(autocompletwindow),

GTK_WINDOW(main_window));
        gtk_widget_show(autocompletwindow);

Regards,
    Santi




Rok Roskar escribió:

Someone asked how to keep a window on top of another window, and Havoc's
reply was to use gtk_window_set_transient_for().... however, this rids the
child window of the border & title etc, making it unable to move... is
there a way to retain the basic window properties and still keep it on
top? Thanks,

Rok

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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