From 87835206a2acd2416dce60ac9f70211534c02428 Mon Sep 17 00:00:00 2001 From: eidheim Date: Sun, 26 Jul 2015 18:25:28 +0200 Subject: [PATCH] Buttons in entry box no longer gets focus when clicked. --- juci/entrybox.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/juci/entrybox.cc b/juci/entrybox.cc index 5ce5e56..05e5986 100644 --- a/juci/entrybox.cc +++ b/juci/entrybox.cc @@ -14,6 +14,7 @@ EntryBox::Entry::Entry(const std::string& content, std::function on_activate) : Gtk::Button(label), on_activate(on_activate) { + set_focus_on_click(false); signal_clicked().connect([this](){ if(this->on_activate) this->on_activate(); @@ -21,6 +22,7 @@ EntryBox::Button::Button(const std::string& label, std::function on_acti } EntryBox::ToggleButton::ToggleButton(const std::string& label, std::function on_activate) : Gtk::ToggleButton(label), on_activate(on_activate) { + set_focus_on_click(false); signal_clicked().connect([this](){ if(this->on_activate) this->on_activate();