Code

Flipped top/bottom in layers UI to reflect visible stacking.
authorjoncruz <joncruz@users.sourceforge.net>
Wed, 17 May 2006 04:46:43 +0000 (04:46 +0000)
committerjoncruz <joncruz@users.sourceforge.net>
Wed, 17 May 2006 04:46:43 +0000 (04:46 +0000)
ChangeLog
src/dialogs/layers-panel.cpp

index 1d1362c01cbeebabdb4433138523cfbb73d188fe..fdf7429ba30bccc643ca37ca601ec313bf999848 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-05-17  Jon A. Cruz  <jon@joncruz.org>
+       * src/dialogs/layers-panel.cpp:
+         Flipped top/bottom in layers UI to reflect visible stacking.
+
 2006-05-16  verbalshadow  <verbalshadow@gmail.com>
 
        * src/desktop-style.h, src/desktop-style.cpp:
index ac0696f7fabb76a273c27f4a2fa5066840f83bdb..4d13d37a258ffe840a9740e726f6ea8a9e7acadb 100644 (file)
@@ -229,7 +229,7 @@ void LayersPanel::_layersChanged()
                     g_message("    layer:%p  {%s}   [%s]", child, child->id, child->label() );
 #endif // DUMP_LAYERS
 
-                    Gtk::TreeModel::Row row = *(_store->append());
+                    Gtk::TreeModel::Row row = *(_store->prepend());
                     row[_model->_colObject] = child;
                     row[_model->_colLabel] = child->label() ? child->label() : SP_OBJECT_ID(child);
                     row[_model->_colVisible] = SP_IS_ITEM(child) ? !SP_ITEM(child)->isHidden() : false;
@@ -244,7 +244,7 @@ void LayersPanel::_layersChanged()
 #if DUMP_LAYERS
                             g_message("        layer:%p  {%s}   [%s]", child, child->id, child->label() );
 #endif // DUMP_LAYERS
-                            Gtk::TreeModel::Row row2 = *(_store->append(row.children()));
+                            Gtk::TreeModel::Row row2 = *(_store->prepend(row.children()));
                             row2[_model->_colObject] = child2;
                             row2[_model->_colLabel] = child2->label() ? child2->label() : SP_OBJECT_ID(child2);
                             row2[_model->_colVisible] = SP_IS_ITEM(child2) ? !SP_ITEM(child2)->isHidden() : false;