~midori/midori/cmake-make-dist

« back to all changes in this revision

Viewing changes to src/midori-addons.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_ADDONS_H__
13
 
#define __MIDORI_ADDONS_H__
14
 
 
15
 
#include <gtk/gtk.h>
16
 
 
17
 
#include <katze/katze.h>
18
 
 
19
 
G_BEGIN_DECLS
20
 
 
21
 
#define MIDORI_TYPE_ADDONS \
22
 
    (midori_addons_get_type ())
23
 
#define MIDORI_ADDONS(obj) \
24
 
    (G_TYPE_CHECK_INSTANCE_CAST ((obj), MIDORI_TYPE_ADDONS, MidoriAddons))
25
 
#define MIDORI_ADDONS_CLASS(klass) \
26
 
    (G_TYPE_CHECK_CLASS_CAST ((klass), MIDORI_TYPE_ADDONS, MidoriAddonsClass))
27
 
#define MIDORI_IS_ADDONS(obj) \
28
 
    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MIDORI_TYPE_ADDONS))
29
 
#define MIDORI_IS_ADDONS_CLASS(klass) \
30
 
    (G_TYPE_CHECK_CLASS_TYPE ((klass), MIDORI_TYPE_ADDONS))
31
 
#define MIDORI_ADDONS_GET_CLASS(obj) \
32
 
    (G_TYPE_INSTANCE_GET_CLASS ((obj), MIDORI_TYPE_ADDONS, MidoriAddonsClass))
33
 
 
34
 
typedef struct _MidoriAddons                MidoriAddons;
35
 
typedef struct _MidoriAddonsPrivate         MidoriAddonsPrivate;
36
 
typedef struct _MidoriAddonsClass           MidoriAddonsClass;
37
 
 
38
 
struct _MidoriAddons
39
 
{
40
 
    GtkVBox parent_instance;
41
 
 
42
 
    MidoriAddonsPrivate* priv;
43
 
};
44
 
 
45
 
struct _MidoriAddonsClass
46
 
{
47
 
    GtkVBoxClass parent_class;
48
 
};
49
 
 
50
 
typedef enum
51
 
{
52
 
    MIDORI_ADDON_EXTENSIONS,
53
 
    MIDORI_ADDON_USER_SCRIPTS,
54
 
    MIDORI_ADDON_USER_STYLES
55
 
} MidoriAddonKind;
56
 
 
57
 
GType
58
 
midori_addon_kind_get_type (void) G_GNUC_CONST;
59
 
 
60
 
#define MIDORI_TYPE_ADDON_KIND \
61
 
    (midori_addon_kind_get_type ())
62
 
 
63
 
GType
64
 
midori_addons_get_type               (void);
65
 
 
66
 
GtkWidget*
67
 
midori_addons_new                    (GtkWidget*      web_widget,
68
 
                                      MidoriAddonKind kind);
69
 
 
70
 
GtkWidget*
71
 
midori_addons_get_toolbar            (MidoriAddons*       console);
72
 
 
73
 
G_END_DECLS
74
 
 
75
 
#endif /* __MIDORI_ADDONS_H__ */