app: if there is no "text", generate the layer name from "markup"

Add gimp_markup_extract_text() which does just what it says (includes
code stolen from gmarkup.c), and use it if the layer's text object
doesn't have any text set.
This commit is contained in:
Michael Natterer
2010-03-02 21:19:57 +01:00
parent 842f1df2f2
commit e9abde75ee
3 changed files with 184 additions and 8 deletions

View File

@ -67,6 +67,9 @@ GimpObject * gimp_container_get_neighbor_of_active (GimpContainer *container,
GimpContext *context,
GimpObject *active);
gchar * gimp_markup_extract_text (const gchar *markup);
/* Common values for the n_snap_lines parameter of
* gimp_constrain_line.
*/