1/* GTK - The GIMP Toolkit
2 * Copyright (C) 2010 Red Hat, Inc.
3 * Author: Matthias Clasen
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library 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 GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef __GTK_LOCK_BUTTON_H__
20#define __GTK_LOCK_BUTTON_H__
21
22#include <gtk/gtkbutton.h>
23#include <gio/gio.h>
24
25G_BEGIN_DECLS
26
27#define GTK_TYPE_LOCK_BUTTON (gtk_lock_button_get_type ())
28#define GTK_LOCK_BUTTON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_LOCK_BUTTON, GtkLockButton))
29#define GTK_LOCK_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GTK_LOCK_BUTTON, GtkLockButtonClass))
30#define GTK_IS_LOCK_BUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_LOCK_BUTTON))
31#define GTK_IS_LOCK_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_LOCK_BUTTON))
32#define GTK_LOCK_BUTTON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_LOCK_BUTTON, GtkLockButtonClass))
33
34typedef struct _GtkLockButton GtkLockButton;
35typedef struct _GtkLockButtonClass GtkLockButtonClass;
36typedef struct _GtkLockButtonPrivate GtkLockButtonPrivate;
37
38struct _GtkLockButton
39{
40 GtkButton parent;
41
42 GtkLockButtonPrivate *priv;
43};
44
45/**
46 * GtkLockButtonClass:
47 * @parent_class: The parent class.
48 */
49struct _GtkLockButtonClass
50{
51 GtkButtonClass parent_class;
52
53 /*< private >*/
54
55 void (*reserved0) (void);
56 void (*reserved1) (void);
57 void (*reserved2) (void);
58 void (*reserved3) (void);
59 void (*reserved4) (void);
60 void (*reserved5) (void);
61 void (*reserved6) (void);
62 void (*reserved7) (void);
63};
64
65GDK_AVAILABLE_IN_3_2
66GType gtk_lock_button_get_type (void) G_GNUC_CONST;
67GDK_AVAILABLE_IN_3_2
68GtkWidget *gtk_lock_button_new (GPermission *permission);
69GDK_AVAILABLE_IN_3_2
70GPermission *gtk_lock_button_get_permission (GtkLockButton *button);
71GDK_AVAILABLE_IN_3_2
72void gtk_lock_button_set_permission (GtkLockButton *button,
73 GPermission *permission);
74
75
76G_END_DECLS
77
78#endif /* __GTK_LOCK_BUTTON_H__ */
79