Commit 89329ada authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

tools/pdbgen/pdb/brush.pdb (brush_rename) tools/pdbgen/pdb/gradient.pdb

2007-04-22  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/brush.pdb (brush_rename)
	* tools/pdbgen/pdb/gradient.pdb (gradient_rename)
	* tools/pdbgen/pdb/palette.pdb (palette_rename): don't allow the
	empty string as new name. Fixes bug #431845.

	* app/pdb/brush_cmds.c
	* app/pdb/gradient_cmds.c
	* app/pdb/palette_cmds.c: regenerated.


svn path=/trunk/; revision=22301
parent 04a2316a
2007-04-22 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/brush.pdb (brush_rename)
* tools/pdbgen/pdb/gradient.pdb (gradient_rename)
* tools/pdbgen/pdb/palette.pdb (palette_rename): don't allow the
empty string as new name. Fixes bug #431845.
* app/pdb/brush_cmds.c
* app/pdb/gradient_cmds.c
* app/pdb/palette_cmds.c: regenerated.
2007-04-21 Sven Neumann <sven@gimp.org>
* app/widgets/dbus-service.xml
......@@ -117,7 +128,7 @@
* app/plug-in/gimppluginmanager.c
* app/plug-in/gimpplugin.c
* app/gui/themes.c: don't translate --verbose or g_printerr()
messages, they are debugging output that often end up in bugzilla
messages, they are debugging output that often ends up in bugzilla
and should not depend on the locale.
2007-04-17 Michael Natterer <mitch@gimp.org>
......@@ -173,7 +173,7 @@ brush_rename_invoker (GimpProcedure *procedure,
GimpBrush *brush = (GimpBrush *)
gimp_container_get_child_by_name (gimp->brush_factory->container, name);
if (brush && GIMP_DATA (brush)->writable)
if (brush && GIMP_DATA (brush)->writable && strlen (new_name))
{
gimp_object_set_name (GIMP_OBJECT (brush), new_name);
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (brush)));
......
......@@ -222,7 +222,7 @@ gradient_rename_invoker (GimpProcedure *procedure,
GimpGradient *gradient = (GimpGradient *)
gimp_container_get_child_by_name (gimp->gradient_factory->container, name);
if (gradient && GIMP_DATA (gradient)->writable)
if (gradient && GIMP_DATA (gradient)->writable && strlen (new_name))
{
gimp_object_set_name (GIMP_OBJECT (gradient), new_name);
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (gradient)));
......
......@@ -140,7 +140,7 @@ palette_rename_invoker (GimpProcedure *procedure,
GimpPalette *palette = (GimpPalette *)
gimp_container_get_child_by_name (gimp->palette_factory->container, name);
if (palette && GIMP_DATA (palette)->writable)
if (palette && GIMP_DATA (palette)->writable && strlen (new_name))
{
gimp_object_set_name (GIMP_OBJECT (palette), new_name);
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (palette)));
......
......@@ -178,7 +178,7 @@ sub brush_rename {
GimpBrush *brush = (GimpBrush *)
gimp_container_get_child_by_name (gimp->brush_factory->container, name);
if (brush && GIMP_DATA (brush)->writable)
if (brush && GIMP_DATA (brush)->writable && strlen (new_name))
{
gimp_object_set_name (GIMP_OBJECT (brush), new_name);
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (brush)));
......
......@@ -145,7 +145,7 @@ sub gradient_rename {
GimpGradient *gradient = (GimpGradient *)
gimp_container_get_child_by_name (gimp->gradient_factory->container, name);
if (gradient && GIMP_DATA (gradient)->writable)
if (gradient && GIMP_DATA (gradient)->writable && strlen (new_name))
{
gimp_object_set_name (GIMP_OBJECT (gradient), new_name);
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (gradient)));
......
......@@ -147,7 +147,7 @@ sub palette_rename {
GimpPalette *palette = (GimpPalette *)
gimp_container_get_child_by_name (gimp->palette_factory->container, name);
if (palette && GIMP_DATA (palette)->writable)
if (palette && GIMP_DATA (palette)->writable && strlen (new_name))
{
gimp_object_set_name (GIMP_OBJECT (palette), new_name);
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (palette)));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment