1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /* e-source-selector-dialog.h
4 * Copyright (C) 2004 Novell, Inc.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This program 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 * General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this program; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
21 * Author: Rodrigo Moya <rodrigo@novell.com>
24 #ifndef _E_SOURCE_SELECTOR_DIALOG_H_
25 #define _E_SOURCE_SELECTOR_DIALOG_H_
27 #include <gtk/gtkdialog.h>
28 #include "libedataserver/e-source-list.h"
32 #define E_TYPE_SOURCE_SELECTOR_DIALOG (e_source_selector_dialog_get_type ())
33 #define E_SOURCE_SELECTOR_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_SOURCE_SELECTOR_DIALOG, ESourceSelectorDialog))
34 #define E_SOURCE_SELECTOR_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_SOURCE_SELECTOR_DIALOG, ESourceSelectorDialogClass))
35 #define E_IS_SOURCE_SELECTOR_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_SOURCE_SELECTOR_DIALOG))
36 #define E_IS_SOURCE_SELECTOR_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), E_TYPE_SOURCE_SELECTOR_DIALOG))
39 typedef struct _ESourceSelectorDialog ESourceSelectorDialog;
40 typedef struct _ESourceSelectorDialogPrivate ESourceSelectorDialogPrivate;
41 typedef struct _ESourceSelectorDialogClass ESourceSelectorDialogClass;
43 struct _ESourceSelectorDialog {
45 ESourceSelectorDialogPrivate *priv;
48 struct _ESourceSelectorDialogClass {
49 GtkDialogClass parent_class;
52 GType e_source_selector_dialog_get_type (void);
54 GtkWidget *e_source_selector_dialog_new (GtkWindow *parent, ESourceList *source_list);
55 ESource *e_source_selector_dialog_peek_primary_selection (ESourceSelectorDialog *dialog);