diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-11-22 21:04:26 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2011-11-22 21:04:26 +0100 |
commit | 4c98abb02ad47d13de2694f2bfe2e994f17b3095 (patch) | |
tree | ca3ca222d48f681132b32792a2672c2d8414255a /src/tool_image.c | |
parent | 096fb6d129ded7b7f72bc5b36c932fd84d45ed22 (diff) |
Let tools add stuff to the toolbar
Diffstat (limited to 'src/tool_image.c')
-rw-r--r-- | src/tool_image.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tool_image.c b/src/tool_image.c index e41a285..0187ad4 100644 --- a/src/tool_image.c +++ b/src/tool_image.c @@ -467,6 +467,14 @@ static struct object *deserialize(struct presentation *p, struct ds_node *root, } +static void realise(struct toolinfo *ti, GtkWidget *w) +{ + ti->tbox = gtk_label_new("Image tool"); + g_object_ref(ti->tbox); + gtk_widget_show(ti->tbox); +} + + struct toolinfo *initialise_image_tool() { struct image_toolinfo *ti; @@ -485,6 +493,7 @@ struct toolinfo *initialise_image_tool() ti->base.im_commit = im_commit; ti->base.valid_object = valid_object; ti->base.deserialize = deserialize; + ti->base.realise = realise; return (struct toolinfo *)ti; } |