aboutsummaryrefslogtreecommitdiffhomepage
path: root/interface-gtk.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-15 21:03:25 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-15 21:03:25 +0100
commiteb51ff93c5c54dfb82e607b4843f9160523076b7 (patch)
treef6db2c0e026508cb78128c994c02f216639f731d /interface-gtk.cpp
parent8c27f0437054497360a8358c5e3fb516f1eaa996 (diff)
downloadsciteco-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.cpp6
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);