**
** \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 <synfig/exception.h>
#include <ETL/misc>
+#include "general.h"
+
#endif
/* === U S I N G =========================================================== */
Widget_Gradient::remove_cpoint(float x)
{
gradient_.erase(gradient_.proximity(x));
+ signal_value_changed_();
queue_draw();
}
Widget_Gradient::popup_menu(float x)
{
Gtk::Menu* menu(manage(new Gtk::Menu()));
+ menu->signal_hide().connect(sigc::bind(sigc::ptr_fun(&delete_widget), menu));
menu->items().clear();
case GDK_MOTION_NOTIFY:
if(editable_ && y>get_height()-CONTROL_HEIGHT)
{
+ if(!gradient_.size()) return true;
Gradient::iterator iter(gradient_.find(selected_cpoint));
if(event->button.state&GDK_SHIFT_MASK)