]> Pileus Git - ~andy/gtk/blob - gtk/gtklockbutton.h
stylecontext: Do invalidation on first resize container
[~andy/gtk] / gtk / gtklockbutton.h
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_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
34 typedef struct _GtkLockButton        GtkLockButton;
35 typedef struct _GtkLockButtonClass   GtkLockButtonClass;
36 typedef struct _GtkLockButtonPrivate GtkLockButtonPrivate;
37
38 struct _GtkLockButton
39 {
40   GtkButton parent;
41
42   GtkLockButtonPrivate *priv;
43 };
44
45 struct _GtkLockButtonClass
46 {
47   GtkButtonClass parent_class;
48
49   void (*reserved0) (void);
50   void (*reserved1) (void);
51   void (*reserved2) (void);
52   void (*reserved3) (void);
53   void (*reserved4) (void);
54   void (*reserved5) (void);
55   void (*reserved6) (void);
56   void (*reserved7) (void);
57 };
58
59 GDK_AVAILABLE_IN_3_2
60 GType        gtk_lock_button_get_type       (void) G_GNUC_CONST;
61 GDK_AVAILABLE_IN_3_2
62 GtkWidget   *gtk_lock_button_new            (GPermission   *permission);
63 GDK_AVAILABLE_IN_3_2
64 GPermission *gtk_lock_button_get_permission (GtkLockButton *button);
65 GDK_AVAILABLE_IN_3_2
66 void         gtk_lock_button_set_permission (GtkLockButton *button,
67                                              GPermission   *permission);
68
69
70 G_END_DECLS
71
72 #endif  /* __GTK_LOCK_BUTTON_H__ */