Re: deactivating nautilus views



Il lun, 2002-09-02 alle 13:19, Michael Meeks ha scritto:
> Hi Paolo,
> 
> On Sat, 2002-08-31 at 17:59, Paolo Bacchilega wrote:
> > I have a bonobo control that when used in Nautilus gets activated and
> > deactivated correctly, that is the ui is setted/unsetted correctly,
> 
> 	Ok; good.
> 
> > but when I add a Nautilus::View interface to the control unsetting the
> > ui does not work because the "activate" signal is not called,
> 
> 	I don't quite understand what you're asking; but this is possibly a bug
> in the nautilus container; possibly not.
> 
> > how should I unset the ui in a Nautilus::View ?
> 
> 	The preferred way is to find another nautilus view that works - and
> copy that; quite possibly none of them work ;-) in which case fix
> nautilus.

I added the following lines to nautilus-view-frame.c :

static void
destroy_view (NautilusViewFrame *view)
{
        BonoboUIEngine *engine;

+        if (view->details->control_frame != NULL) 
+                bonobo_control_frame_control_deactivate
(view->details->control_frame);

        if (view->details->view == CORBA_OBJECT_NIL) {
                return;
        }


it works good now.






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]