1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
#include <stdlib.h>
#include <gtk/gtk.h>
#include <stdio.h>
#include <string.h>
#include <glib.h>
#include <mysql/mysql.h>
int main(int argc,char *argv[])
{
GtkWidget *window;
MYSQL *conn;
gtk_init(&argc, &argv);
// creation de la fenetre - label
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
// position de la fenetre
gtk_window_set_position (GTK_WINDOW(window), GTK_WIN_POS_CENTER);
// taile de la fenetre
gtk_window_set_default_size (GTK_WINDOW(window),800,600);
// titre de la fenetre
gtk_window_set_title (GTK_WINDOW(window)," Mysql ");
//code pour icone dans fenetre
gtk_window_set_icon_from_file (GTK_WINDOW(window),"test.ico",FALSE);
mysql_close(conn);
gtk_widget_show_all(window);
gtk_main();
return EXIT_SUCCESS;
} |
Partager