diff options
| author | John Smith <john.smith7545@yahoo.com> | 2012-03-15 12:43:34 +0000 |
|---|---|---|
| committer | John Smith <removethis.john.q.public@bigmail.com> | 2012-03-15 12:43:34 +0000 |
| commit | a0c24c953a1ba7fb285050dfe26e2bd41149bf30 (patch) | |
| tree | dacdad05159b58cd621b0f1814586b5629f58246 /src/widgets/gradient-toolbar.cpp | |
| parent | buildtool: don't create build output folders in parallel. superfast in series... (diff) | |
| download | inkscape-a0c24c953a1ba7fb285050dfe26e2bd41149bf30.tar.gz inkscape-a0c24c953a1ba7fb285050dfe26e2bd41149bf30.zip | |
Fix for 903671 : Fill and Stroke Gradient list and Gradient Editor
(bzr r11089)
Diffstat (limited to 'src/widgets/gradient-toolbar.cpp')
| -rw-r--r-- | src/widgets/gradient-toolbar.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
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); |
