summaryrefslogtreecommitdiffstats
path: root/src/ui/contextmenu.cpp
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2017-06-28 19:37:37 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2017-06-28 19:37:37 +0000
commitb50eb4cd21ff55bd174a2290aeb1a52d49c56479 (patch)
tree510d03234e63204faa35784b46be779feb603bb8 /src/ui/contextmenu.cpp
parentAdd a show-icon attribute to menu XML (diff)
downloadinkscape-b50eb4cd21ff55bd174a2290aeb1a52d49c56479.tar.gz
inkscape-b50eb4cd21ff55bd174a2290aeb1a52d49c56479.zip
contextmenu: Rm icons per GNOME HIG
Diffstat (limited to 'src/ui/contextmenu.cpp')
-rw-r--r--src/ui/contextmenu.cpp20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/ui/contextmenu.cpp b/src/ui/contextmenu.cpp
index cd61d3872..1bc87574e 100644
--- a/src/ui/contextmenu.cpp
+++ b/src/ui/contextmenu.cpp
@@ -268,25 +268,7 @@ void ContextMenu::AppendItemFromVerb(Inkscape::Verb *verb)//, SPDesktop *view)//
return;
}
- // Create a box to contain all the widgets (icon, label, accelerator)
- // that will go inside the menu item
- auto const box = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL, 6));
-
- // If there is an image associated with the action, then we can add it as an
- // icon for the menu item
- if (action->image) {
- auto const icon = Gtk::manage(new Gtk::Image());
- icon->set_from_icon_name(action->image, Gtk::ICON_SIZE_MENU);
- box->add(*icon);
- }
-
- // Now create the label and add it to the menu item (with mnemonic
- auto const label = Gtk::manage(new Gtk::Label(action->name, true));
- box->add(*label);
-
- // Create the menu item itself, either as a radio menu item, or just
- // a regular menu item depending on whether the "radio" flag is set
- auto const item = Gtk::manage(new Gtk::MenuItem(*box));
+ auto const item = Gtk::manage(new Gtk::MenuItem(action->name, true));
sp_shortcut_add_accelerator(GTK_WIDGET(item->gobj()), sp_shortcut_get_primary(verb));