wxGTK notebooks config?

CodeLite installation/troubleshooting forum
petah
CodeLite Expert
Posts: 231
Joined: Sat Nov 24, 2012 8:04 pm
Genuine User: Yes
IDE Question: c++
Location: Los Angeles
Contact:

wxGTK notebooks config?

Post by petah »

Hi Eran,

I'm on Debian x64/Xfce, just compiled CL trunk with wxTrunk and still not getting notebook pages with a close button, whether detached or not, is it even possible to hide tabs from Output View, f.ex. ?

I'm guessing there's a build conflict somewhere: how does the ./Interfaces/cl_defs CL_USE_NATIVEBOOK=0 patch interact with the -DGTK_USE_AUIBOOK=1 cmake flag? Also should wx be compiled with "regular" RTTI or does CL need "--enable-extended-rtti"?

Sorry if the info is available somewhere, did some digging but found nothing in bug reports, feature requests or forums.

thx & cheers,

-- p
main: Debian Jessie x64 + custom wxTrunk
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxGTK notebooks config?

Post by eranif »

petah wrote:how does the ./Interfaces/cl_defs CL_USE_NATIVEBOOK=0 patch interact with the -DGTK_USE_AUIBOOK=1 cmake flag?
Simple: by default, native notebooks are used on GTK, unless -DGTK_USE_AUIBOOK=1 is passed to cmake

Code: Select all

#ifdef __WXGTK__
#    ifndef PLUGINS_DIR
#        define PLUGINS_DIR "/usr/lib/codelite"
#    endif
#    ifndef INSTALL_DIR
#        define INSTALL_DIR "/usr/share/codelite"
#    endif
#    define CL_USE_NATIVEBOOK 1
#else
#    define CL_USE_NATIVEBOOK 0
#endif

/// Allow override the default CL_USE_NATIVEBOOK by cmake variable
#if GTK_USE_AUIBOOK
#   ifdef CL_USE_NATIVEBOOK
#       undef CL_USE_NATIVEBOOK
#   endif
#   define CL_USE_NATIVEBOOK 0
#endif
petah wrote:Also should wx be compiled with "regular" RTTI or does CL need "--enable-extended-rtti"?
codelite does not need this

I am not sure I understand the original problem ...

Eran
Make sure you have read the HOW TO POST thread
petah
CodeLite Expert
Posts: 231
Joined: Sat Nov 24, 2012 8:04 pm
Genuine User: Yes
IDE Question: c++
Location: Los Angeles
Contact:

Re: wxGTK notebooks config?

Post by petah »

eranif wrote: I am not sure I understand the original problem ...
Sorry if I wasn't clear: when I detach a notebook page I get a floating window (I'm guessing wxFRAME_TOOL_WINDOW) whose titlebar is blank / looks unrendered and has no close button so it can't be hidden. Randomly clicking where the close button would be just puts the (floatie? :)) window back in its previous notebook. Toggling visibility under GDB -> Windows has no effect.

Except for the Workspace View tabs, which can be hidden, I have N notebook pages which I can only clumsily move around the desktop, resize, dock/undock, but never hide. I assume it's a configuration problem on my end since I couldn't find any mention of it anywhere .

thx,

-- p
main: Debian Jessie x64 + custom wxTrunk
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxGTK notebooks config?

Post by eranif »

Can you post a screenshot?
I am not sure which notebook do you refer to. atm, the only notebooks that can be detached are the output / workspace tabs

Eran
Make sure you have read the HOW TO POST thread
petah
CodeLite Expert
Posts: 231
Joined: Sat Nov 24, 2012 8:04 pm
Genuine User: Yes
IDE Question: c++
Location: Los Angeles
Contact:

Re: wxGTK notebooks config?

Post by petah »

hi again,

this shows CL on launch after I had detached the ASCII viewer page from the Debugger Notebook in the previous CL session:
CL_window.png
is the title bar not rendered because of a wx/CL config error?

More importantly, is the inability to hide detached tabs or reattach them to another notebook an inherent Gtk and/or wxAUI limitation? I saw in CL's code you had to workaround wxAUI's tab orderering limitation by doing 10-pixel spaced hittests; I think I saw improvements to handle that in wx295.

thx a lot!

-- p
You do not have the required permissions to view the files attached to this post.
main: Debian Jessie x64 + custom wxTrunk
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: wxGTK notebooks config?

Post by eranif »

petah wrote:is the title bar not rendered because of a wx/CL config error?
My guess: its your desktop manager (xfce?) try using (just to confirm this) a different desktop (KDE, GNOME etc)
Its not something that codelite controls - its wx internally, but I suspect it is related to the desktop you are using
petah wrote: but never hide
You can't hide those tabs. If you click on the close button - they will be re positioned again in the parent notebook.

Eran
Make sure you have read the HOW TO POST thread
petah
CodeLite Expert
Posts: 231
Joined: Sat Nov 24, 2012 8:04 pm
Genuine User: Yes
IDE Question: c++
Location: Los Angeles
Contact:

Re: wxGTK notebooks config?

Post by petah »

eranif wrote:
petah wrote:is the title bar not rendered because of a wx/CL config error?
My guess: its your desktop manager (xfce?)
Yep, Xfce 4.8. Could it be due to a missing icon?
eranif wrote:try using (just to confirm this) a different desktop (KDE, GNOME etc)
Its not something that codelite controls - its wx internally, but I suspect it is related to the desktop you are using
Ok I'll try Gnome after googling for Xfce/Gtk/wx problems.
eranif wrote:
petah wrote: but never hide
You can't hide those tabs. If you click on the close button - they will be re positioned again in the parent notebook.
Bummer, is it a wxAUI limitation?

thx for your help,

-- p
main: Debian Jessie x64 + custom wxTrunk
Post Reply