diff --git a/src/frontends/gtk/ChangeLog b/src/frontends/gtk/ChangeLog index 367fc5ba19..de12548bc5 100644 --- a/src/frontends/gtk/ChangeLog +++ b/src/frontends/gtk/ChangeLog @@ -1,3 +1,8 @@ +2004-10-06 John Spray + + * GView.C (c-tor): get the layout engine working correctly by + invoking Gtk::PACK_EXPAND_WIDGET for the main LyX screen. + 2004-10-04 John Spray * The MathsMatrix dialog diff --git a/src/frontends/gtk/GView.C b/src/frontends/gtk/GView.C index 485c9f3042..c58b864de1 100644 --- a/src/frontends/gtk/GView.C +++ b/src/frontends/gtk/GView.C @@ -47,19 +47,19 @@ void add_el(Gtk::Box::BoxList & list, Gtk::Box & box, bool shrink) GView::GView() { // The physical store for the boxes making up the layout. - box_store_.push_back(boost::shared_ptr(new Gtk::VBox)); - box_store_.push_back(boost::shared_ptr(new Gtk::HBox)); - box_store_.push_back(boost::shared_ptr(new Gtk::VBox)); - box_store_.push_back(boost::shared_ptr(new Gtk::HBox)); - box_store_.push_back(boost::shared_ptr(new Gtk::HBox)); - box_store_.push_back(boost::shared_ptr(new Gtk::HBox)); + box_store_.push_back(BoxPtr(new Gtk::VBox)); + box_store_.push_back(BoxPtr(new Gtk::HBox)); + box_store_.push_back(BoxPtr(new Gtk::VBox)); + box_store_.push_back(BoxPtr(new Gtk::HBox)); + box_store_.push_back(BoxPtr(new Gtk::HBox)); + box_store_.push_back(BoxPtr(new Gtk::HBox)); // Lay them out correctly. add(top_box_); Gtk::Box::BoxList & layout1 = top_box_.children(); add_el(layout1, *box_store_[0], true); - add_el(layout1, *box_store_[1], true); + add_el(layout1, *box_store_[1], false); add_el(layout1, *box_store_[2], true); Gtk::Box::BoxList & layout2 = box_store_[1]->children(); @@ -88,7 +88,7 @@ GView::GView() boost::bind(&GMiniBuffer::editMode, minibuffer_.get())); view_state_changed.connect(boost::bind(&GView::showViewState, this)); signal_focus_in_event().connect(sigc::mem_fun(*this, &GView::onFocusIn)); - set_default_size(500, 550); + set_default_size(620, 550); // Make sure the buttons are disabled if needed. updateToolbars(); string const iconName =