Re: [pygtk] typo in gnome.ui + gettext

2000-02-18 Thread Matt Wilson

On Fri, Feb 18, 2000 at 10:18:31AM +0100, Frederic Gobry wrote:
 On another topic, what is the status of gettext.py ? Does anybody use it on
 sparc Solaris, with po files generated on this architecture ? I sent a patch
 a long time ago to fix endianness-related problems, but it has not made its
 way to the 1.0.51 release it seems ;-)

Oops.  Shame on me.  We have an endian fix in our local verion of
gettext (one that can read from .gz files and other stuff), but I
never got it committed to gettext.py.
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



Re: [pygtk] X selection handling

2000-02-18 Thread James Henstridge

Selection handling is a complicated subject, which I don't know that much
about.  You probably should read some docs on X's handling of selections
before playing around with this (the O'Reilly books probably have
something about this).

If you only want to do text clipboard transfers, you could use the hack
the GnomeIconList widget uses -- create a toplevel GtkWindow (of type
popup, so the window manager ignores it) a long way off screen (eg at
2000,2000), and place a GtkEntry in it.  You can use the GtkEditable
clipboard functions on this widget.  You can connect to the GtkEntry's
selection_notify_event signal to be notified when a selection changes.

James.

--
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


On Fri, 18 Feb 2000, Rick Ree wrote:

 I know this has been asked before, but I haven't found an answer IIRC.
 Can/how do you get/set the X selection?  I tried experimenting with the
 GtkEntry class but ideally I want to manipulate the X selection without
 having to explicitly show an entry widget.
 
 Rick
 
 To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
 

To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]



Re: [pygtk] X selection handling

2000-02-18 Thread Randolph Fritz

On Fri, Feb 18, 2000 at 08:18:36AM -0500, Rick Ree wrote:
 I know this has been asked before, but I haven't found an answer IIRC.
 Can/how do you get/set the X selection?  I tried experimenting with the
 GtkEntry class but ideally I want to manipulate the X selection without
 having to explicitly show an entry widget.

There's a little bit on this in Havoc Pennington's new book.  Take a
look at http://developer.gnome.org/doc/GGAD/sec-gdkevent.html; do a
find on "selection events".

-- 
R.
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]