GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Wed Aug 20, 2014 8:46 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: better practice for work with saved buffer
PostPosted: Wed May 08, 2013 4:57 pm 
Offline
GTK+ Guru

Joined: Sun Jul 08, 2012 3:14 pm
Posts: 107
Location: Coventry, UK
hello friends,
I am working on a gtk_list_store, that will save the rows to a file (set_contents(file, buffer))
After saving the datas to a file, without exiting, I will like to edit the file (as buffer) again. For that I have 2 option in my knowledge:

1) save the data, g_free(buffer), list_store_clear, reload the saved file
2) save the buffer to the file, but continue working with that without g_free(buffer)

both seems to work, but which is the better practice?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group