simon-git: putty (master): Simon Tatham

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Sun Aug 9 11:43:12 BST 2015


TL;DR:
  7a80ab1 GTK 3 prep: write a replacement for gtk_quit_add().

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-09 11:43:12

commit 7a80ab14e0a552d17ea8f6253ae76708284467c5
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=7a80ab14e0a552d17ea8f6253ae76708284467c5;hp=78592116a5297991135ef2a4c0efd0173a665379
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun Aug 9 11:33:43 2015 +0100

    GTK 3 prep: write a replacement for gtk_quit_add().
    
    GTK 2 has deprecated it and provided no replacement; a bug tracker
    entry I found on the subject suggested that it was functionality that
    didn't really belong in GTK, and glib ought to provide a replacement
    instead, which would be a perfectly fine thing to suggest if they had
    waited for glib to get round to doing so *before* throwing out a
    function people were actually using. Sigh.
    
    Anyway, it turns out that subsidiary invocations of gtk_main() don't
    happen inside GTK as far as I can see, so all I need to do is to make
    sure my own invocations of gtk_main() are followed by a cleanup
    function which runs any quit functions that I've registered.
    
    That was the last deprecated GTK function, so we now build cleanly
    with -DGTK_DISABLE_DEPRECATED. (But, as mentioned a couple of commits
    ago, we still don't build with -DGDK_DISABLE_DEPRECATED, because that
    has migrating to Cairo drawing as a prerequisite.)

 unix/gtkdlg.c |    3 +++
 unix/gtkwin.c |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++-------
 unix/unix.h   |    1 +
 3 files changed, 57 insertions(+), 7 deletions(-)



More information about the tartarus-commits mailing list