app: extract GtkApplicationAccels private class

Desktop / GNOME / GTK - Sébastien Wilmet [gnome.org] - 22 April 2016 05:39 UTC

This has several benefits:- Less code in GtkApplication. The accels handling is something self-contained, and GtkApplication now delegates the work.- For the accels functions, there is now a distinction between static functions and functions in the gtkapplicationaccelsprivate.h header, which makes the code easier to understand, because we have a good overview just by reading the header.- The struct _GtkApplicationPrivate is now easier to find instead of being in the middle of the file.

https://bugzilla.gnome.org/show_bug.cgi?id=764879

bce4a0a app: extract GtkApplicationAccels private class
docs/reference/gtk/Makefile.am | 1 +
gtk/Makefile.am | 2 +
gtk/gtkapplication.c | 436 +--------------------------------
gtk/gtkapplicationaccels.c | 478 +++++++++++++++++++++++++++++++++++++
gtk/gtkapplicationaccelsprivate.h | 62 +++++
5 files changed, 553 insertions(+), 426 deletions(-)

Upstream: git.gnome.org


  • Share