network: Fix warning if IPv6 gateway is empty
GtkEntry doesn't like NULL text. https://bugzilla.gnome.org/show_bug.cgi?id=769230
This commit is contained in:
parent
dc14602e55
commit
94e2be8ff6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue