aboutsummaryrefslogtreecommitdiff
path: root/rosenrot.c
diff options
context:
space:
mode:
Diffstat (limited to 'rosenrot.c')
-rw-r--r--rosenrot.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/rosenrot.c b/rosenrot.c
index a932133..680ae41 100644
--- a/rosenrot.c
+++ b/rosenrot.c
@@ -26,9 +26,16 @@ WebKitWebView* notebook_get_webview(GtkNotebook* notebook)
}
/* Load content*/
+
+void show_bar(GtkNotebook* notebook);
void load_uri(WebKitWebView* view, const char* uri)
{
- 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:")) {
+ if (strlen(uri) == 0){
+ webkit_web_view_load_uri(view, "");
+ bar.entry_mode = _SEARCH;
+ 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:")) {
webkit_web_view_load_uri(view, uri);
} else {
// Check for shortcuts
@@ -440,7 +447,7 @@ int main(int argc, char** argv)
/* Show to user */
gtk_widget_show_all(GTK_WIDGET(window));
- gtk_widget_hide(GTK_WIDGET(bar.widget));
+ // gtk_widget_hide(GTK_WIDGET(bar.widget));
/* Deal with more tabs */
if (argc > 2) {