Use other function to clear input text.
authorDaniel Carl <danielcarl@gmx.de>
Sun, 10 Feb 2013 18:54:31 +0000 (19:54 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Sun, 10 Feb 2013 18:54:31 +0000 (19:54 +0100)
src/command.c

index 89cf874..d2b8614 100644 (file)
@@ -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);