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 __EV_INFO_BAR_H__
32 #define __EV_INFO_BAR_H__
39 * Type checking and casting macros
41 #define EV_TYPE_INFO_BAR (ev_info_bar_get_type())
42 #define EV_INFO_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), EV_TYPE_INFO_BAR, EvInfoBar))
43 #define EV_INFO_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_INFO_BAR, EvInfoBarClass))
44 #define EV_IS_INFO_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), EV_TYPE_INFO_BAR))
45 #define EV_IS_INFO_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EV_TYPE_INFO_BAR))
46 #define EV_INFO_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), EV_TYPE_INFO_BAR, EvInfoBarClass))
49 typedef struct _EvInfoBarPrivate EvInfoBarPrivate;
50 typedef struct _EvInfoBarClass EvInfoBarClass;
51 typedef struct _EvInfoBar EvInfoBar;
59 EvInfoBarPrivate *priv;
63 struct _EvInfoBarClass
65 GtkHBoxClass parent_class;
68 void (* response) (EvInfoBar *info_bar, gint response_id);
70 /* Keybinding signals */
71 void (* close) (EvInfoBar *info_bar);
73 /* Padding for future expansion */
74 void (*_gtk_reserved1) (void);
75 void (*_gtk_reserved2) (void);
76 void (*_gtk_reserved3) (void);
77 void (*_gtk_reserved4) (void);
78 void (*_gtk_reserved5) (void);
79 void (*_gtk_reserved6) (void);
82 GType ev_info_bar_get_type (void) G_GNUC_CONST;
83 GtkWidget *ev_info_bar_new (void);
85 GtkWidget *ev_info_bar_new_with_buttons (const gchar *first_button_text,
88 GtkWidget *ev_info_bar_get_action_area (EvInfoBar *info_bar);
89 GtkWidget *ev_info_bar_get_content_area (EvInfoBar *info_bar);
90 void ev_info_bar_add_action_widget (EvInfoBar *info_bar,
93 GtkWidget *ev_info_bar_add_button (EvInfoBar *info_bar,
94 const gchar *button_text,
96 void ev_info_bar_add_buttons (EvInfoBar *info_bar,
97 const gchar *first_button_text,
99 void ev_info_bar_set_response_sensitive (EvInfoBar *info_bar,
102 void ev_info_bar_set_default_response (EvInfoBar *info_bar,
105 /* Emit response signal */
106 void ev_info_bar_response (EvInfoBar *info_bar,
109 void ev_info_bar_set_message_type (EvInfoBar *info_bar,
110 GtkMessageType message_type);
111 GtkMessageType ev_info_bar_get_message_type (EvInfoBar *info_bar);
115 #endif /* __EV_INFO_BAR_H__ */