nautilus/components/tree/libmain.c
Maciej Stachowiak 62e426c199 Added bug numbers for FIXMEs
* components/services/install/lib/eazel-install-protocols.c:
	(eazel_install_fetch_package):
	* components/services/login/nautilus-view/nautilus-login-view.c:
	(nautilus_login_view_initialize):
	* components/services/summary/nautilus-view/nautilus-summary-view.c
	: (authn_cb_succeeded), (authn_cb_failed), (login_button_cb),
	(nautilus_summary_view_initialize):
	* components/tree/libmain.c: (tree_shlib_object_destroyed):
	* components/tree/nautilus-tree-view.c:
	* libnautilus-extensions/nautilus-link.c: (make_local_path):
	* libnautilus-extensions/nautilus-search-bar-criterion.c:
	(make_emblem_value_menu):
	* src/file-manager/fm-directory-view.c:
	(add_open_with_gtk_menu_item):
	* src/nautilus-search-bar-criterion.c: (make_emblem_value_menu),
	(emblems_changed_callback):

	Added bug numbers for FIXMEs
2000-09-03 17:04:55 +00:00

93 lines
2.2 KiB
C

/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* Copyright (C) 2000 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 <config.h>
#include "nautilus-tree-view.h"
#include "nautilus-tree-view-iids.h"
#include <liboaf/liboaf.h>
#include <bonobo.h>
static void
tree_shlib_object_destroyed (GtkObject *object)
{
/* FIXME bugzilla.eazel.com 2736: oaf_plugin_unuse can't possibly work! this sucks */
#if 0
oaf_plugin_unuse (gtk_object_get_user_data (object));
#endif
}
static CORBA_Object
tree_shlib_make_object (PortableServer_POA poa,
const char *iid,
gpointer impl_ptr,
CORBA_Environment *ev)
{
NautilusTreeView *view;
NautilusView *nautilus_view;
if (strcmp (iid, TREE_VIEW_IID) != 0) {
return CORBA_OBJECT_NIL;
}
view = NAUTILUS_TREE_VIEW (gtk_object_new (NAUTILUS_TYPE_TREE_VIEW, NULL));
gtk_signal_connect (GTK_OBJECT (view), "destroy", tree_shlib_object_destroyed, NULL);
gtk_object_set_user_data (GTK_OBJECT (view), impl_ptr);
oaf_plugin_use (poa, impl_ptr);
nautilus_view = nautilus_tree_view_get_nautilus_view (view);
return CORBA_Object_duplicate (bonobo_object_corba_objref
(BONOBO_OBJECT (nautilus_view)), ev);
}
static const OAFPluginObject tree_plugin_list[] = {
{
TREE_VIEW_IID,
tree_shlib_make_object
},
{
NULL
}
};
const OAFPlugin OAF_Plugin_info = {
tree_plugin_list,
"Nautilus Tree Sidebar Panel"
};