1 /* gtkam-cancel.h
2  *
3  * Copyright 2001,2002 Lutz Mueller <lutz@users.sf.net>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program 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
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef __GTKAM_CANCEL_H__
20 #define __GTKAM_CANCEL_H__
21 
22 #include <gtkam-context.h>
23 #include <gtkam-dialog.h>
24 
25 #define GTKAM_TYPE_CANCEL  (gtkam_cancel_get_type ())
26 #define GTKAM_CANCEL(o)    (GTK_CHECK_CAST((o),GTKAM_TYPE_CANCEL,GtkamCancel))
27 #define GTKAM_IS_CANCEL(o) (GTK_CHECK_TYPE((o),GTKAM_TYPE_CANCEL))
28 
29 typedef struct _GtkamCancel        GtkamCancel;
30 typedef struct _GtkamCancelPrivate GtkamCancelPrivate;
31 typedef struct _GtkamCancelClass   GtkamCancelClass;
32 
33 struct _GtkamCancel
34 {
35 	GtkamDialog parent;
36 
37 	GtkamContext *context;
38 
39 	GtkamCancelPrivate *priv;
40 };
41 
42 struct _GtkamCancelClass
43 {
44 	GtkamDialogClass parent_class;
45 
46 	void (* cancel) (GtkamCancel *);
47 };
48 
49 GtkType      gtkam_cancel_get_type (void);
50 GtkWidget   *gtkam_cancel_new      (const gchar *format, ...);
51 
52 #endif /* __GTKAM_CANCEL_H__ */
53