Lines 675-685
void RGRepositoryEditor::SelectionChanged(GtkTreeSelection *selection,
Link Here
|
675 |
gtk_entry_set_text(GTK_ENTRY(me->_entryDist), utf8(rec->Dist.c_str())); |
675 |
gtk_entry_set_text(GTK_ENTRY(me->_entryDist), utf8(rec->Dist.c_str())); |
676 |
gtk_entry_set_text(GTK_ENTRY(me->_entrySect), ""); |
676 |
gtk_entry_set_text(GTK_ENTRY(me->_entrySect), ""); |
677 |
|
677 |
|
678 |
for (unsigned int I = 0; I < rec->NumSections; I++) { |
678 |
for (unsigned int I = 0; I < (rec->NumSections - 1); I++) { |
679 |
gtk_entry_append_text(GTK_ENTRY(me->_entrySect), |
679 |
gtk_entry_append_text(GTK_ENTRY(me->_entrySect), |
680 |
utf8(rec->Sections[I].c_str())); |
680 |
utf8(rec->Sections[I].c_str())); |
681 |
gtk_entry_append_text(GTK_ENTRY(me->_entrySect), " "); |
681 |
gtk_entry_append_text(GTK_ENTRY(me->_entrySect), " "); |
682 |
} |
682 |
} |
|
|
683 |
gtk_entry_append_text(GTK_ENTRY(me->_entrySect), |
684 |
utf8(rec->Sections[rec->NumSections - 1].c_str())); |
683 |
} else { |
685 |
} else { |
684 |
//cout << "no selection" << endl; |
686 |
//cout << "no selection" << endl; |
685 |
gtk_widget_set_sensitive(me->_editTable, FALSE); |
687 |
gtk_widget_set_sensitive(me->_editTable, FALSE); |