**
** \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 "../app.h"
#include "../dialog_color.h"
+#include "../general.h"
+
#endif
/* === U S I N G =========================================================== */
table(2,2,false)
{
action_group=Gtk::ActionGroup::create();
- DEBUGPOINT();
action_group->add(Gtk::Action::create(
"palette-add-color",
Gtk::StockID("gtk-add"),
_("Add Color"),
- _("Add current foreground color\nto the palette")
+ _("Add current outline color\nto the palette")
),
sigc::mem_fun(
*this,
/*
add_button(
Gtk::StockID("gtk-add"),
- _("Add current foreground color\nto the palette")
+ _("Add current outline color\nto the palette")
)->signal_clicked().connect(
sigc::mem_fun(
*this,
void
Dock_PalEdit::on_add_pressed()
{
- add_color(synfigapp::Main::get_foreground_color());
+ add_color(synfigapp::Main::get_outline_color());
}
void
Dock_PalEdit::show_menu(int i)
{
Gtk::Menu* menu(manage(new Gtk::Menu()));
+ menu->signal_hide().connect(sigc::bind(sigc::ptr_fun(&delete_widget), menu));
menu->items().push_back(Gtk::Menu_Helpers::StockMenuElem(Gtk::StockID("gtk-select-color"),
sigc::bind(
void
Dock_PalEdit::select_color(int i)
{
- synfigapp::Main::set_foreground_color(get_color(i));
+ synfigapp::Main::set_outline_color(get_color(i));
}
void