aboutsummaryrefslogtreecommitdiffhomepage
path: root/interface-gtk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'interface-gtk.cpp')
-rw-r--r--interface-gtk.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/interface-gtk.cpp b/interface-gtk.cpp
index 55e546e..7fc645e 100644
--- a/interface-gtk.cpp
+++ b/interface-gtk.cpp
@@ -106,10 +106,14 @@ InterfaceGtk::msg(MessageType type, const gchar *fmt, ...)
}
void
-InterfaceGtk::cmdline_update(const gchar *cmdline_str)
+InterfaceGtk::cmdline_update(const gchar *cmdline)
{
- gtk_entry_set_text(GTK_ENTRY(cmdline_widget), cmdline_str);
- gtk_editable_set_position(GTK_EDITABLE(cmdline_widget), -1);
+ gint pos = 1;
+
+ gtk_entry_set_text(GTK_ENTRY(cmdline_widget), "*");
+ gtk_editable_insert_text(GTK_EDITABLE(cmdline_widget),
+ cmdline, -1, &pos);
+ gtk_editable_set_position(GTK_EDITABLE(cmdline_widget), pos);
}
void