Message-ID: <42FC6C67.9020706 at compiler.kaist.ac.kr> Date: Fri, 12 Aug 2005 18:31:19 +0900 From: SooHyoung Oh MIME-Version: 1.0 To: Stefano Zacchiroli CC: LablGTK Mailing List Subject: Re: Two question about selection References: <42F96DA8.7050003 at compiler.kaist.ac.kr> <20050810.125349.79297434.garrigue at math.nagoya-u.ac.jp> <20050812065641.GA5556 at takhisis.invalid> In-Reply-To: <20050812065641.GA5556 at takhisis.invalid> Content-Type: multipart/alternative; boundary="------------030609030405060501010904" This is a multi-part message in MIME format. --------------030609030405060501010904 Content-Type: text/plain; charset=EUC-KR Content-Transfer-Encoding: 7bit It may be possible to use foo#add_selection_target ~target:"STRING" ... Stefano Zacchiroli wrote: >On Wed, Aug 10, 2005 at 12:53:49PM +0900, Jacques Garrigue wrote: > > >>>Q1) How to analysis "ATOM" in Lablgtk? >>> >>> >>See the Gdk.Atom module. >> >> > >BTW, recently I played with selections with lablgtk2 and I noticed >something strange in the API. Method "add_selection_target" of >GObj.misc_ops has a "target" parameter of string type. I just wanted to >handle usual textual selections but the string constant corresponding to >that kind of selections ("STRING") is not exported in the lablgtk2 API. > >Thus must either write a magic "STRING" string constant in its code or >use Gdk.Atom.name like: foo#add_selection_target ~target:(Gdk.Atom.name >Gdk.Atom.string) .... rather clumsy IMO. > >Is it possible to either permit passing atoms to add_selection_target or >export somewhere the string constants corresponding to the various >Gdk.Atom s? > > > --------------030609030405060501010904 Content-Type: text/html; charset=EUC-KR Content-Transfer-Encoding: 7bit It may be possible to use

foo#add_selection_target ~target:"STRING" ...


Stefano Zacchiroli wrote:
On Wed, Aug 10, 2005 at 12:53:49PM +0900, Jacques Garrigue wrote:
  
Q1) How to analysis "ATOM" in Lablgtk?
      
See the Gdk.Atom module.
    

BTW, recently I played with selections with lablgtk2 and I noticed
something strange in the API. Method "add_selection_target" of
GObj.misc_ops has a "target" parameter of string type. I just wanted to
handle usual textual selections but the string constant corresponding to
that kind of selections ("STRING") is not exported in the lablgtk2 API.

Thus must either write a magic "STRING" string constant in its code or
use Gdk.Atom.name like: foo#add_selection_target ~target:(Gdk.Atom.name
Gdk.Atom.string) ....  rather clumsy IMO.

Is it possible to either permit passing atoms to add_selection_target or
export somewhere the string constants corresponding to the various
Gdk.Atom s?

  

--------------030609030405060501010904--