Lines 674-684
void RGRepositoryEditor::SelectionChanged(GtkTreeSelection *selection,
Link Here
|
674 |
gtk_entry_set_text(GTK_ENTRY(me->_entryURI), utf8(rec->URI.c_str())); |
674 |
gtk_entry_set_text(GTK_ENTRY(me->_entryURI), utf8(rec->URI.c_str())); |
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 |
if (rec->NumSections > 0) { // if (... == 0) do nothing ... |
679 |
gtk_entry_append_text(GTK_ENTRY(me->_entrySect), |
679 |
for (unsigned int I = 0; I < (rec->NumSections - 1); I++) { |
680 |
utf8(rec->Sections[I].c_str())); |
680 |
gtk_entry_append_text(GTK_ENTRY(me->_entrySect), |
681 |
gtk_entry_append_text(GTK_ENTRY(me->_entrySect), " "); |
681 |
utf8(rec->Sections[I].c_str())); |
|
|
682 |
gtk_entry_append_text(GTK_ENTRY(me->_entrySect), " "); |
683 |
} |
684 |
gtk_entry_append_text(GTK_ENTRY(me->_entrySect), |
685 |
utf8(rec->Sections[rec->NumSections - 1].c_str())); |
682 |
} |
686 |
} |
683 |
} else { |
687 |
} else { |
684 |
//cout << "no selection" << endl; |
688 |
//cout << "no selection" << endl; |