summaryrefslogtreecommitdiff
path: root/src/nautilus-application.h
diff options
context:
space:
mode:
authorElliot Lee <sopwith@src.gnome.org>2000-03-02 17:39:52 +0000
committerElliot Lee <sopwith@src.gnome.org>2000-03-02 17:39:52 +0000
commit7fc60b367089bd2fd3cf5ad300b1c9ab89a5d7d5 (patch)
tree02f37fdd19506d747627d8bf5075bc8d5d0b5c52 /src/nautilus-application.h
parentdae237b696df76c9cc95bd8952fc3e85739d9b74 (diff)
downloadnautilus-7fc60b367089bd2fd3cf5ad300b1c9ab89a5d7d5.tar.gz
Implement IDL:Nautilus/Application:1.0 interface and NautilusApp
* src/nautilus.goad, src/ntl-app.[ch], src/ntl-main.c: Implement IDL:Nautilus/Application:1.0 interface and NautilusApp GtkObject. * src/nautilus-window-menus.c, src/ntl-window.[ch], src/ntl-window: Change to match above. * src/ntl-view-frame-svr.c: Implement _get_application() operation.
Diffstat (limited to 'src/nautilus-application.h')
-rw-r--r--src/nautilus-application.h51
1 files changed, 48 insertions, 3 deletions
diff --git a/src/nautilus-application.h b/src/nautilus-application.h
index 6aeda67a1..00e4f2083 100644
--- a/src/nautilus-application.h
+++ b/src/nautilus-application.h
@@ -1,10 +1,55 @@
+/* ntl-app.h
+ * Copyright (C) 2000 Red Hat, Inc.
+ *
+ * This library 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. */
#ifndef NTL_APP_H
#define NTL_APP_H 1
#include "ntl-window.h"
-void nautilus_app_exiting(void);
-void nautilus_app_init(const char *initial_url);
-NautilusWindow *nautilus_app_create_window(void);
+#ifdef __cplusplus
+extern "C" {
+#pragma }
+#endif /* __cplusplus */
+
+#define NAUTILUS_TYPE_APP (nautilus_app_get_type ())
+#define NAUTILUS_APP(obj) (GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_APP, NautilusApp))
+#define NAUTILUS_APP_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_APP, NautilusAppClass))
+#define NAUTILUS_IS_APP(obj) (GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_APP))
+#define NAUTILUS_IS_APP_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), NAUTILUS_TYPE_APP))
+
+
+typedef struct {
+ BonoboObject parent;
+ GSList *windows;
+} NautilusApp;
+
+typedef struct {
+ BonoboObjectClass parent_class;
+ gpointer servant;
+ gpointer unknown_epv;
+} NautilusAppClass;
+
+GtkType nautilus_app_get_type (void);
+GtkObject *nautilus_app_new (void);
+void nautilus_app_startup(NautilusApp *app, const char *initial_url);
+NautilusWindow *nautilus_app_create_window(NautilusApp *app);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
#endif