gegl r2033 - in trunk: . bin



Author: martinn
Date: Sun Feb 17 12:41:08 2008
New Revision: 2033
URL: http://svn.gnome.org/viewvc/gegl?rev=2033&view=rev

Log:
2008-02-17  Martin Nordholts  <martinn svn gnome org>

	* bin/gegl-node-editor.[ch]: Clean up; Added missing G_BEGIN_DECLS
	in the header, aligned function prototypes and moved documentation
	of functions to the .c file.


Modified:
   trunk/ChangeLog
   trunk/bin/gegl-node-editor.c
   trunk/bin/gegl-node-editor.h

Modified: trunk/bin/gegl-node-editor.c
==============================================================================
--- trunk/bin/gegl-node-editor.c	(original)
+++ trunk/bin/gegl-node-editor.c	Sun Feb 17 12:41:08 2008
@@ -842,7 +842,11 @@
   return vbox;
 }
 
-/* utility method */
+/**
+ * gegl_widget_get_cr:
+ *
+ * Utility method.
+ */
 cairo_t *
 gegl_widget_get_cr (GtkWidget *widget)
 {
@@ -866,6 +870,11 @@
   return cr;
 }
 
+/**
+ * gegl_node_editor_class_set_pattern:
+ *
+ * Set the pattern that this matches on.
+ */
 void
 gegl_node_editor_class_set_pattern (GeglNodeEditorClass *klass,
                                     const gchar         *pattern)

Modified: trunk/bin/gegl-node-editor.h
==============================================================================
--- trunk/bin/gegl-node-editor.h	(original)
+++ trunk/bin/gegl-node-editor.h	Sun Feb 17 12:41:08 2008
@@ -21,6 +21,8 @@
 
 #include <gtk/gtkvbox.h>
 
+#include G_BEGIN_DECLS
+
 #define GEGL_TYPE_NODE_EDITOR            (gegl_node_editor_get_type ())
 #define GEGL_NODE_EDITOR(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEGL_TYPE_NODE_EDITOR, GeglNodeEditor))
 #define GEGL_NODE_EDITOR_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass),  GEGL_TYPE_NODE_EDITOR, GeglNodeEditorClass))
@@ -41,26 +43,26 @@
 
 struct _GeglNodeEditorClass
 {
-  GtkVBoxClass parent_class;
+  GtkVBoxClass  parent_class;
+
   gchar        *pattern;
 
-  void (*construct) (GeglNodeEditor *self);  /* virtual method used to add to the container */
+  /* virtual method used to add to the container */
+  void (*construct) (GeglNodeEditor *self);
 };
 
-GType       gegl_node_editor_get_type (void) G_GNUC_CONST;
 
-GtkWidget * gegl_node_editor_new      (GeglNode *node,
-                                       gboolean  operation_switcher);
-/* utility method */
-cairo_t *                              gegl_widget_get_cr (GtkWidget *widget);
+GType       gegl_node_editor_get_type          (void) G_GNUC_CONST;
+cairo_t *   gegl_widget_get_cr                 (GtkWidget *widget);
+GtkWidget * gegl_node_editor_new               (GeglNode  *node,
+                                                gboolean   operation_switcher);
 
 /* class functions */
 
-/* set the pattern that this matches on */
-void     gegl_node_editor_class_set_pattern (GeglNodeEditorClass *klass,
-                                             const gchar         *pattern);
-gboolean gegl_node_editor_class_matches     (GeglNodeEditorClass *klass,
-                                             const gchar         *operation_name);
+void        gegl_node_editor_class_set_pattern (GeglNodeEditorClass *klass,
+                                                const gchar         *pattern);
+gboolean    gegl_node_editor_class_matches     (GeglNodeEditorClass *klass,
+                                                const gchar         *operation_name);
 
 G_END_DECLS
 



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