Author Topic: wx30 repaint tabs  (Read 12498 times)

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
wx30 repaint tabs
« on: September 20, 2016, 02:08:12 am »
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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: wx30 repaint tabs
« Reply #1 on: September 20, 2016, 09:40:16 am »
My guess is something broken in ubuntu, because I'm using wx30 based build and don't see this behaviour.
(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!]

Offline teto

  • Almost regular
  • **
  • Posts: 127
Re: wx30 repaint tabs
« Reply #2 on: September 20, 2016, 01:45:50 pm »
I had the same problem with Ubuntu, not only tabs but even the panels would not get redrawn.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: wx30 repaint tabs
« Reply #3 on: September 20, 2016, 09:25:59 pm »
What is the version of wxgtk you're using? Is it gtk2 or gtk3 based?
(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!]

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: wx30 repaint tabs
« Reply #4 on: September 21, 2016, 02:24:54 am »
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: wx30 repaint tabs
« Reply #5 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?

Code
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.
(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!]

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: wx30 repaint tabs
« Reply #6 on: September 21, 2016, 07:40:14 pm »
For the record this is my info:
Code
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
(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!]

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: wx30 repaint tabs
« Reply #7 on: September 22, 2016, 06:53:02 am »
Code
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:
Code
libwx_gtk2u_core-3.0.so.0 => /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0 (0x00007f6c7b42c000)

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.


Open new file.  Note that hovering over the close button no longer highlights it, as the tabs are not drawing.


Click back to editormanager.cpp tab.  The file updates, and the window title bar updates, but the tabs do not.


After moving toolbars and resizing sections.

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: wx30 repaint tabs
« Reply #8 on: September 22, 2016, 06:56:56 am »
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.)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: wx30 repaint tabs
« Reply #9 on: September 22, 2016, 11:16:42 am »
I don't see this on my machine (gentoo linux+enlightenment) :(
(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!]

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: wx30 repaint tabs
« Reply #10 on: September 22, 2016, 06:13:19 pm »
Just tried enlightenment; same problem occurs... it seems to be a deeper problem than the window manager.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: wx30 repaint tabs
« Reply #11 on: September 22, 2016, 09:41:39 pm »
Does this same thing happen with the auidemo or any other gtk2 based program?
(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!]

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: wx30 repaint tabs
« Reply #12 on: September 22, 2016, 10:06:32 pm »
The sample auidemo works fine.
« Last Edit: September 22, 2016, 10:09:34 pm by Alpha »

Offline teto

  • Almost regular
  • **
  • Posts: 127
Re: wx30 repaint tabs
« Reply #13 on: September 22, 2016, 10:31:17 pm »
In my case I had the same problems with the wxwidgets 3 demos so it seemed to be a wxwidget problem. (i3wm)

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: wx30 repaint tabs
« Reply #14 on: September 23, 2016, 06:06:40 am »
Or a problem of the graphics driver.
Which one do you use ?