diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-10-26 01:20:10 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-10-26 01:20:10 -0400 |
commit | 09cfa864be6e706fd2576eee60a285d5f4431b04 (patch) | |
tree | b1c5b8595cd9fec28d4ee48193116c133fc38c50 /src/components/channellist/classic/guildlistfolderitem.cpp | |
parent | 2168f011f59b4947d802dceac3ce60b51fee0b2f (diff) | |
download | abaddon-portaudio-09cfa864be6e706fd2576eee60a285d5f4431b04.tar.gz abaddon-portaudio-09cfa864be6e706fd2576eee60a285d5f4431b04.zip |
create folders in guild list
Diffstat (limited to 'src/components/channellist/classic/guildlistfolderitem.cpp')
-rw-r--r-- | src/components/channellist/classic/guildlistfolderitem.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/channellist/classic/guildlistfolderitem.cpp b/src/components/channellist/classic/guildlistfolderitem.cpp index 36d5a5a..aead848 100644 --- a/src/components/channellist/classic/guildlistfolderitem.cpp +++ b/src/components/channellist/classic/guildlistfolderitem.cpp @@ -1,9 +1,12 @@ #include "guildlistfolderitem.hpp" +#include "guildlistguilditem.hpp" GuildListFolderItem::GuildListFolderItem() { m_revealer.add(m_box); m_revealer.set_reveal_child(true); + m_image.property_pixbuf() = Abaddon::Get().GetImageManager().GetPlaceholder(48); + m_ev.signal_button_press_event().connect([this](GdkEventButton *event) -> bool { if (event->type == GDK_BUTTON_PRESS && event->button == GDK_BUTTON_PRIMARY) { m_revealer.set_reveal_child(!m_revealer.get_reveal_child()); @@ -16,3 +19,7 @@ GuildListFolderItem::GuildListFolderItem() { add(m_revealer); show_all_children(); } + +void GuildListFolderItem::AddGuildWidget(GuildListGuildItem *widget) { + m_box.add(*widget); +} |