/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ /* * Copyright (C) 2000, 2001 Eazel, Inc * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. * * Author: Maciej Stachowiak */ /* libmain.c - object activation infrastructure for shared library version of tree view. */ #include #include #include "nautilus-tree-view-iids.h" #include "nautilus-tree-view.h" #include #include static CORBA_Object tree_shlib_make_object (PortableServer_POA poa, const char *iid, gpointer impl_ptr, CORBA_Environment *ev) { NautilusTreeView *view; if (strcmp (iid, TREE_VIEW_IID) != 0) { return CORBA_OBJECT_NIL; } view = NAUTILUS_TREE_VIEW (g_object_new (NAUTILUS_TYPE_TREE_VIEW, NULL)); bonobo_activation_plugin_use (poa, impl_ptr); return CORBA_Object_duplicate (BONOBO_OBJREF (view), ev); } static const BonoboActivationPluginObject tree_plugin_list[] = { { TREE_VIEW_IID, tree_shlib_make_object }, { NULL } }; const BonoboActivationPlugin Bonobo_Plugin_info = { tree_plugin_list, "Nautilus Tree Sidebar Panel" };