mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
- fix tooltip showing up when it shouldnt - allow clicking on it to open icon url - refactorino
27 lines
731 B
C++
27 lines
731 B
C++
#pragma once
|
|
#include <gtkmm.h>
|
|
#include "../../discord/guild.hpp"
|
|
|
|
class GuildSettingsInfoPane : public Gtk::Grid {
|
|
public:
|
|
GuildSettingsInfoPane(Snowflake id);
|
|
|
|
private:
|
|
void FetchGuildIcon(const GuildData &guild);
|
|
|
|
void UpdateGuildName();
|
|
void UpdateGuildIconFromData(const std::vector<uint8_t> &data, const std::string &mime);
|
|
void UpdateGuildIconFromPixbuf(Glib::RefPtr<Gdk::Pixbuf> pixbuf);
|
|
void UpdateGuildIconPicker();
|
|
void UpdateGuildIconClipboard();
|
|
|
|
Gtk::Label m_guild_icon_label;
|
|
Gtk::EventBox m_guild_icon_ev; // necessary to make custom cursor behave properly
|
|
Gtk::Image m_guild_icon;
|
|
|
|
Gtk::Label m_guild_name_label;
|
|
Gtk::Entry m_guild_name;
|
|
|
|
Snowflake GuildID;
|
|
};
|