From 521bd82bb8e0118067eca522eb732dad25d8cd8a Mon Sep 17 00:00:00 2001 From: eidheim Date: Thu, 1 Oct 2015 08:41:11 +0200 Subject: [PATCH] Minor entrybox cleanup, and entry text has now no max size limit. --- src/entrybox.cc | 1 + src/window.cc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/entrybox.cc b/src/entrybox.cc index 8cfb1d2..a8bbb85 100644 --- a/src/entrybox.cc +++ b/src/entrybox.cc @@ -92,6 +92,7 @@ void EntryBox::clear() { void EntryBox::show() { std::vector focus_chain; for(auto& entry: entries) { + entry.set_max_length(0); lower_box.pack_start(entry, Gtk::PACK_SHRINK); focus_chain.emplace_back(&entry); } diff --git a/src/window.cc b/src/window.cc index 8d2ca5c..364abb4 100644 --- a/src/window.cc +++ b/src/window.cc @@ -741,6 +741,7 @@ void Window::goto_line_entry() { } }); auto entry_it=entry_box.entries.begin(); + entry_it->set_placeholder_text("Line number"); entry_box.buttons.emplace_back("Go to line", [this, entry_it](){ entry_it->activate(); }); @@ -776,6 +777,7 @@ void Window::rename_token_entry() { } }); auto entry_it=entry_box.entries.begin(); + entry_it->set_placeholder_text("New name"); entry_box.buttons.emplace_back("Rename", [this, entry_it](){ entry_it->activate(); });