gtkstatusbar.h 2.47 KB
Newer Older
Cody Russell's avatar
Cody Russell committed
1
/* GTK - The GIMP Toolkit
Shawn Amundson's avatar
Shawn Amundson committed
2
3
4
5
 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
 * GtkStatusbar Copyright (C) 1998 Shawn T. Amundson
 *
 * This library is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU Lesser General Public
Shawn Amundson's avatar
Shawn Amundson committed
7
8
9
10
11
12
 * 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
13
 * Lesser General Public License for more details.
Shawn Amundson's avatar
Shawn Amundson committed
14
 *
15
 * You should have received a copy of the GNU Lesser General Public
Javier Jardón's avatar
Javier Jardón committed
16
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
Shawn Amundson's avatar
Shawn Amundson committed
17
18
 */

19
/*
20
 * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
21
22
 * file for a list of people on the GTK+ Team.  See the ChangeLog
 * files for a list of changes.  These files are distributed with
23
 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
24
25
 */

26
27
28
#ifndef __GTK_STATUSBAR_H__
#define __GTK_STATUSBAR_H__

29
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
30
31
32
#error "Only <gtk/gtk.h> can be included directly."
#endif

33
#include <gtk/gtkwidget.h>
Shawn Amundson's avatar
Shawn Amundson committed
34

35
G_BEGIN_DECLS
Tim Janik's avatar
Tim Janik committed
36
37

#define GTK_TYPE_STATUSBAR            (gtk_statusbar_get_type ())
Manish Singh's avatar
Manish Singh committed
38
39
#define GTK_STATUSBAR(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_STATUSBAR, GtkStatusbar))
#define GTK_IS_STATUSBAR(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_STATUSBAR))
Shawn Amundson's avatar
Shawn Amundson committed
40

Matthias Clasen's avatar
Matthias Clasen committed
41
typedef struct _GtkStatusbar GtkStatusbar;
Shawn Amundson's avatar
Shawn Amundson committed
42

43
GDK_AVAILABLE_IN_ALL
Manish Singh's avatar
Manish Singh committed
44
GType      gtk_statusbar_get_type     	(void) G_GNUC_CONST;
45
GDK_AVAILABLE_IN_ALL
Shawn Amundson's avatar
Shawn Amundson committed
46
GtkWidget* gtk_statusbar_new          	(void);
47
GDK_AVAILABLE_IN_ALL
48
guint	   gtk_statusbar_get_context_id	(GtkStatusbar *statusbar,
Benjamin Otte's avatar
Benjamin Otte committed
49
					 const char   *context_description);
50
GDK_AVAILABLE_IN_ALL
51
52
guint      gtk_statusbar_push          	(GtkStatusbar *statusbar,
					 guint	       context_id,
Benjamin Otte's avatar
Benjamin Otte committed
53
					 const char   *text);
54
GDK_AVAILABLE_IN_ALL
55
56
void       gtk_statusbar_pop          	(GtkStatusbar *statusbar,
					 guint	       context_id);
57
GDK_AVAILABLE_IN_ALL
58
59
60
void       gtk_statusbar_remove        	(GtkStatusbar *statusbar,
					 guint	       context_id,
					 guint         message_id);
61
GDK_AVAILABLE_IN_ALL
62
63
void       gtk_statusbar_remove_all    	(GtkStatusbar *statusbar,
					 guint	       context_id);
Shawn Amundson's avatar
Shawn Amundson committed
64

65
66
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkStatusbar, g_object_unref)

67
68
G_END_DECLS

Shawn Amundson's avatar
Shawn Amundson committed
69
#endif /* __GTK_STATUSBAR_H__ */