I am attempting to get C::B running under Ubuntu 16.04. It is mostly functional, except that opening/closing several files causes tabs and toolbars to stop repainting. Is this known wx30 behaviour, or is something wrong on my system?
My guess is something broken in ubuntu, because I'm using wx30 based build and don't see this behaviour.
I had the same problem with Ubuntu, not only tabs but even the panels would not get redrawn.
What is the version of wxgtk you're using? Is it gtk2 or gtk3 based?
The system provided library, which (assuming I am reading this correctly) is gtk2 based.
Results of CTRL-ALT-middle click:
wxWidgets Library (wxGTK port)
Version 3.0.2 (Unicode: wchar_t, debug level: 1),
Runtime version of toolkit used is 2.24.
Compile-time GTK+ version is 2.24.30.
What theme are you using? Have you tried to use some other window manager?
Can you show screen shots?
ldd /usr/bin/codeblocks | grep wx
Is one of the best ways to check what is the version of wx. But I guess it is wx3-gtk2. So the problem is somewhere else.
For the record this is my info:
wxWidgets Library (wxGTK port)
Version 3.0.2 (Unicode: wchar_t, debug level: 1),
compiled at Jun 19 2016 19:25:19
Runtime version of toolkit used is 2.24.
Compile-time GTK+ version is 2.24.30.
Copyright (c) 1995-2013 wxWidgets team
Quote from: oBFusCATed on September 21, 2016, 07:38:58 PM
ldd /usr/bin/codeblocks | grep wx
Is one of the best ways to check what is the version of wx. But I guess it is wx3-gtk2. So the problem is somewhere else.
Confirmed wx3-gtk2:
libwx_gtk2u_core-3.0.so.0 => /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0 (0x00007f6c7b42c000)
Quote from: oBFusCATed on September 21, 2016, 07:38:58 PM
What theme are you using? Have you tried to use some other window manager?
Can you show screen shots?
Ubuntu's default theme and window manager (Unity 7). I have not tested another window manager on this machine.
Normal.
(http://i.imgur.com/4uWaPRT.png)
Open new file. Note that hovering over the close button no longer highlights it, as the tabs are not drawing.
(http://i.imgur.com/NhCv6p1.png)
Click back to editormanager.cpp tab. The file updates, and the window title bar updates, but the tabs do not.
(http://i.imgur.com/xvGXBBK.png)
After moving toolbars and resizing sections.
(http://i.imgur.com/KiHqHow.png)
Note that moving toolbars, switching tabs, and resizing all work fine before the bug is triggered by opening/closing a file. (Also, opening/closing does not always trigger this, but it does trigger almost every time.)
I don't see this on my machine (gentoo linux+enlightenment) :(
Just tried enlightenment; same problem occurs... it seems to be a deeper problem than the window manager.
Does this same thing happen with the auidemo or any other gtk2 based program?
The sample auidemo works fine.
In my case I had the same problems with the wxwidgets 3 demos so it seemed to be a wxwidget problem. (i3wm)
Or a problem of the graphics driver.
Which one do you use ?
The problem existed on 2 different computers (very different Hardware) and it happens only with wxwidget so I don't think it's the graphic driver.
I am using the Mesa/Gallium/nouveau stack for graphics.
I will try dropping a bunch of repaint commands over the code, to see if I can get something working.
Quote from: Alpha on September 25, 2016, 07:58:35 PM
I am using the Mesa/Gallium/nouveau stack for graphics.
I'd try the nvidia driver, just to be sure it is not driver related.
Switched to nvidia binaries; no change. ... My added Refresh() and Update() calls so far have not changed anything. Maybe it is a bug in Ubuntu's wx30 build. However, I would think that would also show up in the auidemo. My search continues.
You can always try wx-master to see if this is something they fixed after 3.0.x has been released.
Success! My testing with wx3.1.0 has revealed no problems so far.