summaryrefslogtreecommitdiff
path: root/examples/radiobuttons/radiobuttons.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/radiobuttons/radiobuttons.c')
-rw-r--r--examples/radiobuttons/radiobuttons.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/radiobuttons/radiobuttons.c b/examples/radiobuttons/radiobuttons.c
index 77aff9a020..05fd1e38a2 100644
--- a/examples/radiobuttons/radiobuttons.c
+++ b/examples/radiobuttons/radiobuttons.c
@@ -19,12 +19,12 @@ int main( int argc,
GtkWidget *button;
GtkWidget *separator;
GSList *group;
-
- gtk_init (&argc, &argv);
-
+
+ gtk_init (&argc, &argv);
+
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
-
- g_signal_connect (G_OBJECT (window), "delete_event",
+
+ g_signal_connect (window, "delete-event",
G_CALLBACK (close_application),
NULL);
@@ -65,15 +65,15 @@ int main( int argc,
gtk_widget_show (box2);
button = gtk_button_new_with_label ("close");
- g_signal_connect_swapped (G_OBJECT (button), "clicked",
+ g_signal_connect_swapped (button, "clicked",
G_CALLBACK (close_application),
- G_OBJECT (window));
+ window);
gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_widget_grab_default (button);
gtk_widget_show (button);
gtk_widget_show (window);
-
+
gtk_main ();
return 0;