diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2009-02-19 23:57:21 +0000 |
|---|---|---|
| committer | tweenk <tweenk@users.sourceforge.net> | 2009-02-19 23:57:21 +0000 |
| commit | 1bd8104786e988ddbb049246ceab7441a1b54ba7 (patch) | |
| tree | 38def9e1db2c07c053728276c3d9dee2df429db3 /src/dialogs | |
| parent | Fix SVN revision reporting so that it doesn't relink on every make (diff) | |
| download | inkscape-1bd8104786e988ddbb049246ceab7441a1b54ba7.tar.gz inkscape-1bd8104786e988ddbb049246ceab7441a1b54ba7.zip | |
Make all icons themable (except the filter icons).
(bzr r7332)
Diffstat (limited to 'src/dialogs')
| -rw-r--r-- | src/dialogs/clonetiler.cpp | 46 | ||||
| -rw-r--r-- | src/dialogs/fill-style.cpp | 22 | ||||
| -rw-r--r-- | src/dialogs/layers-panel.cpp | 7 | ||||
| -rw-r--r-- | src/dialogs/stroke-style.cpp | 82 | ||||
| -rw-r--r-- | src/dialogs/text-edit.cpp | 16 | ||||
| -rw-r--r-- | src/dialogs/xml-tree.cpp | 57 |
6 files changed, 113 insertions, 117 deletions
diff --git a/src/dialogs/clonetiler.cpp b/src/dialogs/clonetiler.cpp index 467b34cff..55884fe4a 100644 --- a/src/dialogs/clonetiler.cpp +++ b/src/dialogs/clonetiler.cpp @@ -18,38 +18,34 @@ #include "application/application.h" #include "application/editor.h" -#include "helper/window.h" +#include "../desktop.h" +#include "../desktop-handles.h" +#include "dialog-events.h" +#include "display/nr-arena.h" +#include "display/nr-arena-item.h" +#include "../document.h" +#include "../filter-chemistry.h" #include "helper/unit-menu.h" #include "helper/units.h" -#include "widgets/icon.h" +#include "helper/window.h" #include "../inkscape.h" -#include "preferences.h" -#include "dialog-events.h" -#include "../macros.h" -#include "../verbs.h" #include "../interface.h" +#include "../macros.h" +#include "../message-stack.h" +#include "preferences.h" #include "../selection.h" -#include "../style.h" -#include "../desktop.h" -#include "../desktop-handles.h" +#include "../sp-filter.h" #include "../sp-namedview.h" -#include "../document.h" -#include "../message-stack.h" #include "../sp-use.h" -#include "unclump.h" - -#include "xml/repr.h" - -#include "svg/svg.h" +#include "../style.h" #include "svg/svg-color.h" - -#include "display/nr-arena.h" -#include "display/nr-arena-item.h" - +#include "svg/svg.h" +#include "ui/icon-names.h" #include "ui/widget/color-picker.h" - -#include "../sp-filter.h" -#include "../filter-chemistry.h" +#include "unclump.h" +#include "../verbs.h" +#include "widgets/icon.h" +#include "xml/repr.h" #define MIN_ONSCREEN_DISTANCE 50 @@ -1703,7 +1699,7 @@ clonetiler_table_x_y_rand (int values) { GtkWidget *hb = gtk_hbox_new (FALSE, 0); - GtkWidget *i = sp_icon_new (Inkscape::ICON_SIZE_DECORATION, "clonetiler_per_row"); + GtkWidget *i = sp_icon_new (Inkscape::ICON_SIZE_DECORATION, INKSCAPE_ICON_OBJECT_ROWS); gtk_box_pack_start (GTK_BOX (hb), i, FALSE, FALSE, 2); GtkWidget *l = gtk_label_new (""); @@ -1716,7 +1712,7 @@ clonetiler_table_x_y_rand (int values) { GtkWidget *hb = gtk_hbox_new (FALSE, 0); - GtkWidget *i = sp_icon_new (Inkscape::ICON_SIZE_DECORATION, "clonetiler_per_column"); + GtkWidget *i = sp_icon_new (Inkscape::ICON_SIZE_DECORATION, INKSCAPE_ICON_OBJECT_COLUMNS); gtk_box_pack_start (GTK_BOX (hb), i, FALSE, FALSE, 2); GtkWidget *l = gtk_label_new (""); diff --git a/src/dialogs/fill-style.cpp b/src/dialogs/fill-style.cpp index e1c30e7ae..24e46f056 100644 --- a/src/dialogs/fill-style.cpp +++ b/src/dialogs/fill-style.cpp @@ -18,22 +18,24 @@ # include "config.h" #endif +#include <glibmm/i18n.h> -#include "widgets/sp-widget.h" +#include "desktop-handles.h" +#include "desktop-style.h" +#include "display/sp-canvas.h" +#include "document-private.h" +#include "gradient-chemistry.h" +#include "inkscape.h" +#include "selection.h" #include "sp-linear-gradient.h" #include "sp-pattern.h" #include "sp-radial-gradient.h" -#include "widgets/paint-selector.h" #include "style.h" -#include "gradient-chemistry.h" -#include "desktop-style.h" -#include "desktop-handles.h" -#include "selection.h" -#include "inkscape.h" -#include "document-private.h" +#include "widgets/paint-selector.h" +#include "widgets/sp-widget.h" #include "xml/repr.h" -#include <glibmm/i18n.h> -#include "display/sp-canvas.h" + +#include "dialogs/fill-style.h" // These can be deleted once we sort out the libart dependence. diff --git a/src/dialogs/layers-panel.cpp b/src/dialogs/layers-panel.cpp index 1b754c606..c826777a2 100644 --- a/src/dialogs/layers-panel.cpp +++ b/src/dialogs/layers-panel.cpp @@ -40,6 +40,7 @@ #include "xml/repr.h" #include "svg/css-ostringstream.h" #include "desktop-style.h" +#include "ui/icon-names.h" //#define DUMP_LAYERS 1 @@ -601,7 +602,8 @@ LayersPanel::LayersPanel() : _tree.set_model( _store ); _tree.set_headers_visible(false); - Inkscape::UI::Widget::ImageToggler *eyeRenderer = manage( new Inkscape::UI::Widget::ImageToggler("visible", "hidden") ); + Inkscape::UI::Widget::ImageToggler *eyeRenderer = manage( new Inkscape::UI::Widget::ImageToggler( + INKSCAPE_ICON_OBJECT_VISIBLE, INKSCAPE_ICON_OBJECT_HIDDEN) ); int visibleColNum = _tree.append_column("vis", *eyeRenderer) - 1; eyeRenderer->signal_pre_toggle().connect( sigc::mem_fun(*this, &LayersPanel::_preToggle) ); eyeRenderer->signal_toggled().connect( sigc::bind( sigc::mem_fun(*this, &LayersPanel::_toggled), (int)COL_VISIBLE) ); @@ -611,7 +613,8 @@ LayersPanel::LayersPanel() : col->add_attribute( eyeRenderer->property_active(), _model->_colVisible ); } - Inkscape::UI::Widget::ImageToggler * renderer = manage( new Inkscape::UI::Widget::ImageToggler("width_height_lock", "lock_unlocked") ); + Inkscape::UI::Widget::ImageToggler * renderer = manage( new Inkscape::UI::Widget::ImageToggler( + INKSCAPE_ICON_OBJECT_LOCKED, INKSCAPE_ICON_OBJECT_UNLOCKED) ); int lockedColNum = _tree.append_column("lock", *renderer) - 1; renderer->signal_pre_toggle().connect( sigc::mem_fun(*this, &LayersPanel::_preToggle) ); renderer->signal_toggled().connect( sigc::bind( sigc::mem_fun(*this, &LayersPanel::_toggled), (int)COL_LOCKED) ); diff --git a/src/dialogs/stroke-style.cpp b/src/dialogs/stroke-style.cpp index b0375f755..566ee5117 100644 --- a/src/dialogs/stroke-style.cpp +++ b/src/dialogs/stroke-style.cpp @@ -20,38 +20,38 @@ #include <glib/gmem.h> #include <gtk/gtk.h> - #include <glibmm/i18n.h> -#include "helper/unit-menu.h" -#include "helper/units.h" -#include "svg/css-ostringstream.h" -#include "widgets/sp-widget.h" -#include "widgets/spw-utilities.h" -#include "sp-linear-gradient.h" -#include "sp-radial-gradient.h" -#include "marker.h" -#include "sp-pattern.h" -#include "widgets/paint-selector.h" -#include "widgets/dash-selector.h" -#include "style.h" -#include "gradient-chemistry.h" -#include "sp-namedview.h" + #include "desktop-handles.h" #include "desktop-style.h" -#include "selection.h" -#include "inkscape.h" -#include "inkscape-stock.h" #include "dialogs/dialog-events.h" -#include "sp-text.h" -#include "sp-rect.h" -#include "document-private.h" #include "display/nr-arena.h" #include "display/nr-arena-item.h" -#include "path-prefix.h" -#include "widgets/icon.h" +#include "document-private.h" +#include "gradient-chemistry.h" #include "helper/stock-items.h" +#include "helper/unit-menu.h" +#include "helper/units.h" +#include "inkscape.h" #include "io/sys.h" +#include "marker.h" +#include "path-prefix.h" +#include "selection.h" +#include "sp-linear-gradient.h" +#include "sp-namedview.h" +#include "sp-pattern.h" +#include "sp-radial-gradient.h" +#include "sp-rect.h" +#include "sp-text.h" +#include "style.h" +#include "svg/css-ostringstream.h" #include "ui/cache/svg_preview_cache.h" +#include "ui/icon-names.h" +#include "widgets/dash-selector.h" +#include "widgets/icon.h" +#include "widgets/paint-selector.h" +#include "widgets/sp-widget.h" +#include "widgets/spw-utilities.h" #include "xml/repr.h" #include "dialogs/stroke-style.h" @@ -1118,7 +1118,7 @@ sp_stroke_style_line_widget_new(void) tb = NULL; - tb = sp_stroke_radio_button(tb, INKSCAPE_STOCK_JOIN_MITER, + tb = sp_stroke_radio_button(tb, INKSCAPE_ICON_STROKE_JOIN_MITER, hb, spw, "join", "miter"); // TRANSLATORS: Miter join: joining lines with a sharp (pointed) corner. @@ -1126,7 +1126,7 @@ sp_stroke_style_line_widget_new(void) // "Join" option (in the Fill and Stroke dialog). tt->set_tip(*tb, _("Miter join")); - tb = sp_stroke_radio_button(tb, INKSCAPE_STOCK_JOIN_ROUND, + tb = sp_stroke_radio_button(tb, INKSCAPE_ICON_STROKE_JOIN_ROUND, hb, spw, "join", "round"); // TRANSLATORS: Round join: joining lines with a rounded corner. @@ -1134,7 +1134,7 @@ sp_stroke_style_line_widget_new(void) // "Join" option (in the Fill and Stroke dialog). tt->set_tip(*tb, _("Round join")); - tb = sp_stroke_radio_button(tb, INKSCAPE_STOCK_JOIN_BEVEL, + tb = sp_stroke_radio_button(tb, INKSCAPE_ICON_STROKE_JOIN_BEVEL, hb, spw, "join", "bevel"); // TRANSLATORS: Bevel join: joining lines with a blunted (flattened) corner. @@ -1177,21 +1177,21 @@ sp_stroke_style_line_widget_new(void) tb = NULL; - tb = sp_stroke_radio_button(tb, INKSCAPE_STOCK_CAP_BUTT, + tb = sp_stroke_radio_button(tb, INKSCAPE_ICON_STROKE_CAP_BUTT, hb, spw, "cap", "butt"); // TRANSLATORS: Butt cap: the line shape does not extend beyond the end point // of the line; the ends of the line are square tt->set_tip(*tb, _("Butt cap")); - tb = sp_stroke_radio_button(tb, INKSCAPE_STOCK_CAP_ROUND, + tb = sp_stroke_radio_button(tb, INKSCAPE_ICON_STROKE_CAP_ROUND, hb, spw, "cap", "round"); // TRANSLATORS: Round cap: the line shape extends beyond the end point of the // line; the ends of the line are rounded tt->set_tip(*tb, _("Round cap")); - tb = sp_stroke_radio_button(tb, INKSCAPE_STOCK_CAP_SQUARE, + tb = sp_stroke_radio_button(tb, INKSCAPE_ICON_STROKE_CAP_SQUARE, hb, spw, "cap", "square"); // TRANSLATORS: Square cap: the line shape extends beyond the end point of the @@ -1329,13 +1329,13 @@ sp_jointype_set (Gtk::Container *spw, unsigned const jointype) Gtk::RadioButton *tb = NULL; switch (jointype) { case SP_STROKE_LINEJOIN_MITER: - tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_STOCK_JOIN_MITER)); + tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_ICON_STROKE_JOIN_MITER)); break; case SP_STROKE_LINEJOIN_ROUND: - tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_STOCK_JOIN_ROUND)); + tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_ICON_STROKE_JOIN_ROUND)); break; case SP_STROKE_LINEJOIN_BEVEL: - tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_STOCK_JOIN_BEVEL)); + tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_ICON_STROKE_JOIN_BEVEL)); break; default: break; @@ -1352,13 +1352,13 @@ sp_captype_set (Gtk::Container *spw, unsigned const captype) Gtk::RadioButton *tb = NULL; switch (captype) { case SP_STROKE_LINECAP_BUTT: - tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_STOCK_CAP_BUTT)); + tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_ICON_STROKE_CAP_BUTT)); break; case SP_STROKE_LINECAP_ROUND: - tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_STOCK_CAP_ROUND)); + tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_ICON_STROKE_CAP_ROUND)); break; case SP_STROKE_LINECAP_SQUARE: - tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_STOCK_CAP_SQUARE)); + tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_ICON_STROKE_CAP_SQUARE)); break; default: break; @@ -1674,16 +1674,16 @@ sp_stroke_style_set_join_buttons(Gtk::Container *spw, Gtk::ToggleButton *active) { Gtk::RadioButton *tb; - tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_STOCK_JOIN_MITER)); + tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_ICON_STROKE_JOIN_MITER)); tb->set_active(active == tb); Gtk::SpinButton *ml = static_cast<Gtk::SpinButton *>(spw->get_data("miterlimit_sb")); ml->set_sensitive(active == tb); - tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_STOCK_JOIN_ROUND)); + tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_ICON_STROKE_JOIN_ROUND)); tb->set_active(active == tb); - tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_STOCK_JOIN_BEVEL)); + tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_ICON_STROKE_JOIN_BEVEL)); tb->set_active(active == tb); } @@ -1695,11 +1695,11 @@ sp_stroke_style_set_cap_buttons(Gtk::Container *spw, Gtk::ToggleButton *active) { Gtk::RadioButton *tb; - tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_STOCK_CAP_BUTT)); + tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_ICON_STROKE_CAP_BUTT)); tb->set_active(active == tb); - tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_STOCK_CAP_ROUND)); + tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_ICON_STROKE_CAP_ROUND)); tb->set_active(active == tb); - tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_STOCK_CAP_SQUARE)); + tb = static_cast<Gtk::RadioButton *>(spw->get_data(INKSCAPE_ICON_STROKE_CAP_SQUARE)); tb->set_active(active == tb); } diff --git a/src/dialogs/text-edit.cpp b/src/dialogs/text-edit.cpp index e213a8aba..dc71de7c3 100644 --- a/src/dialogs/text-edit.cpp +++ b/src/dialogs/text-edit.cpp @@ -38,7 +38,7 @@ extern "C" { #include "../sp-text.h" #include "../sp-flowtext.h" #include "../text-editing.h" -#include "../inkscape-stock.h" +#include "../ui/icon-names.h" #include <libnrtype/font-style-to-pos.h> #include "dialog-events.h" @@ -295,7 +295,7 @@ sp_text_edit_dialog (void) // horizontal { GtkWidget *px = sp_icon_new( Inkscape::ICON_SIZE_LARGE_TOOLBAR, - INKSCAPE_STOCK_WRITING_MODE_LR ); + INKSCAPE_ICON_FORMAT_TEXT_DIRECTION_HORIZONTAL ); GtkWidget *b = group = gtk_radio_button_new (NULL); gtk_tooltips_set_tip (tt, b, _("Horizontal text"), NULL); gtk_button_set_relief (GTK_BUTTON (b), GTK_RELIEF_NONE); @@ -303,13 +303,13 @@ sp_text_edit_dialog (void) gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (b), FALSE); gtk_container_add (GTK_CONTAINER (b), px); gtk_box_pack_start (GTK_BOX (row), b, FALSE, FALSE, 0); - g_object_set_data (G_OBJECT (dlg), INKSCAPE_STOCK_WRITING_MODE_LR, b); + g_object_set_data (G_OBJECT (dlg), INKSCAPE_ICON_FORMAT_TEXT_DIRECTION_HORIZONTAL, b); } // vertical { GtkWidget *px = sp_icon_new( Inkscape::ICON_SIZE_LARGE_TOOLBAR, - INKSCAPE_STOCK_WRITING_MODE_TB ); + INKSCAPE_ICON_FORMAT_TEXT_DIRECTION_VERTICAL ); GtkWidget *b = gtk_radio_button_new (gtk_radio_button_group (GTK_RADIO_BUTTON (group))); gtk_tooltips_set_tip (tt, b, _("Vertical text"), NULL); gtk_button_set_relief (GTK_BUTTON (b), GTK_RELIEF_NONE); @@ -317,7 +317,7 @@ sp_text_edit_dialog (void) gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (b), FALSE); gtk_container_add (GTK_CONTAINER (b), px); gtk_box_pack_start (GTK_BOX (row), b, FALSE, FALSE, 0); - g_object_set_data (G_OBJECT (dlg), INKSCAPE_STOCK_WRITING_MODE_TB, b); + g_object_set_data (G_OBJECT (dlg), INKSCAPE_ICON_FORMAT_TEXT_DIRECTION_VERTICAL, b); } gtk_box_pack_start (GTK_BOX (l_vb), row, FALSE, FALSE, 0); @@ -582,7 +582,7 @@ sp_get_text_dialog_style () } } - b = (GtkWidget*)g_object_get_data (G_OBJECT (dlg), INKSCAPE_STOCK_WRITING_MODE_LR ); + b = (GtkWidget*)g_object_get_data (G_OBJECT (dlg), INKSCAPE_ICON_FORMAT_TEXT_DIRECTION_HORIZONTAL ); if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (b))) { sp_repr_css_set_property (css, "writing-mode", "lr"); @@ -781,9 +781,9 @@ sp_text_edit_dialog_read_selection ( GtkWidget *dlg, gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (b), TRUE); if (query->writing_mode.computed == SP_CSS_WRITING_MODE_LR_TB) { - b = (GtkWidget*)g_object_get_data ( G_OBJECT (dlg), INKSCAPE_STOCK_WRITING_MODE_LR ); + b = (GtkWidget*)g_object_get_data ( G_OBJECT (dlg), INKSCAPE_ICON_FORMAT_TEXT_DIRECTION_HORIZONTAL ); } else { - b = (GtkWidget*)g_object_get_data ( G_OBJECT (dlg), INKSCAPE_STOCK_WRITING_MODE_TB ); + b = (GtkWidget*)g_object_get_data ( G_OBJECT (dlg), INKSCAPE_ICON_FORMAT_TEXT_DIRECTION_VERTICAL ); } gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (b), TRUE); diff --git a/src/dialogs/xml-tree.cpp b/src/dialogs/xml-tree.cpp index 934045b33..65ae9a8a3 100644 --- a/src/dialogs/xml-tree.cpp +++ b/src/dialogs/xml-tree.cpp @@ -12,39 +12,34 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#include <gtk/gtk.h> +#include <gdk/gdkkeysyms.h> #include <glibmm/i18n.h> +#include <gtk/gtk.h> + +#include "desktop.h" +#include "../desktop-handles.h" +#include "dialog-events.h" +#include "../document.h" +#include "../event-context.h" #include "helper/window.h" -#include "macros.h" +#include "in-dt-coordsys.h" #include "../inkscape.h" -#include "../document.h" -#include "../desktop-handles.h" -#include "desktop.h" +#include "../interface.h" +#include "macros.h" +#include "message-context.h" +#include "message-stack.h" +#include "../preferences.h" #include "../selection.h" +#include "shortcuts.h" +#include "../sp-root.h" #include "../sp-string.h" #include "../sp-tspan.h" -#include "../sp-root.h" -#include "../event-context.h" -#include "in-dt-coordsys.h" - - -#include "../widgets/sp-xmlview-tree.h" -#include "../widgets/sp-xmlview-content.h" -#include "../widgets/sp-xmlview-attr-list.h" - -#include "../inkscape-stock.h" -#include "widgets/icon.h" - -#include "dialog-events.h" -#include "../preferences.h" +#include "ui/icon-names.h" #include "../verbs.h" -#include "../interface.h" - -#include "shortcuts.h" -#include <gdk/gdkkeysyms.h> - -#include "message-stack.h" -#include "message-context.h" +#include "widgets/icon.h" +#include "../widgets/sp-xmlview-attr-list.h" +#include "../widgets/sp-xmlview-content.h" +#include "../widgets/sp-xmlview-tree.h" #define MIN_ONSCREEN_DISTANCE 50 @@ -288,7 +283,7 @@ void sp_xml_tree_dialog() _("New element node"), NULL, sp_icon_new( Inkscape::ICON_SIZE_LARGE_TOOLBAR, - INKSCAPE_STOCK_ADD_XML_ELEMENT_NODE ), + INKSCAPE_ICON_XML_ELEMENT_NEW ), G_CALLBACK(cmd_new_element_node), NULL); @@ -309,7 +304,7 @@ void sp_xml_tree_dialog() button = gtk_toolbar_append_item(GTK_TOOLBAR(toolbar), NULL, _("New text node"), NULL, sp_icon_new( Inkscape::ICON_SIZE_LARGE_TOOLBAR, - INKSCAPE_STOCK_ADD_XML_TEXT_NODE ), + INKSCAPE_ICON_XML_TEXT_NEW ), G_CALLBACK(cmd_new_text_node), NULL); @@ -330,7 +325,7 @@ void sp_xml_tree_dialog() button = gtk_toolbar_append_item(GTK_TOOLBAR(toolbar), NULL, _("Duplicate node"), NULL, sp_icon_new( Inkscape::ICON_SIZE_LARGE_TOOLBAR, - INKSCAPE_STOCK_DUPLICATE_XML_NODE ), + INKSCAPE_ICON_XML_NODE_DUPLICATE ), G_CALLBACK(cmd_duplicate_node), NULL); @@ -351,7 +346,7 @@ void sp_xml_tree_dialog() button = gtk_toolbar_append_item(GTK_TOOLBAR(toolbar), NULL, _("Delete node"), NULL, sp_icon_new( Inkscape::ICON_SIZE_LARGE_TOOLBAR, - INKSCAPE_STOCK_DELETE_XML_NODE ), + INKSCAPE_ICON_XML_NODE_DELETE ), G_CALLBACK(cmd_delete_node), NULL ); gtk_signal_connect_while_alive(GTK_OBJECT(tree), "tree_select_row", @@ -451,7 +446,7 @@ void sp_xml_tree_dialog() button = gtk_toolbar_append_item(GTK_TOOLBAR(toolbar), NULL, _("Delete attribute"), NULL, sp_icon_new( Inkscape::ICON_SIZE_LARGE_TOOLBAR, - INKSCAPE_STOCK_DELETE_XML_ATTRIBUTE ), + INKSCAPE_ICON_XML_ATTRIBUTE_DELETE ), (GCallback) cmd_delete_attr, NULL); gtk_signal_connect_while_alive(GTK_OBJECT(attributes), "select_row", |
