simon-git: putty (master): Simon Tatham

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Tue Aug 25 20:02:38 BST 2015


TL;DR:
  43a18df Fix the config box treeview width in GTK3.
  7193e93 Compile fixes for GTK1 after recent work.
  856a0ec Remove a mysterious GTK size-request tweak.
  54dcfb0 Turn GTK3 deprecation warnings back on.

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-25 20:02:38

commit 43a18df156a4ff7d144baed05164c565ba2a3285
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=43a18df156a4ff7d144baed05164c565ba2a3285;hp=afe2c355cf89216942240c58c701fde77a20a567
Author: Simon Tatham <anakin at pobox.com>
Date:   Tue Aug 25 19:44:44 2015 +0100

    Fix the config box treeview width in GTK3.
    
    My trickery in GTK2 to start with some branches of the tree collapsed
    but give the widget all the width it will need when they open later
    was not working in GTK3, for the same reason I've needed several other
    fixes recently: just after creation, GTK3 widgets report their
    preferred size as zero.
    
    Fixed by doing basically the same trick I was doing in GTK2, but
    deferring it until the "map" event happens later on.

 unix/gtkdlg.c |   84 +++++++++++++++++++++++++++++++++++++++++----------------
 1 file changed, 61 insertions(+), 23 deletions(-)

commit 7193e930de5ed35439bf22d18215eb158d477c6f
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=7193e930de5ed35439bf22d18215eb158d477c6f;hp=43a18df156a4ff7d144baed05164c565ba2a3285
Author: Simon Tatham <anakin at pobox.com>
Date:   Tue Aug 25 19:50:23 2015 +0100

    Compile fixes for GTK1 after recent work.
    
    The whole of get_label_text_dimensions() should have been outside the
    GTK 2 ifdef; I'd left a gtk_label_set_width_chars() unconditional; and
    GDK1's gdk_window_set_background() lacks a const in its prototype.
    Serves me right for not test-compiling in all three versions!

 unix/gtkdlg.c  |    2 ++
 unix/gtkfont.c |   76 +++++++++++++++++++++++++++++---------------------------
 unix/gtkwin.c  |    7 +++++-
 3 files changed, 48 insertions(+), 37 deletions(-)

commit 856a0ecc4a89ee113b54612b51678baca7af5d97
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=856a0ecc4a89ee113b54612b51678baca7af5d97;hp=7193e930de5ed35439bf22d18215eb158d477c6f
Author: Simon Tatham <anakin at pobox.com>
Date:   Tue Aug 25 19:55:38 2015 +0100

    Remove a mysterious GTK size-request tweak.
    
    In shortcut_add(), when we add an underlined letter to a GtkLabel, we
    were fetching the label's height before changing its text, and
    restoring it afterwards. I've no idea why - I can see no difference
    with and without the code.
    
    That code's been there since 2003 without explanation. My best guess
    is that it was working around a GTK bug of the day, but since no
    difference is visible even in current GTK1, I think I'm just going to
    remove it. If any problems show up later, I can put it back, with an
    actual comment!

 unix/gtkdlg.c |    6 ------
 1 file changed, 6 deletions(-)

commit 54dcfb033c13fd56faa077520d425b1704c80fce
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=54dcfb033c13fd56faa077520d425b1704c80fce;hp=856a0ecc4a89ee113b54612b51678baca7af5d97
Author: Simon Tatham <anakin at pobox.com>
Date:   Tue Aug 25 19:59:45 2015 +0100

    Turn GTK3 deprecation warnings back on.
    
    After the last few commits, we now compile cleanly against GTK3 even
    without -Wno-deprecated-declarations, so let's turn the default
    warnings back on to ensure we don't regress that.

 configure.ac |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)



More information about the tartarus-commits mailing list