**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+** Copyright (c) 2007 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
#include "dialog_color.h"
#include <gtkmm/textview.h>
+#include "general.h"
+
#endif
using namespace synfig;
}
~ValueBase_Entry()
{
- DEBUGPOINT();
}
void on_editing_done()
{
if(valuewidget)
return valuewidget->get_value();
- return synfig::ValueBase();
+
+ warning("%s:%d this code shouldn't be reached", __FILE__, __LINE__);
+ return *(new synfig::ValueBase());
}
+
const Glib::ustring &get_path()
{
return path;
property_attributes()=attr_list;
property_foreground()=Glib::ustring("#7f7f7f");
- property_inconsistant()=false;
+ property_inconsistent()=false;
}
CellRenderer_ValueBase::~CellRenderer_ValueBase()
{
-// synfig::info("CellRenderer_ValueBase::~CellRenderer_ValueBase(): deleted");
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("CellRenderer_ValueBase::~CellRenderer_ValueBase(): Deleted");
}
void
if(data.get(etl::handle<synfig::Canvas>()))
{
if(data.get(etl::handle<synfig::Canvas>())->is_inline())
- property_text()="<Inline Canvas>";
+ property_text()=_("<Inline Canvas>");
else
property_text()=(Glib::ustring)data.get(etl::handle<synfig::Canvas>())->get_id();
}
Gtk::CellEditable*
CellRenderer_ValueBase::start_editing_vfunc(
- GdkEvent* event,
+ GdkEvent* event __attribute__ ((unused)),
Gtk::Widget& widget,
const Glib::ustring& path,
- const Gdk::Rectangle& background_area,
- const Gdk::Rectangle& cell_area,
- Gtk::CellRendererState flags)
+ const Gdk::Rectangle& background_area __attribute__ ((unused)),
+ const Gdk::Rectangle& cell_area __attribute__ ((unused)),
+ Gtk::CellRendererState flags __attribute__ ((unused)))
{
// If we aren't editable, then there is nothing to do
if(!property_editable())