Re: [gedit-list] Is there a signal for text selection?
- From: Paolo Borelli <pborelli katamail com>
- To: steve love <stevelove gmail com>
- Cc: gedit-list gnome org
- Subject: Re: [gedit-list] Is there a signal for text selection?
- Date: Sat, 25 Apr 2009 12:00:04 +0200
Il giorno ven, 24/04/2009 alle 22.54 -0600, steve love ha scritto:
> Hello everyone,
>
> I've been RTFM'ing all evening. Is there a signal that would allow a
> plugin to listen for text selection? I'd like to listen for selecting
> text by any method: double-clicking, dragging the cursor, Shift+Arrow
> Keys, etc.
>
> Or, failing that, is there a way to listen for cursor movement (after
> which I can test "get_has_selection")?
>
Since "has_selection" is a property, you can use the "notify" signal to
see when the property changes. At that point you can grab the selection
with get_selected()
ciao
Paolo
> Thanks in advance for any help.
>
> Steve
> _______________________________________________
> gedit-list mailing list
> gedit-list gnome org
> http://mail.gnome.org/mailman/listinfo/gedit-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]