Inkscape
Vector Graphics Editor
|
Go over a widget representing a menu, & set tooltips on its items from app label-to-tooltip map. More...
Go to the source code of this file.
Functions | |
static Glib::ustring | find_label (Gtk::Widget &parent) |
bool | set_tooltips_and_shift_icons (Gtk::Widget &menu, bool const shift_icons) |
Go over a widget representing a menu, & set tooltips on its items from app label-to-tooltip map. | |
Go over a widget representing a menu, & set tooltips on its items from app label-to-tooltip map.
Optionally (per Preference) shift Gtk::MenuItems with icons to align with Toggle & Radio buttons
Definition in file menu-set-tooltips-shift-icons.cpp.
|
static |
Definition at line 39 of file menu-set-tooltips-shift-icons.cpp.
References Inkscape::UI::_break, Inkscape::UI::_continue, child, Inkscape::UI::for_each_child(), label, and parent.
bool set_tooltips_and_shift_icons | ( | Gtk::Widget & | menu, |
bool const | shift_icons | ||
) |
Go over a widget representing a menu, & set tooltips on its items from app label-to-tooltip map.
shift_icons | If true: Install CSS to shift icons into the space reserved for toggles (i.e. check and radio items). The CSS will apply to all menu icons but is updated as each menu is shown. |
Definition at line 61 of file menu-set-tooltips-shift-icons.cpp.
References Inkscape::UI::_continue, child, Inkscape::UI::for_each_child(), InkscapeApplication::instance(), label, and set_tooltips_and_shift_icons().
Referenced by ContextMenu::ContextMenu(), InkscapeWindow::InkscapeWindow(), and set_tooltips_and_shift_icons().