Package: gtk
GEnum gtk-window-type
Details An enumeration for the possible types of a gtk-window widget. A gtk-window widget can be one of the :toplevel or :popup types. Most things you would consider a "window" should have :toplevel type. Windows with this type are managed by the window manager and have a frame by default. Call the gtk-window-decorated function to toggle the frame. Windows with :popup type are ignored by
the window manager. Window manager keybindings will not work on them, the
window manager will not decorate the window with a frame, many GTK features
that rely on the window manager will not work, e.g. resize grips and maximization/minimization. The :popup type is used to implement widgets such as gtk-menu widgets or tooltips that you normally do not think of as windows per se. Nearly all windows should be of :toplevel type. In particular, do not use the :popup type just to turn off the window borders. Use the gtk-window-decorated function for that. (define-g-enum "GtkWindowType" gtk-window-type (:export t :type-initializer "gtk_window_type_get_type") (:toplevel 0) (:popup 1))
| See also |
*2021-9-9