1 /* GTK - The GIMP Toolkit
2 * Copyright (C) 2010 Red Hat, Inc.
3 * Author: Matthias Clasen
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.
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.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef __GTK_LOCK_BUTTON_H__
22 #define __GTK_LOCK_BUTTON_H__
24 #include <gtk/gtkbutton.h>
29 #define GTK_TYPE_LOCK_BUTTON (gtk_lock_button_get_type ())
30 #define GTK_LOCK_BUTTON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_LOCK_BUTTON, GtkLockButton))
31 #define GTK_LOCK_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GTK_LOCK_BUTTON, GtkLockButtonClass))
32 #define GTK_IS_LOCK_BUTTON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_LOCK_BUTTON))
33 #define GTK_IS_LOCK_BUTTON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_LOCK_BUTTON))
34 #define GTK_LOCK_BUTTON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_LOCK_BUTTON, GtkLockButtonClass))
36 typedef struct _GtkLockButton GtkLockButton;
37 typedef struct _GtkLockButtonClass GtkLockButtonClass;
38 typedef struct _GtkLockButtonPrivate GtkLockButtonPrivate;
44 GtkLockButtonPrivate *priv;
47 struct _GtkLockButtonClass
49 GtkButtonClass parent_class;
51 void (*reserved0) (void);
52 void (*reserved1) (void);
53 void (*reserved2) (void);
54 void (*reserved3) (void);
55 void (*reserved4) (void);
56 void (*reserved5) (void);
57 void (*reserved6) (void);
58 void (*reserved7) (void);
61 GType gtk_lock_button_get_type (void) G_GNUC_CONST;
62 GtkWidget *gtk_lock_button_new (GPermission *permission);
63 GPermission *gtk_lock_button_get_permission (GtkLockButton *button);
64 void gtk_lock_button_set_permission (GtkLockButton *button,
65 GPermission *permission);
70 #endif /* __GTK_LOCK_BUTTON_H__ */