From eb51ff93c5c54dfb82e607b4843f9160523076b7 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 15 Nov 2012 21:03:25 +0100 Subject: NCurses interface: support terminal resizing * currently, the message line is not remembered and reset on termresize * any open popup window will be drawn over by the other windows --- interface-gtk.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'interface-gtk.cpp') diff --git a/interface-gtk.cpp b/interface-gtk.cpp index 38100fe..ed0b36c 100644 --- a/interface-gtk.cpp +++ b/interface-gtk.cpp @@ -69,7 +69,7 @@ InterfaceGtk::InterfaceGtk() ssm(SCI_SETFOCUS, TRUE); - cmdline_update(); + cmdline_update(""); } void @@ -100,6 +100,10 @@ InterfaceGtk::cmdline_update(const gchar *cmdline) { gint pos = 1; + if (!cmdline) + /* widget automatically redrawn */ + return; + gtk_entry_set_text(GTK_ENTRY(cmdline_widget), "*"); gtk_editable_insert_text(GTK_EDITABLE(cmdline_widget), cmdline, -1, &pos); -- cgit v1.2.3