gimp r26193 - in trunk: . app/pdb libgimp tools/pdbgen/pdb
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26193 - in trunk: . app/pdb libgimp tools/pdbgen/pdb
- Date: Mon, 14 Jul 2008 22:52:15 +0000 (UTC)
Author: neo
Date: Mon Jul 14 22:52:14 2008
New Revision: 26193
URL: http://svn.gnome.org/viewvc/gimp?rev=26193&view=rev
Log:
2008-07-15 Sven Neumann <sven gimp org>
* tools/pdbgen/pdb/edit.pdb: fixed documentation (bug #542972).
* app/pdb/edit-cmds.c
* libgimp/gimpedit_pdb.c: regenerated.
Modified:
trunk/ChangeLog
trunk/app/pdb/edit-cmds.c
trunk/libgimp/gimpedit_pdb.c
trunk/tools/pdbgen/pdb/edit.pdb
Modified: trunk/app/pdb/edit-cmds.c
==============================================================================
--- trunk/app/pdb/edit-cmds.c (original)
+++ trunk/app/pdb/edit-cmds.c Mon Jul 14 22:52:14 2008
@@ -799,7 +799,7 @@
gimp_procedure_set_static_strings (procedure,
"gimp-edit-cut",
"Cut from the specified drawable.",
- "If there is a selection in the image, then the area specified by the selection is cut from the specified drawable and placed in an internal GIMP edit buffer. It can subsequently be retrieved using the 'gimp-edit-paste' command. If there is no selection, then the specified drawable will be removed and its contents stored in the internal GIMP edit buffer.",
+ "If there is a selection in the image, then the area specified by the selection is cut from the specified drawable and placed in an internal GIMP edit buffer. It can subsequently be retrieved using the 'gimp-edit-paste' command. If there is no selection, then the specified drawable will be removed and its contents stored in the internal GIMP edit buffer. This procedure will fail if the selected area lies completely outside the bounds of the current drawable and there is nothing to copy from.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
@@ -813,7 +813,7 @@
gimp_procedure_add_return_value (procedure,
g_param_spec_boolean ("non-empty",
"non empty",
- "TRUE if the cut was successful, FALSE if the selection contained only transparent pixels",
+ "TRUE if the cut was successful, FALSE if there was nothing to copy from",
FALSE,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
@@ -828,7 +828,7 @@
gimp_procedure_set_static_strings (procedure,
"gimp-edit-copy",
"Copy from the specified drawable.",
- "If there is a selection in the image, then the area specified by the selection is copied from the specified drawable and placed in an internal GIMP edit buffer. It can subsequently be retrieved using the 'gimp-edit-paste' command. If there is no selection, then the specified drawable's contents will be stored in the internal GIMP edit buffer.",
+ "If there is a selection in the image, then the area specified by the selection is copied from the specified drawable and placed in an internal GIMP edit buffer. It can subsequently be retrieved using the 'gimp-edit-paste' command. If there is no selection, then the specified drawable's contents will be stored in the internal GIMP edit buffer. This procedure will fail if the selected area lies completely outside the bounds of the current drawable and there is nothing to copy from.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
@@ -842,7 +842,7 @@
gimp_procedure_add_return_value (procedure,
g_param_spec_boolean ("non-empty",
"non empty",
- "TRUE if the copy was successful, FALSE if the selection contained only transparent pixels",
+ "TRUE if the cut was successful, FALSE if there was nothing to copy from",
FALSE,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
@@ -871,7 +871,7 @@
gimp_procedure_add_return_value (procedure,
g_param_spec_boolean ("non-empty",
"non empty",
- "TRUE if the copy was successful, FALSE if the selection contained only transparent pixels",
+ "TRUE if the copy was successful",
FALSE,
GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure);
@@ -965,7 +965,7 @@
gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("real-name",
"real name",
- "The real name given to the buffer, or NULL if the selection contained only transparent pixels",
+ "The real name given to the buffer, or NULL if the cut failed",
FALSE, FALSE, FALSE,
NULL,
GIMP_PARAM_READWRITE));
@@ -1002,7 +1002,7 @@
gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("real-name",
"real name",
- "The real name given to the buffer, or NULL if the selection contained only transparent pixels",
+ "The real name given to the buffer, or NULL if the copy failed",
FALSE, FALSE, FALSE,
NULL,
GIMP_PARAM_READWRITE));
@@ -1039,7 +1039,7 @@
gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("real-name",
"real name",
- "The real name given to the buffer, or NULL if the selection contained only transparent pixels",
+ "The real name given to the buffer, or NULL if the copy failed",
FALSE, FALSE, FALSE,
NULL,
GIMP_PARAM_READWRITE));
Modified: trunk/libgimp/gimpedit_pdb.c
==============================================================================
--- trunk/libgimp/gimpedit_pdb.c (original)
+++ trunk/libgimp/gimpedit_pdb.c Mon Jul 14 22:52:14 2008
@@ -36,9 +36,11 @@
* internal GIMP edit buffer. It can subsequently be retrieved using
* the gimp_edit_paste() command. If there is no selection, then the
* specified drawable will be removed and its contents stored in the
- * internal GIMP edit buffer.
+ * internal GIMP edit buffer. This procedure will fail if the selected
+ * area lies completely outside the bounds of the current drawable and
+ * there is nothing to copy from.
*
- * Returns: TRUE if the cut was successful, FALSE if the selection contained only transparent pixels.
+ * Returns: TRUE if the cut was successful, FALSE if there was nothing to copy from.
*/
gboolean
gimp_edit_cut (gint32 drawable_ID)
@@ -71,9 +73,11 @@
* internal GIMP edit buffer. It can subsequently be retrieved using
* the gimp_edit_paste() command. If there is no selection, then the
* specified drawable's contents will be stored in the internal GIMP
- * edit buffer.
+ * edit buffer. This procedure will fail if the selected area lies
+ * completely outside the bounds of the current drawable and there is
+ * nothing to copy from.
*
- * Returns: TRUE if the copy was successful, FALSE if the selection contained only transparent pixels.
+ * Returns: TRUE if the cut was successful, FALSE if there was nothing to copy from.
*/
gboolean
gimp_edit_copy (gint32 drawable_ID)
@@ -108,7 +112,7 @@
* projection's contents will be stored in the internal GIMP edit
* buffer.
*
- * Returns: TRUE if the copy was successful, FALSE if the selection contained only transparent pixels.
+ * Returns: TRUE if the copy was successful.
*
* Since: GIMP 2.2
*/
@@ -224,7 +228,7 @@
* later pasting, regardless of any intermediate copy or cut
* operations.
*
- * Returns: The real name given to the buffer, or NULL if the selection contained only transparent pixels.
+ * Returns: The real name given to the buffer, or NULL if the cut failed.
*
* Since: GIMP 2.4
*/
@@ -262,7 +266,7 @@
* later pasting, regardless of any intermediate copy or cut
* operations.
*
- * Returns: The real name given to the buffer, or NULL if the selection contained only transparent pixels.
+ * Returns: The real name given to the buffer, or NULL if the copy failed.
*
* Since: GIMP 2.4
*/
@@ -300,7 +304,7 @@
* available for later pasting, regardless of any intermediate copy or
* cut operations.
*
- * Returns: The real name given to the buffer, or NULL if the selection contained only transparent pixels.
+ * Returns: The real name given to the buffer, or NULL if the copy failed.
*
* Since: GIMP 2.4
*/
Modified: trunk/tools/pdbgen/pdb/edit.pdb
==============================================================================
--- trunk/tools/pdbgen/pdb/edit.pdb (original)
+++ trunk/tools/pdbgen/pdb/edit.pdb Mon Jul 14 22:52:14 2008
@@ -23,10 +23,12 @@
$help = <<'HELP';
If there is a selection in the image, then the area specified by the
selection is cut from the specified drawable and placed in an internal
-GIMP edit buffer. It can subsequently be retrieved using the
+GIMP edit buffer. It can subsequently be retrieved using the
gimp_edit_paste() command. If there is no selection, then the
specified drawable will be removed and its contents stored in the
-internal GIMP edit buffer.
+internal GIMP edit buffer. This procedure will fail if the selected area
+lies completely outside the bounds of the current drawable and there is
+nothing to copy from.
HELP
&std_pdb_misc;
@@ -38,8 +40,8 @@
@outargs = (
{ name => 'non_empty', type => 'boolean',
- desc => 'TRUE if the cut was successful, FALSE if the
- selection contained only transparent pixels' }
+ desc => 'TRUE if the cut was successful,
+ FALSE if there was nothing to copy from' }
);
%invoke = (
@@ -75,7 +77,9 @@
internal GIMP edit buffer. It can subsequently be retrieved using the
gimp_edit_paste() command. If there is no selection, then the
specified drawable's contents will be stored in the internal GIMP edit
-buffer.
+buffer. This procedure will fail if the selected area lies completely
+outside the bounds of the current drawable and there is nothing to
+copy from.
HELP
&std_pdb_misc;
@@ -87,8 +91,8 @@
@outargs = (
{ name => 'non_empty', type => 'boolean',
- desc => 'TRUE if the copy was successful, FALSE if the
- selection contained only transparent pixels' }
+ desc => 'TRUE if the cut was successful,
+ FALSE if there was nothing to copy from' }
);
%invoke = (
@@ -135,8 +139,7 @@
@outargs = (
{ name => 'non_empty', type => 'boolean',
- desc => 'TRUE if the copy was successful, FALSE if the
- selection contained only transparent pixels' }
+ desc => 'TRUE if the copy was successful' }
);
%invoke = (
@@ -266,7 +269,7 @@
@outargs = (
{ name => 'real_name', type => 'string',
desc => 'The real name given to the buffer, or NULL if the
- selection contained only transparent pixels' }
+ cut failed' }
);
%invoke = (
@@ -318,7 +321,7 @@
@outargs = (
{ name => 'real_name', type => 'string',
desc => 'The real name given to the buffer, or NULL if the
- selection contained only transparent pixels' }
+ copy failed' }
);
%invoke = (
@@ -372,7 +375,7 @@
@outargs = (
{ name => 'real_name', type => 'string',
desc => 'The real name given to the buffer, or NULL if the
- selection contained only transparent pixels' }
+ copy failed' }
);
%invoke = (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]