User forums > Using Code::Blocks

Debugger keybinding

<< < (3/3)

cacb:

--- Quote from: jens on July 17, 2012, 03:06:05 pm ---
--- Quote from: oBFusCATed on July 17, 2012, 02:36:18 pm ---
--- Quote from: cacb on July 17, 2012, 02:03:12 pm ---Somehow, it would be nice if one could replace --toolkit=gtk2 with --toolkit=kde and get the proper behaviour.

--- End quote ---
There is port of wxwidgets to qt (the toolkit used to build kde), but I'm not sure it will ever be released...

--- End quote ---
And it will most likely not be possible to build C::B out of the box with it.

--- End quote ---

I asked about this issue on the newsgroup gmane.comp.libwxwindows.general and got a promising reply from several people, among them this one from Eran Ifrah


--- Quote ---This is how I do it in codelite IDE (for the exact same purpose: F10 for the debugger ;)) :


#if  defined(__WXGTK20__)
// A rather ugly hack here.  GTK V2 insists that F10 should be the
// accelerator for the menu bar.  We don't want that.  There is
// no sane way to turn this off, but we *can* get the same effect
// by setting the "menu bar accelerator" property to the name of a
// function key that is apparently legal, but doesn't really exist.
// (Or if it does, it certainly isn't a key we use.)
gtk_settings_set_string_property (gtk_settings_get_default (),
                                 "gtk-menu-bar-accel", "F15", "foo");


#endif
--- End quote ---

I have tried a few other things, including modifying a local ~/.gtkrc under KDE, but it didn't work.

I would suggest an option implemented in C::B doing the above, preferably in a way that didn't requiire the user to recompile the IDE. That way, C::B could be more KDE-compliant, and we could reclaim F10 for the debugger (or anything else).

oBFusCATed:

--- Quote from: cacb on July 20, 2012, 02:28:04 pm ---I would suggest an option implemented in C::B doing the above, preferably in a way that didn't requiire the user to recompile the IDE. That way, C::B could be more KDE-compliant, and we could reclaim F10 for the debugger (or anything else).

--- End quote ---
What about talking to the gtk devs to make their toolkit more kde compilant? :)

p.s. I think this hack have been posted already on the forum.

cacb:

--- Quote from: oBFusCATed on July 20, 2012, 02:35:43 pm ---
--- Quote from: cacb on July 20, 2012, 02:28:04 pm ---I would suggest an option implemented in C::B doing the above, preferably in a way that didn't requiire the user to recompile the IDE. That way, C::B could be more KDE-compliant, and we could reclaim F10 for the debugger (or anything else).

--- End quote ---
What about talking to the gtk devs to make their toolkit more kde compilant? :)

--- End quote ---

Be my guest.  :) Until that is accepted, my suggestion remains.


--- Quote from: oBFusCATed on July 20, 2012, 02:35:43 pm ---p.s. I think this hack have been posted already on the forum.

--- End quote ---

I have searched, but had not seen it.

Navigation

[0] Message Index

[*] Previous page

Go to full version