[gnome-control-center/gbsneto/interactive-test-panels: 24/34] panel-loader: Assert get_type() function



commit 7b64fa9739278c09795521a9e95216a9e22e5721
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]