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/tictactoe | |
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/tictactoe')
-rw-r--r-- | examples/tictactoe/tictactoe.c | 6 | ||||
-rw-r--r-- | examples/tictactoe/ttt_test.c | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/examples/tictactoe/tictactoe.c b/examples/tictactoe/tictactoe.c index 530d72e3d6..040d472ea3 100644 --- a/examples/tictactoe/tictactoe.c +++ b/examples/tictactoe/tictactoe.c @@ -68,8 +68,10 @@ tictactoe_class_init (TictactoeClass *class) tictactoe_signals[TICTACTOE_SIGNAL] = gtk_signal_new ("tictactoe", GTK_RUN_FIRST, object_class->type, - GTK_SIGNAL_OFFSET (TictactoeClass, tictactoe), - gtk_signal_default_marshaller, GTK_TYPE_NONE, 0); + GTK_SIGNAL_OFFSET (TictactoeClass, + tictactoe), + gtk_signal_default_marshaller, + GTK_TYPE_NONE, 0); gtk_object_class_add_signals (object_class, tictactoe_signals, LAST_SIGNAL); diff --git a/examples/tictactoe/ttt_test.c b/examples/tictactoe/ttt_test.c index 4a08248c7c..82941e8930 100644 --- a/examples/tictactoe/ttt_test.c +++ b/examples/tictactoe/ttt_test.c @@ -3,15 +3,15 @@ #include <gtk/gtk.h> #include "tictactoe.h" -void -win (GtkWidget *widget, gpointer data) +void win( GtkWidget *widget, + gpointer data ) { g_print ("Yay!\n"); tictactoe_clear (TICTACTOE (widget)); } -int -main (int argc, char *argv[]) +int main( int argc, + char *argv[] ) { GtkWidget *window; GtkWidget *ttt; |