path
)
);
+ App::dialog_gradient->grab_button_set_sensitive(true);
App::dialog_gradient->present();
return NULL;
set_role("gradient_editor");
// Setup the buttons
- Gtk::Button *grab_button(manage(new class Gtk::Button(Gtk::StockID(_("Grab")))));
+ grab_button = manage(new class Gtk::Button(Gtk::StockID(_("Set as Default"))));
grab_button->show();
add_action_widget(*grab_button,2);
grab_button->signal_clicked().connect(sigc::mem_fun(*this, &Dialog_Gradient::on_grab_pressed));
Widget_Gradient* widget_gradient;
Widget_ColorEdit* widget_color;
+ Gtk::Button *grab_button;
void on_changed();
const synfig::Gradient& get_gradient()const { return widget_gradient->get_value(); }
+ void grab_button_set_sensitive(bool sensitive) { grab_button->set_sensitive(sensitive); }
+
void reset();
App::dialog_gradient->set_gradient(synfigapp::Main::get_gradient());
App::dialog_gradient->reset();
App::dialog_gradient->signal_edited().connect(sigc::ptr_fun(synfigapp::Main::set_gradient));
+ App::dialog_gradient->grab_button_set_sensitive(false);
App::dialog_gradient->present();
}