summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <wjt@endlessos.org>2023-03-03 11:33:03 +0000
committerWill Thompson <wjt@endlessos.org>2023-03-03 11:33:03 +0000
commitd220a5673b11e17bc89e77653f66cc48bcf68728 (patch)
tree52a5fff1d04534624e54201955fa61dc4ae1bb38
parent86c8e4e3311a383670b9ae7adce5407859143d1e (diff)
downloadgnome-initial-setup-d220a5673b11e17bc89e77653f66cc48bcf68728.tar.gz
keyboard: Don't ensure CcInputChooser type twice
Calling g_type_ensure (CC_TYPE_INPUT_CHOOSER) in constructed() is too late, because the template has already been instantiated, which will fail if the type is not available. Happily gis_keyboard_page_init() also calls g_type_ensure (CC_TYPE_INPUT_CHOOSER) just before instantiating the template.
-rw-r--r--gnome-initial-setup/pages/keyboard/gis-keyboard-page.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c b/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c
index 8899527..71effda 100644
--- a/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c
+++ b/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c
@@ -465,8 +465,6 @@ gis_keyboard_page_constructed (GObject *object)
GisKeyboardPage *self = GIS_KEYBOARD_PAGE (object);
GisKeyboardPagePrivate *priv = gis_keyboard_page_get_instance_private (self);
- g_type_ensure (CC_TYPE_INPUT_CHOOSER);
-
G_OBJECT_CLASS (gis_keyboard_page_parent_class)->constructed (object);
g_signal_connect (priv->input_chooser, "confirm",