Commit 4e202fc3 authored by Aurimas Černius's avatar Aurimas Černius

Make possible to know, whether main window is in search mode

parent 19586019
......@@ -47,6 +47,7 @@ public:
virtual void present_search() = 0;
virtual void new_note() = 0;
virtual void close_window() = 0;
virtual bool is_search() = 0;
void close_on_escape(bool close_win)
{
......
......@@ -387,6 +387,12 @@ namespace gnote {
}
bool NoteRecentChanges::is_search()
{
return &m_search_notes_widget == currently_embedded();
}
void NoteRecentChanges::on_close_window(const Glib::VariantBase&)
{
close_window();
......
......@@ -51,6 +51,7 @@ public:
virtual void new_note() override;
virtual void present_search() override;
virtual void close_window() override;
virtual bool is_search() override;
virtual void embed_widget(EmbeddableWidget &) override;
virtual void unembed_widget(EmbeddableWidget &) override;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment