Rename tab functionality, still work in progress..

Hi I have implemented a simple rename tab functionality. It's still work in progress because for now it uses a dialog to ask for the new name. I would prefer using in place edit on the tab but I'm not very experienced in GTK so I am having some difficulties. At the moment you can rename the tab by right click menu or shortcut, which is configurable from the settings panel.

Would you like to check the mod and, in case, provide an implementation solution I can use for that, in place editing, behavior? The best solution I was thinking of was hiding the label on the tab and placing there a GtkEntry until the text is entered. Also, the code is not organized well yet (functions position, names etc) so don't mind that thing.