[gimp] app: removed unnecessary argument from gimp_operations_init



commit 83680825d0a1bc0f747455eb4afa98f931f14b80
Author: Ville Sokk <ville sokk gmail com>
Date:   Wed Jun 6 20:23:55 2012 +0300

    app: removed unnecessary argument from gimp_operations_init

 app/gegl/gimp-gegl.c             |    2 +-
 app/operations/gimp-operations.c |    4 +---
 app/operations/gimp-operations.h |    2 +-
 3 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/app/gegl/gimp-gegl.c b/app/gegl/gimp-gegl.c
index c96f400..396ae8f 100644
--- a/app/gegl/gimp-gegl.c
+++ b/app/gegl/gimp-gegl.c
@@ -83,7 +83,7 @@ gimp_gegl_init (Gimp *gimp)
 
   gimp_babl_init ();
 
-  gimp_operations_init (gimp);
+  gimp_operations_init ();
 }
 
 static void
diff --git a/app/operations/gimp-operations.c b/app/operations/gimp-operations.c
index 384d690..6b35ec9 100644
--- a/app/operations/gimp-operations.c
+++ b/app/operations/gimp-operations.c
@@ -80,10 +80,8 @@
 
 
 void
-gimp_operations_init (Gimp *gimp)
+gimp_operations_init (void)
 {
-  g_return_if_fail (GIMP_IS_GIMP (gimp));
-
   g_type_class_ref (GIMP_TYPE_OPERATION_BORDER);
   g_type_class_ref (GIMP_TYPE_OPERATION_CAGE_COEF_CALC);
   g_type_class_ref (GIMP_TYPE_OPERATION_CAGE_TRANSFORM);
diff --git a/app/operations/gimp-operations.h b/app/operations/gimp-operations.h
index 8f11626..d1378d1 100644
--- a/app/operations/gimp-operations.h
+++ b/app/operations/gimp-operations.h
@@ -21,7 +21,7 @@
 #define __GIMP_OPERATIONS_H__
 
 
-void   gimp_operations_init (Gimp *gimp);
+void   gimp_operations_init (void);
 
 
 #endif /* __GIMP_OPERATIONS_H__ */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]