summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index cfc74df..c9f19c6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -229,7 +229,7 @@ gboolean vp_load_uri(const Arg* arg)
g_free(uri);
/* change state to normal mode */
- vp_set_mode(VP_MODE_NORMAL, TRUE);
+ vp_set_mode(VP_MODE_NORMAL, FALSE);
return TRUE;
}
@@ -276,6 +276,13 @@ void vp_clean_up(void)
completion_clean();
}
+void vp_clean_input(void)
+{
+ /* move focus from input box to clean it */
+ gtk_widget_grab_focus(GTK_WIDGET(vp.gui.webview));
+ vp_echo(VP_MSG_NORMAL, FALSE, "");
+}
+
static gboolean vp_hide_message(void)
{
vp_echo(VP_MSG_NORMAL, FALSE, "");
@@ -390,11 +397,6 @@ void vp_echo(const MessageType type, gboolean hide, const char *error, ...)
}
}
-void vp_fired_hint(const Arg* arg)
-{
- vp_load_uri(arg);
-}
-
static void vp_print_version(void)
{
fprintf(stderr, "%s/%s (build %s %s)\n", VERSION, PROJECT, __DATE__, __TIME__);