1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
3
/* eel-alert-dialog.h: An HIG compliant alert dialog.
5
The Gnome Library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public License as
7
published by the Free Software Foundation; either version 2 of the
8
License, or (at your option) any later version.
10
The Gnome Library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Library General Public License for more details.
15
You should have received a copy of the GNU Library General Public
16
License along with the Gnome Library; see the file COPYING.LIB. If not,
17
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
Boston, MA 02111-1307, USA.
22
#ifndef EEL_ALERT_DIALOG_H
23
#define EEL_ALERT_DIALOG_H
27
#define EEL_TYPE_ALERT_DIALOG (eel_alert_dialog_get_type ())
28
#define EEL_ALERT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EEL_TYPE_ALERT_DIALOG, EelAlertDialog))
30
typedef struct _EelAlertDialog EelAlertDialog;
31
typedef struct _EelAlertDialogClass EelAlertDialogClass;
32
typedef struct _EelAlertDialogDetails EelAlertDialogDetails;
34
struct _EelAlertDialog
36
GtkDialog parent_instance;
37
EelAlertDialogDetails *details;
40
struct _EelAlertDialogClass
42
GtkDialogClass parent_class;
45
GType eel_alert_dialog_get_type (void);
47
GtkWidget* eel_alert_dialog_new (GtkWindow *parent,
50
GtkButtonsType buttons,
51
const gchar *primary_message,
52
const gchar *secondary_message,
54
void eel_alert_dialog_set_primary_label (EelAlertDialog *dialog,
55
const gchar *message);
56
void eel_alert_dialog_set_secondary_label (EelAlertDialog *dialog,
57
const gchar *message);
58
void eel_alert_dialog_set_details_label (EelAlertDialog *dialog,
59
const gchar *message);
61
#endif /* EEL_ALERT_DIALOG_H */