simon-git: puzzles (master): Simon Tatham

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Sun Oct 4 22:57:52 BST 2015


TL;DR:
  2afbcdc GTK 3.16 deprecation: stop using gtk_misc_set_alignment.
  a94dbd2 GTK 3 cleanup: use GtkMessageDialog for message_box().
  27fe1c9 GTK 3 cleanup: use GtkAboutDialog for the About box.
  11b14a5 GTK 3 cleanup: stop using GtkDialog for config boxes.

Repository:     git://git.tartarus.org/simon/puzzles.git
On the web:     http://tartarus.org/~simon-git/gitweb/?p=puzzles.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2015-10-04 22:57:52

commit 2afbcdcc3c6d59aa03280df65ce6c690baa4273f
web diff http://tartarus.org/~simon-git/gitweb/?p=puzzles.git;a=commitdiff;h=2afbcdcc3c6d59aa03280df65ce6c690baa4273f;hp=5e22080bcd581fe4e2a07ca897ebea19a2961f66
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun Oct 4 19:30:08 2015 +0100

    GTK 3.16 deprecation: stop using gtk_misc_set_alignment.
    
    The new equivalent is gtk_label_set_{x,y}align. But we can't use that
    in all GTK 3 builds, because it's very new.

 gtk.c |   16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

commit a94dbd27d0fbbbfbd90290647d3305ef6b6cce5b
web diff http://tartarus.org/~simon-git/gitweb/?p=puzzles.git;a=commitdiff;h=a94dbd27d0fbbbfbd90290647d3305ef6b6cce5b;hp=2afbcdcc3c6d59aa03280df65ce6c690baa4273f
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun Oct 4 19:56:39 2015 +0100

    GTK 3 cleanup: use GtkMessageDialog for message_box().
    
    This is a lot easier than faffing about setting up a dialog box
    ourself, and also avoids direct access to GtkDialog's action area
    (deprecated in GTK 3.16).

 gtk.c |   44 ++++++++++++++++++++++++++++++++------------
 1 file changed, 32 insertions(+), 12 deletions(-)

commit 27fe1c9c49deaf338b9ca146a7aca5ff905c7115
web diff http://tartarus.org/~simon-git/gitweb/?p=puzzles.git;a=commitdiff;h=27fe1c9c49deaf338b9ca146a7aca5ff905c7115;hp=a94dbd27d0fbbbfbd90290647d3305ef6b6cce5b
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun Oct 4 19:57:25 2015 +0100

    GTK 3 cleanup: use GtkAboutDialog for the About box.
    
    This is again easier than faffing about doing it manually, and as an
    added bonus, we get to put the largest of our icons in the box as a
    logo :-)

 gtk.c |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)

commit 11b14a5f44967a6257ac1beabb6425f95f3b2c69
web diff http://tartarus.org/~simon-git/gitweb/?p=puzzles.git;a=commitdiff;h=11b14a5f44967a6257ac1beabb6425f95f3b2c69;hp=27fe1c9c49deaf338b9ca146a7aca5ff905c7115
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun Oct 4 20:03:50 2015 +0100

    GTK 3 cleanup: stop using GtkDialog for config boxes.
    
    It's becoming annoying to keep working within the increasing
    restrictions on GtkDialog, in particular the fact that not only do we
    have to let it have complete control of the button area, but also it's
    not clear whether we can intercept a press of the 'OK' button and
    display an error message rather than ending the dialog.
    
    So, as I did in PuTTY, I'm resorting to using an ordinary GtkWindow
    with controls I laid out myself.

 gtk.c |   32 +++++++++++++++++++++++---------
 1 file changed, 23 insertions(+), 9 deletions(-)



More information about the tartarus-commits mailing list