From 4e95f2c01fad1dc5171e664d3cfcc01a6f1406ce Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Sun, 10 Feb 2013 19:54:31 +0100 Subject: [PATCH] Use other function to clear input text. --- src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.c b/src/command.c index 89cf874..d2b8614 100644 --- a/src/command.c +++ b/src/command.c @@ -432,7 +432,7 @@ static void command_write_input(const gchar* str) ); /* remove content from input box */ - gtk_entry_set_text(GTK_ENTRY(vp.gui.inputbox), ""); + gtk_editable_delete_text(GTK_EDITABLE(vp.gui.inputbox), 0, -1); /* insert string from arg */ gtk_editable_insert_text(GTK_EDITABLE(vp.gui.inputbox), str, -1, &pos); -- 2.20.1