diff options
author | Sven Neumann <sven@gimp.org> | 2002-02-19 19:47:16 +0000 |
---|---|---|
committer | Sven Neumann <neo@src.gnome.org> | 2002-02-19 19:47:16 +0000 |
commit | 6dea3cae13ddf8a5e882fe8296678bb7be2a94d8 (patch) | |
tree | a40a07c80c406c91894e38064e6ec1ea559ef178 /examples/notebook/notebook.c | |
parent | 601302c7a308664c09bc5ee2e23621b34747a252 (diff) | |
download | gtk+-6dea3cae13ddf8a5e882fe8296678bb7be2a94d8.tar.gz |
finish conversion to g_signal_* functions by using G_OBJECT and G_CALLBACK
2002-02-19 Sven Neumann <sven@gimp.org>
* examples/*/*.c: finish conversion to g_signal_* functions by
using G_OBJECT and G_CALLBACK and other assorted changes.
Diffstat (limited to 'examples/notebook/notebook.c')
-rw-r--r-- | examples/notebook/notebook.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/examples/notebook/notebook.c b/examples/notebook/notebook.c index 8d55d478a2..7435d40f29 100644 --- a/examples/notebook/notebook.c +++ b/examples/notebook/notebook.c @@ -63,8 +63,8 @@ int main( int argc, window = gtk_window_new (GTK_WINDOW_TOPLEVEL); - g_signal_connect (GTK_OBJECT (window), "delete_event", - GTK_SIGNAL_FUNC (delete), NULL); + g_signal_connect (G_OBJECT (window), "delete_event", + G_CALLBACK (delete), NULL); gtk_container_set_border_width (GTK_CONTAINER (window), 10); @@ -126,43 +126,43 @@ int main( int argc, /* Create a bunch of buttons */ button = gtk_button_new_with_label ("close"); - g_signal_connect_swapped (GTK_OBJECT (button), "clicked", - GTK_SIGNAL_FUNC (delete), NULL); + g_signal_connect_swapped (G_OBJECT (button), "clicked", + G_CALLBACK (delete), NULL); gtk_table_attach_defaults (GTK_TABLE (table), button, 0, 1, 1, 2); gtk_widget_show (button); button = gtk_button_new_with_label ("next page"); - g_signal_connect_swapped (GTK_OBJECT (button), "clicked", - GTK_SIGNAL_FUNC (gtk_notebook_next_page), - GTK_OBJECT (notebook)); + g_signal_connect_swapped (G_OBJECT (button), "clicked", + G_CALLBACK (gtk_notebook_next_page), + notebook); gtk_table_attach_defaults (GTK_TABLE (table), button, 1, 2, 1, 2); gtk_widget_show (button); button = gtk_button_new_with_label ("prev page"); - g_signal_connect_swapped (GTK_OBJECT (button), "clicked", - GTK_SIGNAL_FUNC (gtk_notebook_prev_page), - GTK_OBJECT (notebook)); + g_signal_connect_swapped (G_OBJECT (button), "clicked", + G_CALLBACK (gtk_notebook_prev_page), + notebook); gtk_table_attach_defaults (GTK_TABLE (table), button, 2, 3, 1, 2); gtk_widget_show (button); button = gtk_button_new_with_label ("tab position"); - g_signal_connect (GTK_OBJECT (button), "clicked", - GTK_SIGNAL_FUNC (rotate_book), - GTK_OBJECT(notebook)); + g_signal_connect (G_OBJECT (button), "clicked", + G_CALLBACK (rotate_book), + notebook); gtk_table_attach_defaults (GTK_TABLE (table), button, 3, 4, 1, 2); gtk_widget_show (button); button = gtk_button_new_with_label ("tabs/border on/off"); - g_signal_connect (GTK_OBJECT (button), "clicked", - GTK_SIGNAL_FUNC (tabsborder_book), - GTK_OBJECT (notebook)); + g_signal_connect (G_OBJECT (button), "clicked", + G_CALLBACK (tabsborder_book), + notebook); gtk_table_attach_defaults (GTK_TABLE (table), button, 4, 5, 1, 2); gtk_widget_show (button); button = gtk_button_new_with_label ("remove page"); - g_signal_connect (GTK_OBJECT (button), "clicked", - GTK_SIGNAL_FUNC (remove_book), - GTK_OBJECT (notebook)); + g_signal_connect (G_OBJECT (button), "clicked", + G_CALLBACK (remove_book), + notebook); gtk_table_attach_defaults (GTK_TABLE (table), button, 5, 6, 1, 2); gtk_widget_show (button); |