diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-12-27 01:57:22 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-12-27 01:57:22 -0500 |
commit | 1bb749687b92fa7fbccb77ee18654210a647a1f3 (patch) | |
tree | 68b79b6ca1ef7b3c17c4ada5655255c20f2fa8d3 /src/components/statusindicator.hpp | |
parent | 8bd628c1776c20dbf41d2fb18f6204c4a398da0e (diff) | |
parent | 155d95e29cc50a66cbe7711b172b195be637bc48 (diff) | |
download | abaddon-portaudio-1bb749687b92fa7fbccb77ee18654210a647a1f3.tar.gz abaddon-portaudio-1bb749687b92fa7fbccb77ee18654210a647a1f3.zip |
Merge branch 'master' into classic-channels
Diffstat (limited to 'src/components/statusindicator.hpp')
-rw-r--r-- | src/components/statusindicator.hpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/components/statusindicator.hpp b/src/components/statusindicator.hpp deleted file mode 100644 index edd64ea..0000000 --- a/src/components/statusindicator.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once -#include "discord/snowflake.hpp" -#include "discord/activity.hpp" - -class StatusIndicator : public Gtk::Widget { -public: - StatusIndicator(Snowflake user_id); - ~StatusIndicator() override = default; - -protected: - Gtk::SizeRequestMode get_request_mode_vfunc() const override; - void get_preferred_width_vfunc(int &minimum_width, int &natural_width) const override; - void get_preferred_width_for_height_vfunc(int height, int &minimum_width, int &natural_width) const override; - void get_preferred_height_vfunc(int &minimum_height, int &natural_height) const override; - void get_preferred_height_for_width_vfunc(int width, int &minimum_height, int &natural_height) const override; - void on_size_allocate(Gtk::Allocation &allocation) override; - void on_map() override; - void on_unmap() override; - void on_realize() override; - void on_unrealize() override; - bool on_draw(const Cairo::RefPtr<Cairo::Context> &cr) override; - - Glib::RefPtr<Gdk::Window> m_window; - - void CheckStatus(); - - Snowflake m_id; - PresenceStatus m_status; -}; |