Fixing some navigation wonkiness with error pages
[yelp.git] / src / yelp-window.h
blob6231e1697d956cfbbdfdbb25879e3670c24dd0e4
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * Copyright (C) 2010 Shaun McCance <shaunm@gnome.org>
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of the
8 * License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public
16 * License along with this program; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
20 * Author: Shaun McCance <shaunm@gnome.org>
23 #ifndef __YELP_WINDOW_H__
24 #define __YELP_WINDOW_H__
26 #include <gtk/gtk.h>
28 #include "yelp-uri.h"
30 #define YELP_TYPE_WINDOW (yelp_window_get_type ())
31 #define YELP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), YELP_TYPE_WINDOW, YelpWindow))
32 #define YELP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), YELP_TYPE_WINDOW, YelpWindowClass))
33 #define YELP_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), YELP_TYPE_WINDOW))
34 #define YELP_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), YELP_TYPE_WINDOW))
36 typedef struct _YelpWindow YelpWindow;
37 typedef struct _YelpWindowClass YelpWindowClass;
39 struct _YelpWindow
41 GtkWindow parent;
44 struct _YelpWindowClass
46 GtkWindowClass parent_class;
49 GType yelp_window_get_type (void);
50 YelpWindow * yelp_window_new (YelpApplication *app);
51 void yelp_window_load_uri (YelpWindow *window,
52 YelpUri *uri);
53 YelpUri * yelp_window_get_uri (YelpWindow *window);
54 void yelp_window_get_geometry (YelpWindow *window,
55 gint *width,
56 gint *height);
58 #endif /* __YELP_WINDOW_H__ */