mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 12:32:37 +00:00
Bug 574149 – Can't get name/filename of files loaded from URI
2009-03-04 Sven Neumann <sven@gimp.org> Bug 574149 – Can't get name/filename of files loaded from URI * tools/pdbgen/pdb/image.pdb (image_get_name_invoker): use gimp_image_get_display_name(). * app/pdb/image-cmds.c * libgimp/gimpimage_pdb.c: regenerated. svn path=/trunk/; revision=28099
This commit is contained in:
parent
73ae572b75
commit
93524f3f8b
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2009-03-04 Sven Neumann <sven@gimp.org>
|
||||
|
||||
Bug 574149 – Can't get name/filename of files loaded from URI
|
||||
|
||||
* tools/pdbgen/pdb/image.pdb (image_get_name_invoker): use
|
||||
gimp_image_get_display_name().
|
||||
|
||||
* app/pdb/image-cmds.c
|
||||
* libgimp/gimpimage_pdb.c: regenerated.
|
||||
|
||||
2009-03-03 Sven Neumann <sven@gimp.org>
|
||||
|
||||
Bug 520078 – Rotate brushes
|
||||
|
|
|
@ -534,7 +534,7 @@ image_rotate_invoker (GimpProcedure *procedure,
|
|||
gimp_image_rotate (image, context, rotate_type, progress);
|
||||
|
||||
if (progress)
|
||||
gimp_progress_end (progress);
|
||||
gimp_progress_end (progress);
|
||||
}
|
||||
|
||||
return gimp_procedure_get_return_values (procedure, success,
|
||||
|
@ -2189,12 +2189,7 @@ image_get_name_invoker (GimpProcedure *procedure,
|
|||
|
||||
if (success)
|
||||
{
|
||||
gchar *filename = gimp_image_get_filename (image);
|
||||
|
||||
if (filename)
|
||||
name = g_filename_display_basename (filename);
|
||||
else
|
||||
name = g_strdup (_("Untitled"));
|
||||
name = g_strdup (gimp_image_get_display_name (image));
|
||||
}
|
||||
|
||||
return_vals = gimp_procedure_get_return_values (procedure, success,
|
||||
|
@ -4688,7 +4683,7 @@ register_image_procs (GimpPDB *pdb)
|
|||
gimp_procedure_set_static_strings (procedure,
|
||||
"gimp-image-get-name",
|
||||
"Returns the specified image's name.",
|
||||
"This procedure returns the specified image's name.",
|
||||
"This procedure returns the image's name. If the image has a filename, then this is the base name (the last component of the path).",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -2412,7 +2412,9 @@ gimp_image_set_filename (gint32 image_ID,
|
|||
*
|
||||
* Returns the specified image's name.
|
||||
*
|
||||
* This procedure returns the specified image's name.
|
||||
* This procedure returns the image's name. If the image has a
|
||||
* filename, then this is the base name (the last component of the
|
||||
* path).
|
||||
*
|
||||
* Returns: The name.
|
||||
*/
|
||||
|
|
|
@ -428,7 +428,7 @@ sub image_rotate {
|
|||
gimp_image_rotate (image, context, rotate_type, progress);
|
||||
|
||||
if (progress)
|
||||
gimp_progress_end (progress);
|
||||
gimp_progress_end (progress);
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -2212,7 +2212,10 @@ CODE
|
|||
|
||||
sub image_get_name {
|
||||
$blurb = "Returns the specified image's name.";
|
||||
$help = "This procedure returns the specified image's name.";
|
||||
$help = <<'HELP';
|
||||
This procedure returns the image's name. If the image has a filename,
|
||||
then this is the base name (the last component of the path).
|
||||
HELP
|
||||
|
||||
&std_pdb_misc;
|
||||
|
||||
|
@ -2229,12 +2232,7 @@ sub image_get_name {
|
|||
%invoke = (
|
||||
code => <<'CODE'
|
||||
{
|
||||
gchar *filename = gimp_image_get_filename (image);
|
||||
|
||||
if (filename)
|
||||
name = g_filename_display_basename (filename);
|
||||
else
|
||||
name = g_strdup (_("Untitled"));
|
||||
name = g_strdup (gimp_image_get_display_name (image));
|
||||
}
|
||||
CODE
|
||||
);
|
||||
|
@ -2244,7 +2242,7 @@ sub image_get_resolution {
|
|||
$blurb = "Returns the specified image's resolution.";
|
||||
|
||||
$help = <<'HELP';
|
||||
This procedure returns the specified image's resolution in dots per inch.
|
||||
This procedure returns the specified image's resolution in dots per inch.
|
||||
This value is independent of any of the layers in this image.
|
||||
HELP
|
||||
|
||||
|
@ -2275,7 +2273,7 @@ sub image_set_resolution {
|
|||
$blurb = "Sets the specified image's resolution.";
|
||||
|
||||
$help = <<'HELP';
|
||||
This procedure sets the specified image's resolution in dots per inch.
|
||||
This procedure sets the specified image's resolution in dots per inch.
|
||||
This value is independent of any of the layers in this image.
|
||||
No scaling or resizing is performed.
|
||||
HELP
|
||||
|
|
Loading…
Reference in a new issue