1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /* |
---|
3 | * gnome-printer-selector.h: |
---|
4 | * |
---|
5 | * This program is free software; you can redistribute it and/or |
---|
6 | * modify it under the terms of the GNU Library General Public License |
---|
7 | * as published by the Free Software Foundation; either version 2 of |
---|
8 | * the License, or (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 Library General Public License for more details. |
---|
14 | * |
---|
15 | * You should have received a copy of the GNU Library General Public |
---|
16 | * License along with this program; if not, write to the Free Software |
---|
17 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
18 | * |
---|
19 | * Authors: |
---|
20 | * Raph Levien <raph@acm.org> |
---|
21 | * Miguel de Icaza <miguel@kernel.org> |
---|
22 | * Lauris Kaplinski <lauris@ximian.com> |
---|
23 | * Chema Celorio <chema@ximian.com> |
---|
24 | * |
---|
25 | * Copyright (C) 1999-2003 Ximian Inc. and authors |
---|
26 | * |
---|
27 | */ |
---|
28 | |
---|
29 | #ifndef __GNOME_PRINTER_SELECTOR_H__ |
---|
30 | #define __GNOME_PRINTER_SELECTOR_H__ |
---|
31 | |
---|
32 | #include <glib.h> |
---|
33 | |
---|
34 | G_BEGIN_DECLS |
---|
35 | |
---|
36 | #define GNOME_TYPE_PRINTER_SELECTOR (gnome_printer_selector_get_type ()) |
---|
37 | #define GNOME_PRINTER_SELECTOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNOME_TYPE_PRINTER_SELECTOR, GnomePrinterSelector)) |
---|
38 | #define GNOME_PRINTER_SELECTOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GNOME_TYPE_PRINTER_SELECTOR, GnomePrinterSelectorClass)) |
---|
39 | #define GNOME_IS_PRINTER_SELECTOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNOME_TYPE_PRINTER_SELECTOR)) |
---|
40 | #define GNOME_IS_PRINTER_SELECTOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GNOME_TYPE_PRINTER_SELECTOR)) |
---|
41 | #define GNOME_PRINTER_SELECTOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GNOME_TYPE_PRINTER_SELECTOR, GnomePrinterSelectorClass)) |
---|
42 | |
---|
43 | typedef struct _GnomePrinterSelector GnomePrinterSelector; |
---|
44 | typedef struct _GnomePrinterSelectorClass GnomePrinterSelectorClass; |
---|
45 | |
---|
46 | #include <libgnomeprint/gnome-print-config.h> |
---|
47 | #include <libgnomeprintui/gpaui/gpa-widget.h> |
---|
48 | |
---|
49 | struct _GnomePrinterSelector { |
---|
50 | GPAWidget gpawidget; |
---|
51 | GtkAccelGroup *accel_group; |
---|
52 | GtkWidget *printers; /* GPAPrinterSelector */ |
---|
53 | GtkWidget *settings; /* GPASettingsSelector */ |
---|
54 | GtkWidget *transport; /* GPATransportSelector */ |
---|
55 | gulong handler_config; /* signal handler of ->config "modified" signal */ |
---|
56 | }; |
---|
57 | |
---|
58 | struct _GnomePrinterSelectorClass { |
---|
59 | GPAWidgetClass gpa_widget_class; |
---|
60 | }; |
---|
61 | |
---|
62 | |
---|
63 | GtkType gnome_printer_selector_get_type (void); |
---|
64 | GtkWidget * gnome_printer_selector_new (GnomePrintConfig *config); |
---|
65 | GtkWidget * gnome_printer_selector_new_default (void); |
---|
66 | GnomePrintConfig * gnome_printer_selector_get_config (GnomePrinterSelector *psel); |
---|
67 | gboolean gnome_printer_selector_check_consistency (GnomePrinterSelector *psel); |
---|
68 | |
---|
69 | G_END_DECLS |
---|
70 | |
---|
71 | #endif /* __GNOME_PRINTER_SELECTOR_H__ */ |
---|