User forums > Using Code::Blocks

Font size in "Manager" window, Projects/Resources tabs

<< < (4/6) > >>

cacb:

--- Quote from: oBFusCATed on May 27, 2021, 09:24:35 am ---Can you show a screenshot with these two and some native KDE app. They probably look correct.

--- End quote ---

4 applications from left

1. Thunderbird newsgroup tree view
2. Code::Blocks Projects tree view
3. Dolphin File Folder tree view
4. gtk3-widget-factory tree view

The tree view in Code::Blocks is the odd one with smaller fonts compared to the others

oBFusCATed:
Odd, just C::B looks different if I'm not too blind.
Can you run the wxWidgets' tree sample and compare it to C::B? Or some other simple wxWidgets app with a tree in it.

cacb:

--- Quote from: oBFusCATed on May 27, 2021, 10:58:04 am ---Odd, just C::B looks different if I'm not too blind.
Can you run the wxWidgets' tree sample and compare it to C::B? Or some other simple wxWidgets app with a tree in it.

--- End quote ---
Yes, I agree. it is just C::B that looks different.

In the attached screenshot you have from left
1. Code::Blocks
2. wxWidgets wxTreeCtrl sample
3. dep3, my wxWidgets app built with wxWidgets 3.0.4 and gtk2.0

It is quite clear that C::B is different

oBFusCATed:
Hm, odd still.
I would expect that CB and wxTreeCtrl would look the same if they use the same wxWidgets libs.
Is this the case from the image above?

gtk2 vs gtk3 differences are expected.

cacb:

--- Quote from: oBFusCATed on May 27, 2021, 02:29:54 pm ---Hm, odd still.
I would expect that CB and wxTreeCtrl would look the same if they use the same wxWidgets libs.
Is this the case from the image above?

gtk2 vs gtk3 differences are expected.

--- End quote ---
C::B is installed from ubuntu repository, and I guess that is dependent on repository wx *.so libs.

The wxTreeCtrl  sample was built from the samples directory of my static libs wxWidgets with gtk2.
/usr/local/bin/wx-config --list
    Default config is gtk2-unicode-static-3.0


So I did a little bit of research on how to build the wxTreeCtrl sample against the same wxWidgets libs as C::B.
I did :
sudo apt install libwxgtk3.0-gtk3-dev
/usr/bin/wx-config --list
    Default config is gtk3-unicode-3.0


Then copied sample wxtreectrl to wxtreectrl2 and I changed a line in makefile.unx to

# Location and arguments of wx-config script
WX_CONFIG ?= /usr/bin/wx-config

Then did
make -f makefile.unx


The attached screenshot shows (from left)
1 wxTreeCtrl sample built with gtk2-unicode-static-3.0
2 wxTreeCtrl sample built with gtk3-unicode-3.0
3 My dep3 app showing that #2 depends on the repository wx libs (*.so) presumably the same as C::B

It is obvious that the tree view sample font is different from gtk2 to gtk3, the font size is smaller in the gtk3 version, which to me is a problem.

So it seems to me to be a gtk3 problem...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version