diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2016-04-08 18:41:33 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2016-04-08 18:41:33 +0000 |
| commit | e95a3400c24ac43bcb93d184a1089a723a856351 (patch) | |
| tree | dc60b96ae4aaae86ab2e7adffea26864dc3da7cd /src | |
| parent | Remove inkscape-specific glib clone function (and get rid of deprecated Glib ... (diff) | |
| download | inkscape-e95a3400c24ac43bcb93d184a1089a723a856351.tar.gz inkscape-e95a3400c24ac43bcb93d184a1089a723a856351.zip | |
Provide tooltip for Selection set dialog tree area.
Based on patch from Kamalpreet Grewal.
(bzr r14767)
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/dialog/tags.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/ui/dialog/tags.cpp b/src/ui/dialog/tags.cpp index cbb2fb953..c99c1bff3 100644 --- a/src/ui/dialog/tags.cpp +++ b/src/ui/dialog/tags.cpp @@ -935,7 +935,17 @@ TagsPanel::TagsPanel() : _tree.set_headers_visible(false); _tree.set_reorderable(true); _tree.enable_model_drag_dest (Gdk::ACTION_MOVE); - + + // This string is constructed to use already translated strings. + // The tooltip applies to the whole tree area. It would be better + // if the tooltip was split into parts and only applied to the + // icons but doing that is quite complicated. + Glib::ustring tooltip_string = "'+': "; + tooltip_string += (_("Add selection to set")); + tooltip_string += "; '×': "; + tooltip_string += (_("Remove from selection set")); + _tree.set_tooltip_text( tooltip_string ); + Inkscape::UI::Widget::AddToIcon * addRenderer = manage( new Inkscape::UI::Widget::AddToIcon()); int addColNum = _tree.append_column("type", *addRenderer) - 1; Gtk::TreeViewColumn *col = _tree.get_column(addColNum); |
