summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/path.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2017-06-29 13:28:54 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2017-06-29 13:28:54 +0000
commit88e5cefd2b64d56aa00009f91d9c481c9b8c3c74 (patch)
tree901357ee4a10db7a130c7c591e2fe85ee32bc931 /src/live_effects/parameter/path.cpp
parentglade WIP (diff)
parentHackfest icon work: restore selected menu icons and make theming easier (diff)
downloadinkscape-88e5cefd2b64d56aa00009f91d9c481c9b8c3c74.tar.gz
inkscape-88e5cefd2b64d56aa00009f91d9c481c9b8c3c74.zip
Merge branch 'master' of gitlab.com:inkscape/inkscape
Diffstat (limited to 'src/live_effects/parameter/path.cpp')
-rw-r--r--src/live_effects/parameter/path.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/live_effects/parameter/path.cpp b/src/live_effects/parameter/path.cpp
index 54f5d93e8..ec011b855 100644
--- a/src/live_effects/parameter/path.cpp
+++ b/src/live_effects/parameter/path.cpp
@@ -22,7 +22,6 @@
#include <2geom/pathvector.h>
#include <2geom/d2.h>
-#include "widgets/icon.h"
#include "selection-chemistry.h"
#include "xml/repr.h"
#include "desktop.h"
@@ -187,10 +186,11 @@ PathParam::param_newWidget()
Gtk::Label* pLabel = Gtk::manage(new Gtk::Label(param_label));
static_cast<Gtk::HBox*>(_widget)->pack_start(*pLabel, true, true);
pLabel->set_tooltip_text(param_tooltip);
- Gtk::Widget * pIcon = NULL;
+ Gtk::Image * pIcon = NULL;
Gtk::Button * pButton = NULL;
if (_edit_button) {
- pIcon = Gtk::manage( sp_icon_get_icon( INKSCAPE_ICON("tool-node-editor"), Inkscape::ICON_SIZE_BUTTON) );
+ pIcon = Gtk::manage(new Gtk::Image());
+ pIcon->set_from_icon_name( INKSCAPE_ICON("tool-node-editor"), Gtk::ICON_SIZE_BUTTON);
pButton = Gtk::manage(new Gtk::Button());
pButton->set_relief(Gtk::RELIEF_NONE);
pIcon->show();
@@ -202,7 +202,8 @@ PathParam::param_newWidget()
}
if (_copy_button) {
- pIcon = Gtk::manage( sp_icon_get_icon( INKSCAPE_ICON("edit-copy"), Inkscape::ICON_SIZE_BUTTON) );
+ pIcon = Gtk::manage(new Gtk::Image());
+ pIcon->set_from_icon_name( INKSCAPE_ICON("edit-copy"), Gtk::ICON_SIZE_BUTTON);
pButton = Gtk::manage(new Gtk::Button());
pButton->set_relief(Gtk::RELIEF_NONE);
pIcon->show();
@@ -214,7 +215,8 @@ PathParam::param_newWidget()
}
if (_paste_button) {
- pIcon = Gtk::manage( sp_icon_get_icon( INKSCAPE_ICON("edit-paste"), Inkscape::ICON_SIZE_BUTTON) );
+ pIcon = Gtk::manage(new Gtk::Image());
+ pIcon->set_from_icon_name( INKSCAPE_ICON("edit-paste"), Gtk::ICON_SIZE_BUTTON);
pButton = Gtk::manage(new Gtk::Button());
pButton->set_relief(Gtk::RELIEF_NONE);
pIcon->show();
@@ -225,7 +227,8 @@ PathParam::param_newWidget()
pButton->set_tooltip_text(_("Paste path"));
}
if (_link_button) {
- pIcon = Gtk::manage( sp_icon_get_icon( INKSCAPE_ICON("edit-clone"), Inkscape::ICON_SIZE_BUTTON) );
+ pIcon = Gtk::manage(new Gtk::Image());
+ pIcon->set_from_icon_name( INKSCAPE_ICON("edit-clone"), Gtk::ICON_SIZE_BUTTON);
pButton = Gtk::manage(new Gtk::Button());
pButton->set_relief(Gtk::RELIEF_NONE);
pIcon->show();