1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
3
* Copyright 2012 Red Hat, Inc,
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.
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.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
* Author: Marek Kasik <mkasik@redhat.com>
22
#ifndef __PP_PPD_OPTION_WIDGET_H__
23
#define __PP_PPD_OPTION_WIDGET_H__
26
#include <cups/cups.h>
31
#define PP_TYPE_PPD_OPTION_WIDGET (pp_ppd_option_widget_get_type ())
32
#define PP_PPD_OPTION_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PP_TYPE_PPD_OPTION_WIDGET, PpPPDOptionWidget))
33
#define PP_PPD_OPTION_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PP_TYPE_PPD_OPTION_WIDGET, PpPPDOptionWidgetClass))
34
#define PP_IS_PPD_OPTION_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PP_TYPE_PPD_OPTION_WIDGET))
35
#define PP_IS_PPD_OPTION_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PP_TYPE_PPD_OPTION_WIDGET))
36
#define PP_PPD_OPTION_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PP_TYPE_PPD_OPTION_WIDGET, PpPPDOptionWidgetClass))
38
typedef struct _PpPPDOptionWidget PpPPDOptionWidget;
39
typedef struct _PpPPDOptionWidgetClass PpPPDOptionWidgetClass;
40
typedef struct PpPPDOptionWidgetPrivate PpPPDOptionWidgetPrivate;
42
struct _PpPPDOptionWidget
44
GtkHBox parent_instance;
46
PpPPDOptionWidgetPrivate *priv;
49
struct _PpPPDOptionWidgetClass
51
GtkHBoxClass parent_class;
53
void (*changed) (PpPPDOptionWidget *widget);
56
GType pp_ppd_option_widget_get_type (void) G_GNUC_CONST;
58
GtkWidget *pp_ppd_option_widget_new (ppd_option_t *source,
59
const gchar *printer_name);
63
#endif /* __PP_PPD_OPTION_WIDGET_H__ */