1 | /* |
---|
2 | * Copyright (C) 2002-2004 Bastien Nocera <hadess@hadess.net> |
---|
3 | * |
---|
4 | * This program is free software; you can redistribute it and/or modify |
---|
5 | * it under the terms of the GNU General Public License as published by |
---|
6 | * the Free Software Foundation; either version 2 of the License, or |
---|
7 | * (at your option) any later version. |
---|
8 | * |
---|
9 | * This program 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 |
---|
12 | * GNU General Public License for more details. |
---|
13 | * |
---|
14 | * You should have received a copy of the GNU General Public License |
---|
15 | * along with this program; if not, write to the Free Software |
---|
16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
17 | * |
---|
18 | * Authors: Bastien Nocera <hadess@hadess.net> |
---|
19 | */ |
---|
20 | |
---|
21 | #ifndef HAVE_BACON_CD_SELECTION_H |
---|
22 | #define HAVE_BACON_CD_SELECTION_H |
---|
23 | |
---|
24 | #include <gtk/gtkcomboboxentry.h> |
---|
25 | #include <cd-drive.h> |
---|
26 | |
---|
27 | G_BEGIN_DECLS |
---|
28 | |
---|
29 | #define BACON_CD_SELECTION(obj) (GTK_CHECK_CAST ((obj), bacon_cd_selection_get_type (), BaconCdSelection)) |
---|
30 | #define BACON_CD_SELECTION_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), bacon_cd_selection_get_type (), BaconCdSelectionClass)) |
---|
31 | #define BACON_IS_CD_SELECTION(obj) (GTK_CHECK_TYPE (obj, bacon_cd_selection_get_type ())) |
---|
32 | #define BACON_IS_CD_SELECTION_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), bacon_cd_selection_get_type ())) |
---|
33 | |
---|
34 | typedef struct BaconCdSelectionPrivate BaconCdSelectionPrivate; |
---|
35 | |
---|
36 | typedef struct { |
---|
37 | GtkComboBox widget; |
---|
38 | BaconCdSelectionPrivate *priv; |
---|
39 | } BaconCdSelection; |
---|
40 | |
---|
41 | typedef struct { |
---|
42 | GtkComboBoxClass parent_class; |
---|
43 | void (*device_changed) (GtkWidget *bcs, const char *device_path); |
---|
44 | } BaconCdSelectionClass; |
---|
45 | |
---|
46 | GtkType bacon_cd_selection_get_type (void); |
---|
47 | GtkWidget *bacon_cd_selection_new (void); |
---|
48 | |
---|
49 | void bacon_cd_selection_set_device (BaconCdSelection *bcs, |
---|
50 | const char *device); |
---|
51 | const char *bacon_cd_selection_get_device (BaconCdSelection *bcs); |
---|
52 | const char *bacon_cd_selection_get_default_device (BaconCdSelection *bcs); |
---|
53 | const CDDrive *bacon_cd_selection_get_cdrom (BaconCdSelection *bcs); |
---|
54 | |
---|
55 | G_END_DECLS |
---|
56 | |
---|
57 | #endif /* HAVE_BACON_CD_SELECTION_H */ |
---|