summaryrefslogtreecommitdiff
path: root/windows/profile/mutualfriendspane.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'windows/profile/mutualfriendspane.hpp')
-rw-r--r--windows/profile/mutualfriendspane.hpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/windows/profile/mutualfriendspane.hpp b/windows/profile/mutualfriendspane.hpp
index 70774a7..10daa39 100644
--- a/windows/profile/mutualfriendspane.hpp
+++ b/windows/profile/mutualfriendspane.hpp
@@ -1,5 +1,6 @@
#pragma once
#include <gtkmm.h>
+#include "../../components/inotifyswitched.hpp"
#include "../../discord/objects.hpp"
class MutualFriendItem : public Gtk::Box {
@@ -11,14 +12,18 @@ private:
Gtk::Label m_name;
};
-class MutualFriendsPane : public Gtk::ScrolledWindow {
+class MutualFriendsPane : public Gtk::ScrolledWindow, public INotifySwitched {
public:
MutualFriendsPane(Snowflake id);
- void SetMutualFriends(const std::vector<UserData> &users);
-
Snowflake UserID;
private:
+ void on_switched_to() override;
+
+ bool m_requested = false;
+
+ void OnFetchRelationships(const std::vector<UserData> &users);
+
Gtk::ListBox m_list;
};