aboutsummaryrefslogtreecommitdiff
path: root/pd/src/g_graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'pd/src/g_graph.c')
-rw-r--r--pd/src/g_graph.c34
1 files changed, 12 insertions, 22 deletions
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. */