summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorAdrien Plazas <kekun.plazas@laposte.net>2020-03-06 09:20:53 +0100
committerAdrien Plazas <kekun.plazas@laposte.net>2020-07-20 08:04:28 +0200
commit726684e9e0c73c56a18c65a50af05b94ff77e2de (patch)
tree8bbce38505dc302ef0c21f98bd3b1f7622209f3f /shell
parenta2b42f1d3ef5fd1af2424e6b2b74ff0c7da95e3f (diff)
downloadgnome-control-center-726684e9e0c73c56a18c65a50af05b94ff77e2de.tar.gz
Adapt to changes in hdy_init()
It must now be called after initializing GTK, and doesn't take parameters.
Diffstat (limited to 'shell')
-rw-r--r--shell/cc-application.c4
-rw-r--r--shell/main.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/shell/cc-application.c b/shell/cc-application.c
index 8de3c6fb4..3f066f6ad 100644
--- a/shell/cc-application.c
+++ b/shell/cc-application.c
@@ -24,6 +24,8 @@
#include <glib.h>
#include <glib/gi18n.h>
#include <gio/gio.h>
+#define HANDY_USE_UNSTABLE_API
+#include <handy.h>
#include "cc-application.h"
#include "cc-log.h"
@@ -224,6 +226,8 @@ cc_application_startup (GApplication *application)
G_APPLICATION_CLASS (cc_application_parent_class)->startup (application);
+ hdy_init ();
+
gtk_application_set_accels_for_action (GTK_APPLICATION (application),
"app.help", help_accels);
diff --git a/shell/main.c b/shell/main.c
index 425306bc2..14c81c5f7 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -33,9 +33,6 @@
#include <cheese-gtk.h>
#endif /* HAVE_CHEESE */
-#define HANDY_USE_UNSTABLE_API
-#include <handy.h>
-
#include "cc-application.h"
static void
@@ -49,8 +46,6 @@ initialize_dependencies (gint *argc,
#ifdef HAVE_CHEESE
cheese_gtk_init (argc, argv);
#endif /* HAVE_CHEESE */
-
- hdy_init (argc, argv);
}
int