1
/* Flegita - Scanner Utility
3
* flegitaactionwidget.h
5
* Copyright © 2006 Étienne Bersac
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public License
9
* as published by the Free Software Foundation; either version 2 of
10
* the License, or (at your option) any later version.
12
* This library is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the Free Software
19
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
24
* SECTION:flegitaactionwidget:
25
* @short_description: A Widget that do something
27
* #FlegitaActionWidget do blah.
30
#ifndef FLEGITA_ACTION_WIDGET_H
31
#define FLEGITA_ACTION_WIDGET_H
34
#include <glib-object.h>
36
#include <gnomescan.h>
40
#define FLEGITA_TYPE_ACTION_WIDGET (flegita_action_widget_get_type ())
41
#define FLEGITA_ACTION_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FLEGITA_TYPE_ACTION_WIDGET, FlegitaActionWidget))
42
#define FLEGITA_ACTION_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FLEGITA_TYPE_ACTION_WIDGET, FlegitaActionWidgetClass))
43
#define FLEGITA_IS_ACTION_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FLEGITA_TYPE_ACTION_WIDGET))
44
#define FLEGITA_IS_ACTION_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FLEGITA_TYPE_ACTION_WIDGET))
45
#define FLEGITA_ACTION_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FLEGITA_TYPE_ACTION_WIDGET, FlegitaActionWidgetClass))
47
typedef struct _FlegitaActionWidget FlegitaActionWidget;
48
typedef struct _FlegitaActionWidgetClass FlegitaActionWidgetClass;
50
struct _FlegitaActionWidget {
54
GnomeScanContext *context;
57
struct _FlegitaActionWidgetClass {
65
ACTION_MAIL, /*< skip >*/
66
ACTION_PRINT, /*< skip >*/
67
ACTION_FAX /*< skip >*/
78
FLEGITA_ACTION_WIDGET_ERROR_FAILED
81
/* GObject functions */
82
GType flegita_action_widget_get_type (void) G_GNUC_CONST;
86
GtkWidget* flegita_action_widget_new (GnomeScanContext *context);