gtkinfobar.h 4.56 KB
Newer Older
Matthias Clasen's avatar
Matthias Clasen committed
1
2
/*
 * gtkinfobar.h
Matthias Clasen's avatar
Matthias Clasen committed
3
 * This file is part of GTK
Matthias Clasen's avatar
Matthias Clasen committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 *
 * Copyright (C) 2005 - Paolo Maggi
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
Javier Jardón's avatar
Javier Jardón committed
18
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
Matthias Clasen's avatar
Matthias Clasen committed
19
20
21
22
23
24
25
26
27
28
 */

/*
 * Modified by the gedit Team, 2005. See the gedit AUTHORS file for a
 * list of people on the gedit Team.
 * See the gedit ChangeLog files for a list of changes.
 *
 * Modified by the GTK+ Team, 2008-2009.
 */

29
30
31
#ifndef __GTK_INFO_BAR_H__
#define __GTK_INFO_BAR_H__

Michael Natterer's avatar
Michael Natterer committed
32
33
34
35
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif

36
#include <gtk/gtkwidget.h>
Matthias Clasen's avatar
Matthias Clasen committed
37
38
39
40
41
42
43
44
45
46
#include <gtk/gtkenums.h>

G_BEGIN_DECLS

#define GTK_TYPE_INFO_BAR              (gtk_info_bar_get_type())
#define GTK_INFO_BAR(obj)              (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_INFO_BAR, GtkInfoBar))
#define GTK_IS_INFO_BAR(obj)           (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_INFO_BAR))

typedef struct _GtkInfoBar GtkInfoBar;

47
GDK_AVAILABLE_IN_ALL
Matthias Clasen's avatar
Matthias Clasen committed
48
GType          gtk_info_bar_get_type               (void) G_GNUC_CONST;
49
GDK_AVAILABLE_IN_ALL
Matthias Clasen's avatar
Matthias Clasen committed
50
51
GtkWidget     *gtk_info_bar_new                    (void);

52
GDK_AVAILABLE_IN_ALL
Benjamin Otte's avatar
Benjamin Otte committed
53
GtkWidget     *gtk_info_bar_new_with_buttons       (const char     *first_button_text,
Matthias Clasen's avatar
Matthias Clasen committed
54
55
                                                    ...);

56
GDK_AVAILABLE_IN_ALL
Matthias Clasen's avatar
Matthias Clasen committed
57
58
void           gtk_info_bar_add_action_widget      (GtkInfoBar     *info_bar,
                                                    GtkWidget      *child,
Benjamin Otte's avatar
Benjamin Otte committed
59
                                                    int             response_id);
60
GDK_AVAILABLE_IN_ALL
61
62
63
void           gtk_info_bar_remove_action_widget   (GtkInfoBar     *info_bar,
                                                    GtkWidget      *widget);
GDK_AVAILABLE_IN_ALL
Matthias Clasen's avatar
Matthias Clasen committed
64
GtkWidget     *gtk_info_bar_add_button             (GtkInfoBar     *info_bar,
Benjamin Otte's avatar
Benjamin Otte committed
65
                                                    const char     *button_text,
Benjamin Otte's avatar
Benjamin Otte committed
66
                                                    int             response_id);
67
GDK_AVAILABLE_IN_ALL
Matthias Clasen's avatar
Matthias Clasen committed
68
void           gtk_info_bar_add_buttons            (GtkInfoBar     *info_bar,
Benjamin Otte's avatar
Benjamin Otte committed
69
                                                    const char     *first_button_text,
Matthias Clasen's avatar
Matthias Clasen committed
70
                                                    ...);
71
GDK_AVAILABLE_IN_ALL
72
73
74
75
76
77
78
void           gtk_info_bar_add_child              (GtkInfoBar     *info_bar,
                                                    GtkWidget      *widget);
GDK_AVAILABLE_IN_ALL
void           gtk_info_bar_remove_child           (GtkInfoBar     *info_bar,
                                                    GtkWidget      *widget);

GDK_AVAILABLE_IN_ALL
Matthias Clasen's avatar
Matthias Clasen committed
79
void           gtk_info_bar_set_response_sensitive (GtkInfoBar     *info_bar,
Benjamin Otte's avatar
Benjamin Otte committed
80
                                                    int             response_id,
Matthias Clasen's avatar
Matthias Clasen committed
81
                                                    gboolean        setting);
82
GDK_AVAILABLE_IN_ALL
Matthias Clasen's avatar
Matthias Clasen committed
83
void           gtk_info_bar_set_default_response   (GtkInfoBar     *info_bar,
Benjamin Otte's avatar
Benjamin Otte committed
84
                                                    int             response_id);
Matthias Clasen's avatar
Matthias Clasen committed
85

86
GDK_AVAILABLE_IN_ALL
Matthias Clasen's avatar
Matthias Clasen committed
87
void           gtk_info_bar_response               (GtkInfoBar     *info_bar,
Benjamin Otte's avatar
Benjamin Otte committed
88
                                                    int             response_id);
Matthias Clasen's avatar
Matthias Clasen committed
89

90
GDK_AVAILABLE_IN_ALL
Matthias Clasen's avatar
Matthias Clasen committed
91
92
void           gtk_info_bar_set_message_type       (GtkInfoBar     *info_bar,
                                                    GtkMessageType  message_type);
93
GDK_AVAILABLE_IN_ALL
Matthias Clasen's avatar
Matthias Clasen committed
94
95
GtkMessageType gtk_info_bar_get_message_type       (GtkInfoBar     *info_bar);

Matthias Clasen's avatar
Matthias Clasen committed
96
GDK_AVAILABLE_IN_ALL
97
98
void           gtk_info_bar_set_show_close_button  (GtkInfoBar     *info_bar,
                                                    gboolean        setting);
Matthias Clasen's avatar
Matthias Clasen committed
99
GDK_AVAILABLE_IN_ALL
100
101
gboolean       gtk_info_bar_get_show_close_button  (GtkInfoBar     *info_bar);

Matthias Clasen's avatar
Matthias Clasen committed
102
GDK_AVAILABLE_IN_ALL
Timm Bäder's avatar
Timm Bäder committed
103
104
void           gtk_info_bar_set_revealed           (GtkInfoBar     *info_bar,
                                                    gboolean        revealed);
Matthias Clasen's avatar
Matthias Clasen committed
105
GDK_AVAILABLE_IN_ALL
Timm Bäder's avatar
Timm Bäder committed
106
107
gboolean       gtk_info_bar_get_revealed           (GtkInfoBar     *info_bar);

Matthias Clasen's avatar
Matthias Clasen committed
108
109
110
G_END_DECLS

#endif  /* __GTK_INFO_BAR_H__  */