gimp/app/text
Michael Natterer 82276adaa4 Disallow to rename the layer mask. Instead, always name the mask "<layer
2004-02-01  Michael Natterer  <mitch@gimp.org>

	Disallow to rename the layer mask. Instead, always name the mask
	"<layer name> mask". Fixes bug #133112 along with some other
	unreported ones.

	* app/core/gimpitem.[ch]: added a boolean return value indicating
	success to GimpItem::rename().

	(gimp_item_real_rename): push an undo step only if the item is
	attached.

	* app/core/gimplayer.c (gimp_layer_rename): refuse renaming if
	the layer is a floating selection floated from a channel
	(renaming a layer's floating selection makes a new layer out
	of the floating selection).

	(gimp_layer_duplicate): use gimp_layer_add_mask() to attach the
	mask's duplicate. Fixes mask refcount brokenness for duplicated
	layer masks.

	(gimp_layer_name_changed): new function. Automatically renames the
	layer mask when the layer's name changes.

	* app/core/gimplayermask.c (gimp_layer_mask_rename): new function
	which refuses renaming.

	(gimp_layer_mask_name_changed): skip the unique name voodoo
	GimpItem does by not chaining up.

	(gimp_layer_mask_set_layer): change the mask's name whenever it is
	attached to a layer.

	* app/text/gimptextlayer.c (gimp_text_layer_rename): fiddle with
	text_layer->auto_rename only if renaming was successful.

	* app/widgets/gimpitemtreeview.c (gimp_item_tree_view_name_edited):
	restore the old name if renaming failed.

	* tools/pdbgen/pdb/drawable.pdb (set_name): return an execution
	error if renaming failed.

	* app/pdb/drawable_cmds.c: regenerated.
2004-02-01 20:38:26 +00:00
..
.cvsignore configure.in app/Makefile.am added new directory text. 2003-01-29 22:20:09 +00:00
Makefile.am [ I've postponed my reservations against pangoft2/fontconfig/freetype2 2003-12-13 01:35:19 +00:00
gimp-fonts.c use GTK_STOCK_SELECT_FONT stock icon instead of text tool icon. 2003-11-05 01:07:56 +00:00
gimp-fonts.h Font configuration stuff: You can rescan for fonts on the fly now. A 2003-09-01 18:20:56 +00:00
gimpfont.c use GTK_STOCK_SELECT_FONT stock icon instead of text tool icon. 2003-11-05 01:07:56 +00:00
gimpfont.h require gtk+ >= 2.2. 2003-03-25 22:13:10 +00:00
gimpfontlist.c Minor cleanup, add note about using pango_fc_font_description_from_pattern 2004-01-15 22:02:30 +00:00
gimpfontlist.h added gimp_font_list_restore() which loads the fonts (not yet). 2003-03-25 22:53:10 +00:00
gimptext-bitmap.c app/text/Makefile.am new files that hold yet unused GimpItem transform 2003-08-15 19:45:41 +00:00
gimptext-bitmap.h app/text/Makefile.am new files that hold yet unused GimpItem transform 2003-08-15 19:45:41 +00:00
gimptext-compat.c removed gimp_image_owns_item() again. 2004-01-26 16:18:16 +00:00
gimptext-compat.h Fixed most of the bugs the Script-Fu logo scripts triggered: 2003-02-14 22:33:22 +00:00
gimptext-parasite.c app/text/Makefile.am new files that load and save text layers to/from XCF. 2003-10-27 21:50:41 +00:00
gimptext-parasite.h app/text/Makefile.am new files that load and save text layers to/from XCF. 2003-10-27 21:50:41 +00:00
gimptext-private.h app/text/Makefile.am new files that hold yet unused GimpItem transform 2003-08-15 19:45:41 +00:00
gimptext-vectors.c account for the fact that XLFD stores point sizes in decipoints. 2004-01-26 18:49:33 +00:00
gimptext-vectors.h Generalized text rendering and added a framework for creating GimpVectors 2003-07-20 21:23:01 +00:00
gimptext-xlfd.c account for the fact that XLFD stores point sizes in decipoints. 2004-01-26 18:49:33 +00:00
gimptext-xlfd.h added convenience function gimp_text_set_font_from_xlfd(). Improved and 2003-06-25 11:43:36 +00:00
gimptext.c app/config/gimpbaseconfig.h use gint64 for all memsize properties. 2003-11-16 17:51:36 +00:00
gimptext.h app/text/gimptext.[ch] added back "box-unit" property; it makes sense to 2003-10-26 12:07:05 +00:00
gimptextlayer-transform.c added GIMP_UNDO_TEXT_LAYER to GimpUndoType enum. 2004-01-05 00:28:12 +00:00
gimptextlayer-transform.h app/text/Makefile.am new files that hold yet unused GimpItem transform 2003-08-15 19:45:41 +00:00
gimptextlayer-xcf.c libgimpwidgets/gimpquerybox.c configure the labels in the message dialog 2003-11-14 15:33:40 +00:00
gimptextlayer-xcf.h app/text/Makefile.am new files that load and save text layers to/from XCF. 2003-10-27 21:50:41 +00:00
gimptextlayer.c Disallow to rename the layer mask. Instead, always name the mask "<layer 2004-02-01 20:38:26 +00:00
gimptextlayer.h added GIMP_UNDO_TEXT_LAYER to GimpUndoType enum. 2004-01-05 00:28:12 +00:00
gimptextlayout-render.c multiply the layout's offsets with PANGO_SCALE, not -PANGO_SCALE. Fixes 2003-12-16 13:33:02 +00:00
gimptextlayout-render.h Generalized text rendering and added a framework for creating GimpVectors 2003-07-20 21:23:01 +00:00
gimptextlayout.c fixed text positioning for fonts where glyphs extend the logical rectangle 2004-01-25 21:06:01 +00:00
gimptextlayout.h app/text/Makefile.am app/text/gimptextlayout-private.h new files that 2003-07-06 18:43:58 +00:00
makefile.msc [ I've postponed my reservations against pangoft2/fontconfig/freetype2 2003-12-13 01:35:19 +00:00
text-enums.c handle negative float and double values similar to how this is done for 2003-10-26 00:03:16 +00:00
text-enums.h handle negative float and double values similar to how this is done for 2003-10-26 00:03:16 +00:00
text-types.h app/text/Makefile.am app/text/text-types.h new GimpList subclass. 2003-03-25 22:00:59 +00:00