]> git.lyx.org Git - features.git/commitdiff
gtk_patch_2003_10_30
authorLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 30 Oct 2003 17:58:06 +0000 (17:58 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 30 Oct 2003 17:58:06 +0000 (17:58 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8007 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/gtk/ChangeLog
src/frontends/gtk/GToolbar.C

index 04ae4f2c0bd8d57db3a27e1e7efa15ee3e79619a..cda60cb1a9af0874b09f6020a99f5956cbadbcc5 100644 (file)
@@ -1,11 +1,17 @@
-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>
 
index b0c9a080e53f86f345a53388492665f7706aed9a..71949c4defa5568501bc3c277d879c898121095a 100644 (file)
@@ -208,6 +208,13 @@ void GToolbar::update()
                        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();