diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-15 21:03:25 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-15 21:03:25 +0100 |
commit | eb51ff93c5c54dfb82e607b4843f9160523076b7 (patch) | |
tree | f6db2c0e026508cb78128c994c02f216639f731d /interface-gtk.cpp | |
parent | 8c27f0437054497360a8358c5e3fb516f1eaa996 (diff) | |
download | sciteco-eb51ff93c5c54dfb82e607b4843f9160523076b7.tar.gz |
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
Diffstat (limited to 'interface-gtk.cpp')
-rw-r--r-- | interface-gtk.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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); |