]> Pileus Git - ~andy/gtk/blob - gtk/gtkprinteroptionwidget.h
Merge the gtk-printing branch. For more detailed ChangeLog entries, see
[~andy/gtk] / gtk / gtkprinteroptionwidget.h
1 /* GtkPrinterOptionWidget 
2  * Copyright (C) 2006 John (J5) Palmieri <johnp@redhat.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19 #ifndef __GTK_PRINTER_OPTION_WIDGET_H__
20 #define __GTK_PRINTER_OPTION_WIDGET_H__
21
22 #include "gtkprinteroption.h"
23 #include "gtkhbox.h"
24
25 G_BEGIN_DECLS
26
27 #define GTK_TYPE_PRINTER_OPTION_WIDGET                  (gtk_printer_option_widget_get_type ())
28 #define GTK_PRINTER_OPTION_WIDGET(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINTER_OPTION_WIDGET, GtkPrinterOptionWidget))
29 #define GTK_PRINTER_OPTION_WIDGET_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PRINTER_OPTION_WIDGET, GtkPrinterOptionWidgetClass))
30 #define GTK_IS_PRINTER_OPTION_WIDGET(obj)               (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINTER_OPTION_WIDGET))
31 #define GTK_IS_PRINTER_OPTION_WIDGET_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PRINTER_OPTION_WIDGET))
32 #define GTK_PRINTER_OPTION_WIDGET_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PRINTER_OPTION_WIDGET, GtkPrinterOptionWidgetClass))
33
34
35 typedef struct _GtkPrinterOptionWidget         GtkPrinterOptionWidget;
36 typedef struct _GtkPrinterOptionWidgetClass    GtkPrinterOptionWidgetClass;
37 typedef struct GtkPrinterOptionWidgetPrivate   GtkPrinterOptionWidgetPrivate;
38
39 struct _GtkPrinterOptionWidget
40 {
41   GtkHBox parent_instance;
42
43   GtkPrinterOptionWidgetPrivate *priv;
44 };
45
46 struct _GtkPrinterOptionWidgetClass
47 {
48   GtkHBoxClass parent_class;
49
50   void (*changed) (GtkPrinterOptionWidget *widget);
51 };
52
53 GType            gtk_printer_option_widget_get_type   (void) G_GNUC_CONST;
54
55 GtkWidget * gtk_printer_option_widget_new                (GtkPrinterOption       *source);
56 void        gtk_printer_option_widget_set_source         (GtkPrinterOptionWidget *setting,
57                                                           GtkPrinterOption       *source);
58 gboolean    gtk_printer_option_widget_has_external_label (GtkPrinterOptionWidget *setting);
59 GtkWidget * gtk_printer_option_widget_get_external_label (GtkPrinterOptionWidget *setting);
60 const char *gtk_printer_option_widget_get_value          (GtkPrinterOptionWidget *setting);
61
62 G_END_DECLS
63
64 #endif /* __GTK_PRINTER_OPTION_WIDGET_H__ */