simon-git: puzzles (master): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Mon Feb 27 20:10:12 GMT 2017
TL;DR:
f3ca0e5 GTK API deprecation: use GtkCssProvider for window background.
1f613ba GTK API deprecation: in GTK 3.22, stop using gdk_cairo_create.
Repository: https://git.tartarus.org/simon/puzzles.git
On the web: https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2017-02-27 20:10:12
commit f3ca0e5af8b0ccb7400accc946e0a32e290b0206
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=f3ca0e5af8b0ccb7400accc946e0a32e290b0206;hp=7cae89fb4b22c305b3fd98b4e1be065ad527a9f7
Author: Simon Tatham <anakin at pobox.com>
Date: Mon Feb 27 19:11:02 2017 +0000
GTK API deprecation: use GtkCssProvider for window background.
gdk_window_set_background_rgba is deprecated as of GTK 3.22, because
apparently you can't just _say_ any more 'here is what I want my
window's background colour to be in places where a widget isn't'.
Instead you have to provide a GtkStyleProvider which can be slotted
into a wobbly tower of other providers with associated priorities, so
that the user can override your choices if they really want to.
And the easiest way to constructc a GtkStyleProvider in turn is to
write *actual CSS* and get GTK to parse it, so I end up converting my
nice numeric RGB values into a complicated text format for another
part of _the same process_ to parse back into numbers. Sigh.
gtk.c | 28 +++++++++++++++++++++++++++-
1 file changed, 27 insertions(+), 1 deletion(-)
commit 1f613ba31f2599bf29c35d5a46cc81594f6844ea
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=1f613ba31f2599bf29c35d5a46cc81594f6844ea;hp=f3ca0e5af8b0ccb7400accc946e0a32e290b0206
Author: Simon Tatham <anakin at pobox.com>
Date: Mon Feb 27 19:26:06 2017 +0000
GTK API deprecation: in GTK 3.22, stop using gdk_cairo_create.
This is another annoyingly removed function, replaced by a tower of
about four assorted objects you have to create in succession.
gtk.c | 31 +++++++++++++++++++++++++------
1 file changed, 25 insertions(+), 6 deletions(-)
More information about the tartarus-commits
mailing list