summaryrefslogtreecommitdiff
path: root/src/windows
diff options
context:
space:
mode:
Diffstat (limited to 'src/windows')
-rw-r--r--src/windows/mainwindow.cpp10
-rw-r--r--src/windows/mainwindow.hpp5
2 files changed, 15 insertions, 0 deletions
diff --git a/src/windows/mainwindow.cpp b/src/windows/mainwindow.cpp
index d6ca7d5..4ad694c 100644
--- a/src/windows/mainwindow.cpp
+++ b/src/windows/mainwindow.cpp
@@ -153,6 +153,16 @@ void MainWindow::UpdateMenus() {
OnViewSubmenuPopup();
}
+#ifdef WITH_LIBHANDY
+void MainWindow::GoBack() {
+ m_chat.GoBack();
+}
+
+void MainWindow::GoForward() {
+ m_chat.GoForward();
+}
+#endif
+
void MainWindow::OnDiscordSubmenuPopup() {
auto &discord = Abaddon::Get().GetDiscordClient();
auto channel_id = GetChatActiveChannel();
diff --git a/src/windows/mainwindow.hpp b/src/windows/mainwindow.hpp
index 215442c..7aec864 100644
--- a/src/windows/mainwindow.hpp
+++ b/src/windows/mainwindow.hpp
@@ -25,6 +25,11 @@ public:
void UpdateChatReactionRemove(Snowflake id, const Glib::ustring &param);
void UpdateMenus();
+#ifdef WITH_LIBHANDY
+ void GoBack();
+ void GoForward();
+#endif
+
ChannelList *GetChannelList();
ChatWindow *GetChatWindow();
MemberList *GetMemberList();