aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-07-24 19:27:40 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-07-24 19:27:40 +0000
commitfe9810cece507e934cbf82975442f6a96cf7e797 (patch)
tree09a998b899b653f93e8323352f57723bee0c7a19
parent2a81bf76f8dbe7745d3a7dbe2ee7b16bb96b8811 (diff)
downloadpaludis-fe9810cece507e934cbf82975442f6a96cf7e797.tar.gz
paludis-fe9810cece507e934cbf82975442f6a96cf7e797.tar.xz
Make the messages window resizeable.
-rw-r--r--src/gtkpaludis/main_window.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/gtkpaludis/main_window.cc b/src/gtkpaludis/main_window.cc
index cde5ff1..0c45afd 100644
--- a/src/gtkpaludis/main_window.cc
+++ b/src/gtkpaludis/main_window.cc
@@ -50,7 +50,8 @@ namespace paludis
Gtk::Entry search_box;
Gtk::Button search_button;
- Gtk::HPaned middle_pane;
+ Gtk::VPaned browse_information_messages_pane;
+ Gtk::HPaned browse_information_pane;
Gtk::Frame information_frame;
Gtk::ScrolledWindow information_window;
@@ -93,13 +94,17 @@ MainWindow::MainWindow() :
add(_imp->main_container);
_imp->main_container.pack_start(_imp->search_container, Gtk::PACK_SHRINK);
+ _imp->main_container.pack_end(_imp->browse_information_messages_pane, Gtk::PACK_EXPAND_WIDGET);
+
_imp->search_container.pack_start(_imp->search_label, Gtk::PACK_SHRINK);
_imp->search_container.pack_start(_imp->search_box);
_imp->search_container.pack_end(_imp->search_button, Gtk::PACK_SHRINK);
- _imp->main_container.pack_start(_imp->middle_pane, Gtk::PACK_EXPAND_WIDGET);
- _imp->middle_pane.pack1(_imp->browse_frame);
- _imp->middle_pane.pack2(_imp->information_frame);
+ _imp->browse_information_messages_pane.pack1(_imp->browse_information_pane);
+ _imp->browse_information_messages_pane.pack2(_imp->messages_frame);
+
+ _imp->browse_information_pane.pack1(_imp->browse_frame);
+ _imp->browse_information_pane.pack2(_imp->information_frame);
_imp->browse_frame.add(_imp->browse_window);
_imp->browse_window.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
@@ -111,7 +116,6 @@ MainWindow::MainWindow() :
_imp->information_window.set_border_width(5);
_imp->information_window.add(_imp->information_tree);
- _imp->main_container.pack_end(_imp->messages_frame, Gtk::PACK_SHRINK);
_imp->messages_frame.add(_imp->messages_window);
_imp->messages_window.set_border_width(5);
_imp->messages_window.add(_imp->messages);