1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
/*
Copyright (C) 2008 Christian Dywan <christian@twotoasts.de>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
See the file COPYING for the full license text.
*/
#ifndef __MIDORI_PANEL_H__
#define __MIDORI_PANEL_H__
#include "midori-core.h"
G_BEGIN_DECLS
#define MIDORI_TYPE_PANEL \
(midori_panel_get_type ())
#define MIDORI_PANEL(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), MIDORI_TYPE_PANEL, MidoriPanel))
#define MIDORI_PANEL_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST ((klass), MIDORI_TYPE_PANEL, MidoriPanelClass))
#define MIDORI_IS_PANEL(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), MIDORI_TYPE_PANEL))
#define MIDORI_IS_PANEL_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), MIDORI_TYPE_PANEL))
#define MIDORI_PANEL_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), MIDORI_TYPE_PANEL, MidoriPanelClass))
typedef struct _MidoriPanel MidoriPanel;
typedef struct _MidoriPanelClass MidoriPanelClass;
GType
midori_panel_get_type (void) G_GNUC_CONST;
GtkWidget*
midori_panel_new (void);
void
midori_panel_set_right_aligned (MidoriPanel* panel,
gboolean right_aligned);
gint
midori_panel_append_page (MidoriPanel* panel,
MidoriViewable* viewable);
gint
midori_panel_get_current_page (MidoriPanel* panel);
GtkWidget*
midori_panel_get_nth_page (MidoriPanel* panel,
guint page_num);
guint
midori_panel_get_n_pages (MidoriPanel* panel);
gint
midori_panel_page_num (MidoriPanel* panel,
GtkWidget* child);
void
midori_panel_set_current_page (MidoriPanel* panel,
gint n);
gint
midori_panel_append_widget (MidoriPanel* panel,
GtkWidget* widget,
const gchar* stock_id,
const gchar* label,
GtkWidget* toolbar);
G_END_DECLS
#endif /* __MIDORI_PANEL_H__ */
|