Hello old friends.
How can I perform cut/copy/paste clipboard operations with the editorgadget in linux?
I would like to support these operations from my application's toolbar and menu.
Many thanks
editorgadget and cut/copy/paste in linux
-
- Enthusiast
- Posts: 468
- Joined: Sat Dec 20, 2003 6:19 pm
- Location: Switzerland
Re: editorgadget and cut/copy/paste in linux
Looking for this?
0 being your EditorGadget.
Code: Select all
ImportC ""
g_signal_emit_by_name(*inst, name.p-utf8)
EndImport
g_signal_emit_by_name(GadgetID(0), "paste-clipboard")
g_signal_emit_by_name(GadgetID(0), "cut-clipboard")
g_signal_emit_by_name(GadgetID(0), "copy-clipboard")
Athlon64 3700+, 1024MB Ram, Radeon X1600
Re: editorgadget and cut/copy/paste in linux
Exactly! Thank you Remi.
I also needed a couple of extra signals which I looked up :
I also needed a couple of extra signals which I looked up :
Code: Select all
g_signal_emit_by_name(GadgetID(0), "backspace")
g_signal_emit_by_name(GadgetID(0), "select-all")