[gnome-control-center] Network: Avoid warnings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Network: Avoid warnings
- Date: Thu, 17 Mar 2011 12:56:17 +0000 (UTC)
commit d1be44ba223504af995aa2c5a708f02b89e857bc
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Mar 17 08:54:44 2011 -0400
Network: Avoid warnings
panels/network/cc-network-panel.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index 2e73d58..3e88630 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -616,7 +616,8 @@ panel_set_widget_heading (CcNetworkPanel *panel,
label_id = g_strdup_printf ("heading_%s_%s", sub_pane, widget_suffix);
widget = GTK_WIDGET (gtk_builder_get_object (panel->priv->builder, label_id));
- gtk_label_set_label (GTK_LABEL (widget), heading);
+ if (widget)
+ gtk_label_set_label (GTK_LABEL (widget), heading);
g_free (label_id);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]