mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
dont disconnect on voice window close, add ability to reopen
This commit is contained in:
1 parent
78adcf2f5c
commit
5e85d16cd6
4 files changed
+27
-10
No files matched your search
@@ -70,6 +70,15 @@ VoiceInfoBox::VoiceInfoBox()
|
||||
m_status.set_label(label);
|
||||
});
|
||||
|
||||
AddPointerCursor(m_status_ev);
|
||||
m_status_ev.signal_button_press_event().connect([this](GdkEventButton *ev) -> bool {
|
||||
if (ev->type == GDK_BUTTON_PRESS && ev->button == GDK_BUTTON_PRIMARY) {
|
||||
Abaddon::Get().ShowVoiceWindow();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
m_status.set_ellipsize(Pango::ELLIPSIZE_END);
|
||||
m_location.set_ellipsize(Pango::ELLIPSIZE_END);
|
||||
|
||||
@@ -79,7 +88,8 @@ VoiceInfoBox::VoiceInfoBox()
|
||||
m_disconnect_img.set_hexpand(true);
|
||||
m_disconnect_img.set_halign(Gtk::ALIGN_END);
|
||||
|
||||
m_left.add(m_status);
|
||||
m_status_ev.add(m_status);
|
||||
m_left.add(m_status_ev);
|
||||
m_left.add(m_location);
|
||||
|
||||
add(m_left);
|
||||
|
||||
@@ -11,6 +11,7 @@ public:
|
||||
|
||||
private:
|
||||
Gtk::Box m_left;
|
||||
Gtk::EventBox m_status_ev;
|
||||
Gtk::Label m_status;
|
||||
Gtk::Label m_location;
|
||||
|
||||
|
||||
Reference in new issue
Block a user