]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
GTK: stop using gtk_window_parse_geometry.
authorSimon Tatham <anakin@pobox.com>
Mon, 4 Apr 2016 10:27:01 +0000 (11:27 +0100)
committerSimon Tatham <anakin@pobox.com>
Mon, 4 Apr 2016 10:37:07 +0000 (11:37 +0100)
commit8fd67a9c46cc175640bf51a0ac7e1e52c8745371
tree4fb2b1fb7f5a5cd5766668d8c41cc6deb0c6a1ba
parent4ba7ff006a5ef48f2961239d9402bddcd37fd648
GTK: stop using gtk_window_parse_geometry.

This function, which parses the X11-style '-geometry WxH+X+Y' option
argument and automatically loads the result into the window, is also
being deprecated.

Fortunately we already had a fallback option for GTK1 (which didn't
have gtk_window_parse_geometry in the first place), calling the Xlib
geometry-parsing function and manually loading the results into GTK.
The method of loading into GTK is not the same between the two
versions, but the basic strategy is still viable.

For the sake of maintaining and testing fewer ifdef branches, I've
removed the use of gtk_window_parse_geometry _completely_, even in
GTK2 which did have it. GTK2 now uses the same strategy that I've
switched to for GTK3.
unix/gtkwin.c