GNOME Bugzilla – Bug 697399
GtkEntry: Add a "tabs" property for setting a PangoTabArray in the layout
Last modified: 2013-08-19 17:43:52 UTC
Created attachment 240807 [details] [review] Patch against gtk-3-8 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.
Ping?
sorry, I'll put this on my review queue
Review of attachment 240807 [details] [review]: gtk.symbols doesn't exist anymore. Instead, the patch should add the new functions to docs/reference/gtk3/gtk3-sections.txt. All mentions of 3.8 should be updated to 3.10 ::: gtk/gtkentry.c @@ +2890,3 @@ + if (priv->attrs) + pango_attr_list_unref (priv->attrs); This looks like an independent memleak fix ? Should be committed separately.
Created attachment 251752 [details] [review] Updated David's patch Not sure how much David will be working on Gtk+ code these days, so I went ahead and updated the patch. git am gave me lots of grief trying to merge the patch, so I had to manually regenerate it (else I would have just signed off on it).
Review of attachment 251752 [details] [review]: Looks fine now