Code

path lpe parameter should not know of it's edit button since it has no unique button.
authorjohanengelen <johanengelen@users.sourceforge.net>
Sat, 26 Jan 2008 15:30:23 +0000 (15:30 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Sat, 26 Jan 2008 15:30:23 +0000 (15:30 +0000)
src/live_effects/parameter/path.cpp
src/live_effects/parameter/path.h

index 59655d62ed28cd9efa62139812450b0191598587..df904b8a12e2582d6870310938aee6463afd228e 100644 (file)
@@ -42,7 +42,6 @@ PathParam::PathParam( const Glib::ustring& label, const Glib::ustring& tip,
                       Effect* effect, const gchar * default_value)
     : Parameter(label, tip, key, wr, effect)
 {
-    edit_button = NULL;
     defvalue = g_strdup(default_value);
     param_readSVGValue(defvalue);
     oncanvas_editable = true;
@@ -103,7 +102,6 @@ PathParam::param_newWidget(Gtk::Tooltips * tooltips)
     pButton->signal_clicked().connect(sigc::mem_fun(*this, &PathParam::on_edit_button_click));
     static_cast<Gtk::HBox*>(_widget)->pack_start(*pButton, true, true);
     tooltips->set_tip(*pButton, _("Edit on-canvas"));
-    edit_button = pButton;
 
     pIcon = Gtk::manage( sp_icon_get_icon( GTK_STOCK_PASTE, Inkscape::ICON_SIZE_BUTTON) );
     pButton = Gtk::manage(new Gtk::Button());
index 456a9ae0b1dd8ced3c8c40a3b4172b33d94e9850..d6ea8d1cd2a6ce50c6a280685c3250f8968d1c0c 100644 (file)
 
 #include <sigc++/sigc++.h>
 
-namespace Gtk {
-    class Button;
-}
-
 namespace Inkscape {
 
 namespace LivePathEffect {
@@ -62,8 +58,6 @@ private:
     void on_paste_button_click();
 
     gchar * defvalue;
-
-    Gtk::Button * edit_button;
 };