]> asedeno.scripts.mit.edu Git - PuTTY.git/commit - unix/unix.h
Make string_width() work in GTK3.
authorSimon Tatham <anakin@pobox.com>
Mon, 24 Aug 2015 18:31:44 +0000 (19:31 +0100)
committerSimon Tatham <anakin@pobox.com>
Mon, 24 Aug 2015 18:34:23 +0000 (19:34 +0100)
commitafe2c355cf89216942240c58c701fde77a20a567
tree1b24ae5ce1b60175bfe46ccdf2999cd512e96687
parent22ed04d00ef30f9713c8e7f6280a60ac78df943c
Make string_width() work in GTK3.

This was another piece of code that determined text size by
instantiating a GtkLabel and asking for its size, which I had to fix
in gtkfont.c recently because that strategy doesn't work in GTK3.

Replaced the implementation of string_width() with a call to the
function I added in gtkfont.c, and now dialog boxes which depend on
that for their width measurement (e.g. the one in reallyclose()) don't
come out in silly sizes on GTK3 any more.
unix/gtkdlg.c
unix/gtkfont.c
unix/unix.h