simon-git: putty (master): Simon Tatham

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Sat Aug 22 11:56:20 BST 2015


TL;DR:
  5e73887 Use GTK3's method of setting GtkEntry min width.
  37ec0b4 In GTK3, don't use the "has-separator" GtkDialog property.
  03e21b7 Fix GTK3 size calculations in unifontsel_new.

Repository:     git://git.tartarus.org/simon/putty.git
On the web:     http://tartarus.org/~simon-git/gitweb/?p=putty.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2015-08-22 11:56:20

commit 5e738877be53828ff412926c277d53d837f6cbc3
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=5e738877be53828ff412926c277d53d837f6cbc3;hp=e460f3083112ca29024ec48de2815011afd761ff
Author: Simon Tatham <anakin at pobox.com>
Date:   Sat Aug 22 10:37:48 2015 +0100

    Use GTK3's method of setting GtkEntry min width.
    
    The config box setup code wants a lot of very narrow edit boxes, so it
    decreases their minimum width from the GTK default of 150 pixels. In
    GTK 3, we have to do this using gtk_entry_set_width_chars() rather
    than gtk_widget_set_size_request() as we were previously using, or it
    won't work.
    
    This change by itself seems to restore the GTK3 config box to a
    sensible layout, in spite of the fact that my Columns layout class is
    still doing all its size allocation the GTK2 way, with no attention
    paid to the shiny new GTK3 height-for-width system.

 unix/gtkdlg.c |   22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

commit 37ec0b463fd65f80c5cb7ca50b6b318b5d66bc24
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=37ec0b463fd65f80c5cb7ca50b6b318b5d66bc24;hp=5e738877be53828ff412926c277d53d837f6cbc3
Author: Simon Tatham <anakin at pobox.com>
Date:   Sat Aug 22 11:09:06 2015 +0100

    In GTK3, don't use the "has-separator" GtkDialog property.
    
    It doesn't exist any more, so the attempt to set it was generating an
    annoying runtime warning message.

 unix/gtkdlg.c |    3 +++
 1 file changed, 3 insertions(+)

commit 03e21b7cad1dfa856f841dfe5aba39bb3ff89f7e
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=03e21b7cad1dfa856f841dfe5aba39bb3ff89f7e;hp=37ec0b463fd65f80c5cb7ca50b6b318b5d66bc24
Author: Simon Tatham <anakin at pobox.com>
Date:   Sat Aug 22 11:46:05 2015 +0100

    Fix GTK3 size calculations in unifontsel_new.
    
    It turns out that in GTK3, if you instantiate a GtkLabel and
    immediately try to find out its preferred size, you get back zero for
    both dimensions. Presumably none of that gets figured out properly
    until the widget is displayed, or some such.
    
    However, you can retrieve the PangoLayout from the label immediately
    and ask Pango for the dimensions of that. That seems like a bit of a
    bodge, but it works! The GTK3 unifont selector now comes out with all
    the interface elements in sensible sizes - in particular, the preview
    drawing area now has non-zero height.

 unix/gtkfont.c |   62 +++++++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 46 insertions(+), 16 deletions(-)



More information about the tartarus-commits mailing list