1 /* 2 * e-alert-bar.h 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU Lesser General Public License as published by 6 * the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, but 9 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 10 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 11 * for more details. 12 * 13 * You should have received a copy of the GNU Lesser General Public License 14 * along with this program; if not, see <http://www.gnu.org/licenses/>. 15 * 16 */ 17 18 #if !defined (__E_UTIL_H_INSIDE__) && !defined (LIBEUTIL_COMPILATION) 19 #error "Only <e-util/e-util.h> should be included directly." 20 #endif 21 22 #ifndef E_ALERT_BAR_H 23 #define E_ALERT_BAR_H 24 25 #include <gtk/gtk.h> 26 27 #include <e-util/e-alert.h> 28 29 /* Standard GObject macros */ 30 #define E_TYPE_ALERT_BAR \ 31 (e_alert_bar_get_type ()) 32 #define E_ALERT_BAR(obj) \ 33 (G_TYPE_CHECK_INSTANCE_CAST \ 34 ((obj), E_TYPE_ALERT_BAR, EAlertBar)) 35 #define E_ALERT_BAR_CLASS(cls) \ 36 (G_TYPE_CHECK_CLASS_CAST \ 37 ((cls), E_TYPE_ALERT_BAR, EAlertBarClass)) 38 #define E_IS_ALERT_BAR(obj) \ 39 (G_TYPE_CHECK_INSTANCE_TYPE \ 40 ((obj), E_TYPE_ALERT_BAR)) 41 #define E_IS_ALERT_BAR_CLASS(cls) \ 42 (G_TYPE_CHECK_CLASS_TYPE \ 43 ((cls), E_TYPE_ALERT_BAR)) 44 #define E_ALERT_BAR_GET_CLASS(obj) \ 45 (G_TYPE_INSTANCE_GET_CLASS \ 46 ((obj), E_TYPE_ALERT_BAR, EAlertBarClass)) 47 48 G_BEGIN_DECLS 49 50 typedef struct _EAlertBar EAlertBar; 51 typedef struct _EAlertBarClass EAlertBarClass; 52 typedef struct _EAlertBarPrivate EAlertBarPrivate; 53 54 struct _EAlertBar { 55 GtkInfoBar parent; 56 EAlertBarPrivate *priv; 57 }; 58 59 struct _EAlertBarClass { 60 GtkInfoBarClass parent_class; 61 }; 62 63 GType e_alert_bar_get_type (void) G_GNUC_CONST; 64 GtkWidget * e_alert_bar_new (void); 65 void e_alert_bar_clear (EAlertBar *alert_bar); 66 void e_alert_bar_add_alert (EAlertBar *alert_bar, 67 EAlert *alert); 68 gboolean e_alert_bar_close_alert (EAlertBar *alert_bar); 69 void e_alert_bar_submit_alert (EAlertBar *alert_bar, 70 EAlert *alert); 71 72 G_END_DECLS 73 74 #endif /* E_ALERT_BAR_H */ 75