Código:
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <config.h>
#include <gtk/gtk.h>
int main (int argc, char *argv[])
{
GtkWidget *window;
GtkWidget *button;
GtkWidget *box;
gtk_init (&argc, &argv);
button = gtk_button_new_with_label ("Ejecutar");
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
box = gtk_hbox_new(TRUE, 0);
gtk_window_set_title (GTK_WINDOW (window), "Mi primer programa");
gtk_container_border_width (GTK_CONTAINER (window), 200);
gtk_container_add (GTK_CONTAINER (window), button);
gtk_container_border_width (GTK_CONTAINER (button), 10);
gtk_box_pack_start (GTK_BOX (box), button, TRUE, FALSE, 0);
gtk_widget_show (window);
gtk_widget_show (button);
gtk_main ();
return 0;
}