It is currently Sat May 18, 2013 2:32 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: editorgadget and cut/copy/paste in linux
PostPosted: Mon Feb 06, 2012 9:48 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 29, 2003 7:32 pm
Posts: 164
Location: Canada
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


Top
 Profile  
 
 Post subject: Re: editorgadget and cut/copy/paste in linux
PostPosted: Mon Feb 06, 2012 10:51 am 
Offline
Enthusiast
Enthusiast

Joined: Sat Dec 20, 2003 6:19 pm
Posts: 467
Location: Switzerland
Looking for this?
Code:
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")

0 being your EditorGadget.

_________________
Athlon64 3700+, 1024MB Ram, Radeon X1600


Top
 Profile  
 
 Post subject: Re: editorgadget and cut/copy/paste in linux
PostPosted: Tue Feb 07, 2012 1:53 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 29, 2003 7:32 pm
Posts: 164
Location: Canada
Exactly! Thank you Remi.

I also needed a couple of extra signals which I looked up :

Code:
g_signal_emit_by_name(GadgetID(0), "backspace")
g_signal_emit_by_name(GadgetID(0), "select-all")


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye