From 78b5478136fa43a7c225ef5aa433ec9c0926667d Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Fri, 19 Jan 2018 13:10:05 +0100 Subject: Move general ellipsize text function out of gradient files. --- src/ui/widget/color-icc-selector.cpp | 4 ++-- src/ui/widget/layer-selector.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ui/widget') diff --git a/src/ui/widget/color-icc-selector.cpp b/src/ui/widget/color-icc-selector.cpp index 5fba36867..aaf5ba5c2 100644 --- a/src/ui/widget/color-icc-selector.cpp +++ b/src/ui/widget/color-icc-selector.cpp @@ -8,6 +8,7 @@ #include #include "ui/dialog-events.h" +#include "ui/util.h" #include "ui/widget/color-icc-selector.h" #include "ui/widget/color-scales.h" #include "ui/widget/color-slider.h" @@ -16,7 +17,6 @@ #include "document.h" #include "inkscape.h" #include "profile-manager.h" -#include "widgets/gradient-vector.h" #define noDEBUG_LCMS @@ -685,7 +685,7 @@ void ColorICCSelectorImpl::_profilesChanged(std::string const &name) Inkscape::ColorProfile *prof = it; gtk_list_store_append(store, &iter); - gtk_list_store_set(store, &iter, 0, gr_ellipsize_text(prof->name, 25).c_str(), 1, prof->name, -1); + gtk_list_store_set(store, &iter, 0, ink_ellipsize_text(prof->name, 25).c_str(), 1, prof->name, -1); if (name == prof->name) { gtk_combo_box_set_active(combo, index); diff --git a/src/ui/widget/layer-selector.cpp b/src/ui/widget/layer-selector.cpp index 7a0312192..e0a52a868 100644 --- a/src/ui/widget/layer-selector.cpp +++ b/src/ui/widget/layer-selector.cpp @@ -28,11 +28,11 @@ #include "document-undo.h" #include "layer-manager.h" #include "ui/icon-names.h" +#include "ui/util.h" #include "util/filter-list.h" #include "util/reverse-list.h" #include "verbs.h" #include "xml/node-event-vector.h" -#include "widgets/gradient-vector.h" namespace Inkscape { namespace Widgets { @@ -573,7 +573,7 @@ void LayerSelector::_prepareLabelRenderer( label = _("(root)"); } - gchar *text = g_markup_printf_escaped(format, gr_ellipsize_text (label, 50).c_str()); + gchar *text = g_markup_printf_escaped(format, ink_ellipsize_text (label, 50).c_str()); _label_renderer.property_markup() = text; g_free(text); g_free(format); -- cgit v1.2.3