formatting pass

This commit is contained in:
NunoSempere 2024-03-14 19:34:22 -03:00
parent 6a2c4c9084
commit 6fbcb549fd
2 changed files with 2 additions and 2 deletions

BIN
rosenrot

Binary file not shown.

View File

@ -30,12 +30,12 @@ WebKitWebView* notebook_get_webview(GtkNotebook* notebook)
void show_bar(GtkNotebook* notebook); void show_bar(GtkNotebook* notebook);
void load_uri(WebKitWebView* view, const char* uri) void load_uri(WebKitWebView* view, const char* uri)
{ {
if (strlen(uri) == 0){ if (strlen(uri) == 0) {
webkit_web_view_load_uri(view, ""); webkit_web_view_load_uri(view, "");
bar.entry_mode = _SEARCH; bar.entry_mode = _SEARCH;
show_bar(notebook); show_bar(notebook);
}else if (g_str_has_prefix(uri, "http://") || g_str_has_prefix(uri, "https://") || g_str_has_prefix(uri, "file://") || g_str_has_prefix(uri, "about:")) { } else if (g_str_has_prefix(uri, "http://") || g_str_has_prefix(uri, "https://") || g_str_has_prefix(uri, "file://") || g_str_has_prefix(uri, "about:")) {
webkit_web_view_load_uri(view, uri); webkit_web_view_load_uri(view, uri);
} else { } else {
// Check for shortcuts // Check for shortcuts