diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-08-09 15:09:10 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-08-09 15:09:10 +0000 |
commit | b94a8883ac5472f659b8c5da1635e0cbcf305ee1 (patch) | |
tree | fd86c2d7ec6ca438c75eea0a33e3be2b60b1f861 /gtk | |
parent | ad534c2bb7edebd6d076448d4a867f4d61f6228f (diff) | |
download | gtk+-b94a8883ac5472f659b8c5da1635e0cbcf305ee1.tar.gz |
Add gtk_entry_layout_index_to_text_index() and its inverse. The have
Mon Aug 9 10:50:05 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkentry.h: Add gtk_entry_layout_index_to_text_index()
and its inverse. The have always been exported and are meant
to be public.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkentry.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gtk/gtkentry.h b/gtk/gtkentry.h index b34ed47748..751e177ccc 100644 --- a/gtk/gtkentry.h +++ b/gtk/gtkentry.h @@ -174,7 +174,7 @@ gint gtk_entry_get_width_chars (GtkEntry *entry); /* Somewhat more convenient than the GtkEditable generic functions */ -void gtk_entry_set_text (GtkEntry *entry, +void gtk_entry_set_text (GtkEntry *entry, const gchar *text); /* returns a reference to the text */ G_CONST_RETURN gchar* gtk_entry_get_text (GtkEntry *entry); @@ -191,6 +191,14 @@ void gtk_entry_set_completion (GtkEntry *entry, GtkEntryCompletion *completion); GtkEntryCompletion *gtk_entry_get_completion (GtkEntry *entry); +PangoLayout* gtk_entry_get_layout (GtkEntry *entry); + +gint gtk_entry_layout_index_to_text_index (GtkEntry *entry, + gint layout_index); +gint gtk_entry_text_index_to_layout_index (GtkEntry *entry, + gint text_index); + + /* Deprecated compatibility functions */ |