[NetworkManager-libreswan/fg/GUI_IKEv2_advanced_options: 5/9] fixup! properties: share code for widget initialization



commit 356d1030de5947182fa3ded343f7bb81f3b7c14b
Author: Francesco Giudici <fgiudici redhat com>
Date:   Mon Sep 17 16:17:36 2018 +0200

    fixup! properties: share code for widget initialization

 properties/nm-libreswan-editor.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/properties/nm-libreswan-editor.c b/properties/nm-libreswan-editor.c
index 84633b7..64da6dc 100644
--- a/properties/nm-libreswan-editor.c
+++ b/properties/nm-libreswan-editor.c
@@ -252,8 +252,8 @@ init_widget (LibreswanEditor *self,
        const char *value = NULL;
 
        widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, widget_name));
-       if (!widget)
-               return FALSE;
+       g_return_val_if_fail (widget, FALSE);
+
        gtk_size_group_add_widget (priv->group, GTK_WIDGET (widget));
        if (s_vpn) {
                value = nm_setting_vpn_get_data_item (s_vpn, key_name);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]