From a0c24c953a1ba7fb285050dfe26e2bd41149bf30 Mon Sep 17 00:00:00 2001 From: John Smith Date: Thu, 15 Mar 2012 21:43:34 +0900 Subject: Fix for 903671 : Fill and Stroke Gradient list and Gradient Editor (bzr r11089) --- src/widgets/gradient-toolbar.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/widgets/gradient-toolbar.cpp') diff --git a/src/widgets/gradient-toolbar.cpp b/src/widgets/gradient-toolbar.cpp index 984e91e24..2e7d6b89d 100644 --- a/src/widgets/gradient-toolbar.cpp +++ b/src/widgets/gradient-toolbar.cpp @@ -167,13 +167,7 @@ void gr_combo_box_changed (GtkComboBox *widget, gpointer data) } -gchar *gr_prepare_label (SPObject *obj) -{ - const gchar *id = obj->defaultLabel(); - if (strlen(id) > 15 && (!strncmp (id, "#linearGradient", 15) || !strncmp (id, "#radialGradient", 15))) - return g_strdup_printf ("#%s", id+15); - return g_strdup_printf ("%s", id); -} + GtkWidget *gr_vector_list(SPDesktop *desktop, bool selection_empty, SPGradient *gr_selected, bool gr_multi) { @@ -244,7 +238,7 @@ GtkWidget *gr_vector_list(SPDesktop *desktop, bool selection_empty, SPGradient * gl = g_slist_remove (gl, gradient); gchar *label = gr_prepare_label(gradient); - GdkPixbuf *pixb = sp_gradient_to_pixbuf (gradient, 60, 22); + GdkPixbuf *pixb = sp_gradient_to_pixbuf (gradient, 64, 18); gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, 0, pixb, 1, label, 2, gradient, -1); g_free (label); -- cgit v1.2.3