summaryrefslogtreecommitdiff
path: root/libyelp/yelp-view.h
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2009-09-06 15:12:17 -0500
committerShaun McCance <shaunm@gnome.org>2009-09-06 15:12:17 -0500
commit83fc28c0069485be4db9426a3ab8f8c05ee91a1f (patch)
treec19af03b15763d1a01cbb2a5abfc94319e2a98c3 /libyelp/yelp-view.h
parent24f9790252f7dd78c708b565be1cb561fbb28142 (diff)
downloadyelp-83fc28c0069485be4db9426a3ab8f8c05ee91a1f.tar.gz
Starting libyelp
Diffstat (limited to 'libyelp/yelp-view.h')
-rw-r--r--libyelp/yelp-view.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/libyelp/yelp-view.h b/libyelp/yelp-view.h
new file mode 100644
index 00000000..052eb118
--- /dev/null
+++ b/libyelp/yelp-view.h
@@ -0,0 +1,60 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+/*
+ * Copyright (C) 2001-2002 Mikael Hallendal <micke@imendio.com>
+ *
+ * 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: Mikael Hallendal <micke@imendio.com>
+ */
+
+#ifndef __YELP_VIEW_H__
+#define __YELP_VIEW_H__
+
+#include <gtk/gtk.h>
+
+#define YELP_TYPE_VIEW (yelp_view_get_type ())
+#define YELP_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), YELP_TYPE_VIEW, YelpView))
+#define YELP_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), YELP_TYPE_VIEW, YelpViewClass))
+#define YELP_IS_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), YELP_TYPE_VIEW))
+#define YELP_IS_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), YELP_TYPE_VIEW))
+
+typedef struct _YelpView YelpView;
+typedef struct _YelpViewClass YelpViewClass;
+typedef struct _YelpViewPriv YelpViewPriv;
+
+struct _YelpView
+{
+ GtkContainer parent;
+ YelpViewPriv *priv;
+};
+
+struct _YelpViewClass
+{
+ GtkContainerClass parent_class;
+
+ /* Signals */
+ void (*new_window_requested) (YelpWindow *window);
+ void (*new_window_requested_uri) (YelpWindow *window,
+ const gchar *uri);
+};
+
+GType yelp_view_get_type (void);
+GtkWidget * yelp_view_new (GNode *doc_tree,
+ GList *index);
+void yelp_view_load (YelpWindow *window,
+ const gchar *uri);
+
+#endif /* __YELP_WINDOW_H__ */