[gnome-control-center/gbsneto/interactive-test-panels: 3/13] panel-loader: Assert get_type() function
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gbsneto/interactive-test-panels: 3/13] panel-loader: Assert get_type() function
- Date: Fri, 9 Nov 2018 03:20:36 +0000 (UTC)
commit 84f98fb2440d5990bd51c302c10cc7e259f9d8ec
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Nov 7 19:59:53 2018 -0200
panel-loader: Assert get_type() function
Be more strict about the get_type() availability - we cannot
run without it.
shell/cc-panel-loader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/shell/cc-panel-loader.c b/shell/cc-panel-loader.c
index 6b5c6e3d0..02c94113b 100644
--- a/shell/cc-panel-loader.c
+++ b/shell/cc-panel-loader.c
@@ -243,7 +243,7 @@ cc_panel_loader_load_by_name (CcShell *shell,
ensure_panel_types ();
get_type = g_hash_table_lookup (panel_types, name);
- g_return_val_if_fail (get_type != NULL, NULL);
+ g_assert (get_type != NULL);
return g_object_new (get_type (),
"shell", shell,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]