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 | |
25 | G_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_IS_LOCK_BUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_LOCK_BUTTON)) |
30 | |
31 | typedef struct _GtkLockButton GtkLockButton; |
32 | |
33 | GDK_AVAILABLE_IN_ALL |
34 | GType gtk_lock_button_get_type (void) G_GNUC_CONST; |
35 | GDK_AVAILABLE_IN_ALL |
36 | GtkWidget *gtk_lock_button_new (GPermission *permission); |
37 | GDK_AVAILABLE_IN_ALL |
38 | GPermission *gtk_lock_button_get_permission (GtkLockButton *button); |
39 | GDK_AVAILABLE_IN_ALL |
40 | void gtk_lock_button_set_permission (GtkLockButton *button, |
41 | GPermission *permission); |
42 | |
43 | |
44 | G_END_DECLS |
45 | |
46 | #endif /* __GTK_LOCK_BUTTON_H__ */ |
47 | |