Page 1 of 1

wxGTK notebooks config?

Posted: Sat Jun 22, 2013 4:04 am
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

Re: wxGTK notebooks config?

Posted: Sat Jun 22, 2013 8:30 am
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

Re: wxGTK notebooks config?

Posted: Sat Jun 22, 2013 10:11 am
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

Re: wxGTK notebooks config?

Posted: Sat Jun 22, 2013 11:22 am
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

Re: wxGTK notebooks config?

Posted: Sun Jun 23, 2013 2:08 am
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

Re: wxGTK notebooks config?

Posted: Sun Jun 23, 2013 9:07 pm
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

Re: wxGTK notebooks config?

Posted: Sun Jun 23, 2013 10:09 pm
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