Lines Matching defs:dashes
33 gchar const *const SPDashSelector::_prefs_path = "/palette/dashes";
45 static double **dashes = NULL;
84 while (dashes[np]){ np++;}
86 // Add the dashes to the combobox
88 row[dash_columns.dash] = dashes[i];
89 row[dash_columns.pixbuf] = Glib::wrap(sp_dash_to_pixbuf(dashes[i]));
93 row[dash_columns.dash] = dashes[np-1];
96 this->set_data("pattern", dashes[0]);
115 if (!dashes) {
122 dashes = g_new (double *, dash_prefs.size() + 2); // +1 for custom slot, +1 for terminator slot
128 dashes[pos] = g_new (double, style.stroke_dasharray.values.size() + 1);
129 double *d = dashes[pos];
136 dashes[pos] = dash_0;
140 } else { // This code may never execute - a new preferences.xml is created for a new user. Maybe if the user deletes dashes from preferences.xml?
141 dashes = g_new (double *, BD_LEN + 2); // +1 for custom slot, +1 for terminator slot
144 dashes[i] = builtin_dashes[i];
148 // make a place to hold the custom dashes, up to 15 positions long (+ terminator)
149 dashes[pos] = g_new (double, 16);
150 double *d = dashes[pos];
155 dashes[++pos] = NULL;
162 int count = 0; // will hold the NULL terminator at the end of the dashes list
169 for (int i = 0; dashes[i]; i++,count++) {
170 double *pattern = dashes[i];
193 this->set_data("pattern", dashes[pos]);
199 double *d = dashes[count];
205 this->set_data("pattern", dashes[count]);