**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+** Copyright (c) 2008 Chris Moore
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
LayerGroupTreeStore::~LayerGroupTreeStore()
{
//clear();
- synfig::info("LayerGroupTreeStore::~LayerGroupTreeStore(): Deleted");
+
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("LayerGroupTreeStore::~LayerGroupTreeStore(): Deleted");
}
bool
Glib::Value<Glib::ustring> x;
g_value_init(x.gobj(),x.value_type());
-
- if(!layer->get_description().empty())
- x.set(layer->get_description());
- else
- x.set(layer->get_local_name());
+ x.set(layer->get_non_empty_description());
g_value_init(value.gobj(),x.value_type());
//g_value_copy(x.gobj(),value.gobj());
action->set_param("dest_canvas",dest_canvas);
if(canvas_interface()->get_instance()->perform_action(action))
{
- DEBUGPOINT();
ret=true;
}
else
{
- DEBUGPOINT();
passive_grouper.cancel();
return false;
}
LayerGroupTreeStore::rebuild()
{
rebuilding=true;
- etl::clock timer;timer.reset();
+ // etl::clock timer;timer.reset();
try {
// Clear out the current list
throw;
}
rebuilding=false;
- synfig::info("LayerGroupTreeStore::rebuild() took %f seconds",float(timer()));
+ // synfig::info("LayerGroupTreeStore::rebuild() took %f seconds",float(timer()));
}
void
bool
LayerGroupTreeStore::on_group_removed(synfig::String group)
{
- //DEBUGPOINT();
-
Gtk::TreeModel::Children::iterator iter;
if(find_group_row(group,iter) && iter->children().size()==0)
erase(iter);
bool
LayerGroupTreeStore::on_group_changed(synfig::String /*group*/)
{
- //DEBUGPOINT();
return true;
}
{
if(!layer->get_canvas())
return;
- //DEBUGPOINT();
Gtk::TreeModel::Children::iterator iter;
if(!find_group_row(group, iter))
iter=on_group_added(group);
{
if(!layer->get_canvas())
return;
- //DEBUGPOINT();
Gtk::TreeModel::Children::iterator iter;
if(!find_group_row(group, iter))
return;
}
iter=children().end();
- //DEBUGPOINT();
//return false;
}
}
iter=children().end();
- //DEBUGPOINT();
//return false;
}