2 * this file is part of evince, a gnome document viewer
4 * Copyright (C) 2007 Carlos Garcia Campos
7 * Carlos Garcia Campos <carlosgc@gnome.org>
9 * Evince is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * Evince is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
24 #ifndef EV_MESSAGE_AREA_H
25 #define EV_MESSAGE_AREA_H
27 #include <gtk/gtkmessagedialog.h>
29 #include "gedit-message-area.h"
33 #define EV_TYPE_MESSAGE_AREA (ev_message_area_get_type ())
34 #define EV_MESSAGE_AREA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_MESSAGE_AREA, EvMessageArea))
35 #define EV_MESSAGE_AREA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EV_TYPE_MESSAGE_AREA, EvMessageAreaClass))
36 #define EV_IS_MESSAGE_AREA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_MESSAGE_AREA))
37 #define EV_IS_MESSAGE_AREA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EV_TYPE_MESSAGE_AREA))
38 #define EV_MESSAGE_AREA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EV_TYPE_MESSAGE_AREA, EvMessageAreaClass))
40 typedef struct _EvMessageArea EvMessageArea;
41 typedef struct _EvMessageAreaClass EvMessageAreaClass;
42 typedef struct _EvMessageAreaPrivate EvMessageAreaPrivate;
44 struct _EvMessageArea {
45 GeditMessageArea parent_instance;
48 EvMessageAreaPrivate *priv;
51 struct _EvMessageAreaClass {
52 GeditMessageAreaClass parent_class;
55 GType ev_message_area_get_type (void) G_GNUC_CONST;
56 GtkWidget *ev_message_area_new (GtkMessageType type,
58 const gchar *first_button_text,
60 void ev_message_area_set_image (EvMessageArea *area,
62 void ev_message_area_set_text (EvMessageArea *area,
64 void ev_message_area_set_secondary_text (EvMessageArea *area,
69 #endif /* EV_MESSAGE_AREA_H */