diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-05-07 03:55:14 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-05-07 03:55:14 -0400 |
commit | 78d3c5b679597dfa82910a6ea1e266349fa23a39 (patch) | |
tree | 97c5092d8e342a25fb33b9ef0449380020d5013d /components | |
parent | e44484cc260abdb9e4c93d874b884969ef71f42e (diff) | |
download | abaddon-portaudio-78d3c5b679597dfa82910a6ea1e266349fa23a39.tar.gz abaddon-portaudio-78d3c5b679597dfa82910a6ea1e266349fa23a39.zip |
friends: bold name & fix missing method
Diffstat (limited to 'components')
-rw-r--r-- | components/friendslist.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/components/friendslist.cpp b/components/friendslist.cpp index 574fee8..704d278 100644 --- a/components/friendslist.cpp +++ b/components/friendslist.cpp @@ -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); |