Hi all, I'm a newbie gtk-programmer and wanna ask something. Which function in gtk-library is use to run a program such as "xterm" or "xclock"? I design myself a simple program with a simple button and want to run an execute program after button click. Here i want to pack it in my "xclock" function. Please help.. My simple code.. /* Begin test1.c */ #include<gtk/gtk.h> /* Function: xclock // HERE i find a function to run a simple program like xclock!! } /* Function: delete_event return TRUE; /* Function: destroy int main( int argc, char *argv[]) gtk_init (& amp;argc, &argv); /* create a new window */ g_signal_connect (G_OBJECT (window), "delete_event", gtk_container_set_border_width (GTK_CONTAINER (window), 10); button1 = gtk_button_new_with_label ("XCLOCK"); /* When the button receives the "clicked" signal, it will call /* This will cause the window to be destroyed by calling gtk_container_add (GTK_CONTAINER (window), button1); gtk_widget_show (button1); gtk_widget_show (window); gtk_main (); /* END OF FILE test1.c */ 38xTestsieger - WEB.DE FreeMail - Deutschlands beste E-Mail! Jetzt das neue FreeMail-Handbuch http://f.web.de/extern/handbuch.htm/?mc=021131 _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list |
- Re: Function to execute a program Pisanu Prasertnopakun
- Re: Function to execute a program John Cupitt
