Index: src_plugins/lib_gtk_common/wt_layersel.c =================================================================== --- src_plugins/lib_gtk_common/wt_layersel.c (revision 8766) +++ src_plugins/lib_gtk_common/wt_layersel.c (revision 8767) @@ -58,11 +58,11 @@ #define hex2bin(str) ((hex2bin_((str)[0])) << 4 | hex2bin_((str)[1])) /* draw a visibility box: filled or partially filled with layer color */ -static GtkWidget *layer_vis_box(int filled, const char *rgb, int brd) +static GtkWidget *layer_vis_box(int filled, const char *rgb, int brd, int hatch) { GdkPixbuf *pixbuf; GtkWidget *image; - gint width, height, max_height, hatch=0; + gint width, height, max_height; guchar *pixels, *p; guint w, r, g, b; @@ -369,12 +369,12 @@ } /* Create a hbox with on/off visibility boxes packed in, pointers returned in *on, *off */ -static GtkWidget *build_visbox(const char *color, GtkWidget **on, GtkWidget **off, int brd) +static GtkWidget *build_visbox(const char *color, GtkWidget **on, GtkWidget **off, int brd, int hatch) { GtkWidget *vis_box = gtkc_hbox_new(0, 0); - *on = layer_vis_box(1, color, brd); + *on = layer_vis_box(1, color, brd, hatch); gtk_box_pack_start(GTK_BOX(vis_box), *on, FALSE, FALSE, 0); - *off = layer_vis_box(0, color, brd); + *off = layer_vis_box(0, color, brd, hatch); gtk_box_pack_start(GTK_BOX(vis_box), *off, FALSE, FALSE, 0); return vis_box; } @@ -398,7 +398,7 @@ ly = pcb_get_layer(lid); /* sensitive layer visibility widgets */ - vis_box = build_visbox(color, &lsl->vis_on, &lsl->vis_off, (((ly != NULL) && (ly->comb & PCB_LYC_SUB)) ? 2 : 1)); + vis_box = build_visbox(color, &lsl->vis_on, &lsl->vis_off, (((ly != NULL) && (ly->comb & PCB_LYC_SUB)) ? 2 : 1), (((ly != NULL) && (ly->comb & PCB_LYC_AUTO)) ? 1 : 0)); vis_ebox = wrap_bind_click(vis_box, G_CALLBACK(layer_vis_press_cb), lsl); gtk_box_pack_start(GTK_BOX(lsl->box), vis_ebox, FALSE, FALSE, 0); @@ -460,7 +460,7 @@ /* install group name - horizontal (for when the group is closed) */ if (has_group_vis) { GtkWidget *vis; - vis = wrap_bind_click(build_visbox(grp_color(grp), &lsg->vis_on, &lsg->vis_off, 1), G_CALLBACK(group_vis_press_cb), lsg); + vis = wrap_bind_click(build_visbox(grp_color(grp), &lsg->vis_on, &lsg->vis_off, 1, 0), G_CALLBACK(group_vis_press_cb), lsg); gtk_box_pack_start(GTK_BOX(lsg->grp_closed), vis, FALSE, FALSE, 0); } cld = wrap_bind_click(gtk_label_new(gname), G_CALLBACK(group_open_press_cb), lsg);