Re: SelectionNotify and GtkText, etc...




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?

			Thanks,

				- Mike

---------------------------------------------------------------------------
"A totalitarian state thrives on propaganda, and there is no more effective
way to limit thought than to control the language itself.  By changing
definitions of words through continual association, any serious discussion
involving the concepts that the words represent becomes hopelessly muddled."
---------------------------------------------------------------------------
Moxie  - moxie@thoughtcrime.org / moxie@vivid.net
http://www.thoughtcrime.org

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. 



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