~midori/midori/cmake-make-dist

« back to all changes in this revision

Viewing changes to midori/midori-preferences.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_PREFERENCES_H__
 
13
#define __MIDORI_PREFERENCES_H__
 
14
 
 
15
#include "midori-websettings.h"
 
16
 
 
17
#include <gtk/gtk.h>
 
18
 
 
19
#include <katze/katze.h>
 
20
 
 
21
G_BEGIN_DECLS
 
22
 
 
23
#define MIDORI_TYPE_PREFERENCES \
 
24
    (midori_preferences_get_type ())
 
25
#define MIDORI_PREFERENCES(obj) \
 
26
    (G_TYPE_CHECK_INSTANCE_CAST ((obj), MIDORI_TYPE_PREFERENCES, MidoriPreferences))
 
27
#define MIDORI_PREFERENCES_CLASS(klass) \
 
28
    (G_TYPE_CHECK_CLASS_CAST ((klass), MIDORI_TYPE_PREFERENCES, MidoriPreferencesClass))
 
29
#define MIDORI_IS_PREFERENCES(obj) \
 
30
    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MIDORI_TYPE_PREFERENCES))
 
31
#define MIDORI_IS_PREFERENCES_CLASS(klass) \
 
32
    (G_TYPE_CHECK_CLASS_TYPE ((klass), MIDORI_TYPE_PREFERENCES))
 
33
#define MIDORI_PREFERENCES_GET_CLASS(obj) \
 
34
    (G_TYPE_INSTANCE_GET_CLASS ((obj), MIDORI_TYPE_PREFERENCES, MidoriPreferencesClass))
 
35
 
 
36
typedef struct _MidoriPreferences                MidoriPreferences;
 
37
typedef struct _MidoriPreferencesPrivate         MidoriPreferencesPrivate;
 
38
typedef struct _MidoriPreferencesClass           MidoriPreferencesClass;
 
39
 
 
40
struct _MidoriPreferences
 
41
{
 
42
    GtkDialog parent_instance;
 
43
 
 
44
    MidoriPreferencesPrivate* priv;
 
45
};
 
46
 
 
47
struct _MidoriPreferencesClass
 
48
{
 
49
    GtkDialogClass parent_class;
 
50
};
 
51
 
 
52
GType
 
53
midori_preferences_get_type               (void);
 
54
 
 
55
GtkWidget*
 
56
midori_preferences_new              (GtkWindow*         parent,
 
57
                                     MidoriWebSettings* settings);
 
58
 
 
59
void
 
60
midori_preferences_set_settings     (MidoriPreferences* preferences,
 
61
                                     MidoriWebSettings* settings);
 
62
 
 
63
G_END_DECLS
 
64
 
 
65
#endif /* __MIDORI_PREFERENCES_H__ */