Re: SelectionNotify and GtkText, etc...




Mike Benham <moxie@vivid.net> writes:

> On 6 Dec 1999, Owen Taylor wrote:
> 
> > >     So I guess my new question is, how would I go about hacking this
> > > functionality?  When does GtkText call XConvertSelection()?  I can't
> seem
> > > to make it call XConvertSelection() by sending it a button2
> XButtonEvent.
> > 
> > It should work, assuming that you send the event ot the right subwindow.
> > (see gtk_text_button_press.)
> > 
> > If you want to do it external to the application, then this is about
> > the only way you are going to be able to do it, unless the app has  
> > an application-specific control interface.
> 
> 
> 	Yes, aparently I have been doing this wrong by sending the button
> event to the parent window and not the right subwindow.  I suppose this
> matter has now transcended the purpose of this list, but as I can't seem
> to find any list for xlib programming, I'll ask here.  How do I figure out
> what the right subwindow is?  XGetInputFocus() will return the parent
> window of the subwindow that has the focus.  How do I get a handle on the
> subwindow?   Any ideas?

 - You ask the user to click on it.
 - You write a GTK+ module that is loaded within your target application
   that provides you with the information.

No other way.
                                        Owen



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]