2
Copyright (C) 2008 Christian Dywan <christian@twotoasts.de>
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Lesser General Public
6
License as published by the Free Software Foundation; either
7
version 2.1 of the License, or (at your option) any later version.
9
See the file COPYING for the full license text.
12
#ifndef __MIDORI_PANEL_H__
13
#define __MIDORI_PANEL_H__
17
#include <katze/katze.h>
21
#define MIDORI_TYPE_PANEL \
22
(midori_panel_get_type ())
23
#define MIDORI_PANEL(obj) \
24
(G_TYPE_CHECK_INSTANCE_CAST ((obj), MIDORI_TYPE_PANEL, MidoriPanel))
25
#define MIDORI_PANEL_CLASS(klass) \
26
(G_TYPE_CHECK_CLASS_CAST ((klass), MIDORI_TYPE_PANEL, MidoriPanelClass))
27
#define MIDORI_IS_PANEL(obj) \
28
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), MIDORI_TYPE_PANEL))
29
#define MIDORI_IS_PANEL_CLASS(klass) \
30
(G_TYPE_CHECK_CLASS_TYPE ((klass), MIDORI_TYPE_PANEL))
31
#define MIDORI_PANEL_GET_CLASS(obj) \
32
(G_TYPE_INSTANCE_GET_CLASS ((obj), MIDORI_TYPE_PANEL, MidoriPanelClass))
34
typedef struct _MidoriPanel MidoriPanel;
35
typedef struct _MidoriPanelPrivate MidoriPanelPrivate;
36
typedef struct _MidoriPanelClass MidoriPanelClass;
40
GtkHBox parent_instance;
42
MidoriPanelPrivate* priv;
45
struct _MidoriPanelClass
47
GtkHBoxClass parent_class;
51
(*close) (MidoriPanel* panel);
54
(*switch_page) (MidoriPanel* panel,
59
midori_panel_get_type (void);
62
midori_panel_new (void);
65
midori_panel_append_page (MidoriPanel* panel,
72
midori_panel_get_current_page (MidoriPanel* panel);
75
midori_panel_get_nth_page (MidoriPanel* panel,
79
midori_panel_get_n_pages (MidoriPanel* panel);
82
midori_panel_page_num (MidoriPanel* panel,
86
midori_panel_set_current_page (MidoriPanel* panel,
91
#endif /* __MIDORI_PANEL_H__ */