[network-manager-applet/jk/editor-error-bg-color-bgo660915] fixup! editor: improve color-indication for bad addresses and routes (bgo #660914)
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/jk/editor-error-bg-color-bgo660915] fixup! editor: improve color-indication for bad addresses and routes (bgo #660914)
- Date: Wed, 4 Mar 2015 11:53:31 +0000 (UTC)
commit b019e735fd20698bd85db693a374529866ce15f9
Author: Thomas Haller <thaller redhat com>
Date: Wed Mar 4 12:35:12 2015 +0100
fixup! editor: improve color-indication for bad addresses and routes (bgo #660914)
src/connection-editor/ip4-routes-dialog.c | 2 +-
src/connection-editor/ip6-routes-dialog.c | 2 +-
src/connection-editor/page-ip4.c | 2 +-
src/connection-editor/page-ip6.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/connection-editor/ip4-routes-dialog.c b/src/connection-editor/ip4-routes-dialog.c
index 3a562e6..25b7a7a 100644
--- a/src/connection-editor/ip4-routes-dialog.c
+++ b/src/connection-editor/ip4-routes-dialog.c
@@ -669,7 +669,7 @@ cell_error_data_func (GtkTreeViewColumn *tree_column,
invalid = !get_one_addr (tree_model, iter, COL_NEXT_HOP, FALSE, &next_hop, &value);
else if (col == COL_METRIC)
invalid = !get_one_int (tree_model, iter, COL_METRIC, G_MAXUINT32, FALSE, &metric, &value);
- else
+ else
g_warn_if_reached ();
if (invalid) {
diff --git a/src/connection-editor/ip6-routes-dialog.c b/src/connection-editor/ip6-routes-dialog.c
index 4a065ec..28bcfce 100644
--- a/src/connection-editor/ip6-routes-dialog.c
+++ b/src/connection-editor/ip6-routes-dialog.c
@@ -612,7 +612,7 @@ cell_error_data_func (GtkTreeViewColumn *tree_column,
invalid = !get_one_addr (tree_model, iter, COL_NEXT_HOP, FALSE, &next_hop, &value);
else if (col == COL_METRIC)
invalid = !get_one_int (tree_model, iter, COL_METRIC, G_MAXUINT32, FALSE, &metric, &value);
- else
+ else
g_warn_if_reached ();
if (invalid) {
diff --git a/src/connection-editor/page-ip4.c b/src/connection-editor/page-ip4.c
index a9f0370..6a8fe06 100644
--- a/src/connection-editor/page-ip4.c
+++ b/src/connection-editor/page-ip4.c
@@ -902,7 +902,7 @@ cell_error_data_func (GtkTreeViewColumn *tree_column,
invalid = !value || !*value || !parse_netmask (value, &prefix);
else if (col == COL_GATEWAY)
invalid = value && *value && !nm_utils_ipaddr_valid (AF_INET, value);
- else
+ else
g_warn_if_reached ();
if (invalid) {
diff --git a/src/connection-editor/page-ip6.c b/src/connection-editor/page-ip6.c
index 1b80a74..d08f229 100644
--- a/src/connection-editor/page-ip6.c
+++ b/src/connection-editor/page-ip6.c
@@ -905,7 +905,7 @@ cell_error_data_func (GtkTreeViewColumn *tree_column,
invalid = !value || !*value || !is_prefix_valid (value, NULL);
else if (col == COL_GATEWAY)
invalid = value && *value && !nm_utils_ipaddr_valid (AF_INET6, value);
- else
+ else
g_warn_if_reached ();
if (invalid) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]