summaryrefslogtreecommitdiff
path: root/src/components/channellist/classic/guildlistguilditem.hpp
blob: 6bc0037cdc6a8f25785795e78211e277f5b166e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once
#include <gtkmm/box.h>
#include <gtkmm/eventbox.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;
};