Re: view not activated
- From: Michael Meeks <michael helixcode com>
- To: Arturo Tena <arturo directmail org>
- Cc: gnome-components-list gnome org
- Subject: Re: view not activated
- Date: Fri, 29 Dec 2000 20:57:13 -0500 (EST)
Hi Arturo,
On Fri, 29 Dec 2000, Arturo Tena wrote:
> I've developed a _very_ simple embeddable ( it's just a label =) ).
Oh dear. An Embeddable is so much more than just a widget. An
embeddable does:
* Zooming
* Printing
* Behaving as a slave as part of a compound document
A label is best represented as a control. Really, if you can't see
your embeddable being useful and well behaved inside a gnumeric
spreadsheet please use the control interface instead of the embeddable
one.
Anyway; it's good that you are hacking on bonobo so don't get
discouraged.
> When adding it in sample-container (from bonobo CVS), all works ok.
> But if I double-click on the view, it is not "activated" (I don't know
> what is the right term here). The view it is not sorrounded by a grey
> box.
You need to acknowledge that you are happy to accept the state
change given by a double click IIRC; see bonobo-hello anyway; I think
bonobo-view.c (hello_bonobo_view_activate) is what you want. I would
reccommend basing your embeddable on bonobo-hello.
> Instead of creating new GTK+ classes for embeddable and view
> interfaces (like bonobo/samples/compound-doc/bonobo-hello does), I'm
> using bonobo_embeddable_new and bonobo_view_new functions. And my
> embeddable doesn't implement any other interfaces than Unknown and
> Embeddable.
This is rather sub-optimal, in this case you have to connect to
the signal I think, but it's a more ugly way of doing things. I would
really reccommend copying bonobo-hello which does things by sub-classing
and is generaly quite clean now.
HTH,
Michael.
--
mmeeks gnu org <><, Pseudo Engineer, itinerant idiot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]