make gtk layout combobox smaller

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9322 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Spray 2004-11-29 17:05:38 +00:00
parent b90881c010
commit 21b99b12d8
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2004-11-29 John Spray <spray_john@users.sourceforge.net>
* GToolbar.C: Make layouts combobox not expand to full height
of toolbar, it looks more like a combobox this way.
2004-11-26 John Spray <spray_john@users.sourceforge.net>
* FileDialogPrivate.[Ch]: use Gtk::FileChooser, add

View File

@ -79,15 +79,15 @@ GLayoutBox::GLayoutBox(LyXView & owner,
// causes the first update()
combo_.set_size_request(130,-1);
combo_.set_data(
gToolData,
reinterpret_cast<void*>(&const_cast<FuncRequest &>(func)));
combo_.show();
Gtk::VBox * vbox = Gtk::manage(new Gtk::VBox);
vbox->pack_end(combo_, Gtk::PACK_EXPAND_PADDING);
Gtk::ToolItem * toolitem = Gtk::manage(new Gtk::ToolItem);
toolitem->add(combo_);
toolitem->add(*vbox);
toolbar.append(*toolitem);
}