wacom: Port calibrator UI to GTK+

Same dog, different collar. The UI has been ported 1:1 to GTK+, using
GtkBuilder, CSS and event controllers fairly reduced the amount of code
needed for this.

It also allows us to stop initializing clutter-gtk across the several
executables.
This commit is contained in:
Carlos Garnacho 2018-10-09 18:28:08 +02:00 committed by Georges Basile Stavracas Neto
parent 94b218a486
commit d51336c2c2
17 changed files with 774 additions and 968 deletions

View file

@ -31,10 +31,6 @@
#include "cc-panel-loader.h"
#include "cc-window.h"
#if defined(HAVE_WACOM) || defined(HAVE_CHEESE)
#include <clutter-gtk/clutter-gtk.h>
#endif /* HAVE_WACOM || HAVE_CHEESE */
struct _CcApplication
{
GtkApplication parent;
@ -236,14 +232,6 @@ cc_application_startup (GApplication *application)
G_APPLICATION_CLASS (cc_application_parent_class)->startup (application);
#if defined(HAVE_WACOM) || defined(HAVE_CHEESE)
if (gtk_clutter_init (NULL, NULL) != CLUTTER_INIT_SUCCESS)
{
g_critical ("Unable to initialize Clutter");
return;
}
#endif /* HAVE_WACOM || HAVE_CHEESE */
gtk_application_set_accels_for_action (GTK_APPLICATION (application),
"app.help", help_accels);