summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-01 16:39:54 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-11-01 16:40:30 (EDT)
commitec15a1449cb482d317f3c0b8adbdef10f1325f91 (patch)
tree07847547ca805770886310274a4db0b72000136f
parented4ea5bfd8edc9edc2271bc7ae6fb5e527adb0ce (diff)
downloadmarquee-ec15a1449cb482d317f3c0b8adbdef10f1325f91.zip
marquee-ec15a1449cb482d317f3c0b8adbdef10f1325f91.tar.gz
marquee-ec15a1449cb482d317f3c0b8adbdef10f1325f91.tar.bz2
MqWebView: Add default case to "load-changed" callback
Fixes: CC src/toolbars/navigation/marquee-uri-entry.o src/toolbars/navigation/uri-entry.c: In function ‘load_changed_cb’: src/toolbars/navigation/uri-entry.c:59:2: warning: switch missing default case [-Wswitch-default] switch (load_event) { ^
-rw-r--r--src/toolbars/navigation/uri-entry.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/toolbars/navigation/uri-entry.c b/src/toolbars/navigation/uri-entry.c
index af3e0c6..3862801 100644
--- a/src/toolbars/navigation/uri-entry.c
+++ b/src/toolbars/navigation/uri-entry.c
@@ -69,6 +69,9 @@ load_changed_cb(MqWebView *web_view, WebKitLoadEvent load_event,
gtk_entry_set_progress_fraction(
GTK_ENTRY(uri_entry->uri_entry), 0.0);
break;
+ default:
+ g_assert_not_reached();
+ break;
}
}