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/eventbox | |
parent | 601302c7a308664c09bc5ee2e23621b34747a252 (diff) | |
download | gdk-pixbuf-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/eventbox')
-rw-r--r-- | examples/eventbox/eventbox.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/eventbox/eventbox.c b/examples/eventbox/eventbox.c index 8a56da831..ef56da93e 100644 --- a/examples/eventbox/eventbox.c +++ b/examples/eventbox/eventbox.c @@ -15,8 +15,8 @@ int main( int argc, gtk_window_set_title (GTK_WINDOW (window), "Event Box"); - g_signal_connect (GTK_OBJECT (window), "destroy", - GTK_SIGNAL_FUNC (exit), NULL); + g_signal_connect (G_OBJECT (window), "destroy", + G_CALLBACK (exit), NULL); gtk_container_set_border_width (GTK_CONTAINER (window), 10); @@ -37,8 +37,8 @@ int main( int argc, /* And bind an action to it */ gtk_widget_set_events (event_box, GDK_BUTTON_PRESS_MASK); - g_signal_connect (GTK_OBJECT (event_box), "button_press_event", - GTK_SIGNAL_FUNC (exit), NULL); + g_signal_connect (G_OBJECT (event_box), "button_press_event", + G_CALLBACK (exit), NULL); /* Yet one more thing you need an X window for ... */ |