From 965f982b5586cce817065e3ff3ee49b7f6d37242 Mon Sep 17 00:00:00 2001 From: joncruz Date: Wed, 17 May 2006 04:46:43 +0000 Subject: [PATCH] Flipped top/bottom in layers UI to reflect visible stacking. --- ChangeLog | 4 ++++ src/dialogs/layers-panel.cpp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1d1362c01..fdf7429ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-05-17 Jon A. Cruz + * src/dialogs/layers-panel.cpp: + Flipped top/bottom in layers UI to reflect visible stacking. + 2006-05-16 verbalshadow * src/desktop-style.h, src/desktop-style.cpp: diff --git a/src/dialogs/layers-panel.cpp b/src/dialogs/layers-panel.cpp index ac0696f7f..4d13d37a2 100644 --- a/src/dialogs/layers-panel.cpp +++ b/src/dialogs/layers-panel.cpp @@ -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; -- 2.30.2