[gimp] app: Use the function gegl_has_operation in sanity.c
- From: Michael Henning <mhenning src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Use the function gegl_has_operation in sanity.c
- Date: Sun, 1 Sep 2013 15:55:53 +0000 (UTC)
commit 1649ae4eac3ea15320d6e4eb6c1307e24b540745
Author: Michael Henning <drawoc darkrefraction com>
Date: Sun Sep 1 11:48:02 2013 -0400
app: Use the function gegl_has_operation in sanity.c
app/sanity.c | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/app/sanity.c b/app/sanity.c
index 77ecc8c..288e6fe 100644
--- a/app/sanity.c
+++ b/app/sanity.c
@@ -497,19 +497,9 @@ sanity_check_gegl_ops (void)
"gegl:write-buffer"
};
- operations = gegl_list_operations (&n_operations);
for (i = 0; i < G_N_ELEMENTS (required_ops); i++)
{
- gboolean present = FALSE;
- for (j = 0; j < n_operations; j++)
- {
- if (!strcmp (required_ops[i], operations[j]))
- {
- present = TRUE;
- break;
- }
- }
- if (!present)
+ if (!gegl_has_operation (required_ops[i]))
return g_strdup_printf
("GEGL operation missing!\n\n"
"GIMP requires the GEGL operation \"%s\". \n"
@@ -518,7 +508,7 @@ sanity_check_gegl_ops (void)
"with any dependencies required for GIMP.\n",
required_ops [i]);
}
- g_free (operations);
+
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]