projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CXXFLAGS is for users, use AM_CXXFLAGS instead
[synfig.git]
/
synfig-studio
/
trunk
/
src
/
gtkmm
/
metadatatreestore.cpp
diff --git
a/synfig-studio/trunk/src/gtkmm/metadatatreestore.cpp
b/synfig-studio/trunk/src/gtkmm/metadatatreestore.cpp
index
9cd4f89
..
53f0714
100644
(file)
--- a/
synfig-studio/trunk/src/gtkmm/metadatatreestore.cpp
+++ b/
synfig-studio/trunk/src/gtkmm/metadatatreestore.cpp
@@
-2,7
+2,7
@@
/*! \file metadatatreestore.cpp
** \brief Template File
**
/*! \file metadatatreestore.cpp
** \brief Template File
**
-** $Id
: metadatatreestore.cpp,v 1.1.1.1 2005/01/07 03:34:36 darco Exp
$
+** $Id$
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
@@
-62,7
+62,7
@@
MetaDataTreeStore::MetaDataTreeStore(etl::loose_handle<synfigapp::CanvasInterfac
{
// Connect the signal
get_canvas()->signal_meta_data_changed().connect(sigc::mem_fun(*this,&MetaDataTreeStore::meta_data_changed));
{
// Connect the signal
get_canvas()->signal_meta_data_changed().connect(sigc::mem_fun(*this,&MetaDataTreeStore::meta_data_changed));
-
+
rebuild();
}
rebuild();
}
@@
-88,9
+88,9
@@
void
MetaDataTreeStore::rebuild()
{
clear();
MetaDataTreeStore::rebuild()
{
clear();
-
+
std::list<String> keys(get_canvas()->get_meta_data_keys());
std::list<String> keys(get_canvas()->get_meta_data_keys());
-
+
for(;!keys.empty();keys.pop_front())
{
Gtk::TreeRow row(*append());
for(;!keys.empty();keys.pop_front())
{
Gtk::TreeRow row(*append());
@@
-138,10
+138,10
@@
MetaDataTreeStore::set_value_impl(const Gtk::TreeModel::iterator& iter, int colu
Glib::Value<Glib::ustring> x;
g_value_init(x.gobj(),model.data.type());
g_value_copy(value.gobj(),x.gobj());
Glib::Value<Glib::ustring> x;
g_value_init(x.gobj(),model.data.type());
g_value_copy(value.gobj(),x.gobj());
-
+
synfig::String key((Glib::ustring)(*iter)[model.key]);
synfig::String new_data(x.get());
synfig::String key((Glib::ustring)(*iter)[model.key]);
synfig::String new_data(x.get());
-
+
get_canvas_interface()->set_meta_data(key,new_data);
}
else
get_canvas_interface()->set_meta_data(key,new_data);
}
else