diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ChatWindow.hpp | 8 | ||||
-rw-r--r-- | include/ResponsivePaned.hpp | 16 |
2 files changed, 20 insertions, 4 deletions
diff --git a/include/ChatWindow.hpp b/include/ChatWindow.hpp index 48bbff5..b0f4001 100644 --- a/include/ChatWindow.hpp +++ b/include/ChatWindow.hpp @@ -5,10 +5,10 @@ #include "RoomNotificationsWindow.hpp" #include <dchat/Room.hpp> #include <gtkmm/label.h> -#include <gtkmm/togglebutton.h> +#include <gtkmm/radiobutton.h> #include <gtkmm/grid.h> #include <gtkmm/entry.h> -#include <gtkmm/paned.h> +#include "ResponsivePaned.hpp" #include <gtkmm/scrolledwindow.h> #include <gtkmm/stack.h> #include <gtkmm/textview.h> @@ -42,7 +42,7 @@ namespace dchat Window *window; private: void setupTopbar(); - void setupLeftPanel(Gtk::Paned *sidePanels); + void setupLeftPanel(Gtk::ResponsivePaned *sidePanels); void setupMessageArea(Gtk::Grid *rightPanel); void setupChatInput(Gtk::Grid *rightPanel); @@ -61,7 +61,7 @@ namespace dchat { Gtk::Grid *leftPanelUsersLayout; Gtk::Grid *messageAreaLayout; - Gtk::ToggleButton *button; + Gtk::RadioButton *button; }; odhtdb::MapHash<RoomData*> roomDataById; diff --git a/include/ResponsivePaned.hpp b/include/ResponsivePaned.hpp new file mode 100644 index 0000000..8f62791 --- /dev/null +++ b/include/ResponsivePaned.hpp @@ -0,0 +1,16 @@ +#ifndef RESPONSIVE_PANED_HPP +#define RESPONSIVE_PANED_HPP + +#include <gtkmm/paned.h> + +namespace Gtk +{ + class ResponsivePaned : public Paned + { + public: + explicit ResponsivePaned(Orientation orientation = ORIENTATION_HORIZONTAL); + virtual ~ResponsivePaned() {} + }; +} + +#endif // RESPONSIVE_PANED_HPP
\ No newline at end of file |