summaryrefslogtreecommitdiff
path: root/src/components/channellist/classic/guildlistguilditem.hpp
blob: 3114a05ba58f9fc833157f81db09e198fb174674 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once
#include <gtkmm/box.h>
#include <gtkmm/image.h>
#include "discord/guild.hpp"

class GuildListGuildItem : public Gtk::EventBox {
public:
    GuildListGuildItem(const GuildData &guild);

    Snowflake ID;

private:
    void UpdateIcon();
    void OnIconFetched(const Glib::RefPtr<Gdk::Pixbuf> &pb);

    Gtk::Image m_image;
};