I'm trying to pack a button inside a frame, but can't understand how to do this. I tried this and it compiles, but returns an error when executed:
Code:
hbox = gtk_hbox_new (TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, TRUE, 5);
frame = gtk_frame_new ("Some text");
gtk_container_add (GTK_CONTAINER (hbox), frame);
close_button = gtk_button_new_with_label ("Close");
g_signal_connect_swapped (GTK_OBJECT (close_button), "clicked",
G_CALLBACK (gtk_main_quit), GTK_OBJECT (box));
gtk_box_pack_start (GTK_BOX (frame), close_button, TRUE, TRUE, 5);
Many thanks for any help in advance.
Rouslan