2 * This file is a part of hildon
4 * Copyright (C) 2005, 2008 Nokia Corporation.
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free
18 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #ifndef __HILDON_PICKER_DIALOG_H__
22 #define __HILDON_PICKER_DIALOG_H__
28 #define HILDON_TYPE_PICKER_DIALOG \
29 (hildon_picker_dialog_get_type ())
31 #define HILDON_PICKER_DIALOG(obj) \
32 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
33 HILDON_TYPE_PICKER_DIALOG, HildonPickerDialog))
35 #define HILDON_PICKER_DIALOG_CLASS(vtable) \
36 (G_TYPE_CHECK_CLASS_CAST ((vtable), \
37 HILDON_TYPE_PICKER_DIALOG, HildonPickerDialogClass))
39 #define HILDON_IS_PICKER_DIALOG(obj) \
40 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), HILDON_TYPE_PICKER_DIALOG))
42 #define HILDON_IS_PICKER_DIALOG_CLASS(vtable) \
43 (G_TYPE_CHECK_CLASS_TYPE ((vtable), HILDON_TYPE_PICKER_DIALOG))
45 #define HILDON_PICKER_DIALOG_GET_CLASS(inst) \
46 (G_TYPE_INSTANCE_GET_CLASS ((inst), \
47 HILDON_TYPE_PICKER_DIALOG, HildonPickerDialogClass))
49 typedef struct _HildonPickerDialog HildonPickerDialog;
50 typedef struct _HildonPickerDialogClass HildonPickerDialogClass;
51 typedef struct _HildonPickerDialogPrivate HildonPickerDialogPrivate;
53 struct _HildonPickerDialog
55 GtkDialog parent_instance;
58 HildonPickerDialogPrivate *priv;
61 struct _HildonPickerDialogClass
63 GtkDialogClass parent_class;
65 gboolean (* set_selector) (HildonPickerDialog *dialog,
66 HildonTouchSelector *selector);
71 hildon_picker_dialog_get_type (void);
74 hildon_picker_dialog_new (GtkWindow * parent);
77 hildon_picker_dialog_set_selector (HildonPickerDialog *dialog,
78 HildonTouchSelector *selector);
81 hildon_picker_dialog_set_done_label (HildonPickerDialog *dialog,
85 hildon_picker_dialog_get_done_label (HildonPickerDialog *dialog);
88 hildon_picker_dialog_get_selector (HildonPickerDialog *dialog);
92 #endif /* __HILDON_PICKER_SELECTOR_H__ */