This is actually a repost, as previous post did not got any attention.
Dear friends,
I have another query.
As the treeview is loaded from a file, in my program, new entries can also be entered. It writes to the Treeview, as well as in a file using:
Code:
strAuth = gtk_entry_get_text(GTK_ENTRY(e->entryAuth));
/*Entering the data in Treeview */
gtk_list_store_append(store, &siter);
gtk_list_store_set(store, &siter,
COL_BIB_KEY, strkey,
COL_BIB_TYPE, strcombo,
COL_BIB_NAME, strAuth,
COL_BIB_YEAR, strYear,
COL_BIB_PUB, strTitle,
-1);
/*Entering the data in file */
if( strlen(strEditor)!=0)
g_fprintf( fop, "\tEditor=\"%s\",\n", strAuth);
...etc...
Now, my question is, can this two entry be linked such that if I delete an entry from treeview, it will also delete the entry from file(fop). Or for doing this, I have to regex the complete file(fop)?
I can change the writing to file using hash table as well, but can I link the treeview entry with the entry in table?
Please reply.