summaryrefslogtreecommitdiff
path: root/gtk/gtkentry.h
diff options
context:
space:
mode:
authorAndrew Walton <awalton@gnome.org>2013-08-15 11:34:31 -0700
committerMatthias Clasen <mclasen@redhat.com>2013-08-19 13:43:32 -0400
commit19be4edbea1b0527366b94e69c1fa53f19b977ea (patch)
treebf77fc016fadd4c1d17484d6a31dab9356840f76 /gtk/gtkentry.h
parenta864f9d052aa66430b5db572b9bb740b5beeb9a8 (diff)
downloadgtk+-19be4edbea1b0527366b94e69c1fa53f19b977ea.tar.gz
GtkEntry: add a "tabs" property for setting a PangoTabArray in the layout.
I'm currently working on porting view::FieldEntry (from libview) to C for use in upstream GTK+. FieldEntry is a widget which allows users to enter structured text such as IPv4 addresses or serial numbers. The way that FieldEntry delineates the fields within the entry is with tabstops, using PangoTabArray entries to precisely position the fields and delimiters. Because GtkEntry rebuilds its internal PangoLayout fairly frequently, this requires a property in the entry that will set the tabs on the layout whenever that happens. This API looks very similar to one in GtkTextView. Patch by David Trowbridge <trowbrds@gmail.com>. Updated for Gtk+ 3.10. https://bugzilla.gnome.org/show_bug.cgi?id=697399
Diffstat (limited to 'gtk/gtkentry.h')
-rw-r--r--gtk/gtkentry.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkentry.h b/gtk/gtkentry.h
index 3ca818bc0c..5bb79d2300 100644
--- a/gtk/gtkentry.h
+++ b/gtk/gtkentry.h
@@ -361,6 +361,13 @@ void gtk_entry_set_attributes (GtkEntry
GDK_AVAILABLE_IN_3_6
PangoAttrList *gtk_entry_get_attributes (GtkEntry *entry);
+GDK_AVAILABLE_IN_3_10
+void gtk_entry_set_tabs (GtkEntry *entry,
+ PangoTabArray *tabs);
+
+GDK_AVAILABLE_IN_3_10
+PangoTabArray *gtk_entry_get_tabs (GtkEntry *entry);
+
G_END_DECLS
#endif /* __GTK_ENTRY_H__ */