~midori/midori/cmake-make-dist

« back to all changes in this revision

Viewing changes to midori/midori-panel.h

  • Committer: Christian Dywan
  • Date: 2008-06-01 21:47:27 UTC
  • Revision ID: git-v1:b511f12b9b4b063610161f2229b94a24a86be0fc
Rename folder 'src' to 'midori'

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 Copyright (C) 2008 Christian Dywan <christian@twotoasts.de>
 
3
 
 
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.
 
8
 
 
9
 See the file COPYING for the full license text.
 
10
*/
 
11
 
 
12
#ifndef __MIDORI_PANEL_H__
 
13
#define __MIDORI_PANEL_H__
 
14
 
 
15
#include <gtk/gtk.h>
 
16
 
 
17
#include <katze/katze.h>
 
18
 
 
19
G_BEGIN_DECLS
 
20
 
 
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))
 
33
 
 
34
typedef struct _MidoriPanel                MidoriPanel;
 
35
typedef struct _MidoriPanelPrivate         MidoriPanelPrivate;
 
36
typedef struct _MidoriPanelClass           MidoriPanelClass;
 
37
 
 
38
struct _MidoriPanel
 
39
{
 
40
    GtkHBox parent_instance;
 
41
 
 
42
    MidoriPanelPrivate* priv;
 
43
};
 
44
 
 
45
struct _MidoriPanelClass
 
46
{
 
47
    GtkHBoxClass parent_class;
 
48
 
 
49
    /* Signals */
 
50
    gboolean
 
51
    (*close)                  (MidoriPanel*          panel);
 
52
 
 
53
    void
 
54
    (*switch_page)            (MidoriPanel*          panel,
 
55
                               gint                  page);
 
56
};
 
57
 
 
58
GType
 
59
midori_panel_get_type               (void);
 
60
 
 
61
GtkWidget*
 
62
midori_panel_new                    (void);
 
63
 
 
64
gint
 
65
midori_panel_append_page            (MidoriPanel*       panel,
 
66
                                     GtkWidget*         child,
 
67
                                     GtkWidget*         toolbar,
 
68
                                     const gchar*       icon,
 
69
                                     const gchar*       label);
 
70
 
 
71
gint
 
72
midori_panel_get_current_page       (MidoriPanel*       panel);
 
73
 
 
74
GtkWidget*
 
75
midori_panel_get_nth_page           (MidoriPanel*       panel,
 
76
                                     guint              page_num);
 
77
 
 
78
guint
 
79
midori_panel_get_n_pages            (MidoriPanel*       panel);
 
80
 
 
81
gint
 
82
midori_panel_page_num               (MidoriPanel*       panel,
 
83
                                     GtkWidget*         child);
 
84
 
 
85
void
 
86
midori_panel_set_current_page       (MidoriPanel*       panel,
 
87
                                     gint               n);
 
88
 
 
89
G_END_DECLS
 
90
 
 
91
#endif /* __MIDORI_PANEL_H__ */