Tag: gtk林间

Glade3和C编程

我正在尝试创建一个接受两个整数的简单应用程序,并在单击“Sum”按钮时显示Sum of two 而且我是Glade3的新手,所以你可能会遇到错误 /* * Compile me with: * gcc -o test test.c $(pkg-config –cflags –libs gtk+-2.0 gmodule-2.0) */ #include #include #include #include GtkBuilder *builder; GtkWidget *window; GError *error = NULL; void on_button1_clicked(GtkButton *button1, GtkEntry *entry1, GtkEntry *entry2, GtkEntry *entry3 ) { const char *input1 = (const char *)malloc(20); const char *input2 = (const […]