[gnome-control-center] network: Fix warning if IPv6 gateway is empty
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Fix warning if IPv6 gateway is empty
- Date: Tue, 30 Aug 2016 15:17:57 +0000 (UTC)
commit 94e2be8ff666492694b8177973d4b080aab3aa62
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jun 14 13:46:16 2016 +0200
network: Fix warning if IPv6 gateway is empty
GtkEntry doesn't like NULL text.
https://bugzilla.gnome.org/show_bug.cgi?id=769230
panels/network/connection-editor/ce-page-ip6.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/network/connection-editor/ce-page-ip6.c b/panels/network/connection-editor/ce-page-ip6.c
index 703ab56..62203ed 100644
--- a/panels/network/connection-editor/ce-page-ip6.c
+++ b/panels/network/connection-editor/ce-page-ip6.c
@@ -210,7 +210,7 @@ add_address_row (CEPageIP6 *page,
gtk_label_set_mnemonic_widget (GTK_LABEL (label), widget);
g_signal_connect_swapped (widget, "changed", G_CALLBACK (ce_page_changed), page);
g_object_set_data (G_OBJECT (row), "gateway", widget);
- gtk_entry_set_text (GTK_ENTRY (widget), gateway);
+ gtk_entry_set_text (GTK_ENTRY (widget), gateway ? gateway : "");
gtk_widget_set_margin_start (widget, 10);
gtk_widget_set_margin_end (widget, 10);
gtk_widget_set_hexpand (widget, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]