summaryrefslogtreecommitdiff
path: root/libnautilus-adapter
diff options
context:
space:
mode:
authorMaciej Stachowiak <mstachow@src.gnome.org>2000-09-07 00:57:04 +0000
committerMaciej Stachowiak <mstachow@src.gnome.org>2000-09-07 00:57:04 +0000
commitabdbe66a4cfd7cd3fb262d66a6fe16d88e3ab3ec (patch)
tree755016c7aaca381e6bb80e624d977adcffbe2356 /libnautilus-adapter
parent8d1dbb40b1840a391f143346ba6fc3ad3c76fe90 (diff)
downloadnautilus-abdbe66a4cfd7cd3fb262d66a6fe16d88e3ab3ec.tar.gz
New IDL interface for the special adapter component that will be used to
* libnautilus-adapter/nautilus-adapter-factory.idl: New IDL interface for the special adapter component that will be used to wrap ordinary Bonobo components to look like Nautilus::Views as part of the solution to bugzilla.eazel.com #1994. * libnautilus-adapter/Makefile.am: Build a library containing the stubs and sekeletons. * libnautilus/nautilus-view-component.idl: Some changes so this IDL file can be included in others safely. * libnautilus/Makefile.am: Made necessary build adjustments for the above. * configure.in, Makefile.am: add libnautilus-adapter directory to build.
Diffstat (limited to 'libnautilus-adapter')
-rw-r--r--libnautilus-adapter/Makefile.am51
-rw-r--r--libnautilus-adapter/nautilus-adapter-factory.idl44
2 files changed, 95 insertions, 0 deletions
diff --git a/libnautilus-adapter/Makefile.am b/libnautilus-adapter/Makefile.am
new file mode 100644
index 000000000..6ce81d97c
--- /dev/null
+++ b/libnautilus-adapter/Makefile.am
@@ -0,0 +1,51 @@
+NULL=
+
+lib_LTLIBRARIES=libnautilus-adapter.la
+
+
+INCLUDES=-I$(top_srcdir) -I$(top_builddir) -I. \
+ $(GNOME_CFLAGS) \
+ $(BONOBOX_CFLAGS) \
+ $(OAF_CFLAGS) \
+ $(VFS_CFLAGS) \
+ $(XML_CFLAGS) \
+ -D_REENTRANT
+
+libnautilus_adapter_la_LDFLAGS= \
+ $(GNOME_LIBS) \
+ $(OAF_LIBS) \
+ $(BONOBOX_LIBS) \
+ $(VFS_LIBS) \
+ $(XML_LIBS) \
+ $(LIBPNG)
+
+
+nautilus_adapter_factory_idl_sources = \
+ nautilus-adapter-factory-stubs.c \
+ nautilus-adapter-factory-skels.c \
+ nautilus-adapter-factory.h \
+ nautilus-adapter-factory-common.c
+
+
+BUILT_SOURCES = \
+ $(nautilus_adapter_factory_idl_sources)
+
+
+libnautilus_adapter_la_SOURCES = \
+ $(nautilus_adapter_factory_idl_sources) \
+ $(NULL)
+
+
+$(nautilus_adapter_factory_idl_sources): nautilus_adapter_factory_idl_stamp
+nautilus_adapter_factory_idl_stamp: nautilus-adapter-factory.idl
+ $(ORBIT_IDL) $(IDL_CFLAGS) $(srcdir)/nautilus-adapter-factory.idl
+ touch nautilus_adapter_factory_idl_stamp
+
+
+CLEANFILES = \
+ $(nautilus_adapter_factory_idl_sources) \
+ nautilus_adapter_factory_idl_stamp
+
+EXTRA_DIST = \
+ nautilus-adapter-factory.idl
+
diff --git a/libnautilus-adapter/nautilus-adapter-factory.idl b/libnautilus-adapter/nautilus-adapter-factory.idl
new file mode 100644
index 000000000..f96aec8c5
--- /dev/null
+++ b/libnautilus-adapter/nautilus-adapter-factory.idl
@@ -0,0 +1,44 @@
+/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: 8; c-basic-offset: 8 -*- */
+
+/*
+ * Nautilus
+ *
+ * Copyright (C) 2000 Eazel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+/* nautilus-adapter-factory.idl - IDL for custom factory that creates
+ * objects which wrap bonobo controls or embeddables
+ * that are not Nautilus::Views as Nautilus::View objects.
+ */
+
+#ifndef NAUTUILUS_ADAPTER_FACTORY_IDL_INCLUDED
+#define NAUTUILUS_ADAPTER_FACTORY_IDL_INCLUDED
+
+#include <Bonobo.idl>
+#include <libnautilus/nautilus-view-component.idl>
+
+module Nautilus {
+
+ interface ComponentAdapterFactory : Bonobo::Unknown {
+ /* FIXME: should use exceptions to report reasons for failure. */
+ Nautilus::View create_adapter (in Bonobo::Unknown object);
+ };
+
+};
+
+#endif /* NAUTUILUS_ADAPTER_FACTORY_IDL_INCLUDED */