Re: gtk_editable_get_position
- From: Emmanuel Rodriguez <emmanuel rodriguez gmail com>
- To: maxim maxim <look2004il gmail com>
- Cc: gtk-list gnome org
- Subject: Re: gtk_editable_get_position
- Date: Tue, 22 Dec 2009 12:46:28 +0100
On Tue, Dec 22, 2009 at 11:47 AM, maxim maxim
<look2004il gmail com> wrote:
Hi to all,
I have a following question, I try to receive a cursor position in
GtkEntry by function gtk_editable_get_position (GTK_EDITABLE (entry)),
but the function returns a correct position only at expose-event, in
all other cases it returns a zero, how to solve this problem?
You can try to access directly the property "cursor-position":
gint position = -1;
g_object_get(G_OBJECT(entry), "cursor-position", &position, NULL);
--
Emmanuel Rodriguez
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]