2 * This file is part of hildon-libs
4 * Copyright (C) 2005 Nokia Corporation.
6 * Contact: Luc Pionchon <luc.pionchon@nokia.com>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 2.1 of
11 * the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 #ifndef __HILDON_BANNER_H__
26 #define __HILDON_BANNER_H__
28 #include <gtk/gtkwindow.h>
29 #include <gtk/gtkprogressbar.h>
30 #include <gtk/gtklabel.h>
34 #define HILDON_TYPE_BANNER (hildon_banner_get_type())
36 #define HILDON_BANNER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), HILDON_TYPE_BANNER, HildonBanner))
37 #define HILDON_IS_BANNER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), HILDON_TYPE_BANNER))
39 typedef struct _HildonBanner HildonBanner;
40 typedef struct _HildonBannerClass HildonBannerClass;
41 typedef struct _HildonBannerPrivate HildonBannerPrivate;
46 HildonBannerPrivate *priv;
49 struct _HildonBannerClass
51 GtkWindowClass parent_class;
54 GType hildon_banner_get_type (void) G_GNUC_CONST;
56 void hildon_banner_show_information (GtkWidget *widget,
57 const gchar *icon_name,
60 void hildon_banner_show_confirmation (GtkWidget *widget,
61 const gchar *icon_name,
64 GtkWidget *hildon_banner_show_animation (GtkWidget *widget,
65 const gchar *animation_name,
68 GtkWidget *hildon_banner_show_progress (GtkWidget *widget,
72 void hildon_banner_set_text (HildonBanner *self,
75 void hildon_banner_set_fraction (HildonBanner *self,
80 /* For internal use of hildon libraries only */
81 void _hildon_gtk_label_set_text_n_lines(GtkLabel *label, const gchar *text, gint max_lines);
85 #endif /* __HILDON_BANNER_H__ */