News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Gtk Notebook

Started by oBFusCATed, April 18, 2010, 04:07:52 PM

Previous topic - Next topic

oBFusCATed

Hello,

I've playing with an art class for the notebook using the native gtk2.0 controls.
Here you can see a screenshot with the result:
http://smrt.is-a-geek.org/codeblocks/screens/gtk_notebook.png

And here is the patch:
http://smrt.is-a-geek.org/codeblocks/patches/gtk_notebook.patch

Please test and report problems.
If there is a gtk-2.0 guru around, a code review will be greatly appreciated.

p.s. I wasn't able to find why the logger notebook is not using the correct style/art
p.p.s. someday in the future I plan to the same for the toolbars
p.p.p.s. If you've found a problem, please name the theme you're using
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

Quote from: oBFusCATed on April 18, 2010, 04:07:52 PM
http://smrt.is-a-geek.org/codeblocks/patches/gtk_notebook.patch
[...]
p.p.p.s. If you've found a problem, please name the theme you're using
Well, it breaks compilation on Windows. ;-)
You'd better wrap everything into an "#if defined(__WXGTK__)", including the header file (which cannot be found in the windows project anyways due to the missing include path).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

Uf, I forgot that... will fix....
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

foobar123

I like this patch! It looks good, blends in well with the rest of my desktop, and it uses the default colors for text and background, which makes it work with dark color themes, too. Would be nice to have this in default Code::Blocks some day, either replacing the default tab style, or (maybe even be better) as an additional selectable style.
Maybe a configure option could be created, so people who don't want the GTK depencendy can disable it.

Jenna

I had some (more or less) minor layout issues with the them I use (Raleigh), but I'm forced to use windows at the moment (try to set up the control for a Natural adventure pool, and as usual it takes time until everything runs fine), so I can not look into it before the weekend.

oBFusCATed

#5
Jens, It works for me and looks decent, can you provide a screenshot?

Also I don't know how to extract size information the theme regarding the tab size and text/icon position :(
If anybody knows, I'll be very grateful if he/she shares this information.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]