Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

wxKeyBinder problems/solutions discussion

<< < (3/5) > >>

Pecan:
1/11/2006 1:42 PM

Have commited KeyBinder v0.4.9 (svn 1718)

Set invalid window ptr flag for wxBinderEvtHandler to avoid
using closed window pointer.

Surrounded menuitem rebuild code with #ifdef __WXMSW__

thanks tiwag
pecan

Pecan:
@tiwag


--- Quote ---i fear, that will not be enough ..

--- End quote ---

ok, I see
will fix this sortly

thanks
pecan

Pecan:
1/11/2006 2:35 PM

Have commited KeyBinder v0.4.10 (svn 1719)

Separated out and demangled the GTK menuutils::Update()
menuitem update code.

thanks
pecan

Edit: I only have 5 more hrs of downloading to get ISO ubuntu.
    Then I can test the GTK stuff. Thanks tiwag

atwins:
I submitted this as a bug report (1402208), but I just did a rebuild and see you have it handled. Good job,

Oh yeah,  and if you are downloading the CD iso for ubuntu, you can count on doing a bunch more.  It doesn't come with development stuff.  But once GTK2 and GCC and G++ and a decent editor (oops, you can use Code::Blocks!!) etc. it is sweet.  My favorite.

Thanks again for fixing this. 


tiwag:

--- Quote from: Pecan on January 11, 2006, 08:37:35 pm ---Have commited KeyBinder v0.4.10 (svn 1719)

Separated out and demangled the GTK menuutils::Update()
menuitem update code.

--- End quote ---

thx pecan !  the menu items are clean now using wxGTK !

but there exists another problem, i can't save any new keyboard settings,

after applying the changes, keybinder pops up a messagebox, saying the
new keyboard layout is saved under "/home/tiwag//.codeblocks/cbKeyBinder04v16.ini"
but there is no such file existing :?

after you've OK'ed this dialog, a codeblocks error-message pops up, saying
11:05:21 AM: Failed to create a temporary file name (error 2: No such file or directory)
11:05:21 AM: can't open user configuration file.


did you notice the double slashes in the directory-path   /home/tiwag//.codeblocks  ?

it seems, that this

--- Code: ---    //memorize the key file name as {%HOME%}\cbKeyBinder+{vers}.ini
    m_sKeyFilename = ConfigManager::GetConfigFolder();
    // remove the dots from version string (using first 3 chars)
    wxString sPluginVersion=m_PluginInfo.version.BeforeLast('.'); //+v0.4.1
    sPluginVersion.Replace(_T("."),_T(""));
    m_sKeyFilename = m_sKeyFilename<<wxFILE_SEP_PATH<<m_PluginInfo.name<<sPluginVersion
        <<_T("v")<<SDKverStr<<_T(".ini"); //+v0.4.1

--- End code ---
has to be handled differently in win32 and unix OS's

HTH
tiwag

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version