source: trunk/third/nautilus-cd-burner/bacon-cd-selection.h @ 21565

Revision 21565, 2.2 KB checked in by ghudson, 19 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21564, which included commits to RCS files with non-trunk default branches.
Line 
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
27G_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
34typedef struct BaconCdSelectionPrivate BaconCdSelectionPrivate;
35
36typedef struct {
37        GtkComboBox widget;
38        BaconCdSelectionPrivate *priv;
39} BaconCdSelection;
40
41typedef struct {
42        GtkComboBoxClass parent_class;
43        void (*device_changed) (GtkWidget *bcs, const char *device_path);
44} BaconCdSelectionClass;
45
46GtkType bacon_cd_selection_get_type              (void);
47GtkWidget *bacon_cd_selection_new                (void);
48
49void bacon_cd_selection_set_device               (BaconCdSelection *bcs,
50                                                  const char *device);
51const char *bacon_cd_selection_get_device        (BaconCdSelection *bcs);
52const char *bacon_cd_selection_get_default_device (BaconCdSelection *bcs);
53const CDDrive *bacon_cd_selection_get_cdrom       (BaconCdSelection *bcs);
54
55G_END_DECLS
56
57#endif                          /* HAVE_BACON_CD_SELECTION_H */
Note: See TracBrowser for help on using the repository browser.