Commit 50a90deb authored by Øyvind Kolås's avatar Øyvind Kolås

added rules to build commands for pie menu. reorganized

* bin/Makefile.am: added rules to build commands for pie menu.
* bin/editor.c: reorganized path/stroke/pie-menu interaction code to
be a statemachine,.. editor.c is getting a bit bulky. Added code
to modify existing linewidth markers. The painting code currently has
the overhead of a simple dynamics engine.
* bin/gegl-node-editor.c: (type_editor_path):
* bin/gegl-view.c: (button_press_event):

svn path=/trunk/; revision=2688
parent bcbfe7be
2008-11-02 Øyvind Kolås <pippin@gimp.org>
* bin/Makefile.am: added rules to build commands for pie menu.
* bin/editor.c: reorganized path/stroke/pie-menu interaction code to
be a statemachine,.. editor.c is getting a bit bulky. Added code
to modify existing linewidth markers. The painting code currently has
the overhead of a simple dynamics engine.
* bin/gegl-node-editor.c: (type_editor_path):
* bin/gegl-view.c: (button_press_event):
2008-11-02 Øyvind Kolås <pippin@gimp.org>
* gegl/property-types/gegl-path.c: cache length of path, and
......
......@@ -38,6 +38,15 @@ gegl_SOURCES = \
gegl-path-smooth.h \
$(gui_sources)
editor.o: editor-actions.inc
editor-actions.inc: editor.c
echo ''> $@
for action in `cat $< | grep "^static gint [0-9a-z_A-Z]* (" | sed -e 's/^.* gint //' -e 's/ .*//'`;do \
echo "o(\""`echo $$action | sed -e 's/_/-/g' -e 's/action-//'`"\", $$action);" >> $@; \
done
CLEANFILES = editor-actions.inc bkl-tasks.inc
if HAVE_SPIRO
gegl_SOURCES += gegl-path-spiro.h gegl-path-spiro.c
......
This diff is collapsed.
......@@ -855,9 +855,12 @@ type_editor_path (GtkSizeGroup *col1,
GeglPath *vector;
gegl_node_get (node, param_spec->name, &vector, NULL);
value = gegl_path_to_string (vector);
gtk_entry_set_text (GTK_ENTRY (entry), value);
g_object_unref (vector);
if (vector)
{
value = gegl_path_to_string (vector);
gtk_entry_set_text (GTK_ENTRY (entry), value);
g_object_unref (vector);
}
g_free (value);
}
......
......@@ -315,6 +315,8 @@ button_press_event (GtkWidget *widget,
gint x = event->x;
gint y = event->y;
return FALSE;
priv->screen_x = x;
priv->screen_y = y;
......
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