Index: trunk/src_plugins/lib_gtk_common/dlg_route_style.c =================================================================== --- trunk/src_plugins/lib_gtk_common/dlg_route_style.c (revision 6721) +++ trunk/src_plugins/lib_gtk_common/dlg_route_style.c (revision 6722) @@ -429,12 +429,9 @@ rst_modify(changed, rst->Clearance, pcb_gtk_coord_entry_get_value(GHID_COORD_ENTRY(dialog_data.clearance_entry))); #undef rst_modify save = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(check_box)); - if (style == NULL) - /*style = ghid_route_style_real_add_route_style(rss, rst, 0); */ - /* FIXME !!! static. function :( - style = ghid_route_style_real_add_route_style(rss, rst, 0); - */ - ; + if (style == NULL){ + style = ghid_route_style_real_add_route_style(rss, rst, 0); + } else { gtk_action_set_label(GTK_ACTION(style->action), rst->name); gtk_list_store_set(rss->model, &iter, STYLE_TEXT_COL, rst->name, -1); Index: trunk/src_plugins/lib_gtk_common/wt_route_style.c =================================================================== --- trunk/src_plugins/lib_gtk_common/wt_route_style.c (revision 6721) +++ trunk/src_plugins/lib_gtk_common/wt_route_style.c (revision 6722) @@ -164,8 +164,7 @@ \param [in] rss The selector to be acted on \param [in] data PCB's route style object that will be edited */ -static pcb_gtk_dlg_route_style_t *ghid_route_style_real_add_route_style(pcb_gtk_route_style_t * rss, - pcb_route_style_t * data, int hide) +pcb_gtk_dlg_route_style_t *ghid_route_style_real_add_route_style(pcb_gtk_route_style_t * rss, pcb_route_style_t * data, int hide) { GtkTreeIter iter; GtkTreePath *path; Index: trunk/src_plugins/lib_gtk_common/wt_route_style.h =================================================================== --- trunk/src_plugins/lib_gtk_common/wt_route_style.h (revision 6721) +++ trunk/src_plugins/lib_gtk_common/wt_route_style.h (revision 6722) @@ -144,7 +144,9 @@ /** Configure the route style selector */ void make_route_style_buttons(pcb_gtk_route_style_t *rss); +pcb_gtk_dlg_route_style_t *ghid_route_style_real_add_route_style(pcb_gtk_route_style_t * rss, pcb_route_style_t * data, int hide); + /* Temporary: call back to hid_gtk */ extern void route_styles_edited_cb(pcb_gtk_route_style_t *rss, gboolean save, gpointer data);