Commit 56b417da authored by Martin Nordholts's avatar Martin Nordholts Committed by Martin Nordholts

Clean up; Added missing G_BEGIN_DECLS in the header, aligned function

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.

svn path=/trunk/; revision=2033
parent 2f4d2d54
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.
2008-02-17 Martin Nordholts <martinn@svn.gnome.org>
Added gimp-bin-types.h and gimp-bin-gui-types.h and moved CLI and
......
......@@ -842,7 +842,11 @@ property_editor_general (GeglNodeEditor *node_editor,
return vbox;
}
/* utility method */
/**
* gegl_widget_get_cr:
*
* Utility method.
*/
cairo_t *
gegl_widget_get_cr (GtkWidget *widget)
{
......@@ -866,6 +870,11 @@ gegl_widget_get_cr (GtkWidget *widget)
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)
......
......@@ -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 _GeglNodeEditor
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
......
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