blob: e5bca8648be4c0d840f08af144bba5f9758f57a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <gtk/gtk.h>
//#include <locale.h>
int main (int argc, char **argv)
{
GtkWidget *mainwin;
/* Initialize i18n support */
//setlocale(LC_ALL, ""); //(implicite)
/* Initialize the widget set */
gtk_init (&argc, &argv);
/* Create the main window */
mainwin = gtk_window_new (GTK_WINDOW_TOPLEVEL);
/* Set up our GUI elements */
//...
/* Show the application window */
gtk_widget_show_all (mainwin);
/* Enter the main event loop, and wait for user interaction */
gtk_main ();
/* The user lost interest */
return 0;
}
|