mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-13 20:18:50 +03:00
more WITH_VOICE guards
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#include "voiceinfobox.hpp"
|
||||
#include "abaddon.hpp"
|
||||
#include "util.hpp"
|
||||
#ifdef WITH_VOICE
|
||||
|
||||
#include "voiceinfobox.hpp"
|
||||
#include "abaddon.hpp"
|
||||
#include "util.hpp"
|
||||
|
||||
VoiceInfoBox::VoiceInfoBox()
|
||||
: Gtk::Box(Gtk::ORIENTATION_HORIZONTAL)
|
||||
@@ -97,3 +99,5 @@ VoiceInfoBox::VoiceInfoBox()
|
||||
|
||||
show_all_children();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include <gtkmm/box.h>
|
||||
#include <gtkmm/eventbox.h>
|
||||
#include <gtkmm/image.h>
|
||||
#include <gtkmm/label.h>
|
||||
#ifdef WITH_VOICE
|
||||
|
||||
#include <gtkmm/box.h>
|
||||
#include <gtkmm/eventbox.h>
|
||||
#include <gtkmm/image.h>
|
||||
#include <gtkmm/label.h>
|
||||
|
||||
class VoiceInfoBox : public Gtk::Box {
|
||||
public:
|
||||
@@ -18,3 +20,5 @@ private:
|
||||
Gtk::EventBox m_disconnect_ev;
|
||||
Gtk::Image m_disconnect_img;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -51,10 +51,14 @@ MainWindow::MainWindow()
|
||||
m_content_stack.set_visible_child("chat");
|
||||
m_content_stack.show();
|
||||
|
||||
#ifdef WITH_VOICE
|
||||
m_voice_info.show();
|
||||
#endif
|
||||
|
||||
m_left_pane.add(m_channel_list);
|
||||
#ifdef WITH_VOICE
|
||||
m_left_pane.add(m_voice_info);
|
||||
#endif
|
||||
m_left_pane.show();
|
||||
|
||||
m_chan_content_paned.pack1(m_left_pane);
|
||||
|
||||
@@ -57,7 +57,10 @@ private:
|
||||
ChatWindow m_chat;
|
||||
MemberList m_members;
|
||||
FriendsList m_friends;
|
||||
|
||||
#ifdef WITH_VOICE
|
||||
VoiceInfoBox m_voice_info;
|
||||
#endif
|
||||
|
||||
Gtk::Box m_left_pane;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user