summaryrefslogtreecommitdiffstats
path: root/src/module.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-24 04:33:57 +0000
committerDavid Robillard <d@drobilla.net>2012-04-24 04:33:57 +0000
commit14b90634123f7e25fe94014555a9ad330cf691a0 (patch)
tree0bf2198df285d9609f7129eec9a37deb35962f8e /src/module.c
parent89c5346a3377a2075954acc436d3d843183ad31a (diff)
downloadganv-14b90634123f7e25fe94014555a9ad330cf691a0.tar.gz
ganv-14b90634123f7e25fe94014555a9ad330cf691a0.tar.bz2
ganv-14b90634123f7e25fe94014555a9ad330cf691a0.zip
Fix font size stuff.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4262 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/module.c')
-rw-r--r--src/module.c23
1 files changed, 18 insertions, 5 deletions
diff --git a/src/module.c b/src/module.c
index 3dfcd13..bb1e832 100644
--- a/src/module.c
+++ b/src/module.c
@@ -76,8 +76,8 @@ ganv_module_destroy(GtkObject* object)
GanvModuleImpl* impl = module->impl;
if (impl->ports) {
- FOREACH_PORT(impl->ports, p) {
- g_object_unref(GTK_OBJECT(*p));
+ FOREACH_PORT(impl->ports, p) {
+ g_object_unref(GTK_OBJECT(*p));
}
g_ptr_array_free(impl->ports, TRUE);
impl->ports = NULL;
@@ -476,6 +476,18 @@ ganv_module_resize(GanvNode* self)
}
static void
+ganv_module_redraw_text(GanvNode* self)
+{
+ FOREACH_PORT(GANV_MODULE(self)->impl->ports, p) {
+ ganv_node_redraw_text(GANV_NODE(*p));
+ }
+
+ if (parent_class->parent_class.redraw_text) {
+ parent_class->parent_class.redraw_text(self);
+ }
+}
+
+static void
ganv_module_add_port(GanvModule* module,
GanvPort* port)
{
@@ -696,9 +708,10 @@ ganv_module_class_init(GanvModuleClass* class)
item_class->draw = ganv_module_draw;
item_class->point = ganv_module_point;
- node_class->move = ganv_module_move;
- node_class->move_to = ganv_module_move_to;
- node_class->resize = ganv_module_resize;
+ node_class->move = ganv_module_move;
+ node_class->move_to = ganv_module_move_to;
+ node_class->resize = ganv_module_resize;
+ node_class->redraw_text = ganv_module_redraw_text;
}
GanvModule*