[gimp] app: add +gimp_container_freeze_count() which returns the freeze_count
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: add +gimp_container_freeze_count() which returns the freeze_count
- Date: Mon, 7 May 2018 08:42:51 +0000 (UTC)
commit 29cf157f698ac7b369150c044b52e3844683ec5a
Author: Michael Natterer <mitch gimp org>
Date: Mon May 7 10:25:45 2018 +0200
app: add +gimp_container_freeze_count() which returns the freeze_count
app/core/gimpcontainer.c | 8 ++++++++
app/core/gimpcontainer.h | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpcontainer.c b/app/core/gimpcontainer.c
index 54809e4..274a314 100644
--- a/app/core/gimpcontainer.c
+++ b/app/core/gimpcontainer.c
@@ -769,6 +769,14 @@ gimp_container_frozen (GimpContainer *container)
return (container->priv->freeze_count > 0) ? TRUE : FALSE;
}
+gint
+gimp_container_freeze_count (GimpContainer *container)
+{
+ g_return_val_if_fail (GIMP_IS_CONTAINER (container), 0);
+
+ return container->priv->freeze_count;
+}
+
void
gimp_container_clear (GimpContainer *container)
{
diff --git a/app/core/gimpcontainer.h b/app/core/gimpcontainer.h
index 5a2d218..0b31a21 100644
--- a/app/core/gimpcontainer.h
+++ b/app/core/gimpcontainer.h
@@ -94,6 +94,7 @@ gboolean gimp_container_reorder (GimpContainer *container,
void gimp_container_freeze (GimpContainer *container);
void gimp_container_thaw (GimpContainer *container);
gboolean gimp_container_frozen (GimpContainer *container);
+gint gimp_container_freeze_count (GimpContainer *container);
void gimp_container_clear (GimpContainer *container);
gboolean gimp_container_is_empty (GimpContainer *container);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]