[gnome-control-center] keyboard: Use `g_type_ensure()`
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] keyboard: Use `g_type_ensure()`
- Date: Tue, 12 Jan 2021 16:59:50 +0000 (UTC)
commit 252f8659c8724cb2c79f060e0d8b62a48a6fa31e
Author: Ian Douglas Scott <idscott system76 com>
Date: Mon Jan 11 09:08:39 2021 -0800
keyboard: Use `g_type_ensure()`
panels/keyboard/cc-keyboard-panel.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/panels/keyboard/cc-keyboard-panel.c b/panels/keyboard/cc-keyboard-panel.c
index e3561ec60..7a3fb419b 100644
--- a/panels/keyboard/cc-keyboard-panel.c
+++ b/panels/keyboard/cc-keyboard-panel.c
@@ -196,8 +196,7 @@ cc_keyboard_panel_class_init (CcKeyboardPanelClass *klass)
g_object_class_override_property (object_class, PROP_PARAMETERS, "parameters");
- // TODO better way?
- CC_TYPE_INPUT_LIST_BOX;
+ g_type_ensure (CC_TYPE_INPUT_LIST_BOX);
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gnome/control-center/keyboard/cc-keyboard-panel.ui");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]