3 * This file is part of GTK+
5 * Copyright (C) 2005 - Paolo Maggi
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
24 * Modified by the gedit Team, 2005. See the gedit AUTHORS file for a
25 * list of people on the gedit Team.
26 * See the gedit ChangeLog files for a list of changes.
28 * Modified by the GTK+ Team, 2008-2009.
31 #ifndef __GTK_INFO_BAR_H__
32 #define __GTK_INFO_BAR_H__
34 #include <gtk/gtkhbox.h>
35 #include <gtk/gtkenums.h>
40 * Type checking and casting macros
42 #define GTK_TYPE_INFO_BAR (gtk_info_bar_get_type())
43 #define GTK_INFO_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_INFO_BAR, GtkInfoBar))
44 #define GTK_INFO_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_INFO_BAR, GtkInfoBarClass))
45 #define GTK_IS_INFO_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_INFO_BAR))
46 #define GTK_IS_INFO_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_INFO_BAR))
47 #define GTK_INFO_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_INFO_BAR, GtkInfoBarClass))
50 typedef struct _GtkInfoBarPrivate GtkInfoBarPrivate;
51 typedef struct _GtkInfoBarClass GtkInfoBarClass;
52 typedef struct _GtkInfoBar GtkInfoBar;
60 GtkInfoBarPrivate *priv;
64 struct _GtkInfoBarClass
66 GtkHBoxClass parent_class;
69 void (* response) (GtkInfoBar *info_bar, gint response_id);
71 /* Keybinding signals */
72 void (* close) (GtkInfoBar *info_bar);
74 /* Padding for future expansion */
75 void (*_gtk_reserved1) (void);
76 void (*_gtk_reserved2) (void);
77 void (*_gtk_reserved3) (void);
78 void (*_gtk_reserved4) (void);
79 void (*_gtk_reserved5) (void);
80 void (*_gtk_reserved6) (void);
83 GType gtk_info_bar_get_type (void) G_GNUC_CONST;
84 GtkWidget *gtk_info_bar_new (void);
86 GtkWidget *gtk_info_bar_new_with_buttons (const gchar *first_button_text,
89 GtkWidget *gtk_info_bar_get_action_area (GtkInfoBar *info_bar);
90 GtkWidget *gtk_info_bar_get_content_area (GtkInfoBar *info_bar);
91 void gtk_info_bar_add_action_widget (GtkInfoBar *info_bar,
94 GtkWidget *gtk_info_bar_add_button (GtkInfoBar *info_bar,
95 const gchar *button_text,
97 void gtk_info_bar_add_buttons (GtkInfoBar *info_bar,
98 const gchar *first_button_text,
100 void gtk_info_bar_set_response_sensitive (GtkInfoBar *info_bar,
103 void gtk_info_bar_set_default_response (GtkInfoBar *info_bar,
106 /* Emit response signal */
107 void gtk_info_bar_response (GtkInfoBar *info_bar,
110 void gtk_info_bar_set_message_type (GtkInfoBar *info_bar,
111 GtkMessageType message_type);
112 GtkMessageType gtk_info_bar_get_message_type (GtkInfoBar *info_bar);
116 #endif /* __GTK_INFO_BAR_H__ */