Commit 643e1b1a authored by Marc Lehmann's avatar Marc Lehmann
Browse files

*** empty log message ***

parent fe3eed8e
......@@ -3154,6 +3154,12 @@ gimp_image_filename (GimpImage *gimage)
return _("Untitled");
}
gboolean
gimp_image_undo_is_enabled (GimpImage *gimage)
{
return gimage->undo_on;
}
gboolean
gimp_image_undo_freeze (GimpImage *gimage)
{
......
......@@ -248,6 +248,7 @@ GimpDrawable * gimp_image_active_drawable (GimpImage *);
GimpImageBaseType gimp_image_base_type (GimpImage *);
GimpImageType gimp_image_base_type_with_alpha (GimpImage *);
gchar * gimp_image_filename (GimpImage *);
gboolean gimp_image_undo_is_enabled (GimpImage *);
gboolean gimp_image_undo_enable (GimpImage *);
gboolean gimp_image_undo_disable (GimpImage *);
gboolean gimp_image_undo_freeze (GimpImage *);
......
......@@ -3154,6 +3154,12 @@ gimp_image_filename (GimpImage *gimage)
return _("Untitled");
}
gboolean
gimp_image_undo_is_enabled (GimpImage *gimage)
{
return gimage->undo_on;
}
gboolean
gimp_image_undo_freeze (GimpImage *gimage)
{
......
......@@ -248,6 +248,7 @@ GimpDrawable * gimp_image_active_drawable (GimpImage *);
GimpImageBaseType gimp_image_base_type (GimpImage *);
GimpImageType gimp_image_base_type_with_alpha (GimpImage *);
gchar * gimp_image_filename (GimpImage *);
gboolean gimp_image_undo_is_enabled (GimpImage *);
gboolean gimp_image_undo_enable (GimpImage *);
gboolean gimp_image_undo_disable (GimpImage *);
gboolean gimp_image_undo_freeze (GimpImage *);
......
......@@ -3154,6 +3154,12 @@ gimp_image_filename (GimpImage *gimage)
return _("Untitled");
}
gboolean
gimp_image_undo_is_enabled (GimpImage *gimage)
{
return gimage->undo_on;
}
gboolean
gimp_image_undo_freeze (GimpImage *gimage)
{
......
......@@ -248,6 +248,7 @@ GimpDrawable * gimp_image_active_drawable (GimpImage *);
GimpImageBaseType gimp_image_base_type (GimpImage *);
GimpImageType gimp_image_base_type_with_alpha (GimpImage *);
gchar * gimp_image_filename (GimpImage *);
gboolean gimp_image_undo_is_enabled (GimpImage *);
gboolean gimp_image_undo_enable (GimpImage *);
gboolean gimp_image_undo_disable (GimpImage *);
gboolean gimp_image_undo_freeze (GimpImage *);
......
......@@ -3154,6 +3154,12 @@ gimp_image_filename (GimpImage *gimage)
return _("Untitled");
}
gboolean
gimp_image_undo_is_enabled (GimpImage *gimage)
{
return gimage->undo_on;
}
gboolean
gimp_image_undo_freeze (GimpImage *gimage)
{
......
......@@ -248,6 +248,7 @@ GimpDrawable * gimp_image_active_drawable (GimpImage *);
GimpImageBaseType gimp_image_base_type (GimpImage *);
GimpImageType gimp_image_base_type_with_alpha (GimpImage *);
gchar * gimp_image_filename (GimpImage *);
gboolean gimp_image_undo_is_enabled (GimpImage *);
gboolean gimp_image_undo_enable (GimpImage *);
gboolean gimp_image_undo_disable (GimpImage *);
gboolean gimp_image_undo_freeze (GimpImage *);
......
......@@ -3154,6 +3154,12 @@ gimp_image_filename (GimpImage *gimage)
return _("Untitled");
}
gboolean
gimp_image_undo_is_enabled (GimpImage *gimage)
{
return gimage->undo_on;
}
gboolean
gimp_image_undo_freeze (GimpImage *gimage)
{
......
......@@ -248,6 +248,7 @@ GimpDrawable * gimp_image_active_drawable (GimpImage *);
GimpImageBaseType gimp_image_base_type (GimpImage *);
GimpImageType gimp_image_base_type_with_alpha (GimpImage *);
gchar * gimp_image_filename (GimpImage *);
gboolean gimp_image_undo_is_enabled (GimpImage *);
gboolean gimp_image_undo_enable (GimpImage *);
gboolean gimp_image_undo_disable (GimpImage *);
gboolean gimp_image_undo_freeze (GimpImage *);
......
......@@ -3154,6 +3154,12 @@ gimp_image_filename (GimpImage *gimage)
return _("Untitled");
}
gboolean
gimp_image_undo_is_enabled (GimpImage *gimage)
{
return gimage->undo_on;
}
gboolean
gimp_image_undo_freeze (GimpImage *gimage)
{
......
......@@ -248,6 +248,7 @@ GimpDrawable * gimp_image_active_drawable (GimpImage *);
GimpImageBaseType gimp_image_base_type (GimpImage *);
GimpImageType gimp_image_base_type_with_alpha (GimpImage *);
gchar * gimp_image_filename (GimpImage *);
gboolean gimp_image_undo_is_enabled (GimpImage *);
gboolean gimp_image_undo_enable (GimpImage *);
gboolean gimp_image_undo_disable (GimpImage *);
gboolean gimp_image_undo_freeze (GimpImage *);
......
......@@ -3154,6 +3154,12 @@ gimp_image_filename (GimpImage *gimage)
return _("Untitled");
}
gboolean
gimp_image_undo_is_enabled (GimpImage *gimage)
{
return gimage->undo_on;
}
gboolean
gimp_image_undo_freeze (GimpImage *gimage)
{
......
......@@ -248,6 +248,7 @@ GimpDrawable * gimp_image_active_drawable (GimpImage *);
GimpImageBaseType gimp_image_base_type (GimpImage *);
GimpImageType gimp_image_base_type_with_alpha (GimpImage *);
gchar * gimp_image_filename (GimpImage *);
gboolean gimp_image_undo_is_enabled (GimpImage *);
gboolean gimp_image_undo_enable (GimpImage *);
gboolean gimp_image_undo_disable (GimpImage *);
gboolean gimp_image_undo_freeze (GimpImage *);
......
......@@ -3154,6 +3154,12 @@ gimp_image_filename (GimpImage *gimage)
return _("Untitled");
}
gboolean
gimp_image_undo_is_enabled (GimpImage *gimage)
{
return gimage->undo_on;
}
gboolean
gimp_image_undo_freeze (GimpImage *gimage)
{
......
......@@ -248,6 +248,7 @@ GimpDrawable * gimp_image_active_drawable (GimpImage *);
GimpImageBaseType gimp_image_base_type (GimpImage *);
GimpImageType gimp_image_base_type_with_alpha (GimpImage *);
gchar * gimp_image_filename (GimpImage *);
gboolean gimp_image_undo_is_enabled (GimpImage *);
gboolean gimp_image_undo_enable (GimpImage *);
gboolean gimp_image_undo_disable (GimpImage *);
gboolean gimp_image_undo_freeze (GimpImage *);
......
......@@ -819,6 +819,29 @@ CODE
);
}
sub image_undo_is_enabled {
$blurb = "Check if the image's undo stack is enabled.";
$help = <<'HELP';
This procedure checks if the image's undo stack is currently enabled or
disabled. This is useful when several plugins or scripts call each other
and want to check if their caller has already used 'gimp_image_undo_disable'
or 'gimp_image_undo_freeze'.
HELP
$author = $copyright = 'Raphael Quinet';
$date = '1999';
@inargs = ( &std_image_arg );
@outargs = (
{ name => 'enabled', type => 'boolean',
desc => 'True if undo is enabled for this image' }
);
%invoke = ( code => 'enabled = gimp_image_undo_is_enabled (gimage);' );
}
sub image_undo_enable {
$blurb = "Enable the image's undo stack.";
......@@ -1324,10 +1347,10 @@ unshift @procs, qw(image_list image_new image_resize image_scale image_delete
image_remove_layer_mask image_raise_channel
image_lower_channel image_add_channel image_remove_channel
image_active_drawable image_base_type image_get_cmap
image_set_cmap image_undo_enable image_undo_disable
image_undo_freeze image_undo_thaw image_clean_all
image_floating_selection image_floating_sel_attached_to
image_thumbnail);
image_set_cmap image_undo_is_enabled image_undo_enable
image_undo_disable image_undo_freeze image_undo_thaw
image_clean_all image_floating_selection
image_floating_sel_attached_to image_thumbnail);
%exports = (app => [@procs]);
$desc = 'Image';
......
......@@ -819,6 +819,29 @@ CODE
);
}
sub image_undo_is_enabled {
$blurb = "Check if the image's undo stack is enabled.";
$help = <<'HELP';
This procedure checks if the image's undo stack is currently enabled or
disabled. This is useful when several plugins or scripts call each other
and want to check if their caller has already used 'gimp_image_undo_disable'
or 'gimp_image_undo_freeze'.
HELP
$author = $copyright = 'Raphael Quinet';
$date = '1999';
@inargs = ( &std_image_arg );
@outargs = (
{ name => 'enabled', type => 'boolean',
desc => 'True if undo is enabled for this image' }
);
%invoke = ( code => 'enabled = gimp_image_undo_is_enabled (gimage);' );
}
sub image_undo_enable {
$blurb = "Enable the image's undo stack.";
......@@ -1324,10 +1347,10 @@ unshift @procs, qw(image_list image_new image_resize image_scale image_delete
image_remove_layer_mask image_raise_channel
image_lower_channel image_add_channel image_remove_channel
image_active_drawable image_base_type image_get_cmap
image_set_cmap image_undo_enable image_undo_disable
image_undo_freeze image_undo_thaw image_clean_all
image_floating_selection image_floating_sel_attached_to
image_thumbnail);
image_set_cmap image_undo_is_enabled image_undo_enable
image_undo_disable image_undo_freeze image_undo_thaw
image_clean_all image_floating_selection
image_floating_sel_attached_to image_thumbnail);
%exports = (app => [@procs]);
$desc = 'Image';
......
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