rem: gtk_tree_model_get_iter_first(GTK_TREE_MODEL(combo_box_model), &iter);  gtk_combo_box_set_active_iter   (GTK_COMBO_BOX(interface.layer_active), &iter); click_layer_active_cb(GTK_WIDGET(interface.layer_active), NULL);
add: if (screen.curr_index == interface.layer_select_active) { gtk_tree_model_get_iter_first(GTK_TREE_MODEL(combo_box_model), &iter); gtk_combo_box_set_active_iter   (GTK_COMBO_BOX(interface.layer_active), &iter); g_signal_emit_by_name ((GTK_COMBO_BOX(interface.layer_active)), "changed"); click_layer_active_cb(GTK_WIDGET(interface.layer_active), NULL); }
context: unload_file(GtkWidget *widget, gpointer data){    int         idx = screen.curr_index;    GtkStyle   *defstyle;#ifdef USE_GTK2           int         idx0;    GtkTreeIter iter;#endif            if (screen.file[idx] == NULL)	return;    /*     * Deselect the layer we're unloading so it's not left in the pixmap     */    gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(screen.layer_button[idx]),				 FALSE);    /*      * Remove color on layer button (set default style)      */    defstyle = gtk_widget_get_default_style();    gtk_widget_set_style(screen.layer_button[idx], defstyle);    /*      * Remove tool tips      */    gtk_tooltips_set_tip(screen.tooltips, screen.layer_button[idx], 			 NULL, NULL);     /*      * Remove data struct      */    free_gerb_image(screen.file[idx]->image);  screen.file[idx]->image = NULL;    free(screen.file[idx]->color);  screen.file[idx]->color = NULL;    free(screen.file[idx]->name);  screen.file[idx]->name = NULL;    free(screen.file[idx]);  screen.file[idx] = NULL;#ifdef USE_GTK2//#if 0        if (interface.main_window && gtk_tree_model_get_iter_first(GTK_TREE_MODEL(combo_box_model), &iter)) {        combo_box_model = gtk_list_store_new (2, G_TYPE_INT, G_TYPE_STRING);         for (idx0 =  0; idx0 < MAX_FILES; idx0++) {            if (screen.file[idx0] == NULL) {                gtk_list_store_append(combo_box_model, &iter);                gtk_list_store_set (combo_box_model, &iter, 0, idx0, -1);            }         }        gtk_combo_box_set_model(GTK_COMBO_BOX(interface.layer_active), GTK_TREE_MODEL(combo_box_model));        gtk_tree_model_get_iter_first(GTK_TREE_MODEL(combo_box_model), &iter);       // gtk_combo_box_set_active_iter   (GTK_COMBO_BOX(interface.layer_active), &iter);        gtk_combo_box_set_active_iter   (GTK_COMBO_BOX(interface.layer_active), &iter);        click_layer_active_cb(GTK_WIDGET(interface.layer_active), NULL);         }#endif            return;} /* unload_file */