2
* Copyright © 2008 James Liggett <jrliggett@cox.net>
3
* Copyright © 2008 Ryan Zeigler <zeiglerr@gmail.com>
5
* Licensed under the GNU General Public License Version 2
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21
#ifndef _CHEESE_PREFS_CAMERA_COMBO_H_
22
#define _CHEESE_PREFS_CAMERA_COMBO_H_
24
#include <glib-object.h>
25
#include <cheese-camera.h>
26
#include "cheese-prefs-widget.h"
30
#define CHEESE_TYPE_PREFS_CAMERA_COMBO (cheese_prefs_camera_combo_get_type ())
31
#define CHEESE_PREFS_CAMERA_COMBO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CHEESE_TYPE_PREFS_CAMERA_COMBO, \
32
CheesePrefsCameraCombo))
33
#define CHEESE_PREFS_CAMERA_COMBO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CHEESE_TYPE_PREFS_CAMERA_COMBO, \
34
CheesePrefsCameraComboClass))
35
#define CHEESE_IS_PREFS_CAMERA_COMBO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CHEESE_TYPE_PREFS_CAMERA_COMBO))
36
#define CHEESE_IS_PREFS_CAMERA_COMBO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CHEESE_TYPE_PREFS_CAMERA_COMBO))
37
#define CHEESE_PREFS_CAMERA_COMBO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CHEESE_TYPE_PREFS_CAMERA_COMBO, \
38
CheesePrefsCameraComboClass))
40
typedef struct _CheesePrefsCameraComboClass CheesePrefsCameraComboClass;
41
typedef struct _CheesePrefsCameraCombo CheesePrefsCameraCombo;
43
struct _CheesePrefsCameraComboClass
45
CheesePrefsWidgetClass parent_class;
48
struct _CheesePrefsCameraCombo
50
CheesePrefsWidget parent_instance;
53
GType cheese_prefs_camera_combo_get_type (void) G_GNUC_CONST;
54
CheesePrefsCameraCombo *cheese_prefs_camera_combo_new (GtkWidget *combo_box,
56
const gchar *camera_device_key);
58
char *cheese_prefs_camera_combo_get_selected_camera (CheesePrefsCameraCombo *camera);
60
#endif /* _CHEESE_PREFS_CAMERA_COMBO_H_ */