diff options
author | GMT 1999 Tony Gale <gale@gtk.org> | 1999-11-13 23:06:46 +0000 |
---|---|---|
committer | Tony Gale <gale@src.gnome.org> | 1999-11-13 23:06:46 +0000 |
commit | ee3d13766031e30653d82764aef92ae444015c5e (patch) | |
tree | c0d025531a52bee6a44d65babd111b6d3f04bed7 /examples/statusbar | |
parent | e4df9fa95b83ce233c2129c3098e2727316e982b (diff) | |
download | gtk+-ee3d13766031e30653d82764aef92ae444015c5e.tar.gz |
threads example from Erik Mouw. New question on GtkLabel background
Sat Nov 13 22:30:29 GMT 1999 Tony Gale <gale@gtk.org>
* docs/gtkfaq.sgml: threads example from Erik Mouw.
New question on GtkLabel background colors.
* docs/gtk_tut.sgml:
- Correct the example code callback
function definitions.
- Update the gtkdial example code, from Frans van Schaik.
- Update setselection.c to current API.
* examples/Makefile examples/*/*.c: Update to code
listed in tutorial.
Diffstat (limited to 'examples/statusbar')
-rw-r--r-- | examples/statusbar/statusbar.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/examples/statusbar/statusbar.c b/examples/statusbar/statusbar.c index 2a4e8cf8a9..c738bf02c0 100644 --- a/examples/statusbar/statusbar.c +++ b/examples/statusbar/statusbar.c @@ -5,7 +5,8 @@ GtkWidget *status_bar; -void push_item (GtkWidget *widget, gpointer data) +void push_item( GtkWidget *widget, + gpointer data ) { static int count = 1; char buff[20]; @@ -16,13 +17,15 @@ void push_item (GtkWidget *widget, gpointer data) return; } -void pop_item (GtkWidget *widget, gpointer data) +void pop_item( GtkWidget *widget, + gpointer data ) { gtk_statusbar_pop( GTK_STATUSBAR(status_bar), GPOINTER_TO_INT(data) ); return; } -int main (int argc, char *argv[]) +int main( int argc, + char *argv[] ) { GtkWidget *window; @@ -48,7 +51,8 @@ int main (int argc, char *argv[]) gtk_box_pack_start (GTK_BOX (vbox), status_bar, TRUE, TRUE, 0); gtk_widget_show (status_bar); - context_id = gtk_statusbar_get_context_id( GTK_STATUSBAR(status_bar), "Statusbar example"); + context_id = gtk_statusbar_get_context_id( + GTK_STATUSBAR(status_bar), "Statusbar example"); button = gtk_button_new_with_label("push item"); gtk_signal_connect(GTK_OBJECT(button), "clicked", |