1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Interface for text-editing widgets
7 <!-- ##### SECTION Long_Description ##### -->
9 The #GtkEditable interface is an interface which should be implemented by
10 text editing widgets, such as #GtkEntry and #GtkText. It contains functions
11 for generically manipulating an editable widget, a large number of action
12 signals used for key bindings, and several signals that an application can
13 connect to to modify the behavior of a widget.
17 As an example of the latter usage, by connecting
18 the following handler to "insert_text", an application
19 can convert all entry into a widget into uppercase.
22 <title>Forcing entry to uppercase.</title>
24 #include <ctype.h>
27 insert_text_handler (GtkEditable *editable,
34 gchar *result = g_utf8_strup (text, length);
36 g_signal_handlers_block_by_func (editable,
37 (gpointer) insert_text_handler, data);
38 gtk_editable_insert_text (editable, result, length, position);
39 g_signal_handlers_unblock_by_func (editable,
40 (gpointer) insert_text_handler, data);
42 g_signal_stop_emission_by_name (editable, "insert_text");
50 <!-- ##### SECTION See_Also ##### -->
55 <!-- ##### SECTION Stability_Level ##### -->
58 <!-- ##### SECTION Image ##### -->
61 <!-- ##### STRUCT GtkEditable ##### -->
63 The #GtkEditable structure is an opaque structure whose members
64 cannot be directly accessed.
68 <!-- ##### SIGNAL GtkEditable::changed ##### -->
73 @editable: the object which received the signal.
75 <!-- ##### SIGNAL GtkEditable::delete-text ##### -->
84 <!-- ##### SIGNAL GtkEditable::insert-text ##### -->
94 <!-- ##### FUNCTION gtk_editable_select_region ##### -->
104 <!-- ##### FUNCTION gtk_editable_get_selection_bounds ##### -->
115 <!-- ##### FUNCTION gtk_editable_insert_text ##### -->
126 <!-- ##### FUNCTION gtk_editable_delete_text ##### -->
136 <!-- ##### FUNCTION gtk_editable_get_chars ##### -->
147 <!-- ##### FUNCTION gtk_editable_cut_clipboard ##### -->
155 <!-- ##### FUNCTION gtk_editable_copy_clipboard ##### -->
163 <!-- ##### FUNCTION gtk_editable_paste_clipboard ##### -->
171 <!-- ##### FUNCTION gtk_editable_delete_selection ##### -->
179 <!-- ##### FUNCTION gtk_editable_set_position ##### -->
188 <!-- ##### FUNCTION gtk_editable_get_position ##### -->
197 <!-- ##### FUNCTION gtk_editable_set_editable ##### -->
206 <!-- ##### FUNCTION gtk_editable_get_editable ##### -->