friends: bold name & fix missing method

This commit is contained in:
ouwou
2021-05-07 03:55:14 -04:00
parent e44484cc26
commit 78d3c5b679

View File

@@ -122,7 +122,7 @@ FriendsListFriendRow::FriendsListFriendRow(RelationshipType type, const UserData
auto *ev = Gtk::manage(new Gtk::EventBox);
auto *box = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL));
auto *img = Gtk::manage(new LazyImage(32, 32, true));
auto *namelbl = Gtk::manage(new Gtk::Label(Name, Gtk::ALIGN_START));
auto *namelbl = Gtk::manage(new Gtk::Label("", Gtk::ALIGN_START));
m_status_lbl = Gtk::manage(new Gtk::Label("", Gtk::ALIGN_START));
auto *lblbox = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL));
@@ -136,6 +136,8 @@ FriendsListFriendRow::FriendsListFriendRow(RelationshipType type, const UserData
img->SetURL(data.GetAvatarURL("png", "32"));
}
namelbl->set_markup(data.GetEscapedBoldName());
UpdatePresenceLabel();
AddWidgetMenuHandler(ev, m_menu, [this] {
@@ -209,6 +211,10 @@ FriendsListFriendRow::type_signal_remove FriendsListFriendRow::signal_action_rem
return m_signal_remove;
}
FriendsListFriendRow::type_signal_accept FriendsListFriendRow::signal_action_accept() {
return type_signal_accept();
}
FriendsListWindow::FriendsListWindow() {
add(m_friends);
set_default_size(500, 500);