summaryrefslogtreecommitdiffstats
path: root/src/widgets/gradient-toolbar.cpp
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-05-15 08:11:19 +0000
committerJohn Smith <removethis.john.q.public@bigmail.com>2012-05-15 08:11:19 +0000
commit3460685415e0e80474cb5ef9cb4b37dbc3aae705 (patch)
treefba643ca9b3b03d12bcda1bd0cbe7444677d940a /src/widgets/gradient-toolbar.cpp
parentpdf import. set a default line width, see http://thread.gmane.org/gmane.comp.... (diff)
downloadinkscape-3460685415e0e80474cb5ef9cb4b37dbc3aae705.tar.gz
inkscape-3460685415e0e80474cb5ef9cb4b37dbc3aae705.zip
Fix for 950677 : Ellipse text if gradient name too long
(bzr r11365)
Diffstat (limited to 'src/widgets/gradient-toolbar.cpp')
-rw-r--r--src/widgets/gradient-toolbar.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/gradient-toolbar.cpp b/src/widgets/gradient-toolbar.cpp
index f60705b6c..44b0c6c1c 100644
--- a/src/widgets/gradient-toolbar.cpp
+++ b/src/widgets/gradient-toolbar.cpp
@@ -835,9 +835,10 @@ static gboolean update_stop_list( GtkWidget *stop_combo, SPGradient *gradient, S
Inkscape::XML::Node *repr = reinterpret_cast<SPItem *>(sl->data)->getRepr();
Inkscape::UI::Widget::ColorPreview *cpv = Gtk::manage(new Inkscape::UI::Widget::ColorPreview(sp_stop_get_rgba32(stop)));
GdkPixbuf *pb = cpv->toPixbuf(32, 16);
+ const gchar *label = gr_ellipse_text(repr->attribute("id"), 25);
gtk_list_store_append(store, &iter);
- gtk_list_store_set(store, &iter, 0, repr->attribute("id"), 1, pb, 2, stop, -1);
+ gtk_list_store_set(store, &iter, 0, label, 1, pb, 2, stop, -1);
sensitive = FALSE;
}
}