On Wed, May 13, 2009 at 12:46 PM, Krystian Kichewko
<
kichewko@...> wrote:
> Hello!
>
> I'm trying to make an application using gtk sharp that would sit in
> system tray and open when user presses some defined key ( just like
> tomboy). I was trying to find a way to define global shortcuts in gtk
> sharp documentation but I didn't find anything.
>
> Next thing I did was to download tomboy sources to check how tomboy
> does it. I found out that it uses c++ library (libtomboy) to bind and
> unbind shortcuts.
>
> My question: is there any way to define shortcuts from c# code without
> using c++ library? Is there any tutorial?
>
> I know this is not gtk list, but this is the only trace of global
> shortcuts in mono application I was able to found.
You'll find that most applications with this functionality are copying
the C code from libtomboy and using it. I do not know of any way to
do it in C# (obviously you could rewrite libtomboy in C# using
DllImports, but I'm not sure that would buy you anything).
On Windows, we use a different hotkey library (which is just a wrapper
around some C stuff, too). We currently don't support any hotkeys on
the Mac (but I'm sure it would involve native code).
The code in libtomboy is MIT/X11, so feel free to use it in your application.
Best,
Sandy
_______________________________________________
Tomboy-list mailing list
Tomboy-list@...
http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com