Add hide button to bottom bar

master
Melroy van den Berg 2021-02-17 21:57:52 +01:00
parent fccd4a9e46
commit 8aeb4cc651
2 changed files with 6 additions and 0 deletions

View File

@ -91,8 +91,13 @@ MainWindow::MainWindow()
m_scrolledWindow.add(m_draw);
m_scrolledWindow.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
// Search bar
m_search.connect_entry(m_searchEntry);
m_exitBottomButton.set_relief(Gtk::RELIEF_NONE);
m_exitBottomButton.set_label("\u2716");
m_exitBottomButton.signal_clicked().connect(sigc::mem_fun(m_hboxBottom, &Gtk::Box::hide));
m_hboxBottom.pack_start(m_searchEntry, false, false, 10);
m_hboxBottom.pack_end(m_exitBottomButton, false, false, 10);
m_vbox.pack_start(m_scrolledWindow, true, true, 0);
m_vbox.pack_end(m_hboxBottom, false, true, 6);

View File

@ -62,6 +62,7 @@ protected:
Gtk::Image refreshIcon;
Gtk::Image homeIcon;
Gtk::ScrolledWindow m_scrolledWindow;
Gtk::Button m_exitBottomButton;
private:
File m_file;