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.
This commit is contained in:
Matthias Clasen 2004-08-09 15:09:10 +00:00 committed by Matthias Clasen
parent ad534c2bb7
commit b94a8883ac
7 changed files with 40 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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.
Mon Aug 9 00:28:34 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkicontheme.c (load_svg_at_size): Don't leak the

View File

@ -1,3 +1,9 @@
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.
Mon Aug 9 00:28:34 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkicontheme.c (load_svg_at_size): Don't leak the

View File

@ -1,3 +1,9 @@
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.
Mon Aug 9 00:28:34 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkicontheme.c (load_svg_at_size): Don't leak the

View File

@ -1,3 +1,9 @@
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.
Mon Aug 9 00:28:34 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkicontheme.c (load_svg_at_size): Don't leak the

View File

@ -1,3 +1,8 @@
Mon Aug 9 10:52:23 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtk-sections.txt: Add gtk_entry_layout_index_to_text_index()
and its inverse.
2004-08-07 Matthias Clasen <mclasen@redhat.com>
* gtk/tmpl/gtkrc.sgml: Fix a typo (#164470, Mariano

View File

@ -1064,6 +1064,8 @@ gtk_entry_set_alignment
gtk_entry_get_alignment
gtk_entry_get_layout
gtk_entry_get_layout_offsets
gtk_entry_layout_index_to_text_index
gtk_entry_text_index_to_layout_index
gtk_entry_get_max_length
gtk_entry_get_visibility
gtk_entry_set_completion

View File

@ -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
*/