[gnote] Expose keybinder from main window



commit ed918dd08debed75978affd86a587fa1edf8deb9
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Jan 17 15:16:36 2021 +0200

    Expose keybinder from main window

 src/mainwindow.hpp    | 3 ++-
 src/recentchanges.hpp | 4 ++++
 2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/mainwindow.hpp b/src/mainwindow.hpp
index dace3c92..a5066217 100644
--- a/src/mainwindow.hpp
+++ b/src/mainwindow.hpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2013,2015-2017,2019 Aurimas Cernius
+ * Copyright (C) 2013,2015-2017,2019,2021 Aurimas Cernius
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -50,6 +50,7 @@ public:
   virtual void new_note() = 0;
   virtual void close_window() = 0;
   virtual bool is_search() = 0;
+  virtual utils::GlobalKeybinder & keybinder() = 0;
 
   void close_on_escape(bool close_win)
     {
diff --git a/src/recentchanges.hpp b/src/recentchanges.hpp
index bfecda40..103f7f06 100644
--- a/src/recentchanges.hpp
+++ b/src/recentchanges.hpp
@@ -50,6 +50,10 @@ public:
   virtual void present_search() override;
   virtual void close_window() override;
   virtual bool is_search() override;
+  virtual utils::GlobalKeybinder & keybinder() override
+    {
+      return m_keybinder;
+    }
 
   virtual void embed_widget(EmbeddableWidget &) override;
   virtual void unembed_widget(EmbeddableWidget &) override;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]