Ardour  9.0-pre0-582-g084a23a80d
gtkinfobar.h
Go to the documentation of this file.
1 /*
2  * gtkinfobar.h
3  * This file is part of GTK+
4  *
5  * Copyright (C) 2005 - Paolo Maggi
6  *
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.
11  *
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.
16  *
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.
21  */
22 
23 /*
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.
27  *
28  * Modified by the GTK+ Team, 2008-2009.
29  */
30 
31 #ifndef __GTK_INFO_BAR_H__
32 #define __GTK_INFO_BAR_H__
33 
34 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
35 #error "Only <gtk/gtk.h> can be included directly."
36 #endif
37 
38 #include <gtk/gtkhbox.h>
39 #include <gtk/gtkenums.h>
40 
41 G_BEGIN_DECLS
42 
43 /*
44  * Type checking and casting macros
45  */
46 #define GTK_TYPE_INFO_BAR (gtk_info_bar_get_type())
47 #define GTK_INFO_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_INFO_BAR, GtkInfoBar))
48 #define GTK_INFO_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_INFO_BAR, GtkInfoBarClass))
49 #define GTK_IS_INFO_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_INFO_BAR))
50 #define GTK_IS_INFO_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_INFO_BAR))
51 #define GTK_INFO_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_INFO_BAR, GtkInfoBarClass))
52 
53 
54 typedef struct _GtkInfoBarPrivate GtkInfoBarPrivate;
55 typedef struct _GtkInfoBarClass GtkInfoBarClass;
56 typedef struct _GtkInfoBar GtkInfoBar;
57 
58 
60 {
62 
63  /*< private > */
65 };
66 
67 
69 {
71 
72  /* Signals */
73  void (* response) (GtkInfoBar *info_bar, gint response_id);
74 
75  /* Keybinding signals */
76  void (* close) (GtkInfoBar *info_bar);
77 
78  /* Padding for future expansion */
79  void (*_gtk_reserved1) (void);
80  void (*_gtk_reserved2) (void);
81  void (*_gtk_reserved3) (void);
82  void (*_gtk_reserved4) (void);
83  void (*_gtk_reserved5) (void);
84  void (*_gtk_reserved6) (void);
85 };
86 
87 GType gtk_info_bar_get_type (void) G_GNUC_CONST;
89 
90 GtkWidget *gtk_info_bar_new_with_buttons (const gchar *first_button_text,
91  ...);
92 
96  GtkWidget *child,
97  gint response_id);
99  const gchar *button_text,
100  gint response_id);
102  const gchar *first_button_text,
103  ...);
105  gint response_id,
106  gboolean setting);
108  gint response_id);
109 
110 /* Emit response signal */
112  gint response_id);
113 
115  GtkMessageType message_type);
117 
118 G_END_DECLS
119 
120 #endif /* __GTK_INFO_BAR_H__ */
GtkMessageType
Definition: gtkenums.h:222
GType gtk_info_bar_get_type(void) G_GNUC_CONST
GtkWidget * gtk_info_bar_new_with_buttons(const gchar *first_button_text,...)
GtkWidget * gtk_info_bar_add_button(GtkInfoBar *info_bar, const gchar *button_text, gint response_id)
void gtk_info_bar_add_action_widget(GtkInfoBar *info_bar, GtkWidget *child, gint response_id)
GtkMessageType gtk_info_bar_get_message_type(GtkInfoBar *info_bar)
GtkWidget * gtk_info_bar_new(void)
GtkWidget * gtk_info_bar_get_action_area(GtkInfoBar *info_bar)
void gtk_info_bar_response(GtkInfoBar *info_bar, gint response_id)
void gtk_info_bar_add_buttons(GtkInfoBar *info_bar, const gchar *first_button_text,...)
struct _GtkInfoBarPrivate GtkInfoBarPrivate
Definition: gtkinfobar.h:54
void gtk_info_bar_set_response_sensitive(GtkInfoBar *info_bar, gint response_id, gboolean setting)
void gtk_info_bar_set_message_type(GtkInfoBar *info_bar, GtkMessageType message_type)
void gtk_info_bar_set_default_response(GtkInfoBar *info_bar, gint response_id)
GtkWidget * gtk_info_bar_get_content_area(GtkInfoBar *info_bar)
void(* _gtk_reserved6)(void)
Definition: gtkinfobar.h:84
void(* _gtk_reserved4)(void)
Definition: gtkinfobar.h:82
GtkHBoxClass parent_class
Definition: gtkinfobar.h:70
void(* _gtk_reserved2)(void)
Definition: gtkinfobar.h:80
void(* response)(GtkInfoBar *info_bar, gint response_id)
Definition: gtkinfobar.h:73
void(* _gtk_reserved5)(void)
Definition: gtkinfobar.h:83
void(* _gtk_reserved1)(void)
Definition: gtkinfobar.h:79
void(* _gtk_reserved3)(void)
Definition: gtkinfobar.h:81
void(* close)(GtkInfoBar *info_bar)
Definition: gtkinfobar.h:76
GtkHBox parent
Definition: gtkinfobar.h:61
GtkInfoBarPrivate * priv
Definition: gtkinfobar.h:64