summaryrefslogtreecommitdiff
path: root/gtk/gtkstatusbar.h
diff options
context:
space:
mode:
authorTim Janik <timj@gimp.org>1998-02-23 15:13:03 +0000
committerTim Janik <timj@src.gnome.org>1998-02-23 15:13:03 +0000
commitf6f927d227858f25f1e5df5a181a856ac2151314 (patch)
tree3f4e442f6e9cba641ad84588ac134dde3210c5fe /gtk/gtkstatusbar.h
parent1b656e0ddef81edfaf95aa766716d9e6179abb46 (diff)
downloadgtk+-f6f927d227858f25f1e5df5a181a856ac2151314.tar.gz
implemented the statusbar widget. my first intend was to fix the code, but
Mon Feb 23 13:44:10 1998 Tim Janik <timj@gimp.org> * gtk/gtkstatusbar.h: * gtk/gtkstatusbar.c: (re-)implemented the statusbar widget. my first intend was to fix the code, but then there was nothing to fix - the whole thing was just a big JOKE! people who don't even know the semantics of the g_list_* functions shouldn't put their hands on widget code and inheritance! this is the first step to get bug "BUG: statusbar/hbox (redraw?) problem" worked out, i have to leave now, but will continue work on the resizing code this evening.
Diffstat (limited to 'gtk/gtkstatusbar.h')
-rw-r--r--gtk/gtkstatusbar.h26
1 files changed, 18 insertions, 8 deletions
diff --git a/gtk/gtkstatusbar.h b/gtk/gtkstatusbar.h
index dc9a2f2488..498c04abbe 100644
--- a/gtk/gtkstatusbar.h
+++ b/gtk/gtkstatusbar.h
@@ -40,31 +40,41 @@ struct _GtkStatusbar
GtkWidget *frame;
GtkWidget *label;
- GList *msgs;
- gint next_statusid;
+ GList *messages;
+
+ guint seq_status_id;
};
struct _GtkStatusbarClass
{
GtkHBoxClass parent_class;
+
+ GMemChunk *messages_mem_chunk;
+
+ void (*text_pushed) (GtkStatusbar *statusbar,
+ const gchar *text);
+ void (*text_popped) (GtkStatusbar *statusbar,
+ const gchar *text);
};
struct _GtkStatusbarMsg
{
- gchar *str;
- gint statusid;
+ gchar *text;
+ guint status_id;
};
guint gtk_statusbar_get_type (void);
GtkWidget* gtk_statusbar_new (void);
/* Returns StatusID used for gtk_statusbar_push */
-gint gtk_statusbar_push (GtkStatusbar *statusbar,
- gchar *text);
+guint gtk_statusbar_push (GtkStatusbar *statusbar,
+ const gchar *text);
+void gtk_statusbar_pop (GtkStatusbar *statusbar);
+void gtk_statusbar_steal (GtkStatusbar *statusbar,
+ guint status_id);
+
-void gtk_statusbar_pop (GtkStatusbar *statusbar,
- gint statusid);
#ifdef __cplusplus
}