From 64fdb009695828b788fce074135b20a5e52c5fc4 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Tue, 23 Sep 2003 00:21:28 +0000 Subject: imported version 0.37-0 svn path=/trunk/; revision=1016 --- pd/src/g_graph.c | 34 ++++++++++++---------------------- 1 file changed, 12 insertions(+), 22 deletions(-) (limited to 'pd/src/g_graph.c') diff --git a/pd/src/g_graph.c b/pd/src/g_graph.c index 9bf998f8..3347fb9b 100644 --- a/pd/src/g_graph.c +++ b/pd/src/g_graph.c @@ -626,8 +626,6 @@ void glist_redraw(t_glist *x) } } -t_class *graph_class; - /* --------------------------- widget behavior ------------------- */ extern t_widgetbehavior text_widgetbehavior; @@ -1021,15 +1019,20 @@ static int graph_click(t_gobj *z, struct _glist *glist, } } -static void graph_save(t_gobj *z, t_binbuf *b) -{ - t_glist *x = (t_glist *)z; - text_widgetbehavior.w_savefn(z, b); -} - void garray_properties(t_garray *x); -static void graph_properties(t_gobj *z, t_glist *owner) +t_widgetbehavior graph_widgetbehavior = +{ + graph_getrect, + graph_displace, + graph_select, + graph_activate, + graph_delete, + graph_vis, + graph_click, +}; + +void graph_properties(t_gobj *z, t_glist *owner) { t_glist *x = (t_glist *)z; { @@ -1046,19 +1049,6 @@ static void graph_properties(t_gobj *z, t_glist *owner) } } -t_widgetbehavior graph_widgetbehavior = -{ - graph_getrect, - graph_displace, - graph_select, - graph_activate, - graph_delete, - graph_vis, - graph_click, - graph_save, - graph_properties, -}; - /* find the graph most recently added to this glist; if none exists, return 0. */ -- cgit v1.2.1