Reputation: 11
i want to store the settings for tabs which were detached into another Notebook somehow in a file, so that i can restore them when i close/open the program (written in C++). I couldn't find any settings/properties which gives or let me set the position/order of detached tabs.
Can anyone tell me if there even exists that kind of feature in gtkmm 2.4 or how to solve this problem?
Thanks in advance
Greetings Burak
Upvotes: 0
Views: 131
Reputation: 57920
Use the notebook's get_nth_page()
method to retrieve the position of each tab when you want to save the state in a file. Then when you open the program next time, start with an empty notebook, read the file and add all the tabs according to the the data that you saved there.
Upvotes: 1