• Owen W. Taylor's avatar
    GtkWindow: Allow setting size from geometry · a4a7a611
    Owen W. Taylor authored
    If you set a geometry widget via gtk_window_set_geometry_hints() it
    becomes very hard to compute appropriate toplevel sizes in pixels
    to make the window a particular size. Synthesizing strings and passing
    them to gtk_window_parse_geometry() is possible, but to avoid
    avoid such ugliness, add functions:
    That act like gtk_window_set_default_size() and
    gtk_window_resize() but are in terms of the resize increments of the
    geometry widget.
testgeometry.c 6.5 KB