1
/*
2
 * This file is a part of hildon
3
 *
4
 * Copyright (C) 2008 Nokia Corporation, all rights reserved.
5
 *
6
 * This program is free software; you can redistribute it and/or modify
7
 * it under the terms of the GNU Lesser Public License as published by
8
 * the Free Software Foundation; version 2 of the license.
9
 *
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
13
 * GNU Lesser Public License for more details.
14
 *
15
 */
16
17
#ifndef                                         __HILDON_EDIT_TOOLBAR_H__
18
#define                                         __HILDON_EDIT_TOOLBAR_H__
19
20
#include                                        <gtk/gtk.h>
21
22
G_BEGIN_DECLS
23
24
#define                                         HILDON_TYPE_EDIT_TOOLBAR \
25
                                                (hildon_edit_toolbar_get_type())
26
27
#define                                         HILDON_EDIT_TOOLBAR(obj) \
28
                                                (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
29
                                                HILDON_TYPE_EDIT_TOOLBAR, HildonEditToolbar))
30
31
#define                                         HILDON_EDIT_TOOLBAR_CLASS(klass) \
32
                                                (G_TYPE_CHECK_CLASS_CAST ((klass), \
33
                                                HILDON_TYPE_EDIT_TOOLBAR, HildonEditToolbarClass))
34
35
#define                                         HILDON_IS_EDIT_TOOLBAR(obj) \
36
                                                (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_EDIT_TOOLBAR))
37
38
#define                                         HILDON_IS_EDIT_TOOLBAR_CLASS(klass) \
39
                                                (G_TYPE_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_EDIT_TOOLBAR))
40
41
#define                                         HILDON_EDIT_TOOLBAR_GET_CLASS(obj) \
42
                                                (G_TYPE_INSTANCE_GET_CLASS ((obj), \
43
                                                HILDON_TYPE_EDIT_TOOLBAR, HildonEditToolbarClass))
44
45
typedef struct                                  _HildonEditToolbar HildonEditToolbar;
46
47
typedef struct                                  _HildonEditToolbarClass HildonEditToolbarClass;
48
49
struct                                          _HildonEditToolbarClass
50
{
51
    GtkHBoxClass parent_class;
52
};
53
54
struct                                          _HildonEditToolbar
55
{
56
    GtkHBox parent;
57
};
58
59
GType
60
hildon_edit_toolbar_get_type                    (void) G_GNUC_CONST;
61
62
GtkWidget *
63
hildon_edit_toolbar_new                         (void);
64
65
GtkWidget *
66
hildon_edit_toolbar_new_with_text               (const gchar *label,
67
                                                 const gchar *button);
68
69
void
70
hildon_edit_toolbar_set_label                   (HildonEditToolbar *toolbar,
71
                                                 const gchar       *label);
72
73
void
74
hildon_edit_toolbar_set_button_label            (HildonEditToolbar *toolbar,
75
                                                 const gchar       *label);
76
77
G_END_DECLS
78
79
#endif /* __HILDON_EDIT_TOOLBAR_H__ */