-2003-10-28 Huang Ying <hying_caritas@163.com>
- * codeConvert.h (etc): Change FcChar to XftChar according to the libxft
- interface changing.
- * FileDialogPrivate.C : get rid of button support in FileDialog
- because of the implementation of Gtk::FileSelection changed.
- * glade/.cvsignore : add *.gladep, which is generated during editing
- *.galde
- * Add MathPanel, TableCreate and Url dialog
+2003-10-30 Huang Ying <hying_caritas@163.com>
+
+ * GToolbar.C : change layouts widget update code according xforms
+ frontends to prevent layouts widget from disable always.
+
+2003-10-28 Huang Ying <hying_caritas@163.com>
+
+ * codeConvert.h (etc): Change FcChar to XftChar according to the
+ libxft interface changing.
+ * FileDialogPrivate.C : get rid of button support in FileDialog
+ because of the implementation of Gtk::FileSelection changed.
+ * glade/.cvsignore : add *.gladep, which is generated during
+ editing *.galde
+ * Add MathPanel, TableCreate and Url dialog
2003-10-15 José Matos <jamatos@lyx.org>
ToolbarBackend::Item * item =
reinterpret_cast<ToolbarBackend::Item*>(
widget->get_data(gToolData));
+ if (item->first.action == ToolbarBackend::LAYOUTS) {
+ LyXFunc const & lf = view_->getLyXFunc();
+ bool const sensitive =
+ !lf.getStatus(FuncRequest(LFUN_LAYOUT)).disabled();
+ widget->set_sensitive(sensitive);
+ continue;
+ }
FuncStatus const status = view_->
getLyXFunc().getStatus(item->first);
bool sensitive = !status.disabled();