I'm pretty new to GTK libraries and trying to develop a small project in GTK+2 with its C API's. The requirement is to do it in a Google-Chrome type window. It'll be having it's own title bar and controls with different colors.
Can anybody help me out with any tutorial or reference or any opensource code that already implemented this?
I appreciate your help.
What you want to do is custom decoration.
My understanding is that you have to set_decorated False on the window so that the WM doesn't add border/title bar itself to your windows and then have your own custom Window subclass that handles drawing it's decorations itself manually in the paint()
method.
Not trivial.
Since the Crhomium browser is an open source project, its source is available here: http://src.chromium.org/viewvc/chrome/trunk/
What you seek should by definition be available there :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With