#include "widget_vector.h"
#include "widget_filename.h"
#include "widget_enum.h"
-#include "widget_coloredit.h"
#include "widget_canvaschooser.h"
#include "widget_time.h"
#include "app.h"
vector_widget=manage(new class Widget_Vector());
pack_start(*vector_widget);
- color_widget=manage(new class Widget_ColorEdit());
+ color_widget=manage(new class Gtk::ColorSelection());
pack_start(*color_widget);
enum_widget=manage(new class Widget_Enum());
vector_widget->signal_activate().connect(sigc::mem_fun(*this,&Widget_ValueBase::activate));
- color_widget->signal_activate().connect(sigc::mem_fun(*this,&Widget_ValueBase::activate));
+ //color_widget->signal_activate().connect(sigc::mem_fun(*this,&Widget_ValueBase::activate));
enum_widget->signal_activate().connect(sigc::mem_fun(*this,&Widget_ValueBase::activate));
real_widget->signal_activate().connect(sigc::mem_fun(*this,&Widget_ValueBase::activate));
integer_widget->signal_activate().connect(sigc::mem_fun(*this,&Widget_ValueBase::activate));
vector_widget->set_has_frame(false);
//vector_widget->set_digits(10);
- color_widget->set_has_frame(false);
+ //color_widget->set_has_frame(false);
//color_widget->set_digits(10);
filename_widget->set_has_frame(false);
time_widget->set_has_frame(false);
break;
case ValueBase::TYPE_COLOR:
{
- color_widget->set_value(value.get(synfig::Color()));
+ color_widget->set_current_color(studio::colorconv_synfig2gdk(value.get(synfig::Color())));
+ color_widget->set_current_alpha((guint16) value.get(synfig::Color()).get_a() * 65535);
color_widget->show();
/*
Gdk::Color gdkcolor;
break;
case ValueBase::TYPE_COLOR:
{
- value=color_widget->get_value();
+ value=studio::colorconv_gdk2synfig(color_widget->get_current_color(), color_widget->get_current_alpha() / 65535.0);
/*
Gdk::Color gdkcolor;
synfig::Color color;