1 /* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3 * GtkStatusbar Copyright (C) 1998 Shawn T. Amundson
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the Free
17 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 #ifndef __GTK_STATUSBAR_H__
21 #define __GTK_STATUSBAR_H__
23 #include <gtk/gtkhbox.h>
27 #endif /* __cplusplus */
29 #define GTK_STATUSBAR(obj) GTK_CHECK_CAST (obj, gtk_statusbar_get_type (), GtkStatusbar)
30 #define GTK_STATUSBAR_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_statusbar_get_type (), GtkStatusbarClass)
31 #define GTK_IS_STATUSBAR(obj) GTK_CHECK_TYPE (obj, gtk_statusbar_get_type ())
33 typedef struct _GtkStatusbar GtkStatusbar;
34 typedef struct _GtkStatusbarClass GtkStatusbarClass;
35 typedef struct _GtkStatusbarMsg GtkStatusbarMsg;
39 GtkHBox parent_widget;
51 struct _GtkStatusbarClass
53 GtkHBoxClass parent_class;
55 GMemChunk *messages_mem_chunk;
57 void (*text_pushed) (GtkStatusbar *statusbar,
60 void (*text_popped) (GtkStatusbar *statusbar,
65 struct _GtkStatusbarMsg
72 guint gtk_statusbar_get_type (void);
73 GtkWidget* gtk_statusbar_new (void);
74 guint gtk_statusbar_get_context_id (GtkStatusbar *statusbar,
75 const gchar *context_description);
76 /* Returns message_id used for gtk_statusbar_remove */
77 guint gtk_statusbar_push (GtkStatusbar *statusbar,
80 void gtk_statusbar_pop (GtkStatusbar *statusbar,
82 void gtk_statusbar_remove (GtkStatusbar *statusbar,
90 #endif /* __cplusplus */
91 #endif /* __GTK_STATUSBAR_H__ */