From 57f5c67c940cf81a586ef050d939924bc035ac32 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 11 Feb 2021 01:18:18 -0500 Subject: add account created date to profile info window --- windows/profile/userinfopane.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'windows/profile/userinfopane.cpp') diff --git a/windows/profile/userinfopane.cpp b/windows/profile/userinfopane.cpp index 00209af..c88bc45 100644 --- a/windows/profile/userinfopane.cpp +++ b/windows/profile/userinfopane.cpp @@ -162,6 +162,7 @@ ProfileUserInfoPane::ProfileUserInfoPane(Snowflake ID) : Gtk::Box(Gtk::ORIENTATION_VERTICAL) , UserID(ID) { get_style_context()->add_class("profile-info-pane"); + m_created.get_style_context()->add_class("profile-info-created"); m_note.signal_update_note().connect([this](const Glib::ustring ¬e) { auto cb = [this](bool success) { @@ -185,9 +186,14 @@ ProfileUserInfoPane::ProfileUserInfoPane(Snowflake ID) }; discord.FetchUserNote(UserID, sigc::track_obj(fetch_note_cb, *this)); + m_created.set_halign(Gtk::ALIGN_START); + m_created.set_margin_top(5); + m_created.set_text("Account created: " + ID.GetLocalTimestamp()); + m_conns.set_halign(Gtk::ALIGN_START); m_conns.set_hexpand(true); + add(m_created); add(m_note); add(m_conns); show_all_children(); -- cgit v1.2.3