diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-01-03 19:26:36 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-01-03 19:26:36 +0000 |
commit | 44ec61dd97f1e159457b24458cf86ec39660efd7 (patch) | |
tree | 036b478f431462c22a8e0464d58854b2e86f4233 /examples/notebook | |
parent | 6803d93d38eb7f1cf09b89eeaf0cb414ab001d15 (diff) | |
download | gtk+-44ec61dd97f1e159457b24458cf86ec39660efd7.tar.gz |
Re-extract.
2005-01-03 Matthias Clasen <mclasen@redhat.com>
* examples/*: Re-extract.
* docs/tutorial/gtk-tut.sgml: Small corrections.
Diffstat (limited to 'examples/notebook')
-rw-r--r-- | examples/notebook/notebook.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/examples/notebook/notebook.c b/examples/notebook/notebook.c index 439d5932ee..76249bb058 100644 --- a/examples/notebook/notebook.c +++ b/examples/notebook/notebook.c @@ -1,18 +1,17 @@ -#include <config.h> #include <stdio.h> #include <gtk/gtk.h> /* This function rotates the position of the tabs */ -void rotate_book( GtkButton *button, - GtkNotebook *notebook ) +static void rotate_book( GtkButton *button, + GtkNotebook *notebook ) { gtk_notebook_set_tab_pos (notebook, (notebook->tab_pos + 1) % 4); } /* Add/Remove the page tabs and the borders */ -void tabsborder_book( GtkButton *button, - GtkNotebook *notebook ) +static void tabsborder_book( GtkButton *button, + GtkNotebook *notebook ) { gint tval = FALSE; gint bval = FALSE; @@ -26,8 +25,8 @@ void tabsborder_book( GtkButton *button, } /* Remove a page from the notebook */ -void remove_book( GtkButton *button, - GtkNotebook *notebook ) +static void remove_book( GtkButton *button, + GtkNotebook *notebook ) { gint page; @@ -38,9 +37,9 @@ void remove_book( GtkButton *button, gtk_widget_queue_draw (GTK_WIDGET (notebook)); } -gint delete( GtkWidget *widget, - GtkWidget *event, - gpointer data ) +static gboolean delete( GtkWidget *widget, + GtkWidget *event, + gpointer data ) { gtk_main_quit (); return FALSE; |