]> git.lyx.org Git - features.git/commitdiff
Fix GTK TOC dialog so that it can do lists of figures etc again.
authorJohn Spray <spray@lyx.org>
Sun, 31 Jul 2005 22:43:27 +0000 (22:43 +0000)
committerJohn Spray <spray@lyx.org>
Sun, 31 Jul 2005 22:43:27 +0000 (22:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10378 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/gtk/ChangeLog
src/frontends/gtk/GToc.C

index c0189e6fa6dcc6468b16f85e3005ff0c6d8ef0d9..c4d4ea96adbb8d46391cc84e99237c5a13715ba8 100644 (file)
@@ -1,3 +1,7 @@
+2005-07-31  John Spray  <spray_john@users.sf.net>
+       * GToc.C: unbreak viewing lists other than TOC by storing 
+       integer index of entries in Type combobox.
+
 2005-07-28  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
 
        * GViewBase.C (show): exit after update if Controller::exitEarly()
index 8d473fccf85537038eb2e79205bd54d34b5c815a..19c0876b718925689a664828da0c1b5fafb13fc2 100644 (file)
@@ -100,10 +100,14 @@ void GToc::updateType()
 
        vector<string>::iterator it = types.begin();
        vector<string>::iterator end = types.end();
+       int index = 0;
        for(;it != end; ++it) {
                string const & guiname = controller().getGuiName(*it);
                Gtk::TreeModel::iterator row = typestore_->append();
                (*row)[listCol_] = guiname;
+               (*row)[listColIndex_] = index;
+               ++index;
+
                if (*it == targettype)
                        typecombo_->set_active(row);
        }